Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1071388

Summary: openstack-foreman-installer: fail to create a volume when cinder-volume vg is created on stand alone lvm server and not on the controller
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: openstack-foreman-installerAssignee: Jason Guiditta <jguiditt>
Status: CLOSED NOTABUG QA Contact: Ami Jeain <ajeain>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.0CC: morazi, rhos-maint, roxenham, yeylon
Target Milestone: ---Keywords: Regression
Target Release: Installer   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-08 17:09:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
cinder logs from both hosts none

Description Dafna Ron 2014-02-28 16:05:56 UTC
Created attachment 869109 [details]
cinder logs from both hosts

Description of problem:

a stand alone cinder server should be the main entity for cinder. 
I created a controller and a cinder stand alone. on the stand alone I created the cinder-volume vg manually and than ran puppet on both hosts. 

when i try to create a volume, the volume fails to be created with volume already exists error. 
when I run lvs I can see that the volume exists 
There seem to be some sort of race with the services and end points but it seems that if the cinder vg is created in the stand alone server that we cannot create volumes. 

Version-Release number of selected component (if applicable):

[root@dhcp163-108 ~]# rpm -qa |grep foreman
foreman-1.3.0.2-1.el6sat.noarch
openstack-foreman-installer-1.0.4-1.el6ost.noarch
foreman-selinux-1.3.0-1.el6sat.noarch
rubygem-foreman_api-0.1.6-1.el6sat.noarch
foreman-mysql-1.3.0.2-1.el6sat.noarch
foreman-mysql2-1.3.0.2-1.el6sat.noarch
ruby193-rubygem-foreman_openstack_simplify-0.0.6-5.el6ost.noarch
foreman-installer-1.3.0-1.el6sat.noarch
foreman-proxy-1.3.0-3.el6sat.noarch

How reproducible:

100%

Steps to Reproduce:
1. edit two hosts: one as a nova controller and one as a lvm group host
2. create a cinder-volume in the stand alone server: 
* sh -c "echo 'include $volumes_dir/*' >> /etc/tgt/conf.d/cinder.conf"
* restart tgt
* dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=20G
* losetup /dev/loop2 cinder-volumes
* make sure the cinder volume was created: pvs;vgs

3. run puppet on the hosts: 'puppet agent -t -v'
4. run 'cinder create 1'

Actual results:

we get an error that the volume already exists 
lvs will show that the volume is created

Expected results:

we should be able to create a volume with a stand alone cinder. 

Additional info: cinder logs from both hosts

controller: 

[root@cougar08 ~(keystone_admin)]# for i in $(chkconfig --list | awk ' /cinder/ { print $1 } '); do service $i status; done
openstack-cinder-api (pid  25892) is running...
openstack-cinder-backup is stopped
openstack-cinder-scheduler (pid  28201) is running...
openstack-cinder-volume (pid  4088) is running...
[root@cougar08 ~(keystone_admin)]# cinder list 
+----+--------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+----+--------+--------------+------+-------------+----------+-------------+
+----+--------+--------------+------+-------------+----------+-------------+
[root@cougar08 ~(keystone_admin)]# cinder create 
usage: cinder create [--snapshot-id <snapshot-id>]
                     [--source-volid <source-volid>] [--image-id <image-id>]
                     [--display-name <display-name>]
                     [--display-description <display-description>]
                     [--volume-type <volume-type>]
                     [--availability-zone <availability-zone>]
                     [--metadata [<key=value> [<key=value> ...]]]
                     <size>
error: too few arguments
Try 'cinder help create' for more information.
[root@cougar08 ~(keystone_admin)]# cinder create 1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2014-02-28T15:51:54.722241      |
| display_description |                 None                 |
|     display_name    |                 None                 |
|          id         | f3022f7a-375b-495a-9cd2-8e676a686f1d |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+
[root@cougar08 ~(keystone_admin)]# cinder list 
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
|                  ID                  | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+
| f3022f7a-375b-495a-9cd2-8e676a686f1d | error  |     None     |  1   |     None    |  false   |             |
+--------------------------------------+--------+--------------+------+-------------+----------+-------------+


