diff options
author | Tim Rozet <trozet@redhat.com> | 2015-12-31 09:56:24 -0500 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2016-01-05 16:47:50 -0500 |
commit | c475784616c60546f228fbdd75f3fe547f5079ac (patch) | |
tree | b102d00f925a057cea1f18003c871becfda3c6db /ci | |
parent | 3c78ff4776a98ef9f69bdcbe506c56d4a456a80c (diff) |
Image fix to force flavor to be 39GB
Testing if this fixes current CI breakage
Change-Id: Ib4f75a9a1772c5363afab6d24b7a254f8cf6f6f8
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/deploy.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index 1d9a3bb9..1abc3c49 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -458,6 +458,9 @@ EOI # copy stack's ssh key to this users authorized keys ssh -T ${SSH_OPTIONS[@]} "root@$UNDERCLOUD" "cat /home/stack/.ssh/id_rsa.pub" >> ~/.ssh/authorized_keys + # disable requiretty for sudo + ssh -T ${SSH_OPTIONS[@]} "root@$UNDERCLOUD" "sed -i 's/Defaults\s*requiretty//'" /etc/sudoers + # configure undercloud on Undercloud VM echo "Running undercloud configuration." echo "Logging undercloud configuration to instack:/home/stack/apex-undercloud-install.log" @@ -537,9 +540,16 @@ openstack baremetal import --json instackenv.json openstack baremetal configure boot openstack baremetal introspection bulk start echo "Configuring flavors" -openstack flavor list | grep baremetal || openstack flavor create --id auto --ram 4096 --disk 39 --vcpus 1 baremetal -openstack flavor list | grep control || openstack flavor create --id auto --ram 4096 --disk 39 --vcpus 1 control -openstack flavor list | grep compute || openstack flavor create --id auto --ram 4096 --disk 39 --vcpus 1 compute +for flavor in baremetal control compute; do + echo -e "${blue}INFO: Updating flavor: \${flavor}${reset}" + if openstack flavor list | grep \${flavor}; then + openstack flavor delete \${flavor} + fi + openstack flavor create --id auto --ram 4096 --disk 39 --vcpus 1 \${flavor} + if ! openstack flavor list | grep \${flavor}; then + echo -e "${red}ERROR: Unable to create flavor \${flavor}${reset}" + fi +done openstack flavor set --property "cpu_arch"="x86_64" --property "capabilities:boot_option"="local" baremetal openstack flavor set --property "cpu_arch"="x86_64" --property "capabilities:boot_option"="local" --property "capabilities:profile"="control" control openstack flavor set --property "cpu_arch"="x86_64" --property "capabilities:boot_option"="local" --property "capabilities:profile"="compute" compute |