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

puppet_agent: Issues upgrading Solaris 10/11 agents from 1.3.2 to 1.7.2

    Details

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

      Description

      Testing an upgrade of Solaris 10/11 agents from the puppet-agent package 1.3.2 to 1.7.2, I noticed a few issues. The puppet_agent class was invoked with `package_version => '1.7.2'`

      Solaris 10 succeeds in upgrading the package, but the puppet service is disabled after the upgrade:

      -bash-3.2# svcs puppet
      STATE          STIME    FMRI
      disabled       11:42:10 svc:/network/puppet:default
      

      additional puppet runs do not enable the service.

      Solaris 11 upgrade fails with:

      Error: Execution of '/usr/bin/pkg list -Hvfa puppet-agent@1.7.2' returned 1: pkg list: no packages matching 'puppet-agent@1.7.2' known
      Error: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: change from 1.3.2,5.11-1:20151202T193853Z to 1.7.2 failed: Execution of '/usr/bin/pkg list -Hvfa puppet-agent@1.7.2' returned 1: pkg list: no packages matching 'puppet-agent@1.7.2' known
      

      It appears that the upgrade script did not remove the existing publisher and replace it with the new one:

      root@y01ib1o9haw49fx:~# pkg publisher
      PUBLISHER                   TYPE     STATUS P LOCATION
      solaris                     origin   online F http://pkg.oracle.com/solaris/release/
      puppetlabs.com              origin   online F file:///root/puppet-agent@1.3.2,5.11-1.i386.p5p/
      

      As with Solaris 10, the puppet service is also disabled.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  erik.hansen Erik Hansen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Zendesk Support