Commit fa0aaaeb authored by Ricardo Araujo's avatar Ricardo Araujo
Browse files

Update P&M job

parent 36332f6c
......@@ -216,7 +216,13 @@
DEVSTACK_GATE_PROJECTS_OVERRIDE="openstack/ironic-python-agent $DEVSTACK_GATE_PROJECTS_OVERRIDE"
DEVSTACK_GATE_PROJECTS_OVERRIDE="openstack/tempest $DEVSTACK_GATE_PROJECTS_OVERRIDE"
sudo apt-get install -y libffi-dev libssl-dev
sudo echo -e "nameserver 10.20.6.1\nsearch lsd.ufcg.edu.br" > /tmp/resolv.conf
sudo mv /tmp/resolv.conf /etc/resolv.conf
sudo service unbound stop
sudo apt update
#NOTE(nicodemos) libpcre3-dev added
sudo apt install -y libffi-dev libssl-dev ubuntu-cloud-keyring libpcre3-dev
export DEVSTACK_GATE_PROJECTS_OVERRIDE
export PYTHONUNBUFFERED=true
......@@ -291,6 +297,7 @@
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_HW_NODE_DISK=120"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_HW_EPHEMERAL_DISK=0"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_HW_ARCH=x86_64"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"REQUIREMENTS_BRANCH=refs/changes/27/454927/1"
wget {url-prefix}/{hwinfo-file}
export IRONIC_HWINFO_FILE=$(pwd)/{hwinfo-file}
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_HWINFO_FILE=$(pwd)/{hwinfo-file}"
......@@ -395,7 +402,22 @@
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS+=,{deploy_driver}"
function pre_test_hook {{
sudo pip install python-oneviewclient
if [ "$ZUUL_BRANCH" == "master" ] ; then
sudo pip install python-oneviewclient
sudo pip install hpOneView
sudo pip install python-ilorest-library
fi
if [ "$ZUUL_BRANCH" == "stable/pike" ] ; then
sudo pip install python-oneviewclient
sudo pip install hpOneView
sudo pip install python-ilorest-library
elif [ "$ZUUL_BRANCH" == "stable/ocata" ] ; then
sudo pip install python-oneviewclient==2.5.2
elif [ "$ZUUL_BRANCH" == "stable/newton" ] ; then
sudo pip install python-oneviewclient==2.5.1
fi
local localconf=$BASE/new/devstack/local.conf
echo "[[post-config|/\$IRONIC_CONF_FILE]]" >> $localconf
echo "[oneview]" >> $localconf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment