From: beierlm Date: Wed, 30 Jun 2021 12:05:37 +0000 (-0400) Subject: Changing microstack port X-Git-Tag: release-v11.0-start~43 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=6535de3784005f262e9032ec1e8fb759c797ce1a;p=osm%2Fdevops.git Changing microstack port Now that Chrome has decided to block 10080, we should change the default horizon port for microstack to something less likely to get blocked Change-Id: Ibd73785149e551f376e21f12ee99ff5177efe2b0 Signed-off-by: beierlm --- diff --git a/tools/local-build.sh b/tools/local-build.sh index d1e8238c..5c832fb7 100755 --- a/tools/local-build.sh +++ b/tools/local-build.sh @@ -91,38 +91,38 @@ function install_local_registry() { function install_microstack() { sudo snap install microstack --devmode --edge - sudo snap set microstack config.network.ports.dashboard=10080 + sudo snap set microstack config.network.ports.dashboard=8080 sudo microstack.init --auto --control sudo snap alias microstack.openstack openstack . /var/snap/microstack/common/etc/microstack.rc - for i in $(openstack security group list | awk '/default/{ print $2 }'); do - openstack security group rule create $i --protocol icmp --remote-ip 0.0.0.0/0 - openstack security group rule create $i --protocol tcp --remote-ip 0.0.0.0/0 + for i in $(microstack.openstack security group list | awk '/default/{ print $2 }'); do + microstack.openstack security group rule create $i --protocol icmp --remote-ip 0.0.0.0/0 + microstack.openstack security group rule create $i --protocol tcp --remote-ip 0.0.0.0/0 done - openstack network create --enable --no-share osm-ext - openstack subnet create osm-ext-subnet --network osm-ext --dns-nameserver 8.8.8.8 \ + microstack.openstack network create --enable --no-share osm-ext + microstack.openstack subnet create osm-ext-subnet --network osm-ext --dns-nameserver 8.8.8.8 \ --subnet-range 172.30.0.0/24 - openstack router create external-router - openstack router add subnet external-router osm-ext-subnet - openstack router set --external-gateway external external-router + microstack.openstack router create external-router + microstack.openstack router add subnet external-router osm-ext-subnet + microstack.openstack router set --external-gateway external external-router curl -L https://github.com/cirros-dev/cirros/releases/download/0.3.5/cirros-0.3.5-x86_64-disk.img \ - | openstack image create --public --container-format=bare \ + | microstack.openstack image create --public --container-format=bare \ --disk-format=qcow2 cirros-0.3.5-x86_64-disk.img curl https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img \ - | openstack image create --public --container-format=bare \ + | microstack.openstack image create --public --container-format=bare \ --disk-format=qcow2 ubuntu16.04 curl https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img \ - | openstack image create --public --container-format=bare \ + | microstack.openstack image create --public --container-format=bare \ --disk-format=qcow2 US1604 curl https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img \ - | openstack image create --public --container-format=bare \ + | microstack.openstack image create --public --container-format=bare \ --disk-format=qcow2 ubuntu18.04 curl https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img \ - | openstack image create --public --container-format=bare \ + | microstack.openstack image create --public --container-format=bare \ --disk-format=qcow2 ubuntu20.04 }