platform9 / express

Platform9's on-boarding / automation toolkit
Apache License 2.0
12 stars 10 forks source link

lvm fails to create on RHEL #252

Open h00pz opened 5 years ago

h00pz commented 5 years ago

there is a line in /etc/lvm/lvm.conf that prevents express from creating a lvm on RHEL filter = [ "a/dev/sd./", "r/./" ] this above line needs to be commented out because the below happens:

TASK [map-role : debug] ***** Friday 22 November 2019 16:14:07 +0000 (0:00:00.693) 0:25:40.441 * ok: [h1-rhel-4] => { "config_lvm": { "changed": true, "failed": false, "rc": 0, "stderr": "Shared connection to 10.128.233.73 closed.\r\n", "stderr_lines": [ "Shared connection to 10.128.233.73 closed." ], "stdout": "n=2, args=cinder-volumes ,[/dev/vdb,/dev/vdc,/dev/vdd]\r\n--> vgcreate cinder-volumes /dev/vdb\r\n Device /dev/vdb excluded by a filter.\r\n--> vgcreate cinder-volumes /dev/vdc\r\n Device /dev/vdc excluded by a filter.\r\n--> vgcreate cinder-volumes /dev/vdd\r\n Device /dev/vdd excluded by a filter.\r\n--- VG INFO ------------------------------------------\r\n No volume groups found.\r\n------------------------------------------------------\r\n", "stdout_lines": [ "n=2, args=cinder-volumes ,[/dev/vdb,/dev/vdc,/dev/vdd]", "--> vgcreate cinder-volumes /dev/vdb", " Device /dev/vdb excluded by a filter.", "--> vgcreate cinder-volumes /dev/vdc", " Device /dev/vdc excluded by a filter.", "--> vgcreate cinder-volumes /dev/vdd", " Device /dev/vdd excluded by a filter.", "--- VG INFO ------------------------------------------", " No volume groups found.", "------------------------------------------------------" ] } }

mmccarre commented 4 years ago

Feedback from @tomchris Can we mod this filter instead to accept /dev/sd. or /dev/vd.