Ask Your Question
0

Cinder create "boot from volume" from a Glance image

asked 2013-09-23 16:42:42 -0600

rlpple gravatar image

Running Grizzly release 1 Following the instructions from: http://docs.openstack.org/grizzly/openstack-compute/admin/content/instance-creation.html :

Upload Cirros image "cirros-0.3.0-x86_64-disk.img" into Glance . run glance image-list get my image id. Run the "cinder create --image-id 10bcfed8-7d98-48a6-8fef-829f5ae5c295 --display_name=mycirros --display_description "test" 5"

When I try to do a boot from volume in Horizon, the image just hangs in booting. I know I am missing a basic stepped. Any ideas would be helpful.

edit retag flag offensive close merge delete

Comments

Could you post your nova and cinder logs here please?

Sirushti Murugesan gravatar imageSirushti Murugesan ( 2013-09-24 00:59:44 -0600 )edit

Just reviewed the logs and fou 2013-09-23 02:11:06 CRITICAL [cinder] (OperationalError) (1045, "Access denied for user 'cinder'@'192.168.124.81' (using password: YES)") None None Traceback (most recent call last): File "/usr/bin/cinder-manage", line 794, in <module> main() File "/usr/bin/cinder-manage", line 791, in main fn(*fn_args) File "/usr/bin/cinder-manage", line 219, in sync return migration.db_sync(version) File "/usr/lib/python2.7/dist-packages/cinder/db/migration.py", line 33, in db_sync return IMPL.db_sync(version=version) File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/migration.py", line 76, in db_sync current_version = db_version() File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/migration.py", line 88, in db_version return versioning_api.db_version(get_engine(), repository) File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/session.py", line 123, in get_engine _ENGINE.connect() File "/usr/l

rlpple gravatar imagerlpple ( 2013-09-24 07:27:39 -0600 )edit

I cleared all my log files and found the following. I need to solve this first.

rlpple gravatar imagerlpple ( 2013-09-24 07:28:35 -0600 )edit

I need find an upload site. I can't upload files yet.

rlpple gravatar imagerlpple ( 2013-09-24 07:41:34 -0600 )edit

You can try this http://paste.openstack.org/ to paste your text and post the corresponding link here :)

Sirushti Murugesan gravatar imageSirushti Murugesan ( 2013-09-24 07:45:17 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-09-24 07:42:11 -0600

Sirushti Murugesan gravatar image

updated 2013-09-24 07:42:59 -0600

This line here [cinder] (OperationalError) (1045, "Access denied for user 'cinder'@'192.168.124.81' (using password: YES)") in your log file suggests that you have a wrong Database(MySQL) password mentioned in your /etc/cinder/cinder.conf file.

Check for the value of sql_connection in your /etc/cinder/cinder.conf file

Example : sql_connection = mysql://root:password@localhost/cinder?charset=utf8 where you probably have the wrong 'password' to your database. Change it to the correct password of the database.

edit flag offensive delete link more

Comments

Going to Reinstall from scratch my passwords are out of sync. and thus the errors.

rlpple gravatar imagerlpple ( 2013-09-24 12:12:54 -0600 )edit

Sure, let us know if you got any other issues :) Cheers.

Sirushti Murugesan gravatar imageSirushti Murugesan ( 2013-09-24 13:20:50 -0600 )edit
0

answered 2013-09-24 15:51:08 -0600

rlpple gravatar image

You need to insure all tools are installed. Upon new install and fresh review of the logs the qemu-img was not installed. Once installed, using the /cirros-0.3.0-x86_64-disk.img image. I was abled to

glance image-create --name cirros-img --disk-format=qcow2 --container-format=bare < ./cirros-0.3.0-x86_64-disk.img cinder create --image-id fea9c58f-fa20-40a4-945a-d15c0239e025 --display-name cirros-img 10 and finally in horizon boot the image.

edit flag offensive delete link more

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

Stats

Asked: 2013-09-23 16:42:42 -0600

Seen: 1,750 times

Last updated: Sep 24 '13