Ask Your Question
0

stable/mitaka installation issues

asked 2017-01-14 12:54:45 -0600

Umar Murtaza gravatar image
  • Installed Ubuntu 16.04 Server with Gnome Desktop on a VirtualBox.
  • sudo apt-get install cloud-init
  • git clone https://git.openstack.org/openstack-dev/devstack (https://git.openstack.org/openstack-d...) -b stable/mitaka

  • cd devstack

  • Create a local.conf file with the following contents: '[[local|localrc]]' ADMIN_PASSWORD=password DATABASE_PASSWORD=password RABBIT_PASSWORD=password SERVICE_PASSWORD=password

  • Open the file stack.sh with an editor, and near the top of the file, include the line FORCE=yes ./stack.sh

After this the installation breaks, have tried it number of times ..... logs are:

Collecting unittest2===1.1.0 (from -c /opt/stack/requirements/upper-constraints.txt (line 369)) Downloading unittest2-1.1.0-py2.py3-none-any.whl (96kB) 100% |################################| 102kB 2.3MB/s Collecting python-mimeparse===1.5.1 (from -c /opt/stack/requirements/upper-constraints.txt (line 293)) Exception: Traceback (most recent call last): File "/opt/stack/requirements/.venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/opt/stack/requirements/.venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run requirement_set.prepare_files(finder) File "/opt/stack/requirements/.venv/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/opt/stack/requirements/.venv/local/lib/python2.7/site-packages/pip/req/req_set.py", line 554, in _prepare_file require_hashes File "/opt/stack/requirements/.venv/local/lib/python2.7/site-packages/pip/req/req_install.py", line 281, in populate_link self.link = self._wheel_cache.cached_wheel(self.link, self.name) File "/opt/stack/requirements/.venv/local/lib/python2.7/site-packages/pip/wheel.py", line 68, in cached_wheel self._cache_dir, link, self._format_control, package_name) File "/opt/stack/requirements/.venv/local/lib/python2.7/site-packages/pip/wheel.py", line 129, in cached_wheel wheel_names = os.listdir(root) OSError: [Errno 13] Permission denied: '/home/stack/.cache/pip/wheels/b2/6c/da/e5c374909c73e5407c3bee7c6c36605ed16e0140acb6dbdff2' +inc/python:pip_install:1 exit_trap +./stack.sh:exit_trap:474 local r=2 ++./stack.sh:exit_trap:475 jobs -p +./stack.sh:exit_trap:475 jobs= +./stack.sh:exit_trap:478 [[ -n '' ]] +./stack.sh:exit_trap:484 kill_spinner +./stack.sh:kill_spinner:370 '[' '!' -z '' ']' +./stack.sh:exit_trap:486 [[ 2 -ne 0 ]] +./stack.sh:exit_trap:487 echo 'Error on exit' Error on exit +./stack.sh:exit_trap:488 generate-subunit 1484416956 85 fail +./stack.sh:exit_trap:489 [[ -z /opt/stack/logs ]] +./stack.sh:exit_trap:492 /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs World dumping... see /opt/stack/logs/worlddump-2017-01-14-180401.txt for details +./stack.sh:exit_trap:498 exit 2

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2017-01-16 04:25:10 -0600

craja gravatar image

After cloning the devstack, you need to create "stack" user with proper privilege. Follow the below steps before running ./stack :

$git clone https://git.openstack.org/openstack-d... -b stable/mitaka

$sudo ./devstack/tools/create-stack-user.sh

$sudo usermod -a -G sudo stack

$sudo mv devstack /opt/stack

$sudo su - stack

$sudo chown -R stack:stack devstack

edit flag offensive delete link more
0

answered 2017-07-09 04:54:50 -0600

I tried all the above steps and tries reinstalling again but seeing

it generated a text file ..

/opt/stack/logs/worlddump<>.txt

at the bottom of the file i see : Skipping as nova-compute does not appear to be running. I am new guy in open stack can some one please point to some better installation doc.

edit flag offensive delete link more
0

answered 2017-01-16 10:24:27 -0600

Umar Murtaza gravatar image

Thanks Rajaganesh for the starter.

i created the user as per the script you mentioned and followed the steps.

My /opt/stack/devstack/local.conf file was: '[[local|localrc]]' ADMIN_PASSWORD=password DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD

Added "FORCE=yes" in stack.sh file and ran ./stack.sh

Even after completing noVNC it broke, i tried with ./unstack.sh and ran ./stack.sh again but ended up at the same place.

Attached is the zipped log file ..... Oopss cannot attach a file (not enough points) :(

last lines of the logs are: (hope this helps)

++functions:upload_image:340 openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-kernel --public --container-format aki --disk-format aki ++functions-common:get_field:700 local data field ++functions-common:get_field:701 read data Traceback (most recent call last): File "/usr/local/bin/openstack", line 7, in <module> from openstackclient.shell import main File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 32, in <module> from openstackclient.common import clientmanager File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 293, in <module> 'openstack.cli.base', File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 264, in get_plugin_modules __import__(ep.module_name) File "/usr/local/lib/python2.7/dist-packages/openstackclient/network/client.py", line 16, in <module> from openstack import connection File "/usr/local/lib/python2.7/dist-packages/openstack/connection.py", line 68, in <module> from openstack import session as _session File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 29, in <module> DEFAULT_USER_AGENT = "openstacksdk/%s" % openstack.__version__ AttributeError: 'module' object has no attribute '__version__' +functions:upload_image:340 kernel_id= +functions:upload_image:342 '[' -n /opt/stack/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-initrd ']' ++functions:upload_image:343 grep ' id ' ++functions:upload_image:343 get_field 2 ++functions:upload_image:343 openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-ramdisk --public --container-format ari --disk-format ari ++functions-common:get_field:700 local data field ++functions-common:get_field:701 read data Traceback (most recent call last): File "/usr/local/bin/openstack", line 7, in <module> from openstackclient.shell import main File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 32, in <module> from openstackclient.common import clientmanager File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 293, in <module> 'openstack.cli.base', File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 264, in get_plugin_modules __import__(ep.module_name) File "/usr/local/lib/python2.7/dist-packages/openstackclient/network/client.py", line 16, in <module> from openstack import connection File "/usr/local/lib/python2.7/dist-packages/openstack/connection.py", line 68, in <module> from openstack import session as _session File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 29, in <module> DEFAULT_USER_AGENT = "openstacksdk/%s" % openstack.__version__ AttributeError: 'module' object has no attribute '__version__' +functions:upload_image:343 ramdisk_id= +functions:upload_image:345 openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec --public --container-format ami --disk-format ami Traceback (most recent call last): File "/usr/local/bin/openstack", line 7, in <module> from openstackclient.shell import main File "/usr/local/lib/python2.7 ... (more)

edit flag offensive delete link more

Comments

Tried git clone devstack only, created the user as you suggested and finally the it got installed. But after the reboot it died. Is there a clean way to reboot the ubuntu machine, while keeping devstack intact and bring it up after the reboot? rejoin-stack.sh is missing and screen cmd did not work:(

Umar Murtaza gravatar imageUmar Murtaza ( 2017-01-17 02:47:43 -0600 )edit
1

Glad that you problem has been solved.

This is the only problem with devstack. If you reboot the machine, you have to unstack and stack it again. rejoin-stack.sh currently not available. If you don't want to reclone the packages on every unstack/stack, just set "RECLONE=no" in local.conf file.

Thx

craja gravatar imagecraja ( 2017-01-17 10:07:00 -0600 )edit

great, let me try that thanks Man!!!

Umar Murtaza gravatar imageUmar Murtaza ( 2017-01-17 12:07:19 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-01-14 12:54:45 -0600

Seen: 2,247 times

Last updated: Jan 16 '17