AnwarYagoub / RHCSA-RHCE-Lab-Environment

Lab environment for RHCSA/RHCE Cert Guide book by Sander van Vugt (not official)
https://anwaryagoub.github.io/RHCSA-RHCE-Lab-Environment/
77 stars 50 forks source link

Error at task labipa : Install FreeIPA packages #27

Closed rchincholkar closed 3 years ago

rchincholkar commented 7 years ago

Hey guys,

Tried to setup lab environment as per instructions and came accross following error at ansible task - labipa : Install FreeIPA packages.

TASK [labipa : Install FreeIPA packages] ***************************************
failed: [labipa] (item=[u'haveged', u'ipa-server', u'ipa-server-dns', u'bind-dyndb-ldap']) => {"changed": true, "failed": true, "item": ["haveged", "ipa-server", "ipa-server-dns", "bind-dyndb-ldap"], "msg": "Error unpacking rpm package python-urllib3-1.10.2-3.el7.noarch\n"

***** Cropped error message due to long text *****

Figured out that the issue was there for installing python-urllib3 on labipa.

Tried installing python-urllib3 manually on labipa VM,

# yum install python-urllib3
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

Resolving Dependencies
--> Running transaction check
---> Package python-urllib3.noarch 0:1.10-2.fc21 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================================
 Package                                            Arch                                       Version                                         Repository                                   Size
=================================================================================================================================================================================================
Installing:
 python-urllib3                                     noarch                                     1.10-2.fc21                                     updates                                     110 k

Transaction Summary
=================================================================================================================================================================================================
Install  1 Package

Total download size: 110 k
Installed size: 383 k
Is this ok [y/d/N]: y
Downloading packages:
python-urllib3-1.10-2.fc21.noarch.rpm                                                                                                                                     | 110 kB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
  Installing : python-urllib3-1.10-2.fc21.noarch                                                                                                                                             1/1 
Error unpacking rpm package python-urllib3-1.10-2.fc21.noarch
error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname: cpio: rename

Found the workaround as follows - uninstall urllib2 on labipa using pip

# pip uninstall urllib3

And then did

$ vagrant up 

and it worked.

Just wanted to, is this recommended? Also if it is recommended please add it in ansible playbook.

Thanks,

Rahul C.

AnwarYagoub commented 7 years ago

Hello Rahul,

Thanks for taking time to contribute this repo was abandoned for almost a year right now I am planning to review the old structure and may then do some refactoring to make more user friendly by creating a pre-backed vagrant boxes to relief the user from the long process of provisioning while the content of this repository will be used to create these boxes using hashicorp packer I have already created a sample project on how to use packer to create Vagrant boxes you may check it on this link

rchincholkar commented 7 years ago

@AnwarYagoub Ohh Okay! Thanks for your reply :) I will do some research on packer.