During N->O upgrade, conditional check bombs when inventory hostname not in nova service name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Amy Marrich |
Bug Description
OS: Ubuntu 16.04
During N->O upgrade, the following task failed:
TASK [os_nova : Wait for the nova-compute service to initialize] ***************
Wednesday 22 February 2017 16:54:02 -0500 (0:00:00.549) 0:06:38.832 ****
skipping: [infra01-
skipping: [infra02-
skipping: [infra01-
skipping: [infra02-
skipping: [infra03-
skipping: [infra01-
skipping: [infra02-
skipping: [infra03-
skipping: [infra01-
skipping: [infra02-
skipping: [infra03-
skipping: [infra01-
skipping: [infra02-
skipping: [infra03-
skipping: [infra01-
skipping: [infra02-
skipping: [infra03-
skipping: [infra03-
skipping: [infra01-
fatal: [compute01-
skipping: [infra02-
skipping: [infra03-
fatal: [compute02-
The inventory hostnames were:
compute01-cluster2
compute02-cluster2
While the hostname on the server (and in nova service-list were):
i812847.
i812846.
While it may not be best practice to have the hostnames in inventory not match the actual hostnames on the server, I could not find anywhere in the documentation that calls out making sure the hostnames either match or can match the conditional check presented here. To work around this, I had to munge my inventory file but the conditional now passes. It may be helpful to update the docs to reflect best practices around naming consistency.
Changed in openstack-ansible: | |
assignee: | nobody → Andy McCrae (andrew-mccrae) |
status: | New → In Progress |
assignee: | Andy McCrae (andrew-mccrae) → Amy Marrich (amy-marrich) |
Reviewed: https:/ /review. openstack. org/439658 /git.openstack. org/cgit/ openstack/ openstack- ansible- os_nova/ commit/ ?id=5950d99f463 88f6e4bb5800fe1 9719654d7080f8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5950d99f46388f6 e4bb5800fe19719 654d7080f8
Author: Andy McCrae <email address hidden>
Date: Wed Mar 1 15:34:09 2017 +0000
Adjust ansible_hostname to ansible_nodename
ansible vars are as follows: facts[' hostname' ] = platform. node(). split(' .')[0] facts[' nodename' ] = platform.node()
self.
self.
We should use the "nodename" var instead of the hostname variable.
Closes-Bug: #1667193 2adaec058c86177 1f9aefe27b3
Change-Id: Id98016cfffd30d