More graceful error needed when using flat mode and --flat_injected with incompatible guests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
When I start an instance, the following error happened.
2010-11-21 21:31:51-0800 [-] (root): ERROR instance instance-
2010-11-21 21:31:51-0800 [-] Traceback (most recent call last):
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] yield self.driver.
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] result = result.
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] return g.throw(self.type, self.value, self.tb)
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] yield self._create_
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] result = result.
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] return g.throw(self.type, self.value, self.tb)
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] execute=execute)
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] result = g.send(result)
2010-11-21 21:31:51-0800 [-] File "/usr/lib/
2010-11-21 21:31:51-0800 [-] yield _inject_
2010-11-21 21:31:51-0800 [-] ProcessExecutio
2010-11-21 21:31:51-0800 [-] Command: sudo tee /var/lib/
2010-11-21 21:31:51-0800 [-] Exit code: 1
2010-11-21 21:31:51-0800 [-] Stdout: '# This file describes the network interfaces available on your system\n# and how to activate them. For more information, see inter
faces(5).\n\n# The loopback network interface\nauto lo\niface lo inet loopback\n\n# The primary network interface\nauto eth0\niface eth0 inet static\n address 10
.0.0.2\n netmask 255.255.255.240\n broadcast 10.0.0.15\n gateway 10.0.0.1\n dns-nameservers 8.8.4.4\n\n\n'
2010-11-21 21:31:51-0800 [-] Stderr: 'tee: /var/lib/
After I saw the source, there may be something wrong with the source "/usr/lib/
def _inject_
netfile = os.path.
fs, 'etc'), 'network'), 'interfaces')
yield execute('sudo tee %s' % netfile, net)
Before tee command is executed, the folder was not created. So the error message "No such file or directory" was thrown. Therefore, it will be needed to create folder before tee.
summary: |
- Command "sudo tee /var/lib/nova/tmp/tmpuaJWRG/etc/network/interfaces" - failed when starting an instance + More graceful error needed when using flat mode and --flat_injected with + incompatible guests |
Changed in nova: | |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
Changed in nova: | |
assignee: | nobody → D LALITHA RANI (deevi-rani) |
status: | Confirmed → Opinion |
status: | Opinion → In Progress |
Changed in nova: | |
assignee: | D LALITHA RANI (deevi-rani) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
The version of nova is 2011.1~ bzr397- 0ubuntu0ppa1~ maverick1.
Also I attached patch to fix the bug. Please confirm it.