Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2016-09-22 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5152 
 
 
 
  Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Team:
 
 Agent & Platform 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2016-09-22 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5152 
 
 
 
  Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 manage-package 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2015-09-02 Thread Georg Brunmayr (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Georg Brunmayr updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5152 
 
 
 
  Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 

Change By:
 
 Georg Brunmayr 
 
 
 

Comment:
 
 Imho the fix would be to exchange {Package} in the query format with {binary:Package} which would return the needed information 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2015-09-02 Thread Georg Brunmayr (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Georg Brunmayr commented on  PUP-5152 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 
 
Imho the fix would be to exchange  {Package} 
 in the query format with  {binary:Package} 
 which would return the needed information 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2015-09-02 Thread Georg Brunmayr (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Georg Brunmayr updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5152 
 
 
 
  Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 

Change By:
 
 Georg Brunmayr 
 
 
 
 
 
 
 
 
 
 The package resource does not work correctly if multiarch packages are installed in ubuntu.The resource does not understand the difference between the native (amd64) package and the multiarch i386 version. A call 'puppet resource package' lists the i386 version only with the name and so the 64bit version does not get installed. Example: {{ $req_packages = [ 'libaio1', 'libaio1:i386' ]package { ${req_packages}:  ensure => installed} }} This manifest can result into only the i386 package installed if that one is the first to be installed. The package resource will list it as installed and so the 64bit version will not be installed.The issue seems to be caused by they way the DPKG provider queries for packages. By limiting the output to just   {{   self::DPKG_QUERY_FORMAT_STRING = %Q{'${Status} ${Package} ${Version}\\n'}  }}  (https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/dpkg.rb, line 46) the output will only be %Q{install ok installed libaio1 0.3.109-4\n} which does not contain any info about architecture. Just dpkg -W would list the package as 'libaio1:i3860.3.109-4'As this is still in the git repo it affects all current puppet versions. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, s

Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2015-09-02 Thread Georg Brunmayr (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Georg Brunmayr updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5152 
 
 
 
  Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 

Change By:
 
 Georg Brunmayr 
 
 
 
 
 
 
 
 
 
 The package resource does not work correctly if multiarch packages are installed in ubuntu.The resource does not understand the difference between the native (amd64) package and the multiarch i386 version. A call 'puppet resource package' lists the i386 version only with the name and so the 64bit version does not get installed. Example:{{  $req_packages = [ 'libaio1', 'libaio1:i386' ]package { ${req_packages}:  ensure => installed}}}This manifest can result into only the i386 package installed if that one is the first to be installed. The package resource will list it as installed and so the 64bit version will not be installed.The issue seems to be caused by they way the DPKG provider queries for packages. By limiting the output to just  {{ self::DPKG_QUERY_FORMAT_STRING = %Q{'${Status} ${Package} ${Version}\\n'} }}(https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/dpkg.rb, line 46) the output will only be %Q{install ok installed libaio1 0.3.109-4\n} which does not contain any info about architecture. Just dpkg -W would list the package as 'libaio1:i3860.3.109-4'As this is still in the git repo it affects all current puppet versions. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an e

Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2015-09-02 Thread Georg Brunmayr (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Georg Brunmayr updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5152 
 
 
 
  Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 

Change By:
 
 Georg Brunmayr 
 
 
 
 
 
 
 
 
 
 The package resource does not work correctly if multiarch packages are installed in ubuntu.The resource does not understand the difference between the native (amd64) package and the multiarch i386 version. A call 'puppet resource package' lists the i386 version only with the name and so the 64bit version does not get installed. Example: {{ $req_packages = [ 'libaio1', 'libaio1:i386' ]package { ${req_packages}:  ensure => installed} }} This manifest can result into only the i386 package installed if that one is the first to be installed. The package resource will list it as installed and so the 64bit version will not be installed.The issue seems to be caused by they way the DPKG provider queries for packages. By limiting the output to just   {{  self::DPKG_QUERY_FORMAT_STRING = %Q{'${Status} ${Package} ${Version}\\n'}  }} (https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/dpkg.rb, line 46) the output will only be %Q{install ok installed libaio1 0.3.109-4\n} which does not contain any info about architecture. Just dpkg -W would list the package as 'libaio1:i3860.3.109-4'As this is still in the git repo it affects all current puppet versions. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, sen

Jira (PUP-5152) Package resource (Ubuntu) does not understand multiarch packages

2015-09-02 Thread Georg Brunmayr (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Georg Brunmayr created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5152 
 
 
 
  Package resource (Ubuntu) does not understand multiarch packages  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2015/09/02 12:34 AM 
 
 
 

Priority:
 
  Blocker 
 
 
 

Reporter:
 
 Georg Brunmayr 
 
 
 
 
 
 
 
 
 
 
The package resource does not work correctly if multiarch packages are installed in ubuntu. The resource does not understand the difference between the native (amd64) package and the multiarch i386 version. A call 'puppet resource package' lists the i386 version only with the name and so the 64bit version does not get installed.  
Example: $req_packages = [ 'libaio1', 'libaio1:i386' ] package { $ {req_packages} 
: ensure => installed } 
This manifest can result into only the i386 package installed if that one is the first to be installed. The package resource will list it as installed and so the 64bit version will not be installed. 
The issue seems to be caused by they way the DPKG provider queries for packages. By limiting the output to just self::DPKG_QUERY_FORMAT_STRING = %Q{'$ {Status} 
 $ {Package} 
 $ {Version} 
n'} (https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/dpkg.rb, line 46) the output will only be %Q {install ok installed libaio1 0.3.109-4\n} 
 which does not contain any info about architecture. Just dpkg -W would list the package as 'libaio1:i386 0.3.109-4' 
As this is still in the git repo it affects all current puppet versions.