Packstack install fails because yum priority
Issue
- Packstack install fails because yum priorities
yum update -y puppet hiera openssh-clients tar nc rubygem-json
rpm -q --whatprovides puppet
rpm -q --whatprovides hiera
rpm -q --whatprovides openssh-clients
rpm -q --whatprovides tar
rpm -q --whatprovides nc
rpm -q --whatprovides rubygem-json
2017-02-03 12:52:38::ERROR::run_setup::1017::root:: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 995, in main
single_step_install(options, logFile)
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 791, in single_step_install
_main(options, answerfilepath, logFile)
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 660, in _main
runSequences()
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 627, in runSequences
controller.runAllSequences()
File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 81, in runAllSequences
sequence.run(config=self.CONF, messages=self.MESSAGES)
File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 109, in run
step.run(config=config, messages=messages)
File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 50, in run
self.function(config, messages)
File "/usr/lib/python2.7/site-packages/packstack/plugins/prescript_000.py", line 1211, in preinstall_and_discover
server.execute()
File "/usr/lib/python2.7/site-packages/packstack/installer/utils/shell.py", line 128, in execute
raise ScriptRuntimeError(msg, stdout=out, stderr=err)
ScriptRuntimeError: Failed to run remote script, stdout: Loaded plugins: priorities, product-id, search-disabled-repos, subscription-
: manager
147 packages excluded due to repository priority protections
Package openssh-clients-6.6.1p1-33.el7_3.x86_64 already installed and latest version
Package 2:tar-1.26-31.el7.x86_64 already installed and latest version
Package rubygem-json-1.7.7-29.el7.x86_64 already installed and latest version
Resolving Dependencies
stderr: Warning: Permanently added '10.10.7.145' (ECDSA) to the list of known hosts.^M
+ trap t ERR
+ yum install -y puppet hiera openssh-clients tar nc rubygem-json
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:
1. You have an upgrade for libselinux which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libselinux of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude libselinux.otherarch ... this should give you an error
message showing the root cause of the problem.
2. You have multiple architectures of libselinux installed, but
yum can only see an upgrade for one of those architectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.
3. You have duplicate versions of libselinux installed already.
You can use "yum check" to get yum show these errors.
...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).
Protected multilib versions: libselinux-2.2.2-6.el7.i686 != libselinux-2.5-6.el7.x86_64
++ t
++ exit 1
ERROR : Failed to run remote script, stdout: Loaded plugins: priorities, product-id, search-disabled-repos, subscription-
: manager
147 packages excluded due to repository priority protections
Environment
- Red Hat OpenStack Platform 8.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.