[Lxc-users] Fwd: Problem starting oneiric container in 12.10
Rintcius Blok
rintcius at gmail.com
Wed Nov 14 18:49:27 UTC 2012
I just ran it with a simple userdata file:
#!/bin/sh
ifconfig eth0 > /ifconfig-eth0
This is what cloud-init log says:
2012-11-14 16:54:21,765 - util.py[DEBUG]: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_ssh.py",
line 74, in handle
keys = cloud.get_public_ssh_keys()
File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 437,
in get_public_ssh_keys
return(self.datasource.get_public_ssh_keys())
File "/usr/lib/python2.7/dist-packages/cloudinit/DataSource.py", line 72,
in get_public_ssh_keys
for keyname, klist in self.metadata['public-keys'].items():
AttributeError: 'list' object has no attribute 'items'
On Wed, Nov 14, 2012 at 2:27 AM, Serge Hallyn <serge.hallyn at canonical.com>wrote:
> Quoting Rintcius Blok (rintcius at gmail.com):
> > How can I properly run an ubuntu-cloud template on 12.10 with an
> > oneiric container?
> >
> > I tried this command:
> >
> > lxc-create -t ubuntu-cloud -n oneiric.lxc -- --auth-key
> > $HOME/.ssh/id_rsa.pub --userdata ~/userdata.txt.gz -r oneiric
> >
> > This creates the container, but when I try to ssh into it it gives:
> >
> > Permission denied (publickey).
> >
> > In the container's auth.log I see lots of entries like this:
> >
> > getty[5015]: /dev/tty5: cannot open as standard input: Operation not
> > permitted
> >
> > I googled around and saw this related thread:
> http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03496.html
> > This thread mentioned that using an older container can be the cause
> > of it, so that could the cause in my case as well.
> > I don't know how to work around it though in this situation.
> >
> > Any ideas?
> > Also, is this a bug or am I trying something that is outside the
> > scope of what should run out-of-the-box?
> >
> > Thanks, Rintcius
>
> Could be just a bug, but what is in your userdata file?
>
> -serge
>
On Wed, Nov 14, 2012 at 5:01 PM, Rintcius Blok <rintcius at gmail.com> wrote:
> I just ran it with a simple userdata file:
>
> #!/bin/sh
> ifconfig eth0 > /ifconfig-eth0
>
>
> This is what cloud-init log says:
>
> 2012-11-14 16:54:21,765 - util.py[DEBUG]: Traceback (most recent call
> last):
> File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_ssh.py",
> line 74, in handle
> keys = cloud.get_public_ssh_keys()
> File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 437,
> in get_public_ssh_keys
> return(self.datasource.get_public_ssh_keys())
> File "/usr/lib/python2.7/dist-packages/cloudinit/DataSource.py", line
> 72, in get_public_ssh_keys
> for keyname, klist in self.metadata['public-keys'].items():
> AttributeError: 'list' object has no attribute 'items'
>
>
>
>
>
> On Wed, Nov 14, 2012 at 2:27 AM, Serge Hallyn <serge.hallyn at canonical.com>wrote:
>
>> Quoting Rintcius Blok (rintcius at gmail.com):
>> > How can I properly run an ubuntu-cloud template on 12.10 with an
>> > oneiric container?
>> >
>> > I tried this command:
>> >
>> > lxc-create -t ubuntu-cloud -n oneiric.lxc -- --auth-key
>> > $HOME/.ssh/id_rsa.pub --userdata ~/userdata.txt.gz -r oneiric
>> >
>> > This creates the container, but when I try to ssh into it it gives:
>> >
>> > Permission denied (publickey).
>> >
>> > In the container's auth.log I see lots of entries like this:
>> >
>> > getty[5015]: /dev/tty5: cannot open as standard input: Operation not
>> > permitted
>> >
>> > I googled around and saw this related thread:
>> http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03496.html
>> > This thread mentioned that using an older container can be the cause
>> > of it, so that could the cause in my case as well.
>> > I don't know how to work around it though in this situation.
>> >
>> > Any ideas?
>> > Also, is this a bug or am I trying something that is outside the
>> > scope of what should run out-of-the-box?
>> >
>> > Thanks, Rintcius
>>
>> Could be just a bug, but what is in your userdata file?
>>
>> -serge
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20121114/2bb1b000/attachment.html>
More information about the lxc-users
mailing list