[lxc-users] Can't ssh my lxc instances and no instance console on Horizon
Chuck Short
chuck.short at canonical.com
Wed Apr 6 15:38:06 UTC 2016
Hi,
Are you using devstack?
If so remove "force_config_drive = True" from /etc/nova/nova.conf and
restart nova-compute.
chuck
On Wed, Apr 6, 2016 at 2:46 AM, Muneeb Ahmad <muneeb.gandapur at gmail.com>
wrote:
> 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'
> cloud-init-nonet[3.0]: waiting 10 seconds for network device
> * Starting Mount network filesystems ...done.
> cloud-init-nonet[3.0]: static networking is now up
> * Starting configure network device ...done.
> * Stopping Mount network filesystems ...done.
> * Starting set sysctls from /etc/sysctl.conf ...done.
> * Stopping set sysctls from /etc/sysctl.conf ...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'
> * Stopping Populate /dev filesystem ...done.
> * Starting Signal sysvinit that virtual filesystems are mounted ...done.
> * Starting Signal sysvinit that virtual filesystems are mounted ...done.
> * Starting Bridge udev events into upstart ...done.
> * Starting Signal sysvinit that local filesystems are mounted ...done.
> * Starting configure network device security ...done.
> * Starting device node and kernel event manager ...done.
> * Starting Signal sysvinit that remote filesystems are mounted ...done.
> * Starting load modules from /etc/modules ...done.
> * Starting D-Bus system message bus ...done.
> * Stopping Mount filesystems on boot ...done.
> * Stopping load modules from /etc/modules ...done.
> * Starting flush early job output to logs ...done.
> * Stopping Failsafe Boot Delay ...done.
> * Starting System V initialisation compatibility ...done.
> * Stopping flush early job output to logs ...done.
> * Starting configure virtual network devices ...done.
> * Starting SystemD login management service ...done.
> * Starting Seed the pseudo random number generator on first boot
> ...done.
> * Starting Bridge file events into upstart ...done.
> * Starting system logging daemon ...done.
> * Starting early crypto disks...
> ...done.
> * Starting Handle applying cloud-config ...done.
> lxc
> * Not starting AppArmor in container
> ...done.
> * Stopping System V initialisation compatibility ...done.
> * Starting System V runlevel compatibility ...done.
> * Starting save kernel messages ...done.
> * Starting regular background program processing daemon ...done.
> * Starting deferred execution scheduler ...done.
> * Starting ACPI daemon ...done.
> * Starting CPU interrupts balancing daemon ...done.
> * Starting automatic crash report generation ...done.
> * Starting OpenSSH server ...done.
> * Starting open-vm daemon vmtoolsd
> * Stopping save kernel messages ...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'
> ...done.
> * Starting Handle applying cloud-config ...fail!
> landscape-client is not configured, please run landscape-config.
> * Restoring resolver state...
> ...done.
> * Stopping System V runlevel compatibility ...done.
> [r[H[J
> Ubuntu 14.04.4 LTS ubuntu console
>
> ubuntu login: * Starting execute cloud user/final scripts ...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'
>
>
> Any help would be appreciated.
> Regards
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160406/eed4e433/attachment-0001.html>
More information about the lxc-users
mailing list