[vagrant] libvirt sometimes is missing information about hostname in leases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Medium
|
Michal Rostecki |
Bug Description
This behavior is reproducable in CentOS 7 with libvirt 1.2.17
Traceback (most recent call last):
File "newest_
main()
File "newest_
newest_
File "newest_
return f(conn, *args, **kwargs)
File "newest_
reverse=
IndexError: list index out of range
The leases are looking like:
[{'clientid': None,
'expirytime': 1460712953L,
'hostname': None,
'iaid': None,
'iface': 'virbr1',
'ipaddr': '172.28.128.158',
'mac': '52:54:
'ipaddr': '172.28.128.158', [201/277]
'mac': '52:54:
'prefix': 24,
'type': 0},
{'clientid': None,
'expirytime': 1460712953L,
'hostname': None,
'iaid': None,
'iface': 'virbr1',
'ipaddr': '172.28.128.107',
'mac': '52:54:
'prefix': 24,
'type': 0},
{'clientid': None,
'expirytime': 1460714372L,
'hostname': None,
'iaid': None,
'iface': 'virbr1',
'ipaddr': '172.28.128.97',
'mac': '52:54:
'prefix': 24,
'type': 0},
{'clientid': None,
'expirytime': 1460714419L,
'hostname': None,
'iaid': None,
'iface': 'virbr1',
'ipaddr': '172.28.128.173',
'mac': '52:54:
'prefix': 24,
'type': 0},
{'clientid': None,
'expirytime': 1460714476L,
'hostname': 'control01',
'iaid': None,
'iface': 'virbr1',
'ipaddr': '172.28.128.249',
'mac': '52:54:
'prefix': 24,
'type': 0},
{'clientid': None,
'expirytime': 1460714495L,
'hostname': None,
'iaid': None,
'iface': 'virbr1',
'ipaddr': '172.28.128.77',
'mac': '52:54:
'prefix': 24,
'type': 0},
{'clientid': None,
'expirytime': 1460714513L,
'hostname': 'storage01',
'iaid': None,
'iface': 'virbr1',
'ipaddr': '172.28.128.146',
'mac': '52:54:
'prefix': 24,
'type': 0}]
So, there are hostnames missing. But on the other hand, all MAC addresses are in place and they're the real addresses which VM-s have.
Therefore we should look for MAC address of VM-s to ensure that vagrant-hostmanager will not fail.
Changed in kolla: | |
importance: | Undecided → Medium |
assignee: | nobody → Michal Rostecki (mrostecki) |
milestone: | none → newton-1 |
Fix proposed to branch: master /review. openstack. org/306284
Review: https:/