Jira (PUP-9824) Expand the apt provider to support virtual packages

0 views
Skip to first unread message

Alexandru Popa (JIRA)

unread,
Jul 15, 2019, 4:04:03 AM7/15/19
to puppe...@googlegroups.com
Alexandru Popa moved an issue
 
Puppet / Improvement PUP-9824
Expand the apt provider to support virtual packages
Change By: Alexandru Popa
Key: PA PUP - 2635 9824
Project: Puppet Agent
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Alexandru Popa (JIRA)

unread,
Jul 15, 2019, 4:45:03 AM7/15/19
to puppe...@googlegroups.com
Alexandru Popa updated an issue
Change By: Alexandru Popa
Release Notes Summary: This enables apt and dpkg providers to install virtual packages.
Release Notes: New Feature

Alexandru Popa (JIRA)

unread,
Aug 9, 2019, 4:11:02 AM8/9/19
to puppe...@googlegroups.com
Alexandru Popa updated an issue
Change By: Alexandru Popa
Release Notes Summary:
This enables apt and dpkg providers to install virtual packages.
There is an attribute named allow_virtual which by default is set to true which enables the functionality to install virtual packages, the same behaviour can be found for rpm provider.

Example if a

Alexandru Popa (JIRA)

unread,
Aug 9, 2019, 4:18:03 AM8/9/19
to puppe...@googlegroups.com
Alexandru Popa updated an issue
Change By: Alexandru Popa
Release Notes Summary:
This enables apt and dpkg providers to install virtual packages.
There is an attribute named allow_virtual which by default is set to true which enables the functionality to install virtual packages, the same behaviour can be found for rpm provider.

If a package that is defined as virtual by default it will search a real  package on that system.
Example for virtual package named rubygems
{{code}}
package { 'rubygems':
    ensure => 'latest'
}
{{code}}
It will find ruby as the real package and it will be installed instead of rubygems.
Note: this also can do unwanted behaviour
if someone wants to uninstall a virtual package
Example
{{code}}
package {'rubygems':
ensure => 'absent'
}
{{code}}
This by default will remove ruby package.

If the user don't want this functionality it can be done by setting the attribute allow_virtual to false.
Example:
{{code}}
package {'rubygems':
ensure => 'absent'
allow_virtual => false
}
{{code}}

Alexandru Popa (JIRA)

unread,
Aug 9, 2019, 4:19:03 AM8/9/19
to puppe...@googlegroups.com

Alexandru Popa (JIRA)

unread,
Aug 14, 2019, 4:56:03 AM8/14/19
to puppe...@googlegroups.com
Alexandru Popa updated an issue
Change By: Alexandru Popa
Fix Version/s: PUP 6.8.0

Jean Bond (JIRA)

unread,
Aug 19, 2019, 6:30:03 PM8/19/19
to puppe...@googlegroups.com
Jean Bond commented on Improvement PUP-9824
 
Re: Expand the apt provider to support virtual packages

Mihai Buzgau, you mentioned that "the same behaviour can be found for rpm provider." Just to clarify, you mean that this setting already existed for the rpm provider?

Jean Bond (JIRA)

unread,
Aug 19, 2019, 6:35:07 PM8/19/19
to puppe...@googlegroups.com
Jean Bond updated an issue
 
Change By: Jean Bond
Labels: resolved-issue-added triage

Alexandru Popa (JIRA)

unread,
Aug 20, 2019, 2:22:02 AM8/20/19
to puppe...@googlegroups.com
Alexandru Popa commented on Improvement PUP-9824
 
Re: Expand the apt provider to support virtual packages

Jean Bond yes that's right, for rpm packages this feature is available for some time.

 

Mihai Buzgau (JIRA)

unread,
Sep 16, 2019, 6:04:05 AM9/16/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
 
Change By: Mihai Buzgau
Sprint: PR - 2019-06-12, PR - 2019-06-25, PR - 2019-07-10, PR - 2019-07-23 , NW - 2019-09-18

Josh Cooper (JIRA)

unread,
Sep 16, 2019, 2:49:03 PM9/16/19
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-9824
 
Re: Expand the apt provider to support virtual packages

Mihai Buzgau Alexandru Popa since this issue was released in 6.8.0, please leave this resolved and open a new ticket to add the virtual package support.

George Mrejea (JIRA)

unread,
Oct 3, 2019, 7:24:04 AM10/3/19
to puppe...@googlegroups.com
George Mrejea updated an issue
 
Change By: George Mrejea
Fix Version/s: PUP 6.4.4
Fix Version/s: PUP 5.5.17

Josh Cooper (JIRA)

unread,
Oct 3, 2019, 5:00:10 PM10/3/19
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-9824
 
Re: Expand the apt provider to support virtual packages

George Mrejea This is another case where commits for this ticket landed in 5.5.x and 6.4.x, but the original regression and the fix were resolved before 5.5.17 and 6.4.4 releases. So from the user's perspective, the bug never affected the 5.5.x and 6.4.x streams, and we don't want to tag this ticket with those fix versions.

Josh Cooper (JIRA)

unread,
Oct 3, 2019, 5:01:03 PM10/3/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Fix Version/s: PUP 6.4.4
Fix Version/s: PUP 5.5.17

Josh Cooper (JIRA)

unread,
Oct 3, 2019, 5:03:03 PM10/3/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
This seems to be a problem for the rubygems package, particularly in Debian / Ubuntu.  I linked to a couple older tickets where this is reported as a minor issue with no workaround.

*UPDATE*

This issue added virtual package support for apt & dpkg, but it caused the default value of the {{virtual}} parameter to change from false to true in 6.8.0. The code was reverted in 6.8.1, so puppet does not currently support virtual packages for apt & dpkg. Issue

Josh Cooper (JIRA)

unread,
Oct 3, 2019, 5:05:03 PM10/3/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
This seems to be a problem for the rubygems package, particularly in Debian / Ubuntu.  I linked to a couple older tickets where this is reported as a minor issue with no workaround.

*UPDATE*

This issue ticket added virtual package support for apt & dpkg in 6.8.0 , but it unintentionally caused the default value of the {{virtual}} parameter to change from {{ false }} to {{ true in 6 }} . 8.0. It also caused a regression when packages have special characters in the name (PUP-9975) The code was reverted in 6.8.1, so puppet does not currently support virtual packages for apt & dpkg. Issue PUP-10023 has been fixed to re-add virtual package support

Josh Cooper (JIRA)

unread,
Oct 3, 2019, 5:06:03 PM10/3/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
This seems to be a problem for the rubygems package, particularly in Debian / Ubuntu.  I linked to a couple older tickets where this is reported as a minor issue with no workaround.

*UPDATE*

This ticket added virtual package support for apt & dpkg in 6.8.0, but it unintentionally caused the default value of the {{virtual}} parameter to change from {{false}} to {{true}}. It also caused a regression when packages have special characters in the name (PUP-9975) , and the regex was overly greedy (PUP-9974). The code was reverted in 6.8.1, so puppet does not currently support virtual packages for apt & dpkg. Issue A new ticket PUP-10023 has been fixed filed to re- add virtual package support .
Reply all
Reply to author
Forward
0 new messages