Jira (PUP-10152) Pacman provider shouldn't be doing partial upgrades

0 views
Skip to first unread message

Paul Walker (JIRA)

unread,
Nov 29, 2019, 6:55:04 PM11/29/19
to puppe...@googlegroups.com
Paul Walker created an issue
 
Puppet / Bug PUP-10152
Pacman provider shouldn't be doing partial upgrades
Issue Type: Bug Bug
Affects Versions: PUP 6.10.1
Assignee: Unassigned
Components: Types and Providers
Created: 2019/11/29 3:54 PM
Priority: Minor Minor
Reporter: Paul Walker

Puppet Version: 6.10.1
Puppet Server Version:
OS Name/Version: Arch Linux

Every time the pacman provider is used to install a package, it includes the y flag to refresh the package list, eg:

==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -Sy virtualbox-guest-utils'

From the Arch Linux wiki, this is a "partial upgrade" which they say shouldn't be done:

https://wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported

Desired Behavior:

Either:

  1. Don't refresh the package list (remove the y flag), in which case new packages will be installed matching the same point in time version as the rest of the system
  2. Add the u flag so the package list is updated and all existing packages are upgraded to the current point in time versions

Option 2 probably isn't desired( ? ). Asking Puppet to install a new package shouldn't result in the rest of the system being upgraded( ? )

Actual Behavior:

Running on Arch Linux (with pacman as the default provider), this resource:

{{{package { 'virtualbox-guest-utils': ensure => 'present' }}}}

Produces this in the log:

 ==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -Sy virtualbox-guest-utils'

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Paul Walker (JIRA)

unread,
Nov 29, 2019, 6:56:03 PM11/29/19
to puppe...@googlegroups.com
Paul Walker updated an issue
Change By: Paul Walker
*Puppet Version: 6.10.1*
*Puppet Server Version:*
*OS Name/Version: Arch Linux*


Every time the pacman provider is used to install a package, it includes the y flag to refresh the package list, eg:

{{==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -Sy virtualbox-guest-utils'}}

From the Arch Linux wiki, this is a "partial upgrade" which they say shouldn't be done:

[https://wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported]

*Desired Behavior:*

Either:
# Don't refresh the package list (remove the y flag), in which case new packages will be installed matching the same point in time version as the rest of the system
# Add the u flag so the package list is updated and all existing packages are upgraded to the current point in time versions


Option 2 probably isn't desired( ? ). Asking Puppet to install a new package shouldn't result in the rest of the system being upgraded( ? )

*Actual Behavior:*


Running on Arch Linux (with pacman as the default provider), this resource:

{
{{ package \{ 'virtualbox-guest-utils': ensure => 'present' }} }}

Produces this in the log:

 {{==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -Sy virtualbox-guest-utils'}}

Jorie Tappa (JIRA)

unread,
Dec 2, 2019, 12:45:04 PM12/2/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Dec 4, 2019, 6:40:04 AM12/4/19
to puppe...@googlegroups.com

Paul Walker (JIRA)

unread,
Jan 12, 2020, 7:27:03 PM1/12/20
to puppe...@googlegroups.com
Paul Walker updated an issue
Change By: Paul Walker
*Puppet Version: 6.10.1*
*Puppet Server Version:*
*OS Name/Version: Arch Linux*

Every time the pacman provider is used to install a package, it includes the y flag to refresh the package list, eg:

{{==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -Sy virtualbox-guest-utils'}}

From the Arch Linux wiki, this is a "partial upgrade" which they say shouldn't be done:

[https://wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported]

*Desired Behavior:*

Either:
# Don't refresh the package list (remove the y flag), in which case new packages will be installed matching the same point in time version as the rest of the system
# Add the u flag so the package list is updated and all existing packages are upgraded to the current point in time versions

Option 2 probably isn't desired( ? ). Asking Puppet to install a new package shouldn't result in the rest of the system being upgraded( ? )

*Actual Behavior:*

Running on Arch Linux (with pacman as the default provider), this resource:

{package \{ 'virtualbox-guest-utils': ensure => 'present' }}

Produces should produce something more like this in the log:

 {{==> default: Debug: Executing: '/usr/bin/pacman --noconfirm --needed --noprogressbar -
Sy S virtualbox-guest-utils'}}

Mihai Buzgau (Jira)

unread,
Mar 5, 2020, 11:35:04 AM3/5/20
to puppe...@googlegroups.com
Mihai Buzgau commented on Bug PUP-10152
 
Re: Pacman provider shouldn't be doing partial upgrades

Hi Paul Walker, we currently do not support Arch Linux, so even if we do the fix there is no way for us to validate it.

If you want you can open a PR for this on Puppet and we can work with you to get it merged.

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

Paul Walker (Jira)

unread,
Mar 9, 2020, 7:34:03 PM3/9/20
to puppe...@googlegroups.com
Paul Walker commented on Bug PUP-10152

Thank you, I'll look to do that...

Mihai Buzgau (Jira)

unread,
Mar 17, 2020, 8:07:03 AM3/17/20
to puppe...@googlegroups.com

Paul Walker (Jira)

unread,
Mar 29, 2020, 8:33:04 PM3/29/20
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
Apr 1, 2020, 11:43:03 AM4/1/20
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
 
Change By: Gabriel Nagy
Fix Version/s: PUP 6.15.0

Claire Cadman (Jira)

unread,
Apr 6, 2020, 9:41:03 AM4/6/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages