devstack multinode fails during cinder volume type creation

Bug #1393721 reported by Sasikanth Eda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Sergey Skripnick

Bug Description

Hi, I am trying to create a multi-node setup using process described in http://docs.openstack.org/developer/devstack/guides/multinode-lab.html

On the compute node, stack.sh fails to create lvm type.

2014-11-18 09:37:38.133 | + create_volume_types
2014-11-18 09:37:38.133 | + is_service_enabled c-api
2014-11-18 09:37:38.140 | + return 0
2014-11-18 09:37:38.140 | + [[ -n lvm:lvmdriver-1 ]]
2014-11-18 09:37:38.140 | + local be be_name be_type
2014-11-18 09:37:38.140 | + for be in '${CINDER_ENABLED_BACKENDS//,/ }'
2014-11-18 09:37:38.140 | + be_type=lvm
2014-11-18 09:37:38.140 | + be_name=lvmdriver-1
2014-11-18 09:37:38.140 | + cinder type-create lvmdriver-1
2014-11-18 09:37:40.861 | ERROR: You must provide a user name through --os-username or env[OS_USERNAME].
2014-11-18 09:37:40.961 | ++ err_trap
2014-11-18 09:37:40.962 | ++ local r=1
2014-11-18 09:37:40.962 | stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2014-11-18-145032
2014-11-18 09:37:40.966 | Error on exit

content of localrc:

HOST_IP=9.122.121.239
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=9.122.121.128/25
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
DATABASE_TYPE=mysql
SERVICE_HOST=9.122.121.238
MYSQL_HOST=9.122.121.238
RABBIT_HOST=9.122.121.238
GLANCE_HOSTPORT=9.122.121.238:9292
ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol
NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://9.122.121.238:6080/vnc_auto.html"
VNCSERVER_LISTEN=$HOST_IP
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN

Andrey Alekov (aalekov)
Changed in devstack:
assignee: nobody → Andrey Alekov (aalekov)
Revision history for this message
Andrey Alekov (aalekov) wrote :

Please provide configuration from controller node.

Changed in devstack:
status: New → Incomplete
Revision history for this message
Sasikanth Eda (sasikanth) wrote :

Hi this is the configuration setting used for controller node;

[[local|localrc]]
HOST_IP=9.122.121.238
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=9.122.121.128/25
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
SCREEN_LOGDIR=/opt/stack/logs
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password

Revision history for this message
Andrey Alekov (aalekov) wrote :

Confirmed.

Devstack crashed if Cinder will be installed to compute node.

Controller node:
+ cinder type-create lvmdriver-1
+--------------------------------------+-------------+
| ID | Name |
+--------------------------------------+-------------+
| 4efa7b39-aa16-48fa-80cf-fbaacbbb1b62 | lvmdriver-1 |
+--------------------------------------+-------------+
+ cinder type-key lvmdriver-1 set volume_backend_name=lvmdriver-1

Compute node:
+ cinder type-create lvmdriver-1
ERROR: You must provide a user name through --os-username or env[OS_USERNAME].
++ err_trap
++ local r=1
++ set +o xtrace
stack.sh failed
Error on exit

Changed in devstack:
status: Incomplete → Confirmed
Revision history for this message
Andrey Alekov (aalekov) wrote :

Not bug. Configuration problem.

Add option CINDER_SERVICE_HOST=controller_node_ip to compute node.
Remove services "c-sch,c-api" from compute node.

Changed in devstack:
status: Confirmed → Invalid
Revision history for this message
Sasikanth Eda (sasikanth) wrote :

thanks Andrey, worked now.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/187242

Changed in devstack:
assignee: Andrey Alekov (aalekov) → Sergey Skripnick (eyerediskin)
status: Invalid → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/187242
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=25cb34606eb25ad2760e4ac50fa4d08036afbc96
Submitter: Jenkins
Branch: master

commit 25cb34606eb25ad2760e4ac50fa4d08036afbc96
Author: Sergey Skripnick <email address hidden>
Date: Mon Jun 1 19:06:46 2015 +0300

    Fix sample multinode configuration

    There should not be c-sch and c-api services on compute node.

    Change-Id: Ice057eb80e7ab6e917ca972abe7eaae7d635e8a5
    Closes-Bug: 1393721

Changed in devstack:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.