linux_net.ensure_metadata_ip() fails on precise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Adam Gandelman | ||
nova (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Now that nova-rootwrap is returning real return codes, ensure_
2012-02-08 15:30:13,309 DEBUG nova.utils [-] Running cmd (subprocess): sudo nova-rootwrap ip addr add 169.254.169.254/32 scope link dev lo from (pid=8942) execute /usr/lib/
2012-02-08 15:30:13,339 DEBUG nova.utils [-] Result was 2 from (pid=8942) execute /usr/lib/
2012-02-08 15:30:13,340 CRITICAL nova [-] Unexpected error while running command.
Command: sudo nova-rootwrap ip addr add 169.254.169.254/32 scope link dev lo
Exit code: 2
Stdout: ''
Stderr: 'RTNETLINK answers: File exists\n'
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: _launcher.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self._exit_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return hubs.get_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self.greenlet.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: result = function(*args, **kwargs)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: server.start()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self.manager.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self.l3driver.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: linux_net.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: run_as_root=True, check_exit_code=[0, 254])
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return utils.execute(*cmd, **kwargs)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: cmd=' '.join(cmd))
(nova): TRACE: ProcessExecutio
(nova): TRACE: Command: sudo nova-rootwrap ip addr add 169.254.169.254/32 scope link dev lo
(nova): TRACE: Exit code: 2
(nova): TRACE: Stdout: ''
(nova): TRACE: Stderr: 'RTNETLINK answers: File exists\n'
(nova): TRACE:
There seems to have been a change upstream wrt return codes from iproute:
root@ip-
ii iproute 20110629-1 networking and traffic control tools
root@ip-
RTNETLINK answers: File exists
254
Processing triggers for man-db ...
Setting up iproute (20111117-1ubuntu1) ...
root@ip-
RTNETLINK answers: File exists
2
Update, the correct upstream commit:
http://
Seems like a crazy change, but in any case, precise is now on this version and nova-network should check for both 2 and 254.
description: | updated |
Changed in nova (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in nova: | |
milestone: | none → essex-4 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-4 → 2012.1 |
Fix proposed to branch: master /review. openstack. org/3934
Review: https:/