masakari fails if hypervisor name does not match nova service name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari |
Fix Released
|
High
|
Radosław Piliszek | ||
Stein |
Won't Fix
|
High
|
Unassigned | ||
Train |
Fix Committed
|
High
|
Unassigned | ||
Ussuri |
Fix Committed
|
High
|
Unassigned | ||
Victoria |
Fix Released
|
High
|
Radosław Piliszek | ||
masakari (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Eoan |
Won't Fix
|
High
|
James Page | ||
Focal |
Fix Released
|
High
|
James Page |
Bug Description
When adding a host to a segment masakari validates the provided hostname is a valid hypervisor name *1. But when masakari is mapping nova services *2 and servers *3 it uses the host attribute which may not necessarily match. It is common for the hypervisor entry to be a fqdn but service entry to be a bare hostname. In this situation both service and servers lookup fail and throw an IndexError.
$ openstack hypervisor list -c ID -c "Hypervisor Hostname"
+----+-
| ID | Hypervisor Hostname |
+----+-
| 1 | juju-f4bd71-
| 2 | juju-f4bd71-
| 3 | juju-f4bd71-
+----+-
$ openstack compute service list -c ID -c Binary -c Host
+----+-
| ID | Binary | Host |
+----+-
| 1 | nova-conductor | juju-f4bd71-
| 2 | nova-scheduler | juju-f4bd71-
| 4 | nova-compute | juju-f4bd71-
| 5 | nova-compute | juju-f4bd71-
| 6 | nova-compute | juju-f4bd71-
+----+-
$ openstack server show 65419346-
+------
| Field | Value |
+------
| OS-EXT-
+------
*1 https:/
*2 https:/
*3 https:/
Changed in masakari: | |
assignee: | nobody → Liam Young (gnuoy) |
Changed in masakari: | |
importance: | Undecided → High |
Changed in masakari (Ubuntu Focal): | |
status: | Confirmed → Triaged |
Changed in masakari (Ubuntu Eoan): | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
Changed in masakari (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in masakari (Ubuntu Eoan): | |
assignee: | nobody → James Page (james-page) |
Changed in masakari (Ubuntu Focal): | |
assignee: | nobody → James Page (james-page) |
status: | Triaged → In Progress |
Changed in masakari: | |
assignee: | Liam Young (gnuoy) → Dmitriy Rabotyagov (noonedeadpunk) |
Changed in masakari: | |
assignee: | Dmitriy Rabotyagov (noonedeadpunk) → Radosław Piliszek (yoctozepto) |
Changed in masakari: | |
assignee: | Radosław Piliszek (yoctozepto) → Dmitriy Rabotyagov (noonedeadpunk) |
Changed in masakari: | |
assignee: | Dmitriy Rabotyagov (noonedeadpunk) → Radosław Piliszek (yoctozepto) |
Changed in masakari: | |
assignee: | Radosław Piliszek (yoctozepto) → Dmitriy Rabotyagov (noonedeadpunk) |
Changed in masakari: | |
assignee: | Dmitriy Rabotyagov (noonedeadpunk) → Radosław Piliszek (yoctozepto) |
Fix proposed to branch: master /review. opendev. org/675734
Review: https:/