[lxc-users] Can't ssh my lxc instances and no instance console on Horizon

Serge Hallyn serge.hallyn at ubuntu.com
Mon Apr 18 14:31:30 UTC 2016


Quoting Muneeb Ahmad (14mseemahmad at seecs.edu.pk):
> Hello guys,
> I deployed OpenStack with LXD as a hypervisor. Everything is working
> fine but I'm unable to access the console on horizon of any instance I
> run. I'm unable to ssh into any instance except the CirrOS. Log file
> an instance shows the following errors something regarding cloud-init;
> 
> 
>  * Starting Mount filesystems on boot   ...done.
>  * Starting Signal sysvinit that the rootfs is mounted   ...done.
>  * Starting Populate /dev filesystem   ...done.
>  * Stopping Read required files in advance (for other mountpoints)   ...done.
>  * Starting Clean /tmp directory   ...done.
>  * Starting Populate and link to /run filesystem   ...done.
>  * Starting Track if upstart is running in a container   ...done.
>  * Stopping Clean /tmp directory   ...done.
>  * Stopping Populate and link to /run filesystem   ...done.
>  * Starting load fallback graphics devices   ...done.
>  * Starting workaround for missing events in container   ...done.
>  * Stopping load fallback graphics devices   ...done.
>  * Stopping workaround for missing events in container   ...done.
> cloud-init-container: emitted ifup for eth0
>  * Starting Uncomplicated firewall   ...done.
>  * Starting configure network device security   ...done.
>  * Starting set console font   ...done.
>  * Starting enable remaining boot-time encrypted block devices   ...done.
>  * Stopping set console font   ...done.
>  * Starting userspace bootsplash   ...done.
>  * Starting Initialize or finalize resolvconf   ...done.
>  * Stopping userspace bootsplash   ...done.
>  * Starting configure network device security   ...done.
>  * Starting Send an event to indicate plymouth is up   ...done.
>  * Starting Mount network filesystems   ...done.
>  * Stopping Send an event to indicate plymouth is up   ...done.
>  * Stopping Mount network filesystems   ...done.
>  * Starting Bridge socket events into upstart   ...done.
>  * Starting configure network device   ...done.
> Traceback (most recent call last):
>   File "/usr/bin/cloud-init", line 618, in <module>
>     sys.exit(main())
>   File "/usr/bin/cloud-init", line 614, in main
>     get_uptime=True, func=functor, args=(name, args))
>   File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
> 1900, in log_time
>     ret = func(*args, **kwargs)
>   File "/usr/bin/cloud-init", line 448, in status_wrapper
>     util.ensure_dirs((data_d, link_d,))
>   File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
> 1278, in ensure_dirs
>     ensure_dir(d, mode)
>   File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
> 1318, in ensure_dir
>     chmod(path, mode)
>   File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1497, in chmod
>     os.chmod(path, real_mode)
> OSError: [Errno 1] Operation not permitted: '/var/lib/cloud/data'

Hi,

this should be fixed as of early last week.  (by a fix i nova-lxd)

-serge


More information about the lxc-users mailing list