Jira (PUP-10059) Puppet won't install (some) packages with ensure => held

29 views
Skip to first unread message

Andre Nathan (JIRA)

unread,
Oct 2, 2019, 8:46:03 AM10/2/19
to puppe...@googlegroups.com
Andre Nathan updated an issue
 
Puppet / Bug PUP-10059
Puppet won't install (some) packages with ensure => held
Change By: Andre Nathan
Summary: {brief summary of issue} Puppet won't install (some) packages with ensure => held
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Andre Nathan (JIRA)

unread,
Oct 2, 2019, 8:47:02 AM10/2/19
to puppe...@googlegroups.com
Andre Nathan updated an issue
*Puppet Version: 6.9.0-1bionic*
*Puppet Server Version: 6.2.0-1bionic*
*OS Name/Version: Ubuntu 18.04*

I have postfix and installed and held:

 
{code:java}

package { 'postfix':
ensure => 'held',
}{code}
 

 
{code:java}

# dpkg -l | grep postfix
hi postfix 3.3.0-1ubuntu0.2 amd64 High-performance mail transport agent{code}
 

 

Now I'm trying to install a few sub-packages, also as held:

 
{code:java}

$packages = [
'postfix-pcre',
'postfix-mysql',
]
package { $packages:
ensure => 'held',
}
{code}
 

When running puppet, the following messages are displayed:

Notice: /Stage[main]/Main/Package[postfix-pcre]/ensure: created
Notice: /Stage[main]/Main/Package[postfix-mysql]/ensure: created

*Desired Behavior:*

**Packages postfix-pcre and postfix-mysql should be installed and set to "held".

*Actual Behavior:*

 

Neither package is installed. The puppet resource command results in a package resource with ensure set to "purged":
{code:java}

# puppet resource package postfix-mysql ensure=held
Notice: /Package[postfix-mysql]/ensure: created
package { 'postfix-mysql':
ensure => 'purged',
provider => 'apt',
}{code}
 

 
This seems to only affect sub-packages like in this Postfix example; I have other packages set to ensure => held which have been installed properly.

Josh Cooper (JIRA)

unread,
Oct 3, 2019, 1:25:03 PM10/3/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Oct 8, 2019, 8:48:02 AM10/8/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Oct 16, 2019, 5:05:06 AM10/16/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - Triage , PR - Triage

Ciprian Badescu (JIRA)

unread,
Oct 16, 2019, 8:50:02 AM10/16/19
to puppe...@googlegroups.com

Ciprian Badescu (JIRA)

unread,
Oct 18, 2019, 7:07:02 AM10/18/19
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: PR - Triage, PR NW - Triage 2019-10-30

Ciprian Badescu (JIRA)

unread,
Oct 24, 2019, 3:12:03 AM10/24/19
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Release Notes Summary: fixes the specific check for installed packages used in case of dpkg "ensure => held", that was preventing installing subpackages

Josh Cooper (JIRA)

unread,
Oct 31, 2019, 7:16:02 PM10/31/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Oct 31, 2019, 7:16:04 PM10/31/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Fix Version/s: PUP 6.4.z
Fix Version/s: PUP 5.5.z

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 10:06:04 AM11/14/19
to puppe...@googlegroups.com

Heston Hoffman (JIRA)

unread,
Nov 15, 2019, 7:53:04 PM11/15/19
to puppe...@googlegroups.com
Heston Hoffman updated an issue
Change By: Heston Hoffman
Labels: resolved-issue-added

Dorin Pleava (JIRA)

unread,
Jan 8, 2020, 7:16:05 AM1/8/20
to puppe...@googlegroups.com
Dorin Pleava updated an issue
Change By: Dorin Pleava
Fix Version/s: PUP 6.4.z
Fix Version/s: PUP 5.5.z
Fix Version/s: PUP 6.4.5
Fix Version/s: PUP 5.5.18
Reply all
Reply to author
Forward
0 new messages