Cinder-manage not found

Bug #1402762 reported by Sean M. Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Expired
Undecided
Unassigned

Bug Description

2014-12-15 17:12:47.265 | Configuring Cinder
++ sed s/osapi_volume,//
++ echo ec2,osapi_compute,metadata
+ NOVA_ENABLED_APIS=ec2,osapi_compute,metadata
+ is_service_enabled mysql postgresql
++ set +o
++ grep xtrace
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ return 0
+ recreate_database cinder utf8
+ local db=cinder
+ local charset=utf8
+ recreate_database_mysql cinder utf8
+ local db=cinder
+ local charset=utf8
+ mysql -uroot -psecrete -h127.0.0.1 -e 'DROP DATABASE IF EXISTS cinder;'
+ mysql -uroot -psecrete -h127.0.0.1 -e 'CREATE DATABASE cinder CHARACTER SET utf8;'
+ /opt/stack/cinder/bin/cinder-manage db sync
/home/vagrant/devstack/lib/cinder: line 382: /opt/stack/cinder/bin/cinder-manage: No such file or directory
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 1 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z '' ]]
+ /home/vagrant/devstack/tools/worlddump.py
World dumping... see ./worlddump-2014-12-15-171247.txt for details
+ exit 1

This appears to be related to the recent merge of https://review.openstack.org/#/c/101412/

Revision history for this message
Sean M. Collins (scollins) wrote :

Still doing research on this - but I'm guessing that get_python_exec_prefix in line 64 of lib/cinder is not returning the correct path, now that cinder/bin does not exist?

http://git.openstack.org/cgit/openstack-dev/devstack/tree/lib/cinder#n64

Revision history for this message
Sean M. Collins (scollins) wrote :

I'm seeing a cinder-manage binary installed at:

vagrant@vagrant-ubuntu-trusty-64:~/devstack$ which cinder-manage
/usr/local/bin/cinder-manage

Revision history for this message
Thang Pham (thang-pham) wrote :

This is a vagrant setup issue, not necessarily the patch the was merged.

Revision history for this message
Thang Pham (thang-pham) wrote :

The get_python_exec_prefix (https://github.com/openstack-dev/devstack/blob/master/functions-common#L1548) should give you back the correct path:

function get_python_exec_prefix {
    if is_fedora || is_suse; then
        echo "/usr/bin"
    else
        echo "/usr/local/bin"
    fi
}

Revision history for this message
Sean M. Collins (scollins) wrote :

Yes get_python_exec_prefix should give back the correct path, however it has not. I do not believe it is a vagrant issue, because all my vagrant script does is create the VM and execute devstack, and do a little interface setup. I believe this is a DevStack issue - and I am destroying and rebuilding my Vagrant box to verify.

Revision history for this message
Thang Pham (thang-pham) wrote :

FWIW, I built a new VM running on Ubuntu 12.04 LTS and ran the setup using the latest devstack. Cinder and its scripts, i.e. cinder-manage, appears to be working as expected.

Revision history for this message
Sean M. Collins (scollins) wrote :

Nuke and pave fixed. Still don't believe it's a vagrant issue - this may still crop up on hardware environments where nuking and paving is not an option.

Changed in devstack:
status: New → Invalid
status: Invalid → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
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.