nova-compute needs to set migration hostname to resolved fqdn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Fix Committed
|
High
|
Edward Hope-Morley |
Bug Description
The cloud-compute relation is used to communicate address and hostname used by the compute host for live-migration. This is consumed by the nova-cloud-
The tl;dr is that MAAS will prepend the fqdn with the interface name on which the address is configured for non-OAM (or "MAAS Provided") networks. This is done so as when you reverse dns an address you get a unique fqdn and vice-versa. Where this becomes a problem is when Nova performs a live-migration for a vm where the image originally used to create that vm no longer exists in Glance. When this happens Nova reverts to doing an scp of the vm backing image from src to dst and for this it uses the nova.conf:host config which with the charms will always be an fqdn from the OAM network. This results in a "Host key verification failed." error because when a non-oam network is used for migration only the fqdn for the address from that network will have been added to the known_hosts file.
The cloud-compute 'hostname' setting is set [1] by the nova-compute charm to provide the oam fqdn to the nova-cloud-
This is not a problem that surfaces often because many deployments use the OAM network for the migrate and cloud-compute bindings but it is also not uncommon for the migrate binding to be set to something different in which case this needs to work.
Proposal here is to modify [1] to be more like [2] so that they both return the same fqdn and that way both nova-cloud-
[1] https:/
[2] https:/
[3] https:/
summary: |
- nova-compute needs to migration hostname to resolved fqdn + nova-compute needs to set migration hostname to resolved fqdn |
Changed in charm-nova-compute: | |
assignee: | nobody → Edward Hope-Morley (hopem) |
Changed in charm-nova-compute: | |
importance: | Undecided → High |
description: | updated |
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- nova-compute/ +/936451
Review: https:/