Ask Your Question
0

Unable to create volume using cinder-volume on a separate node without public url

asked 2013-05-30 18:15:16 -0500

v-mohan gravatar image

Hi All, Greetings, i need your help and advice regarding an issue that i am facing with cinder

I am unable to create a volume using cinder . I have cinder-volume which is on another machine. The cinder-api and the cinder-scheduler are on the controller machine.

For setting up the controller and the nova-nodes , my reference has been https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_MultiNode/OpenStack_Grizzly_Install_Guide.rst (https://github.com/mseknibilel/OpenSt...) and for setting up the cinder-volume on another machine, my reference is http://www.binaryroyale.com/index.php/2013/04/openstack-grizzly-creating-a-cinder-only-block-storage-node-standalone/ (http://www.binaryroyale.com/index.php...) , which i have followed except the contents of the interface file

10.0.0.11 is the internal ip address of the contoller, on which i have cinder-api,cinder-scheduler, keystone and other services.

10.0.0.15 is the internal ip address of the cinder-volume machine, I also have nova running on this machine

The details for the cinder-volumes machine is as follows: Contents of /etc/network/interfaces:

The primary network interface

auto eth0 iface eth0 inet static address 10.0.0.15 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.0.1 dns-search ubuntu auto eth1 iface eth1 inet static address 11.0.0.6 netmask 255.255.255.0 network 11.0.0.0 broadcast 10.0.0.255

Contents of /etc/cinder/cinder.conf: [DEFAULT] rootwrap_config = /etc/cinder/rootwrap.conf sql_connection = mysql://cinderUser:cinderPass@10.0.0.11/cinder api_paste_confg = /etc/cinder/api-paste.ini iscsi_helper = tgtadm volume_name_template = volume-%s volume_group = cinder-volumes verbose = True auth_strategy = keystone state_path = /var/lib/cinder lock_path = /var/lock/cinder volumes_dir = /var/lib/cinder/volumes volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver

rabbit_host = 10.0.0.11 rabbit_password = guest rabbit_port = 5672 rabbit_userid = guest rabbit_virtual_host = /

Contents of /etc/cinder/api-paste.ini: [filter:authtoken] #paste.filter_factory = keystone.middleware.auth_token:filter_factory paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory service_protocol = http #service_host = 127.0.0.1 service_host = 10.0.0.11 service_port = 5000 #auth_host = 127.0.0.1 auth_host = 10.0.0.11 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = cinder admin_password = service_pass signing_dir = /var/lib/cinder #admin_tenant_name = %SERVICE_TENANT_NAME% #admin_user = %SERVICE_USER% #admin_password = %SERVICE_PASSWORD%

Info on Volume group $vgdisplay --- Volume group --- VG Name cinder-volumes System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 1.82 TiB PE Size 4.00 MiB Total PE 476671 Alloc PE / Size 0 / 0 Free PE / Size 476671 / 1.82 TiB VG UUID A0LGS0-4DP6-GF63-rpaH-V188-hTVH-Say2bI

On looking at /var/log/cinder/cinder-volume.log, the last section i see root@compute-2:/var/log/cinder# cat cinder-volume.log.1 | tail 2013-05-30 00:48:36 27950 TRACE cinder File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 147, in __init__ 2013-05-30 00:48:36 27950 TRACE cinder ... (more)

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2013-06-25 14:43:00 -0500

v-mohan gravatar image

I could solve this problem by installing the cinder-api and the cinder-scehduler packages on the cinder node. I stopped these services on the controller.

edit flag offensive delete link more
0

answered 2013-06-25 14:42:37 -0500

v-mohan gravatar image

Since the state is expired, i wanted to click the "I still need an answer", provide the answer, and mark this as answered. I hope this will help someone.

edit flag offensive delete link more
0

answered 2013-06-09 12:31:01 -0500

v-mohan gravatar image

Hi Shausy, Thank you for answering my query, apologies for the late reply.

I had a look at the link you reffered, i restarted ntp(i am assuming that resync can be done with this) and there is no change in the behaviour.

Just to bring some context to this reply. I briefly explain my set-up and issue. 1. I have a controller running on 10.0.0.11, which has cinder-api, and cinder-scheduler running as well. I also have cinder-volume, but i do not want to use this. I have the other required services running on this. 2. I have another node running nova-compute and cinder-volume. This is on 10.0.0.15

I have modified the end-point for the cinder-volume according in the keystone DB, the output of $keystone endpoint-list is below

+----------------------------------+-----------+---------------------------------------------+----------------------------------------+----------------------------------------+ | id | region | publicurl | internalurl | adminurl | +----------------------------------+-----------+---------------------------------------------+----------------------------------------+----------------------------------------+ | 1a7779cd7a434b599e401957882b159e | RegionOne | http://115.119.76.176:8774/v2/$(tenant_id)s (http://115.119.76.176:8774/v2/$(tenan...) | http://10.0.0.11:8774/v2/$(tenant_id)s | http://10.0.0.11:8774/v2/$(tenant_id)s | | 2ad83ed3a2804d6499ff01848728e75d | RegionOne | http://115.119.76.176:5000/v2.0 | http://10.0.0.11:5000/v2.0 | http://10.0.0.11:35357/v2.0 | | 638acdc3f92d498c94e1ac6c667c28e4 | RegionOne | http://115.119.76.176:9292/v2 | http://10.0.0.11:9292/v2 | http://10.0.0.11:9292/v2 | | 6d9f7a9c515740c4ab629677e11de6aa | RegionOne | http://10.0.0.15:8776/v1/$(tenant_id)s | http://10.0.0.15:8776/v1/$(tenant_id)s | http://10.0.0.15:8776/v1/$(tenant_id)s | | 74da7dac80064b6d9efdc8669e1db2f0 | RegionOne | http://115.119.76.176:9696/ | http://10.0.0.11:9696/ | http://10.0.0.11:9696/ | | ed625aa5f7d5406684de3491a7c62d25 | RegionOne | http://115.119.76.176:8773/services/Cloud (http://115.119.76.176:8773/services/C...) | http://10.0.0.11:8773/services/Cloud | http://10.0.0.11:8773/services/Admin | +----------------------------------+-----------+---------------------------------------------+----------------------------------------+----------------------------------------+

Id 6d9f7a9c515740c4ab629677e11de6aa refers to the cinder-volume.

As per your advice, when i check the services running on the cinder DB, i get the below data, this was done on the controller, and not on the cinder-volume machine. I do not have mysql running on the cinder-volume machine

+---------------------+---------------------+------------+---------+----+------------+------------------+------------------+--------------+----------+-------------------+ | created_at | updated_at | deleted_at | deleted | id | host | binary | topic | report_count | disabled | availability_zone | +---------------------+---------------------+------------+---------+----+------------+------------------+------------------+--------------+----------+-------------------+ | 2013-04-12 13:11:18 | 2013-04-27 13:24:43 | NULL | 0 | 1 | ubuntu | cinder-volume | cinder-volume | 103569 | 0 | nova | | 2013-04-15 04:45:04 | 2013-05-09 04:30:18 | NULL | 0 | 2 | ubuntu | cinder-scheduler | cinder-scheduler | 126541 | 0 | nova | | 2013-05-09 04:31:16 | 2013-06-09 07:21:39 | NULL | 0 | 3 | controller | cinder-scheduler | cinder-scheduler | 267363 | 0 | nova | +---------------------+---------------------+------------+---------+----+------------+------------------+------------------+--------------+----------+-------------------+

I do not see an entry for compute-2 machine, on which cinder-volume is runnning. The entry for host ubuntu is invalid now, since i do not use the cinder-volume. Machine ubuntu is not renamed controller. What should i do for the cinder-volume entry to appear here? Do i have to purge the unwanted entry in the above table?

If i run $cinder-manage host list command, i get the below data, both on the controller and the cinder-volume nodes.I do not see an ... (more)

edit flag offensive delete link more
0

answered 2013-06-25 14:41:11 -0500

v-mohan gravatar image

I could solve this problem by installing the cinder-api and the cinder-scehduler packages on the cinder node. I stopped these services on the controller.

edit flag offensive delete link more
0

answered 2013-06-25 09:19:08 -0500

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

edit flag offensive delete link more
0

answered 2013-05-31 16:40:44 -0500

shantha-kumar gravatar image

Have a look at this link https://answers.launchpad.net/cinder/+question/226003 (https://answers.launchpad.net/cinder/...) ,

  1. whether your nodes are in sync ?
  2. whether you able to see the cinder host from the cinder-manage host list command.

Please do share cinder-scheduler log for more info

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

1 follower

Stats

Asked: 2013-05-30 18:15:16 -0500

Seen: 174 times

Last updated: Jun 25 '13