Adopting heat server resrouce baremetal instances fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Harald Jensås |
Bug Description
NOTE, the output below has extra debug info.
Issue, Key error when creating/adopting overcloud node instance ports:
2021-05-21 10:44:30.516403 | fa163e74-
"changed": false,
"instance_
.zip/ansible/
s_payload.
# Generated with the following on 2021-05-
#
# openstack overcloud node extract provisioned --stack overcloud --roles-file /home/centos/
#
- name: Controller
count: 3
hostname_format: '%stackname%
defaults:
network_config:
default_
- External
network_
- CREATE
- UPDATE
physical_
public_
template: templates/
networks:
- network: ctlplane
subnet: ctlplane-leaf1
vif: true
- network: external
subnet: external_subnet
- network: internal_api
subnet: internal_api_subnet
- network: storage
subnet: storage_subnet
- network: storage_mgmt
subnet: storage_mgmt_subnet
- network: tenant
subnet: tenant_subnet
instances:
- hostname: overcloud-
name: baremetal-
- hostname: overcloud-
name: baremetal-
- hostname: overcloud-
name: baremetal-
- name: Compute
count: 1
hostname_format: '%stackname%
defaults:
network_config:
network_
- CREATE
- UPDATE
physical_
public_
template: templates/
networks:
- network: ctlplane
subnet: ctlplane-leaf2
vif: true
- network: internal_api
subnet: internal_
- network: storage
subnet: storage_subnet02
- network: tenant
subnet: tenant_subnet02
instances:
- hostname: overcloud-
name: baremetal-
The "Existing instances" does not have the correct hostname.
2021-05-21 10:44:18.638171 | fa163e74-
2021-05-21 10:44:18.710546 | fa163e74-
"baremetal_
{
"id": "7caa634d-
"name": "baremetal-
},
{
"id": "2252b722-
"name": "baremetal-
},
{
"id": "854fa682-
"name": "baremetal-
},
{
"id": "fe8ddf28-
"name": "baremetal-
}
],
"changed": false
}
The hostname in existing instances does not match the hostnames in the YAML definition exported from the stack.
Workaround, since the "Check Existing" task will create baremetal allocation's with the correct hostname. Re-running the command solves the problem.
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- ansible/ +/792972
Review: https:/