Cloudpipe tap vpn not always working
Cloudpipe tap vpn not always working

Fixes bug 975043

Since Essex, all instances will have an eth0 MAC address in the range
of FA:16:3E, which is near the end of the MAC address space.

When openvpn is started, a TAP interface is created with a random
generated MAC address. Chances are high the generated MAC address is
lower in value than the eth0 MAC address. Once the tap interface is
added to the bridge interface, the bridge interface will no longer have
the eth0 MAC address, but take over the TAP MAC address. This is a
feature of the linux kernel, whereby a bridge interface will take the
MAC address with the lowest value amongst its interfaces. After the ARP
entries expire, this will result in the cloudpipe instance being no
longer reachable.

This fix, randomly generates a MAC address starting with FA:17:3E, which
is greater than FA, and will thus ensure the brige will keep the eth0 MAC
address.

Change-Id: I0bd994b6dc7a92738ed23cd62ee42a021fd394e2

petrutlucian94/nova,imsplitbit/nova,tianweizhang/nova,tangfeixiong/nova,sridevikoushik31/openstack,openstack/nova,yrobla/nova,Triv90/Nova,psiwczak/openstack,paulmathews/nova,saleemjaveds/https-github.com-openstack-nova,maheshp/novatest,tudorvio/nova,klmitch/nova,adelina-t/nova,saleemjaveds/https-github.com-openstack-nova,zaina/nova,TieWei/nova,takeshineshiro/nova,CCI-MOC/nova,leilihh/novaha,yrobla/nova,redhat-openstack/nova,NoBodyCam/TftpPxeBootBareMetal,isyippee/nova,iuliat/nova,rajalokan/nova,eharney/nova,Triv90/Nova,Tehsmash/nova,angdraug/nova,rajalokan/nova,Yuriy-Leonov/nova,josephsuh/extra-specs,akash1808/nova_test_latest,shahar-stratoscale/nova,maoy/zknova,Juniper/nova,ted-gould/nova,mandeepdhami/nova,DirectXMan12/nova-hacking,TieWei/nova,iuliat/nova,eayunstack/nova,CloudServer/nova,MountainWei/nova,usc-isi/nova,gooddata/openstack-nova,sridevikoushik31/openstack,dims/nova,nikesh-mahalka/nova,devendermishrajio/nova_test_latest,tianweizhang/nova,berrange/nova,mmnelemane/nova,psiwczak/openstack,josephsuh/extra-specs,JioCloud/nova_test_latest,viggates/nova,blueboxgroup/nova,rrader/nova-docker-plugin,gooddata/openstack-nova,belmiromoreira/nova,viggates/nova,double12gzh/nova,jianghuaw/nova,Metaswitch/calico-nova,eonpatapon/nova,fajoy/nova,Yusuke1987/openstack_template,devendermishrajio/nova,mmnelemane/nova,vmturbo/nova,sebrandon1/nova,rajalokan/nova,openstack/nova,aristanetworks/arista-ovs-nova,leilihh/nova,sacharya/nova,CloudServer/nova,zhimin711/nova,sacharya/nova,bgxavier/nova,devendermishrajio/nova_test_latest,rahulunair/nova,tanglei528/nova,vladikr/nova_drafts,petrutlucian94/nova_dev,BeyondTheClouds/nova,fajoy/nova,dstroppa/openstack-smartos-nova-grizzly,luogangyi/bcec-nova,yosshy/nova,aristanetworks/arista-ovs-nova,bclau/nova,cloudbase/nova,virtualopensystems/nova,plumgrid/plumgrid-nova,thomasem/nova,jianghuaw/nova,ewindisch/nova,whitepages/nova,nikesh-mahalka/nova,JianyuWang/nova,vmturbo/nova,fnordahl/nova,zaina/nova,sridevikoushik31/nova,j-carpentier/nova,phenoxim/nova,paulmathews/nova,silenceli/nova,cloudbase/nova,dawnpower/nova,spring-week-topos/nova-week,mahak/nova,LoHChina/nova,isyippee/nova,yrobla/nova,CEG-FYP-OpenStack/scheduler,mandeepdhami/nova,tanglei528/nova,OpenAcademy-OpenStack/nova-scheduler,projectcalico/calico-nova,fajoy/nova,CiscoSystems/nova,tealover/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,tangfeixiong/nova,mikalstill/nova,DirectXMan12/nova-hacking,edulramirez/nova,maelnor/nova,jianghuaw/nova,eonpatapon/nova,openstack/nova,felixma/nova,ewindisch/nova,barnsnake351/nova,shail2810/nova,MountainWei/nova,angdraug/nova,NoBodyCam/TftpPxeBootBareMetal,savi-dev/nova,gooddata/openstack-nova,luogangyi/bcec-nova,shootstar/novatest,JianyuWang/nova,leilihh/novaha,zhimin711/nova,cloudbase/nova-virtualbox,houshengbo/nova_vmware_compute_driver,devoid/nova,imsplitbit/nova,Tehsmash/nova,zzicewind/nova,klmitch/nova,CEG-FYP-OpenStack/scheduler,klmitch/nova,eayunstack/nova,Stavitsky/nova,Metaswitch/calico-nova,cernops/nova,usc-isi/extra-specs,josephsuh/extra-specs,apporc/nova,rahulunair/nova,spring-week-topos/nova-week,JioCloud/nova_test_latest,kimjaejoong/nova,bigswitch/nova,devendermishrajio/nova,maheshp/novatest,BeyondTheClouds/nova,ruslanloman/nova,gspilio/nova,badock/nova,cyx1231st/nova,affo/nova,LoHChina/nova,vmturbo/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,aristanetworks/arista-ovs-nova,psiwczak/openstack,watonyweng/nova,TwinkleChawla/nova,OpenAcademy-OpenStack/nova-scheduler,SUSE-Cloud/nova,kimjaejoong/nova,sridevikoushik31/nova,mgagne/nova,mgagne/nova,gooddata/openstack-nova,plumgrid/plumgrid-nova,akash1808/nova,hanlind/nova,JioCloud/nova,houshengbo/nova_vmware_compute_driver,NeCTAR-RC/nova,Juniper/nova,sebrandon1/nova,alvarolopez/nova,rrader/nova-docker-plugin,CCI-MOC/nova,shail2810/nova,phenoxim/nova,hanlind/nova,savi-dev/nova,sridevikoushik31/nova,klmitch/nova,thomasem/nova,qwefi/nova,citrix-openstack-build/nova,shootstar/novatest,whitepages/nova,NewpTone/stacklab-nova,silenceli/nova,dawnpower/nova,affo/nova,ntt-sic/nova,NoBodyCam/TftpPxeBootBareMetal,double12gzh/nova,sridevikoushik31/openstack,qwefi/nova,SUSE-Cloud/nova,adelina-t/nova,cloudbase/nova-virtualbox,dstroppa/openstack-smartos-nova-grizzly,tudorvio/nova,rahulunair/nova,jeffrey4l/nova,Yusuke1987/openstack_template,CiscoSystems/nova,scripnichenko/nova,akash1808/nova_test_latest,alexandrucoman/vbox-nova-driver,houshengbo/nova_vmware_compute_driver,Stavitsky/nova,blueboxgroup/nova,ntt-sic/nova,BeyondTheClouds/nova,alaski/nova,devoid/nova,sridevikoushik31/nova,akash1808/nova,mahak/nova,noironetworks/nova,virtualopensystems/nova,redhat-openstack/nova,JioCloud/nova,rickerc/nova_audit,watonyweng/nova,yosshy/nova,berrange/nova,rickerc/nova_audit,Triv90/Nova,dstroppa/openstack-smartos-nova-grizzly,hanlind/nova,TwinkleChawla/nova,apporc/nova,varunarya10/nova_test_latest,alexandrucoman/vbox-nova-driver,varunarya10/nova_test_latest,usc-isi/extra-specs,NeCTAR-RC/nova,maoy/zknova,maheshp/novatest,badock/nova,eharney/nova,joker946/nova,cloudbau/nova,DirectXMan12/nova-hacking,usc-isi/extra-specs,yatinkumbhare/openstack-nova,raildo/nova,vladikr/nova_drafts,usc-isi/nova,barnsnake351/nova,Juniper/nova,cloudbau/nova,projectcalico/calico-nova,petrutlucian94/nova_dev,scripnichenko/nova,cernops/nova,leilihh/nova,joker946/nova,Francis-Liu/animated-broccoli,takeshineshiro/nova,cloudbase/nova,j-carpentier/nova,NewpTone/stacklab-nova,bigswitch/nova,belmiromoreira/nova,gspilio/nova,Francis-Liu/animated-broccoli,ted-gould/nova,mikalstill/nova,alaski/nova,raildo/nova,felixma/nova,paulmathews/nova,mikalstill/nova,shahar-stratoscale/nova,usc-isi/nova,yatinkumbhare/openstack-nova,fnordahl/nova,tealover/nova,jeffrey4l/nova,citrix-openstack-build/nova,dims/nova,edulramirez/nova,NewpTone/stacklab-nova,orbitfp7/nova,bclau/nova,mahak/nova,sebrandon1/nova,bgxavier/nova,Yuriy-Leonov/nova,maoy/zknova,jianghuaw/nova,rajalokan/nova,cyx1231st/nova,Juniper/nova,cernops/nova,vmturbo/nova,ruslanloman/nova,noironetworks/nova,alvarolopez/nova,maelnor/nova,zzicewind/nova,gspilio/nova,savi-dev/nova,orbitfp7/nova,petrutlucian94/nova