Submitted pull request https://github.com/redhat-openstack/astapor/pull/117 Log: BZ #1056055 -- [RFE] create cinder-volumes VG backed by a loopback file https://bugzilla.redhat.com/show_bug.cgi?id=1056055 The default behavior most customers expect for small to medium installations is to run cinder-volume on the controller node. Packstack does this but Foreman only allows a dedicated storage backend backed by iSCSI or RHS. This patch deploys cinder-volume on the Nova or Neutron controller node if cinder_backend_{iscsi,gluster} are both set to false. It will detect a VG named cinder-volumes (whether backed by an iSCSI target or loopback device) and share it via tgtd. The user must create the VG, which is also the case with the cinder_backend_iscsi parameter for the LVM backend storage group. In a sense this patch replicates functionality customers expect from packstack. I tested it against the RHEL OSP 01.31.2014-1 puddle for both iSCSI and LVM bakced Cinder from the controller node. This patch allows iSCSI or a loopback device on the controller to be exported via tgtd. So it addresses both this bug (1056058) as well as 1056055.
Verified, Provisioned two hosts A B, On host B, created disk with DD, iscsi server (target) exported lun. Installed iscsi client on same host connected to lun, dev/sdc. Created VG "cinder-volumes" on dev/sdc Using Foreman deployed host A as controller (Nova), host B as LVM Block Storage. On LVM Block storage group parameters, enabled cinder_backend_iscsi = true. After running Foreman's puppet agent on both hosts. Created volume via UI and CLI, both created successfully. Checked LVS, new cinder volumes created under VG cinder-volumes. Checked lsblk new cinder volumes shown under dev/sdc (iscsi mapped disk)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0213.html