Ansible installation fails on standalone Oracle Linux


 
Thread Tools Search this Thread
Operating Systems Linux Ansible installation fails on standalone Oracle Linux
# 1  
Old 07-10-2019
Ansible installation fails on standalone Oracle Linux

I have a standalone Oracle Linux server which has no connectivity to the internet.

I was following a blog which directed me to download all ansible dependent setup files and install them using the below command.

Code:
[root@host1 Ansible]# yum localinstall -y python-crypto-2.6.1-1.el7.rf.x86_64.rpm python-httplib2-0.9.2-0.2.el7.noarch.rpm python-jinja2-2.2.1-1.el6.rf.x86_64.rpm python-keyczar-0.71c-2.el7.noarch.rpm sshpass-1.05-1.el7.rf.x86_64.rpm

Code:
Loaded plugins: langpacks
Examining python-crypto-2.6.1-1.el7.rf.x86_64.rpm: python-crypto-2.6.1-1.el7.rf.x86_64
Marking python-crypto-2.6.1-1.el7.rf.x86_64.rpm to be installed
Examining python-httplib2-0.9.2-0.2.el7.noarch.rpm: python-httplib2-0.9.2-0.2.el7.noarch
Marking python-httplib2-0.9.2-0.2.el7.noarch.rpm to be installed
Examining python-jinja2-2.2.1-1.el6.rf.x86_64.rpm: python-jinja2-2.2.1-1.el6.rf.x86_64
Marking python-jinja2-2.2.1-1.el6.rf.x86_64.rpm to be installed
Examining python-keyczar-0.71c-2.el7.noarch.rpm: python-keyczar-0.71c-2.el7.noarch
Marking python-keyczar-0.71c-2.el7.noarch.rpm to be installed
Examining sshpass-1.05-1.el7.rf.x86_64.rpm: sshpass-1.05-1.el7.rf.x86_64
Marking sshpass-1.05-1.el7.rf.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package python-crypto.x86_64 0:2.6.1-1.el7.rf will be installed
---> Package python-httplib2.noarch 0:0.9.2-0.2.el7 will be installed
---> Package python-jinja2.x86_64 0:2.2.1-1.el6.rf will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-jinja2-2.2.1-1.el6.rf.x86_64
http://10.9.104.84/yum/OracleLinux/OL7/addons/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://10.9.104.84/yum/OracleLinux/OL7/addons/x86_64/repodata/repomd.xml:(28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
http://10.9.104.84/yum/OracleLinux/OL7/addons/x86_64/repodata/repomd.xml:[Errno 12] Timeout on ]http://10.9.104.84/yum/OracleLinux/OL7/addons/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror

However, I get the timeout error as the Yum is trying to connect to the internet as seen above.

Code:
[root@host1 Ansible]# uname -a
Linux host1 4.14.35-1844.4.5.el7uek.x86_64 #2 SMP Tue Apr 9 00:29:47 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux

Is there a way to avoid this timeout issue ?
# 2  
Old 07-10-2019
Try to increase your TCP/IP keepalive parameters:

Code:
Connection timed out after 30001 milliseconds


Linux has built-in support for keepalive.

You also need procfs support and sysctl support to be able to configure the kernel parameters at runtime.

README:

Quote:
The procedures involving keepalive use three user-driven variables:

tcp_keepalive_time

the interval between the last data packet sent (simple ACKs are not considered data) and the first keepalive probe; after the connection is marked to need keepalive, this counter is not used any further

tcp_keepalive_intvl

the interval between subsequential keepalive probes, regardless of what the connection has exchanged in the meantime

tcp_keepalive_probes

the number of unacknowledged probes to send before considering the connection dead and notifying the application layer
# 3  
Old 07-10-2019
Quote:
Originally Posted by Neo
Try to increase your TCP/IP keepalive parameters:

Code:
Connection timed out after 30001 milliseconds


Linux has built-in support for keepalive.

You also need procfs support and sysctl support to be able to configure the kernel parameters at runtime.

README:
How will keep alive help when my system is offline i.e has no connection to the outside world (internet) ?
# 4  
Old 07-10-2019
I have no idea exactly what you are doing; but your logfiles show a network connection and your network connection shows a timeout.

A network connection is a network connection, regardless if that connection is on a local LAN segment or going across the globe to exotic places.

I did not create your logfile, I am just reading it and your logfile shows a network connection (attempt) and a timeout.

What is your read of the logfile?
# 5  
Old 07-10-2019
Quote:
Originally Posted by Neo
I have no idea exactly what you are doing; but your logfiles show a network connection and your network connection shows a timeout.

A network connection is a network connection, regardless if that connection is on a local LAN segment or going across the globe to exotic places.
Outgoing network connectivity is disabled for this server as per security policy.

