Merge "Allow for Swift Leap Upgrade to be skipped"
This commit is contained in:
commit
cdd9c5e98c
@ -48,3 +48,8 @@ export ANSIBLE_LOG_PATH="/opt/leap42/ansible-${LEAP_TIMESTAMP}.log"
|
||||
|
||||
## Containers List to Destroy in destroy-old-containers.yml
|
||||
export CONTAINERS_TO_DESTROY='"'"${CONTAINERS_TO_DESTROY:-all_containers:!galera_all:!neutron_agent:!ceph_all:!rsyslog_all}"'"'
|
||||
|
||||
# By default don't skip Swift Upgrade, this option is in place for operators who
|
||||
# who might want to maximize Swift availablity during the upgrade and want to
|
||||
# manually upgrade swift after the main deploy
|
||||
export SKIP_SWIFT_UPGRADE="${SKIP_SWIFT_UPGRADE:-no}"
|
||||
|
@ -127,7 +127,10 @@ if grep -rni "^gnocchi_storage_driver" /etc/openstack_deploy/*.{yaml,yml} | grep
|
||||
RUN_TASKS+=("os-gnocchi-install.yml -e gnocchi_identity_only=true")
|
||||
fi
|
||||
|
||||
if [ "${SKIP_SWIFT_UPGRADE}" != "yes" ]; then
|
||||
RUN_TASKS+=("os-swift-install.yml")
|
||||
fi
|
||||
|
||||
RUN_TASKS+=("os-gnocchi-install.yml")
|
||||
RUN_TASKS+=("os-ironic-install.yml")
|
||||
RUN_TASKS+=("os-magnum-install.yml")
|
||||
|
@ -28,7 +28,6 @@
|
||||
- barbican
|
||||
- magnum
|
||||
- ironic
|
||||
- swift
|
||||
- gnocchi
|
||||
- designate
|
||||
- aodh
|
||||
@ -44,3 +43,13 @@
|
||||
failed_when: false
|
||||
args:
|
||||
executable: /bin/bash
|
||||
|
||||
- name: Stop swift if not skipped
|
||||
shell: |
|
||||
for i in $(ls /etc/init /etc/init.d | grep "swift"); do
|
||||
service ${i%".conf"*} stop || true;
|
||||
done
|
||||
failed_when: false
|
||||
args:
|
||||
executable: /bin/bash
|
||||
when: not lookup('env', 'SKIP_SWIFT_UPGRADE') | bool
|
||||
|
@ -63,10 +63,12 @@ if [[ ! -f "/opt/leap42/openstack-ansible-${KILO_RELEASE}.leap" ]] && [[ "${UPGR
|
||||
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/user-secrets-adjustments-kilo.yml -e 'osa_playbook_dir=/opt/leap42/openstack-ansible-${KILO_RELEASE}'")
|
||||
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/host-adjustments.yml")
|
||||
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/remove-juno-log-rotate.yml || true")
|
||||
if [ "${SKIP_SWIFT_UPGRADE}" != "yes" ]; then
|
||||
if [ "$(ansible 'swift_hosts' --list-hosts)" != "No hosts matched" ]; then
|
||||
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/swift-ring-adjustments.yml")
|
||||
RUN_TASKS+=("${UPGRADE_PLAYBOOKS}/swift-repo-adjustments.yml")
|
||||
fi
|
||||
fi
|
||||
run_items "/opt/leap42/openstack-ansible-${KILO_RELEASE}"
|
||||
tag_leap_success "${KILO_RELEASE}-prep"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user