Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-2276

Solaris 11 puppet-agent p5p delivers files to /system/volatile (so fails)

    Details

    • Template:
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • Zendesk Ticket IDs:
      33033,33233,33359,33917
    • Zendesk Ticket Count:
      4
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Agent packages on Solaris 11 no longer attempt to write files to `/system`, instead writing to the correct user-facing location in `/var`
    • QA Risk Assessment:
      Needs Assessment

      Description

      Hi,

      Tested against puppet-agent 5.5.6 and latest 6.0.2, attempting to install the Solaris 11 puppet-agent p5p produces the following error and fails:

      The following items are delivered to reserved directories:
         dir system/volatile/puppetlabs
      

       

      The error can be reproduced as follows:

      # pkg set-publisher -g puppet-agent_6.0.2_solaris11_i386.p5p puppetlabs.com
       
      # pkg publisher puppetlabs.com            Publisher: puppetlabs.com
                      Alias:
                 Origin URI: file:///var/tmp/puppet-agent_6.0.2_solaris11_i386.p5p/
                 Origin Status: Online
                    SSL Key: None
                   SSL Cert: None
                Client UUID: be0d938c-d225-11e8-9f91-4b2daff09ccd
            Catalog Updated: Thu Oct 04 03:55:31 2018
                    Enabled: Yes
       
      # pkg install -nv pkg://puppetlabs.com/puppet-agent
      Creating Plan (Merging actions): -
      pkg install: The package pkg://puppetlabs.com/puppet-agent@6.0.2,5.11-1T035531Z delivers items to reserved directories and can not be installed.
       
      The following items are delivered to reserved directories:      
       
            dir system/volatile/puppetlabs
      

       

      Attempting to install the package using a temporary publisher (first removing the permanent publisher) produces a different error:

      # pkg unset-publisher puppetlabs.com
      Updating package cache                           1/1
       
      # pkg publisher puppetlabs.com
      pkg: Unknown publisher 'puppetlabs.com'.
       
      # pkg install -g puppet-agent_6.0.2_solaris11_i386.p5p puppet-agent
       
      pkg install: The proposed operation on this parent image can not be performed because
      temporary origins were specified and this image has children.  Please either
      retry the operation again without specifying any temporary origins, or if
      packages from additional origins are required, please configure those origins
      persistently.
       
       
      
      

       

      Quoting this page from Oracle:

      Actions that are installed to a path must not deliver content to any of the following paths:

      /system/volatile
      /tmp
      /var/pkg

       It appears to be delivering just one erroneous file:

       # pkg contents -g puppet-agent_6.0.2_solaris11_i386.p5p puppet-agent | egrep 'volatile|^/tmp|^/var/pkg'
      system/volatile/puppetlabs
      

       

      Thanks in advance!

      Neil

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              neile Neil
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support