Add check for puppet rpm before trying to install#445
Merged
igalic merged 2 commits intopuppetlabs:masterfrom Feb 12, 2014
Merged
Add check for puppet rpm before trying to install#445igalic merged 2 commits intopuppetlabs:masterfrom
igalic merged 2 commits intopuppetlabs:masterfrom
Conversation
This fixes an issue where subsequent tests will fail when the RS_PROVISION=no and RS_DESTROY=no flag is set for centos. The error is caused by attempting to install the puppet rpm on a machine that already has the puppet rpm installed.
Contributor
|
Couldn't this be fixed simply by using yum instead of rpm? |
Contributor
|
@igalic I dunno, I didn't know yum could http files like rpm can. Were you thinking like, yum localinstall or something? |
Contributor
|
I just tried it out, and you're right, localinstall was the clue [root@localhost ~]# rpm -e --nodeps ruby-shadow
[root@localhost ~]# rpm -qa rpm
rpm-4.8.0-37.el6.x86_64
[root@localhost ~]# rpm -qa ruby-shadow
[root@localhost ~]# yum localinstall -y http://yum.puppetlabs.com/el/6/dependencies/x86_64/ruby-shadow-1.4.1-13.el6.x86_64.rpm
Loaded plugins: fastestmirror, security
Setting up Local Package Process
ruby-shadow-1.4.1-13.el6.x86_64.rpm | 11 kB 00:00
Examining /var/tmp/yum-root-UPLKLt/ruby-shadow-1.4.1-13.el6.x86_64.rpm: ruby-shadow-1.4.1-13.el6.x86_64
Marking /var/tmp/yum-root-UPLKLt/ruby-shadow-1.4.1-13.el6.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
* base: ftp.plusline.de
* centosplus: centos.digitalnova.at
* contrib: ftp.plusline.de
* epel: mirror.muntinternet.net
* extras: centos.digitalnova.at
* updates: centos.digitalnova.at
Resolving Dependencies
--> Running transaction check
---> Package ruby-shadow.x86_64 0:1.4.1-13.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================================================
Installing:
ruby-shadow x86_64 1.4.1-13.el6 /ruby-shadow-1.4.1-13.el6.x86_64 15 k
Transaction Summary
==================================================================================================================================================================================================
Install 1 Package(s)
Total size: 15 k
Installed size: 15 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
puppet-3.4.2-1.el6.noarch has missing requires of ruby-shadow
Installing : ruby-shadow-1.4.1-13.el6.x86_64 1/1
Verifying : ruby-shadow-1.4.1-13.el6.x86_64 1/1
Installed:
ruby-shadow.x86_64 0:1.4.1-13.el6
Complete!
[root@localhost ~]# echo $?
0
[root@localhost ~]# yum localinstall -y http://yum.puppetlabs.com/el/6/dependencies/x86_64/ruby-shadow-1.4.1-13.el6.x86_64.rpm
Loaded plugins: fastestmirror, security
Setting up Local Package Process
ruby-shadow-1.4.1-13.el6.x86_64.rpm | 11 kB 00:00
Examining /var/tmp/yum-root-UPLKLt/ruby-shadow-1.4.1-13.el6.x86_64.rpm: ruby-shadow-1.4.1-13.el6.x86_64
/var/tmp/yum-root-UPLKLt/ruby-shadow-1.4.1-13.el6.x86_64.rpm: does not update installed package.
Nothing to do
[root@localhost ~]# echo $?
0
[root@localhost ~]# |
Contributor
|
of course this works with |
Contributor
|
@Phil0xF7 would you mind updating the PR? |
Author
|
@igalic PR has been updated. |
igalic
added a commit
that referenced
this pull request
Feb 12, 2014
Add check for puppet rpm before trying to install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes an issue where subsequent tests will fail when the
RS_PROVISION=noandRS_DESTROY=noflag is set for centos. The error is caused by attempting to install the puppet rpm on a machine that already has the puppet rpm installed.