Created
September 8, 2020 10:05
-
-
Save brtkwr/c26def61a53ce902097a34e5291c90ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -x | |
| export TEMPEST_CONFIG=/opt/stack/magnum/etc/tempest.conf | |
| cp /opt/stack/tempest/etc/tempest.conf $TEMPEST_CONFIG | |
| export IMAGE_ID=fedora-coreos-31.20200323.3.2-openstack.x86_64 | |
| #export IMAGE_ID=$(openstack image list --property os_distro=fedora-atomic --name $IMAGE_NAME -c ID -f value | head -1) | |
| #export NIC_ID=$(openstack network show public -f value -c id) | |
| crudini --set $TEMPEST_CONFIG magnum image_id $IMAGE_ID | |
| crudini --set $TEMPEST_CONFIG magnum nic_id public | |
| crudini --set $TEMPEST_CONFIG magnum keypair_id default | |
| crudini --set $TEMPEST_CONFIG magnum flavor_id ds2G | |
| crudini --set $TEMPEST_CONFIG magnum master_flavor_id ds2G | |
| crudini --set $TEMPEST_CONFIG magnum copy_logs True | |
| cd /opt/stack/magnum | |
| export CREDS=/opt/stack/magnum/functional_creds.conf | |
| cp /opt/stack/magnum/functional_creds.conf.sample $CREDS | |
| # update the IP address | |
| HOST=$(crudini --get /etc/magnum/magnum.conf api host) | |
| PORT=$(crudini --get /etc/magnum/magnum.conf api port) | |
| crudini --set $CREDS auth magnum_url http://$HOST:$PORT/v1 | |
| # keystone auth | |
| AUTH_URL=$(crudini --get /etc/magnum/magnum.conf keystone_auth auth_url) | |
| crudini --set $CREDS auth auth_url $AUTH_URL | |
| # update admin password | |
| . /opt/stack/devstack/openrc admin admin | |
| crudini --set $CREDS admin pass $OS_PASSWORD | |
| # update demo password | |
| . /opt/stack/devstack/openrc demo demo | |
| crudini --set $CREDS auth password $OS_PASSWORD | |
| # update DNS name server | |
| crudini --set $CREDS magnum dns_nameserver 8.8.8.8 | |
| # image ID | |
| crudini --set $CREDS magnum image_id $IMAGE_ID | |
| # only continue if deps arg is provided | |
| [[ $1 != deps ]] && exit 0 | |
| . /opt/stack/devstack/openrc admin admin | |
| openstack keypair create --public-key ~/.ssh/id_rsa.pub default | |
| . /opt/stack/devstack/openrc demo demo | |
| openstack keypair create --public-key ~/.ssh/id_rsa.pub default | |
| UPPER_CONSTRAINTS=/opt/stack/requirements/upper-constraints.txt | |
| sudo pip install -c $UPPER_CONSTRAINTS -U -r test-requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment