← Back to team overview

registry team mailing list archive

Re: [Bug 678395] Re: Command "sudo tee /var/lib/nova/tmp/tmpuaJWRG/etc/network/interfaces" failed when starting an instance

 

2010/11/22 guan <678395@xxxxxxxxxxxxxxxxxx>:
>  Firstly this bug is related with
> https://bugs.launchpad.net/nova/+bug/678393.
>
> After I installed nova on multiple machine, and created networks using
> "nova-mange network create ...", I failed with bug 678393. So I
> updated the column bridge of table networks manually. And I tried
> start an instance again, it failed with the messages as this bug
> described.

This is a completely separate issue. Let's keep them separate.

> I have read the source of disk.py, it is clear that folder
> "/var/lib/nova/tmp/tmpuaJWRG/etc/network/" wasn't created in method
> _inject_net_into_fs(). So it caused the following command "tee"
> failed.

I understand.

> Contrast to _inject_net_into_fs(), in the method _inject_key_into_fs()
> just above, the corresponding folder is created before command tee is
> executed. As a reference, paste the code in following.

I realise. The key injection code is compatible with every Linux distro
that I know of. The location of SSH keys is widely agreed upon. The
location and format of network configuration is not. It varies with the
linux distro. If /etc/network doesn't already exist, it means that
the image does not contain a Debian derived distribution, so injecting a
network configuration that will only work on Debian derived
distributions will not help you at all. So, I'm not sure what to do
about this problem.

We can either create /etc/network first and inject a network
configuration in there that *will* *not* *work*. Or we can just not
attempt to write the network configuration if the directory doesn't
exist. That will also remove the error, but will also result in a
non-functional network.

The really short summary is that the network injection code is a (IMO
dreadful) hack, and how to deal with its failure conditions isn't
obvious. I'm not saying it shouldn't be handled. I just don't know how.

-- 
Soren Hansen
Ubuntu Developer    http://www.ubuntu.com/
OpenStack Developer http://www.openstack.org/

-- 
Command "sudo tee /var/lib/nova/tmp/tmpuaJWRG/etc/network/interfaces" failed when starting an instance
https://bugs.launchpad.net/bugs/678395
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



References