Jira (PUP-6631) Apt package provider does not mark managed packages as manual

10 views
Skip to first unread message

Peter Kroon (JIRA)

unread,
Aug 18, 2016, 6:07:02 AM8/18/16
to puppe...@googlegroups.com
Peter Kroon created an issue
 
Puppet / Bug PUP-6631
Apt package provider does not mark managed packages as manual
Issue Type: Bug Bug
Affects Versions: PUP 4.6.0
Assignee: Kylo Ginsberg
Components: Types and Providers
Created: 2016/08/18 3:06 AM
Environment:

Ubuntu 16.04.1 LTS

Priority: Normal Normal
Reporter: Peter Kroon

The apt package provider does not mark packages as manual. This means that if a package gets removed, some packages may get marked for deletion if nothing depends on them any longer - even though they should be installed according to Puppet.

Example:
Puppet purges a package depending on `ethtool`.
Nothing depends on `ethtool` any longer, so it gets marked for deletion, but is still installed.
Puppet processes 'package

{'ethtool': ensure -> installed}

' and does nothing, since it's already installed
If something or someone then runs `apt-get -y autoremove` the package ethtool will then be removed (in my case puppet does this later in the run).

This specific example makes it impossible for Puppet to rectify it in a later run, since the ethtool package is required to bring up the network interface.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Aug 18, 2016, 9:36:03 AM8/18/16
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Aug 18, 2016, 9:36:03 AM8/18/16
to puppe...@googlegroups.com

Peter Kroon (JIRA)

unread,
Aug 18, 2016, 9:49:03 AM8/18/16
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Aug 18, 2016, 10:06:03 AM8/18/16
to puppe...@googlegroups.com

Peter Kroon Is this something that used to work, say on Puppet 4.5.x and now fails on Puppet 4.6.0 ? If so, when did you observe it working?

Peter Kroon (JIRA)

unread,
Aug 18, 2016, 10:08:06 AM8/18/16
to puppe...@googlegroups.com
Peter Kroon commented on Bug PUP-6631

Ah, thanks for the clarification (the word regression also makes sense now )
I don't know, I've only recently started using puppet (about a week now), I've only used 4.6 so far.

Ben Ford (JIRA)

unread,
Aug 18, 2016, 2:56:03 PM8/18/16
to puppe...@googlegroups.com
Ben Ford commented on Bug PUP-6631

Here's a man page that describes how the marking works and shows the command line tool for marking the package as manual.

http://manpages.ubuntu.com/manpages/wily/man8/apt-mark.8.html

Peter Kroon (JIRA)

unread,
Aug 19, 2016, 5:28:03 AM8/19/16
to puppe...@googlegroups.com
Peter Kroon commented on Bug PUP-6631

Ben Ford Thanks, but I already found that (man apt-mark), and fixed it for my specific situation. However, I think that's completely besides the point here: any package that should be installed (or latest) according to puppet should be marked as manual by puppet. Even if it's already installed automatically to satisfy dependencies.

Joe Pinsonault (JIRA)

unread,
May 16, 2017, 5:52:06 PM5/16/17
to puppe...@googlegroups.com
Joe Pinsonault assigned an issue to Unassigned
 
Change By: Joe Pinsonault
Assignee: Kylo Ginsberg
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Joe Pinsonault (JIRA)

unread,
May 16, 2017, 5:53:03 PM5/16/17
to puppe...@googlegroups.com

Joe Pinsonault (JIRA)

unread,
May 16, 2017, 5:53:03 PM5/16/17
to puppe...@googlegroups.com
Joe Pinsonault updated an issue
Change By: Joe Pinsonault
Labels: needs_decision  triaged

Maggie Dreyer (JIRA)

unread,
May 25, 2017, 1:09:03 PM5/25/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
May 25, 2017, 1:09:04 PM5/25/17
to puppe...@googlegroups.com

guenther kuenzel (JIRA)

unread,
Jul 13, 2017, 9:04:02 AM7/13/17
to puppe...@googlegroups.com
guenther kuenzel commented on Bug PUP-6631
 
Re: Apt package provider does not mark managed packages as manual

i've run into the same issue and would like to provide a simple example.

class kill_yourself {
exec

{ 'apt-mark auto puppet': }

package

{ 'puppet': ensure => installed }

exec

{ 'apt-get --yes autoremove': }

}

the expected result is, that "apt-get --yes autoremove" will not remove puppet as it has been defined as installed by the package resource, but unfortunately puppet gets removed from the system. the reason seems to be that the package resource is only checking for the package to be installed but it does not mark the package as manual.

Geoff Nichols (JIRA)

unread,
Mar 24, 2018, 8:48:02 PM3/24/18
to puppe...@googlegroups.com
Geoff Nichols updated an issue
 
Change By: Geoff Nichols
Labels: debian linux needs_decision type_and_provider ubuntu
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
May 11, 2018, 3:02:03 PM5/11/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: debian linux needs_decision package triaged type_and_provider ubuntu

Branan Riley (JIRA)

unread,
May 14, 2018, 7:44:03 PM5/14/18
to puppe...@googlegroups.com
Branan Riley assigned an issue to Unassigned
Change By: Branan Riley
Assignee: Eric Sorenson

Josh Cooper (JIRA)

unread,
Oct 31, 2019, 11:39:02 AM10/31/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Platform OS Night's Watch

Mihai Buzgau (Jira)

unread,
Jul 8, 2020, 5:02:03 AM7/8/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Story Points: 1
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Jul 8, 2020, 5:02:03 AM7/8/20
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Jul 20, 2020, 4:46:04 AM7/20/20
to puppe...@googlegroups.com

Dorin Pleava (Jira)

unread,
Aug 19, 2020, 8:57:03 AM8/19/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Aug 20, 2020, 5:06:03 AM8/20/20
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Labels: debian doc_reviewed linux package type_and_provider ubuntu
Reply all
Reply to author
Forward
0 new messages