Jira (PUP-10956) pkg provider cannot unhold and update package in the same run

0 views
Skip to first unread message

Gabriel Nagy (Jira)

unread,
Mar 9, 2021, 8:28:03 AM3/9/21
to puppe...@googlegroups.com
Gabriel Nagy created an issue
 
Puppet / Bug PUP-10956
pkg provider cannot unhold and update package in the same run
Issue Type: Bug Bug
Affects Versions: PUP 6.13.0, PUP 5.5.19, PUP 7.0.0
Assignee: Unassigned
Created: 2021/03/09 5:27 AM
Priority: Normal Normal
Reporter: Gabriel Nagy

Puppet Version: starting with 5.5.19, 6.13.0 and 7.0.0
Puppet Server Version: n/a
OS Name/Version: Solaris 11

Describe your issue in as much detail as possible…

After the addition of the mark property, a package cannot pe unheld and updated in the same run.

Describe steps to reproduce…

Assuming mypkg is installed with version 0.0.2, and held/frozen, apply the following manifest:

package {mypkg : ensure=>"0.0.3", mark=>"none", provider=>"pkg"}

Desired Behavior:

The package is unheld/unfrozen, and updated to 0.0.3

Actual Behavior:

Puppet attempts to update the package first, which results in:

Debug: Executing: '/usr/bin/pkg update -n my...@0.0.3,5.11:20210309T130735Z'
Error: No version of mypkg matching 0.0.3 is installable, even though the package is currently installed
Error: /Stage[main]/Main/Package[mypkg]/ensure: change from '0.0.2,5.11:20210309T130605Z' to '0.0.3' failed: No version of mypkg matching 0.0.3 is installable, even though the package is currently installed

Attempting to manually run pkg update gives:

Creating Plan (Solver setup): \
pkg update: No matching version of mypkg can be installed:
  Reject:  pkg://tstpub.lan/my...@0.0.3,5.11:20210309T130735Z
  Reason:  This version is excluded by a freeze on mypkg at version 0.0.2,5.11:20210309T130605Z.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Gabriel Nagy (Jira)

unread,
Mar 9, 2021, 9:09:03 AM3/9/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jun 15, 2021, 4:59:03 AM6/15/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
 
Change By: Ciprian Badescu
Sprint: NW-2021-07-14
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Jun 23, 2021, 4:28:02 AM6/23/21
to puppe...@googlegroups.com

Luchian Nemes (Jira)

unread,
Jul 6, 2021, 3:51:02 AM7/6/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jul 14, 2021, 4:49:03 AM7/14/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW-2021-07-14 , NW-2021-07-28

Josh Cooper (Jira)

unread,
Jul 16, 2021, 3:00:04 PM7/16/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jul 16, 2021, 3:01:04 PM7/16/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Fix Version/s: PUP 7.10.0
Fix Version/s: PUP 6.25.0

Luchian Nemes (Jira)

unread,
Jul 19, 2021, 4:31:04 AM7/19/21
to puppe...@googlegroups.com
Luchian Nemes updated an issue
Change By: Luchian Nemes
Release Notes: Bug Fix
Release Notes Summary: Before this fix, the `pkg` package provider was unable to handle manifests where a package was updated and marked as unhold at the same time. This fix ensures the package is first unhold and then updated when trying to install certain versions.

Claire Cadman (Jira)

unread,
Aug 11, 2021, 9:25:02 AM8/11/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages