X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-apex-image-management.sh;h=80054fa426cab536f4ea0d51fcf1862a6d450c6f;hb=9ef66dd409571a563457aa64f8cdc1200f4ee5e6;hp=aa257782145e08d52c1f7ce1920272864d9bb63b;hpb=ec0e3d3a090e77d2bbb0d3b4531dc46669353362;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-apex-image-management.sh b/jjb/opendaylight-infra-apex-image-management.sh index aa2577821..80054fa42 100644 --- a/jjb/opendaylight-infra-apex-image-management.sh +++ b/jjb/opendaylight-infra-apex-image-management.sh @@ -76,10 +76,7 @@ do --run-command 'sudo echo "MTU=\"1458\"" >> /etc/sysconfig/network-scripts/ifcfg-eth0' \ --run-command 'sudo echo "MTU=\"1458\"" >> /etc/sysconfig/network-scripts/ifcfg-br-int' \ --run-command 'sudo echo "MTU=\"1458\"" >> /etc/sysconfig/network-scripts/ifcfg-ovs-system' \ - --run-command "sudo crudini --set /etc/selinux/config '' SELINUX permissive" \ - --run-command "sudo iptables -I INPUT -p udp -m multiport --dports 4789,9876,12345 -j ACCEPT" \ - --run-command "sudo iptables -I INPUT -p tcp --dport 12345 -j ACCEPT" \ - --run-command "sudo iptables-save" + --run-command "sudo crudini --set /etc/selinux/config '' SELINUX permissive" done popd @@ -115,7 +112,7 @@ openstack image create \ # clean out any non ".new" OPNFV - apex images. In the case of a previously failed # or aborted apex management job, we can end up with multiple images with the same # name so being thorough here. -openstack image list | egrep 'OPNFV - apex' | egrep -v 'new' | awk '{print "openstack image delete",$2}' | sh || true +openstack image list | egrep 'OPNFV - apex' | egrep -v 'new' | awk '{print "openstack image delete",$2}' | sh openstack image set --name "$CONTROLLER_IMAGE_NAME" "$CONTROLLER_IMAGE_NAME.new" openstack image set --tag "Date Uploaded: $(date)" "$CONTROLLER_IMAGE_NAME"