Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-4067

puppetlabs-lvm logical_volume doesn't handle all 'blkid' error codes

    XMLWordPrintable

Details

    • Hide

      Growing an LV without a file system on it should return as a success.

      Show
      Growing an LV without a file system on it should return as a success.
    • Modules
    • 2
    • Modules Triage

    Description

      When puppetlabs-lvm modifies the size of a logical volume that does not have a file system on it (just an LV) Puppet will complain about the return code of 'blkid' - which returns 2 if there is no file system on the block device. I believe it is this line here:

      https://github.com/puppetlabs/puppetlabs-lvm/blob/master/lib/puppet/provider/logical_volume/lvm.rb#L205

      The LV resize takes place, but you get this error:

      Error: Execution of '/sbin/blkid /dev/vg_journal/journal_reserved_snap' returned 2: 
      Error: /Stage[main]/Profile::Application_database/Logical_volume[journal_reserved_snap]/size: change from 8G to 500G failed: Execution of '/sbin/blkid /dev/vg_journal/journal_reserved_snap' returned 2: 
      

      Attachments

        Issue Links

          Activity

            People

              adam.bottchen Adam Bottchen
              lukebigum Luke Bigum
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support