hyperv: Unable to get ports details for devices: AttributeError: 'NoneType' object has no attribute 'startswith'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-hyperv |
Fix Released
|
Medium
|
Unassigned | ||
neutron |
Fix Released
|
Medium
|
Unassigned | ||
os-win |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In a failed hyperv CI run I'm seeing this in the hyperv agent logs:
2018-04-06 02:43:29.230 588 91983184 MainThread INFO networking_
2018-04-06 02:43:29.230 588 91983184 MainThread INFO networking_
2018-04-06 02:43:29.246 588 91983184 MainThread INFO networking_
2018-04-06 02:43:29.246 588 91983184 MainThread INFO networking_
2018-04-06 02:43:29.262 588 91983184 MainThread INFO networking_
2018-04-06 02:43:30.496 588 35292864 MainThread DEBUG networking_
2018-04-06 02:43:30.526 588 35292864 MainThread DEBUG networking_
Traceback (most recent call last):
File "/usr/local/
res = self.dispatcher
File "/usr/local/
return self._do_
File "/usr/local/
result = func(ctxt, **new_args)
File "/opt/stack/
for device in kwargs.
File "/opt/stack/
port_id = plugin.
File "/opt/stack/
if device.
AttributeError: 'NoneType' object has no attribute 'startswith'
_treat_
In this test run, the nova-compute service is also being reported as down, so the nova-scheduler is filtering it out and all server build requests fail. I don't know if the two are related, but thta's how I stumbled onto this error in the hyperv agent logs.
tags: | added: hyperv |
Changed in networking-hyperv: | |
importance: | Undecided → Medium |
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in networking-hyperv: | |
status: | New → Fix Released |
Changed in neutron: | |
status: | Confirmed → Fix Released |
It looks like a new unnamed port was added, which is odd as port names are mandatory. I'll add a check. Thanks for reporting this bug.
The problem is that this seems to prevent other ports from being processed.
Most probably the nova service was disabled after too many consecutive failures.