nova 无法迁移的问题
2021-04-27 本文已影响0人
cloudFans
由于之前调整了一波可用域以及主机组,旧的机器便不能迁移了
问题与log
/var/log/kolla/nova/nova-scheduler.log:2021-04-27 14:04:16.662 64 DEBUG nova.scheduler.filters.availability_zone_filter [req-9377a72c-7d0a-4efa-8f29-5c7c961c7ae8 185f782e50331bdee5890a3a5a09617246846b9e9bc56c1ac44d0686ba92666d 7ff7b55097ef43358a7a3e6cac34fb2f - 91b8c1549b614a038dcd8395ece8de60 91b8c1549b614a038dcd8395ece8de60]
Availability Zone 'A4-96core-performance' requested. (compute007, compute007) ram: 7252MB disk: 2016256MB io_ops: 0 instances: 9 has AZs: nova host_passes /var/lib/kolla/venv/lib/python3.6/site-packages/nova/scheduler/filters/availability_zone_filter.py:61
nova\scheduler\filters\availability_zone_filter.py
if 'availability_zone' in metadata:
hosts_passes = availability_zone in metadata['availability_zone']
host_az = metadata['availability_zone']
else:
hosts_passes = availability_zone == CONF.default_availability_zone
host_az = CONF.default_availability_zone
if not hosts_passes:
LOG.debug("Availability Zone '%(az)s' requested. "
"%(host_state)s has AZs: %(host_az)s",
{'host_state': host_state,
'az': availability_zone,
'host_az': host_az})
目前怀疑是旧的这批机器当时指定的可用域不存在了,和当前的可用的一批可用域也匹配不上
解决:
更改之前的可用域 到现在的可用域即可
image.png