Moving nova-consoleauth to step4

Since this is part of the post_upgrade_tasks and post_upgrade_tasks is
maxed to 4 steps, we need to move this from step5 to step4 otherwise
it's not being executed.

Also applying Alex's recommendation of using OS_CLOUD instead of havng
all the credentials here.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1825849
Change-Id: Ib78a68a80ccb5d7e04056b929bc1a97f65a1627b
This commit is contained in:
David Vallee Delisle 2021-04-09 10:01:10 -04:00
parent c01c377b38
commit 755084b528
1 changed files with 5 additions and 14 deletions

View File

@ -20,10 +20,6 @@ parameters:
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
AdminPassword:
description: The password for the keystone admin account, used for monitoring, querying neutron etc.
type: string
hidden: true
ServiceData:
default: {}
description: Dictionary packing service data
@ -103,7 +99,9 @@ parameters:
constraints:
- allowed_values: ['', 'UPGRADE']
default: ''
RootStackName:
description: The name of the stack/plan.
type: string
conditions:
@ -402,19 +400,12 @@ outputs:
comment: qemu user
post_upgrade_tasks:
- when:
- step|int == 5
- step|int == 4
tags:
- never
- system_upgrade_stop_services
environment:
OS_USERNAME: admin
OS_USER_DOMAIN_NAME: "Default"
OS_PROJECT_DOMAIN_NAME: "Default"
OS_PROJECT_NAME: admin
OS_PASSWORD: { get_param: AdminPassword }
OS_AUTH_URL: { get_param: [EndpointMap, KeystoneV3Public, uri] }
OS_IDENTITY_API_VERSION: 3
OS_AUTH_TYPE: password
OS_CLOUD: {get_param: RootStackName}
block:
- name: Get nova-consoleauth service ID
command: openstack compute service list --service nova-consoleauth --column ID --column Host --format yaml