Is there a way we can tell yum not to look for files across URLs ?
# 6  
Old 07-10-2019
It's probably a good idea for you to read the yum.conf man page.

Code:
https://www.unix.com/man-page/linux/5/yum.conf/

You can configure yum to exclude all those files you don't want yum to attempt to download.
# 7  
Old 07-11-2019
The system requires a major dependency, a python programming language.
Code:
Processing Dependency: python(abi) = 2.6 for package: python-jinja2-2.2.1-1.el6.rf.x86_64

So either download all the rpms required, or enable access to internet repositories.
On a box which has access to internet and is the exact same version of OEL you can use yum to download only.
Then copy all the packages and execute yum localinstall against those.
Code:
yum install --downloadonly --downloaddir=<directory> <packages>

Check out proxy directive, suggestion is to use a simple squid proxy as a one time operation.

Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

DB2 10.5 un-installation Fails

AIX 7.1 on Power7 Platform. I am doing this as root. OK, somehow my instance is stuck and I cannot create any new instances for the 10.5 (db2icrt gets to step 2 of creation and sits. Have let it sit for 45minutes). db2ilist shows the instance, but deleting it says there is no instance. Tried to... (1 Reply)
Discussion started by: mrmurdock
1 Replies

2. UNIX for Dummies Questions & Answers

Openvz installation fails

Hello, I have a problem So I want to install this openvz. I run command apt-get install linux-image-openvz-amd64 and after that I check whether everything went ok with uname -r. But it seems that openvz is nowhere to be found. Why is that? All I see is 2.6.32-5-xen-amd64. Also when I try to... (1 Reply)
Discussion started by: linas
1 Replies

3. UNIX for Advanced & Expert Users

Grub Installation fails with stage1 error

Hi, I have a problem in installing grub where the error thrown as " /grub/stage1 file not found" but the stage1, stage2 files are present in the /boot/grub/ folder. I do this grub install in the final step of the Linux BMR that i have designed. In the CentOs version above 6.0 the grub... (0 Replies)
Discussion started by: selvarajvs
0 Replies

4. UNIX for Advanced & Expert Users

Grub installation fails in Linux BMR..

Hi all, This topic is purely on a problem in installing grub in my LINUX BMR process... A major problem too.. I am designing Linux BMR where i do the following.. Backup the " / " as a whole .. with partition details ..etc And using the Knoppix Live CD i first create the partitions... (1 Reply)
Discussion started by: selvarajvs
1 Replies

5. UNIX for Dummies Questions & Answers

Installation of Oracle 11g on ubuntu linux.

Dear Folks, I'm installing oracle 11g on ubuntu linux, currently I'm trying an option to increase the file system for a mount point ORACLE_HOME=/d01/oracle, for this file system the requirement to have at least 4GB free space, could you please let me know a way to increase the file system. also... (2 Replies)
Discussion started by: rajivatnova
2 Replies

6. Shell Programming and Scripting

Perl connect to remote oracle db without local oracle installation

I want to use Perl to connect to a remote Oracle DB I have no oracle installation on my server (and dont plan on installing one) I am using solaris 9 on x86 server. Is this possible? I basically want to run some basic sql queries on the remote oracle db which I have access to using perl on my... (0 Replies)
Discussion started by: frustrated1
0 Replies

7. UNIX and Linux Applications

Installation of Oracle Reports 6i on Linux

Hi, We are planning for a report generation program in Linux.For that we are planning to use Oracle reports 6i on linux. Could anybody please confirm if the Oracle 6i reports are compatible on Linux (0 Replies)
Discussion started by: Pavan Pusuluri
0 Replies

8. UNIX for Advanced & Expert Users

make test fails for DBD::Oracle installation

I've already installed the DBI Perl Module with no issues and now I'm attempting to install the DBD::Oracle driver on a Red Hat Enterprise 4 server and am having some trouble. I've checked through the forums and haven't seen anything helpful at this point. Everything goes fine during the perl... (1 Reply)
Discussion started by: pstrosnyder
1 Replies

9. Solaris

X-windows Problem /GUI Installation fails

Guys, I am trying to install few products on my solaris 10 box. One of these installation would go as GUI installation. Whenever i run the setup, it throws an error message saying that GUI could not be started. What all things i need to check on server side as well as client (my windows... (0 Replies)
Discussion started by: ak835
0 Replies

10. UNIX for Dummies Questions & Answers

Installation Procedure of UNIX on a standalone pc

Hi, I am nil about UNIX and i want to learn about. For this i want to install UNIX 5.0 on my home pc. Anyone please tell me the procedure to install it. The partition and all etc. etc.. My pc configuration is P-IV, 1.7GHz 40 GB HDD With regards, Phani (1 Reply)
Discussion started by: phanikmv
1 Replies
Login or Register to Ask a Question