Re: [Puppet Users] Puppet 3.6.2 package gem provider unable to update r10k gem

2014-09-23 Thread Wil Cooley
On Sep 22, 2014 7:19 PM, treydock treyd...@gmail.com wrote:

 Error: /Stage[main]/R10k::Install/Package[r10k]/ensure: change from
[1.2.1] to 1.3.4 failed: Could not update: Execution of '/usr/bin/gem
install -v 1.3.4 --no-rdoc --no-ri r10k ' returned 1: ERROR:  Can't use
--version w/ multiple gems. Use name:ver instead.

I have a hunch that the extra space at the end of the quoted command
appears to gem as another parameter, albeit just a null string.

I'm trapped under a sleeping baby but I would test with an exec(2)-like
function/method in Ruby or Python (where the arguments are passed as an
array of strings instead of a single string) and see if gem barfs if there
are extra 0-length items.

If so, then I'd check gem versions, compare changelogs from both RPM (rpm
--changelog packagename) and upstream gem sources.

HTH
Wil

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMmm3r6Nc9qd1p4jtLxzPVcZHfOEKvQE2j-X3zYEi5tKwCY6tA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppet 3.6.2 package gem provider unable to update r10k gem

2014-09-22 Thread treydock
I have Puppet 3.6.2 on CentOS 7 server acting as Puppetmaster.  I had r10k 
1.2.1 installed and I changed my ensure to 1.3.4.  My other Puppetmaster 
running CentOS 6 had no problem with this (except for NOTICE output being 
printed as an error).  The CentOS 7 system fails with the following:

Debug: Executing '/usr/bin/gem install -v 1.3.4 --no-rdoc --no-ri r10k '
Error: Could not update: Execution of '/usr/bin/gem install -v 1.3.4 
--no-rdoc --no-ri r10k ' returned 1: ERROR:  Can't use --version w/ 
multiple gems. Use name:ver instead.
snip trace output
Error: /Stage[main]/R10k::Install/Package[r10k]/ensure: change from 
[1.2.1] to 1.3.4 failed: Could not update: Execution of '/usr/bin/gem 
install -v 1.3.4 --no-rdoc --no-ri r10k ' returned 1: ERROR:  Can't use 
--version w/ multiple gems. Use name:ver instead.

If I run that gem install command outside Puppet, on the same server, it 
works just fine.

# /usr/bin/gem install -v 1.3.4 --no-rdoc --no-ri r10k
Fetching: r10k-1.3.4.gem (100%)
NOTICE
==

If you are upgrading from 1.1.0 and are using multiple sources, please read
this. (If not, feel free to continue with your regularly scheduled day.)

GH-48 (https://github.com/adrienthebo/r10k/issues/48) introduced the ability
for environments to be prefixed with the source name so that multiple 
sources
installed into the same directory would not overwrite each other. However
prefixing was automatically enabled and would break existing setups where
multiple sources were cloned into different directories.

Because this introduced a breaking change, SemVer dictates that the 
automatic
prefixing has to be rolled back. Prefixing can be enabled but always 
defaults
to off. If you are relying on this behavior you will need to update your 
r10k.yaml
to enable prefixing on a per-source basis.

Please see the issue (https://github.com/adrienthebo/r10k/issues/48) for 
more
information.
Successfully installed r10k-1.3.4
1 gem installed
# echo $?
0

- Trey

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b3dbd100-1a14-4b79-a41b-a11950761355%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.