[root@cougar08 ~(keystone_admin)]# egrep f3022f7a-375b-495a-9cd2-8e676a686f1d /var/log/*/*
/var/log/cinder/api.log:2014-02-28 17:51:54.874 25892 AUDIT cinder.api.v1.volumes [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] vol={'migration_status': None, 'availability_zone': 'nova', 'terminated_at': None, 'reservations': ['985668f2-f961-4ffa-8bc7-d8eacbc4026a', '41b137a5-0202-48f5-84c5-8ced8a533572'], 'updated_at': None, 'provider_geometry': None, 'snapshot_id': None, 'ec2_id': None, 'mountpoint': None, 'deleted_at': None, 'id': 'f3022f7a-375b-495a-9cd2-8e676a686f1d', 'size': 1, 'user_id': u'c1997eea283f44a09e5892129a27ceec', 'attach_time': None, 'attached_host': None, 'display_description': None, 'volume_admin_metadata': [], 'encryption_key_id': None, 'project_id': u'd16bea06321a4cc88e0cb46dd14e3e90', 'launched_at': None, 'scheduled_at': None, 'status': 'creating', 'volume_type_id': None, 'deleted': False, 'provider_location': None, 'host': None, 'source_volid': None, 'provider_auth': None, 'display_name': None, 'instance_uuid': None, 'bootable': False, 'created_at': datetime.datetime(2014, 2, 28, 15, 51, 54, 722241), 'attach_status': 'detached', 'volume_type': None, '_name_id': None, 'volume_metadata': [], 'metadata': {}}
/var/log/cinder/api.log:2014-02-28 17:51:58.139 25892 AUDIT cinder.api.v1.volumes [req-9de67a6f-0b53-45e9-b3b0-b771f9b1c4a0 c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] vol={'migration_status': None, 'availability_zone': u'nova', 'terminated_at': None, 'updated_at': datetime.datetime(2014, 2, 28, 15, 51, 57), 'provider_geometry': None, 'snapshot_id': None, 'ec2_id': None, 'mountpoint': None, 'deleted_at': None, 'id': u'f3022f7a-375b-495a-9cd2-8e676a686f1d', 'size': 1L, 'user_id': u'c1997eea283f44a09e5892129a27ceec', 'attach_time': None, 'attached_host': None, 'display_description': None, 'volume_admin_metadata': [], 'encryption_key_id': None, 'project_id': u'd16bea06321a4cc88e0cb46dd14e3e90', 'launched_at': None, 'scheduled_at': datetime.datetime(2014, 2, 28, 15, 52, 1), 'status': u'error', 'volume_type_id': None, 'deleted': False, 'provider_location': None, 'host': u'opens-vdsb.qa.lab.tlv.redhat.com', 'source_volid': None, 'provider_auth': None, 'display_name': None, 'instance_uuid': None, 'bootable': False, 'created_at': datetime.datetime(2014, 2, 28, 15, 51, 54), 'attach_status': u'detached', 'volume_type': None, '_name_id': None, 'volume_metadata': []}
/var/log/cinder/scheduler.log:2014-02-28 17:51:56.584 28201 ERROR cinder.scheduler.filter_scheduler [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Error scheduling None from last vol-service: opens-vdsb.qa.lab.tlv.redhat.com : [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/cinder/taskflow/patterns/linear_flow.py", line 172, in run_it\n    result = runner(context, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/taskflow/utils.py", line 260, in __call__\n    self.result = self.task(*args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/create_volume/__init__.py", line 1505, in __call__\n    **volume_spec)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/create_volume/__init__.py", line 1470, in _create_raw_volume\n    return self.driver.create_volume(volume_ref)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 165, in create_volume\n    mirror_count)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 154, in _create_volume\n    vg_ref.create_volume(name, size, lvm_type, mirror_count)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 488, in create_volume\n    run_as_root=True)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 142, in execute\n    return processutils.execute(*cmd, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute\n    cmd=\' \'.join(cmd))\n', u'ProcessExecutionError: Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g\nExit code: 5\nStdout: \'\'\nStderr: \'  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\\n\'\n']
/var/log/cinder/scheduler.log:2014-02-28 17:51:57.065 28201 ERROR cinder.scheduler.filter_scheduler [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Error scheduling None from last vol-service: opens-vdsb.qa.lab.tlv.redhat.com : [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/cinder/taskflow/patterns/linear_flow.py", line 172, in run_it\n    result = runner(context, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/taskflow/utils.py", line 260, in __call__\n    self.result = self.task(*args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/create_volume/__init__.py", line 1505, in __call__\n    **volume_spec)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/flows/create_volume/__init__.py", line 1470, in _create_raw_volume\n    return self.driver.create_volume(volume_ref)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 165, in create_volume\n    mirror_count)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 154, in _create_volume\n    vg_ref.create_volume(name, size, lvm_type, mirror_count)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/brick/local_dev/lvm.py", line 488, in create_volume\n    run_as_root=True)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 142, in execute\n    return processutils.execute(*cmd, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute\n    cmd=\' \'.join(cmd))\n', u'ProcessExecutionError: Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g\nExit code: 5\nStdout: \'\'\nStderr: \'  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\\n\'\n']
[root@cougar08 ~(keystone_admin)]# 


stand alone: 


[root@opens-vdsb ~(keystone_admin)]# for i in $(chkconfig --list | awk ' /cinder/ { print $1 } '); do service $i status; done
openstack-cinder-api is stopped
openstack-cinder-backup is stopped
openstack-cinder-scheduler is stopped
openstack-cinder-volume (pid  5975) is running...
[root@opens-vdsb ~(keystone_admin)]# keystone endpoint-list
+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+--------------------------------------------+----------------------------------+
|                id                |   region  |                    publicurl                    |                   internalurl                   |                  adminurl                  |            service_id            |
+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+--------------------------------------------+----------------------------------+
| 4c3e768c4135467db4e9edd6079c4a64 | RegionOne |    http://10.35.160.137:8774/v2/%(tenant_id)s   |    http://10.35.160.137:8774/v2/%(tenant_id)s   | http://10.35.160.137:8774/v2/%(tenant_id)s | b6859c8bd7654fddaba152d1e49047e1 |
| b05015b033a3444187e0650a63f53a4c | RegionOne |            http://10.35.160.137:8777            |            http://10.35.160.137:8777            |         http://10.35.160.137:8777          | 2ba089b1f7f4476eb1d4655c1e164254 |
| b77e11cd91b241c4b60f4bdf125c7609 | RegionOne |           http://10.35.160.137:8000/v1          |           http://10.35.160.137:8000/v1          |        http://10.35.160.137:8000/v1        | defb0ac3537c4e5092a5d4d0a18c3d6e |
| c09da58fdb4f4533b4360ee5286e6e45 | RegionOne |    http://10.35.160.137:8004/v1/%(tenant_id)s   |    http://10.35.160.137:8004/v1/%(tenant_id)s   | http://10.35.160.137:8004/v1/%(tenant_id)s | 83cd6139233b430296876a2d8c3caef2 |
| c416d71a5e9e461fa0d42965e6f629b4 | RegionOne | http://10.35.160.137:8080/v1/AUTH_%(tenant_id)s | http://10.35.160.137:8080/v1/AUTH_%(tenant_id)s |         http://10.35.160.137:8080/         | f96be3361706437b9e9c5cf106851a20 |
| c5694bcaabf2441d81b4a920a1b71f82 | RegionOne |          http://10.35.160.137:5000/v2.0         |          http://10.35.160.137:5000/v2.0         |      http://10.35.160.137:35357/v2.0       | f8f1e1b16b7b433baf99a58b8afa235a |
| cb50462fbd964550a8cc86bc251cf769 | RegionOne |     http://10.35.160.137:8773/services/Cloud    |     http://10.35.160.137:8773/services/Cloud    |  http://10.35.160.137:8773/services/Admin  | f0d5fa964252459baddb0c95e8bd9d65 |
| cf158db32071496a93e2635c29732e84 | RegionOne |    http://10.35.160.137:8776/v1/%(tenant_id)s   |    http://10.35.160.137:8776/v1/%(tenant_id)s   | http://10.35.160.137:8776/v1/%(tenant_id)s | d3308152e1b040f8987bf10140b7dd93 |
| deca1fc5b76b42e9887328a0034b9565 | RegionOne |            http://10.35.160.137:9292            |            http://10.35.160.137:9292            |         http://10.35.160.137:9292          | ad3282dcfed046e194fb352e0e61fb1d |
| ece168719d6e4684a35b3c3df188f4d6 | RegionOne |            http://10.35.160.137:8080            |            http://10.35.160.137:8080            |         http://10.35.160.137:8080          | 2e572249e0a0415fb1f256c91795d017 |
+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+--------------------------------------------+----------------------------------+
[root@opens-vdsb ~(keystone_admin)]# egrep f3022f7a-375b-495a-9cd2-8e676a686f1d /var/log/*/*
/var/log/cinder/volume.log:2014-02-28 17:51:59.242 5987 INFO cinder.volume.flows.create_volume [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Volume f3022f7a-375b-495a-9cd2-8e676a686f1d: being created using CreateVolumeFromSpecTask._create_raw_volume with specification: {'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-f3022f7a-375b-495a-9cd2-8e676a686f1d'}
/var/log/cinder/volume.log:2014-02-28 17:51:59.734 5987 INFO cinder.brick.iscsi.iscsi [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Creating iscsi_target for: volume-f3022f7a-375b-495a-9cd2-8e676a686f1d
/var/log/cinder/volume.log:2014-02-28 17:52:00.186 5987 ERROR cinder.brick.iscsi.iscsi [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Failed to create iscsi target for volume id:volume-f3022f7a-375b-495a-9cd2-8e676a686f1d. Please ensure your tgtd config file contains 'include /etc/cinder/volumes/*'
/var/log/cinder/volume.log:2014-02-28 17:52:00.421 5987 INFO cinder.volume.flows.create_volume [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Volume f3022f7a-375b-495a-9cd2-8e676a686f1d: being created using CreateVolumeFromSpecTask._create_raw_volume with specification: {'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-f3022f7a-375b-495a-9cd2-8e676a686f1d'}
/var/log/cinder/volume.log:2014-02-28 17:52:00.685 5987 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:00.685 5987 TRACE cinder.brick.local_dev.lvm Stderr: '  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\n'
/var/log/cinder/volume.log:2014-02-28 17:52:00.687 5987 ERROR cinder.brick.local_dev.lvm [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Cmd     :sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:00.688 5987 ERROR cinder.brick.local_dev.lvm [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] StdErr  :  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"
/var/log/cinder/volume.log:2014-02-28 17:52:00.783 5987 TRACE cinder.volume.flows.create_volume Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:00.783 5987 TRACE cinder.volume.flows.create_volume Stderr: '  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\n'
/var/log/cinder/volume.log:2014-02-28 17:52:00.786 5987 TRACE cinder.openstack.common.rpc.amqp Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:00.786 5987 TRACE cinder.openstack.common.rpc.amqp Stderr: '  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\n'
/var/log/cinder/volume.log:2014-02-28 17:52:00.921 5987 INFO cinder.volume.flows.create_volume [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Volume f3022f7a-375b-495a-9cd2-8e676a686f1d: being created using CreateVolumeFromSpecTask._create_raw_volume with specification: {'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-f3022f7a-375b-495a-9cd2-8e676a686f1d'}
/var/log/cinder/volume.log:2014-02-28 17:52:01.177 5987 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:01.177 5987 TRACE cinder.brick.local_dev.lvm Stderr: '  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\n'
/var/log/cinder/volume.log:2014-02-28 17:52:01.179 5987 ERROR cinder.brick.local_dev.lvm [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] Cmd     :sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:01.180 5987 ERROR cinder.brick.local_dev.lvm [req-f60ccee0-9085-4388-8ce0-235e09496b4d c1997eea283f44a09e5892129a27ceec d16bea06321a4cc88e0cb46dd14e3e90] StdErr  :  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"
/var/log/cinder/volume.log:2014-02-28 17:52:01.266 5987 TRACE cinder.volume.flows.create_volume Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:01.266 5987 TRACE cinder.volume.flows.create_volume Stderr: '  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\n'
/var/log/cinder/volume.log:2014-02-28 17:52:01.268 5987 TRACE cinder.openstack.common.rpc.amqp Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -L 1g
/var/log/cinder/volume.log:2014-02-28 17:52:01.268 5987 TRACE cinder.openstack.common.rpc.amqp Stderr: '  Logical volume "volume-f3022f7a-375b-495a-9cd2-8e676a686f1d" already exists in volume group "cinder-volumes"\n'
[root@opens-vdsb ~(keystone_admin)]# lvs
  LV                                          VG             Attr       LSize   Pool Origin Data%  Move Log Cpy%Sync Convert
  volume-f3022f7a-375b-495a-9cd2-8e676a686f1d cinder-volumes -wi-a-----   1.00g                                             
  lv_root                                     vg0            -wi-ao---- 216.95g                                             
  lv_swap                                     vg0            -wi-ao----  15.74g                                             
[root@opens-vdsb ~(keystone_admin)]# #puppet agent -t -v
[root@opens-vdsb ~(keystone_admin)]#

Comment 1 Rhys Oxenham 2014-05-21 16:39:31 UTC
I managed to fix this by ensuring that the following line was implemented in /etc/tgt/targets.conf:

include /etc/cinder/volumes/*

But this doesn't fix the puppet manifest. It doesn't do the firewall or the tgt configuration.

Comment 3 Mike Orazi 2014-09-08 17:09:54 UTC
There is not present support for standalone lvm configured in this way.