Single Installer problems
Vatkov, Bogdan
bogdan.vatkov at sap.com
Fri Jun 5 23:05:52 UTC 2015
Ok, this one was easy - in the /var/lib/lxc/openstack-single-ubuntu/rootfs/var/log/cloud-init-output.log I saw that my "proxy" was not resolving during Container initialization.
I have entered a fully qualified proxy and succeeded a little bit further - the container got initialized successfully and the Juju bootstrap started ... but failed with an error:
commands.log says:
---
[ERROR * 06-05 18:54:22] * cloudinstall.utils * (utils.py, container_ip, 579)]
error calling lxc-info to get container IP
Traceback (most recent call last):
File "/usr/share/openstack/cloudinstall/utils.py", line 571, in container_ip
shell=True)
File "/usr/lib/python3.4/subprocess.py", line 616, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command 'sudo lxc-info -n uoi-bootstrap -i -H' returned non-zero exit status 1
[DEBUG * 06-05 18:54:22] * cloudinstall.utils * (utils.py, global_exchandler, 63)]
Traceback (most recent call last):
File "/usr/share/openstack/cloudinstall/utils.py", line 571, in container_ip
shell=True)
File "/usr/lib/python3.4/subprocess.py", line 616, in check_output
raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command 'sudo lxc-info -n uoi-bootstrap -i -H' returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/openstack-status", line 94, in <module>
utils.container_run_status('uoi-bootstrap', 'openstack-status', config)
File "/usr/share/openstack/cloudinstall/utils.py", line 634, in container_run_status
ip = container_ip(name)
File "/usr/share/openstack/cloudinstall/utils.py", line 580, in container_ip
raise NoContainerIPException()
cloudinstall.utils.NoContainerIPException
---
For the last couple of days I was trying to make the stable branch run without success for various reasons then I decided to try the experimental branch.
But what I noticed is that in the stable branch the top container was called uoi-bootstrap but in the experimental code I see it is openstack-single-$USER.
Is this something like an inconsistent refactoring across the scripts?
From: ubuntu-openstack-installer-bounces at lists.ubuntu.com [mailto:ubuntu-openstack-installer-bounces at lists.ubuntu.com] On Behalf Of Vatkov, Bogdan
Sent: Saturday, June 06, 2015 01:15
To: ubuntu-openstack-installer at lists.ubuntu.com
Subject: Single Installer problems
Hi,
I have one pretty big machine (256 GB RAM and 32 cores) and want to install the complete OpenStack on this single machine.
I have installed Ubuntu Server from CD.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
$ uname -a
Linux bgsofl60246223 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I had to upgrade the kernel to 3.16-0-38.52 based on this: https://bugs.launchpad.net/uvtool/+bug/1408833
Then I followed the Single Installer Guide from http://ubuntu-cloud-installer.readthedocs.org/en/latest/single-installer.guide.html
$ sudo -E apt-add-repository ppa:cloud-installer/experimental
$ sudo -E apt-get update
$ sudo -E apt-get install openstack
$ sudo -E openstack-install --extra-ppa ppa:cloud-installer/experimental --openstack-release kilo -r trusty -a amd64 --http-proxy http://proxy:8080 --https-proxy http://proxy:8080
commands.log is
[INFO: 06-05 17:50:35, openstack-install:176] Starting OpenStack Installer
[INFO: 06-05 17:50:35, openstack-install:251] Running Kilo release
[DEBUG: 06-05 17:50:51, utils.py:920] ssh keys exist for this user, they will be used instead.
[DEBUG: 06-05 17:50:51, single_install.py:59] Found proxy info: http://proxy:8080/http://proxy:8080<http://proxy:8080/http:/proxy:8080>
[INFO: 06-05 17:50:51, single_install.py:88] Prepared userdata: {'extra_ppa': ['ppa:cloud-installer/experimental'], 'seed_command': ['env', 'http_proxy=http://proxy:8080', 'https_proxy=http://proxy:8080', 'pollinate', '-q'], 'http_proxy': 'http://proxy:8080', 'https_proxy': 'http://proxy:8080', 'extra_sshkeys': ['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7eSVsYXN8IZQA6q7igFi80wVAJsZbDDfy7ZyVnB8gFA6//hHo1gEzjGBQkNBRWKrQRypHibUzUnF6FV4Q1X4EUkKpmLUgXFoQQqq8OAuhxzHQCNH5pyGElD7rO/uTOu2zQrYxq0X9hST2DuFt5UwcTCiRr8RwF+tmLxXJ/BzQUPcH8hspPaaz8z81qmXHtitBNMRu7N9jRclRSryH2iUtJMygM5SWi0oBm6ANS40gy0sUZ52dgw8/f4NvXK95QkNMA/vdqOhsWN9QHHejb4A/SWNsY2YcrBEYGUOzUT6A/FzkjuUm6SsmyXrkh+PMCY+DurpP4AZhgqI3IT1BRwV3 ubuntu at bgsofl60246223\n']}
[INFO: 06-05 17:50:51, single_install.py:334] Setting permissions for user ubuntu
[DEBUG: 06-05 17:53:56, utils.py:722] Error with command: [Output] '' [Error] 'tail: cannot open '/var/log/cloud-init-output.log' for reading: No such file or directory'
[DEBUG: 06-05 17:53:56, utils.py:722] Error with command: [Output] '' [Error] 'sudo: unable to resolve host openstack-single-ubuntu
cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:53:56, single_install.py:288] Waiting for cloud-init status result
[DEBUG: 06-05 17:53:57, utils.py:722] Error with command: [Output] '' [Error] 'sudo: unable to resolve host openstack-single-ubuntu
cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:53:58, utils.py:722] Error with command: [Output] '' [Error] 'sudo: unable to resolve host openstack-single-ubuntu
cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:53:59, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:54:00, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:54:01, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:54:02, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:54:03, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:54:04, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:54:05, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[DEBUG: 06-05 17:54:06, utils.py:722] Error with command: [Output] '' [Error] 'cat: /run/cloud-init/result.json: No such file or directory'
[ERROR: 06-05 17:54:07, single_install.py:308] Container cloud-init finished with errors: ['(\'seed_random\', ProcessExecutionError("Unexpected error while running command.\\nCommand: [\'env\', \'http_proxy=http://proxy:8080\', \'https_proxy=http://proxy:8080\', \'pollinate\', \'-q\']\\nExit<file:///\\nExit> code: 1\\nReason: -\\nStdout: \'\'\\nStderr: \'\'",))']
[DEBUG: 06-05 17:54:07, utils.py:64] Traceback (most recent call last):
File "/usr/share/openstack/cloudinstall/utils.py", line 79, in run
super().run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/usr/share/openstack/cloudinstall/single_install.py", line 365, in do_install_async
self.do_install()
File "/usr/share/openstack/cloudinstall/single_install.py", line 389, in do_install
self.create_container_and_wait()
File "/usr/share/openstack/cloudinstall/single_install.py", line 207, in create_container_and_wait
while not self.cloud_init_finished(tries):
File "/usr/share/openstack/cloudinstall/single_install.py", line 309, in cloud_init_finished
raise Exception("Top-level container OS did not initialize "
Exception: Top-level container OS did not initialize correctly.
[INFO: 06-05 17:55:24, utils.py:92] Cleanup, saving latest config object.
[DEBUG: 06-05 17:55:24, utils.py:98] Attempting to reset the terminal
lxc.log is
lxc-start 1433507372.690 ERROR lxc_cgmanager - cgmanager.c:cgm_bind_dir:1353 - /usr/lib/x86_64-linux-gnu/lxc/sys/fs/cgroup does not exist
lxc-start 1433507372.690 ERROR lxc_conf - conf.c:lxc_mount_auto_mounts:857 - No such file or directory - error mounting /sys/fs/cgroup
lxc-start 1433507372.690 ERROR lxc_conf - conf.c:lxc_setup:3865 - failed to setup the automatic mounts for 'uoi-bootstrap'
lxc-start 1433507372.690 ERROR lxc_start - start.c:do_start:702 - failed to setup the container
lxc-start 1433507372.690 ERROR lxc_sync - sync.c:__sync_wait:51 - invalid sequence number 1. expected 2
lxc-start 1433507372.718 ERROR lxc_start - start.c:__lxc_start:1178 - failed to spawn 'uoi-bootstrap'
lxc-start 1433507377.724 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1433507377.724 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 1433507377.724 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 1433520345.735 ERROR lxc_cgmanager - cgmanager.c:cgm_destroy:575 - Error connecting to cgroup manager
Any ideas what is wrong with my setup?
Are there any chances that some steps are assumed default and I did not execute them (and they were not described in the install guide)?
Thanks in advance!
Best regards,
Bogdan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-openstack-installer/attachments/20150605/a903b2eb/attachment-0001.html>
More information about the ubuntu-openstack-installer
mailing list