adding a host with az_aware fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
High
|
Sam Morrison |
Bug Description
When doing a host-create I get an error
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
2020-05-26 15:59:47.408 3737 ERROR oslo_messaging.
Looking into this fully I see a few things that are wrong.
It's assuming a zone has hosts when it is possible for an az to be empty for some reason.
It is also using hypervisor hostname to check if the host is in the AZ, it should be using the service host_name.
Changed in blazar: | |
importance: | Undecided → High |
assignee: | nobody → Sam Morrison (sorrison) |
milestone: | none → victoria-2 |
Reviewed: https:/ /review. opendev. org/730706 /git.openstack. org/cgit/ openstack/ blazar/ commit/ ?id=532544efbf5 fc3a2daf60af5d3 c216b0b6a62c42
Committed: https:/
Submitter: Zuul
Branch: master
commit 532544efbf5fc3a 2daf60af5d3c216 b0b6a62c42
Author: Sam Morrison <email address hidden>
Date: Tue May 26 16:29:27 2020 +1000
Fix up adding availability zone (AZ) to a host on creation
1. Nova AZ returns hosts as service hosts as opposed to hypervisor
hostnames
2. Handle case where a Nova AZ has no hosts
Change-Id: If6f6cf21170e95 c58dd8a0a1b41b9 b5f4797a627
Closes-Bug: #1880646