Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9464

Investigate different behavior of puppet resource vs puppet apply in resource titles

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Team:
      Platform OS
    • QA Risk Assessment:
      Needs Assessment

      Description

      With the patch introduced by PUP-9307, `puppet apply` will ignore trailing slashes in mount resource titles and fstab entries.  For example:

       

      $ cat /etc/fstab
      /root/vim.iso   /root/foo/      iso9660 ro      0       0
       
      $ puppet apply -e "mount{'/root/foo': ensure => mounted}"
      Notice: Compiled catalog for pe-201814-master.puppetdebug.vlan in environment production in 0.06 seconds
      Notice: Applied catalog in 0.24 seconds
       
      $ puppet apply -e "mount{'/root/foo/': ensure => mounted}"
      Notice: Compiled catalog for pe-201814-master.puppetdebug.vlan in environment production in 0.05 seconds
      Notice: Applied catalog in 0.30 seconds
      

      However, `puppet resource mount` does not:

      $ puppet resource mount /root/foo
      mount { '/root/foo':
        ensure  => 'mounted',
        device  => '/root/vim.iso',
        dump    => '0',
        fstype  => 'iso9660',
        options => 'ro',
        pass    => '1',
        target  => '/etc/fstab',
      }
       
      $ puppet resource mount /root/foo/
      mount { '/root/foo/':
        ensure => 'absent',
      }
      
      

      Investigate the difference in behavior and determine if a fix is possible/needed.

       

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  adrian.parreiras-horta Adrian Parreiras Horta
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: