Fix openstack-nova-consoleauth service upgrade check

When running the FFU workflow the openstack-nova-consoleauth
service gets stopped before running the upgrade tasks so the
task for disabling the service is ignored. This change fixes
the nova_consoleauth_enabled command to check if the service
is enabled instead of active.

Change-Id: If1e0f43c1962496b68c1c982db86a6dec58e05c5
Closes-bug: 1765997
This commit is contained in:
Marius Cornea 2018-04-21 13:55:36 -04:00
parent f4b62d7b5e
commit b1d0ed0910

View File

@ -124,7 +124,7 @@ outputs:
host_prep_tasks: {get_attr: [NovaLogging, host_prep_tasks]}
upgrade_tasks:
- name: Check if nova_consoleauth is deployed
command: systemctl is-active --quiet openstack-nova-consoleauth
command: systemctl is-enabled --quiet openstack-nova-consoleauth
tags: common
ignore_errors: True
register: nova_consoleauth_enabled