Thanks Sanket and Ayyappan . Does yum needs any ports to be opened ? Right now ping and ssh ports are blocked between Non-prod and yum server. Please see the difference below between production and Dev yum client output .
On Dev server: ( timseout and status , I think package count is 0)--> yum repolist
http://server1.edc.nam.com/aixtoolbox/AIX_Toolbox/repodata/repomd.xml: [Errno 12]
Timeout on
http://server1.edc.nam.com/aixtoolbox/AIX_Toolbox/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')
Trying other mirror.
repo id repo name status
AIX_Toolbox AIX generic repository
0AIX_Toolbox_71 AIX 7.1 specific repository
0AIX_Toolbox_noarch AIX noarch repository
0on PROD server: ( No time and status shows package count )--> yum repolist
AIX_Toolbox | 2.9 kB 00:00:00
Not using downloaded repomd.xml because it is older than what we have:Current : Mon Dec 6 18:42:15 2021
Downloaded: Thu Feb 4 16:00:57 2021
AIX_Toolbox_71 | 2.9 kB 00:00:00
AIX_Toolbox_noarch | 2.9 kB 00:00:00
repo id repo name status
AIX_Toolbox AIX generic repository 3,934
AIX_Toolbox_71 AIX 7.1 specific repository 295
AIX_Toolbox_noarch AIX noarch repository 251
repolist: 4,480
------------------------------
Nag N
------------------------------
Original Message:
Sent: Wed March 23, 2022 12:43 PM
From: SANKET RATHI
Subject: yum repo time out errors , repo is on prod network. prod servers works , but dev and test fails
If you are not able to ping or connect to prod (yum server) then curl will also not work. What Ayappan meant if ping is working then use curl command to get the file info from the yum repo to verify if connection is fine. Something like following
$ curl http://server1.edc.nam.com/aixtoolbox/AIX_Toolbox/repodata/repomd.xml
------------------------------
SANKET RATHI
Original Message:
Sent: Wed March 23, 2022 11:05 AM
From: Nag N
Subject: yum repo time out errors , repo is on prod network. prod servers works , but dev and test fails
Thanks Ayyappan. Our network team blocked logins and pings from nonprod to prod network I guess about 2 years ago. I am new to this open source and AIX , can you please let me know what options to use with curl command. So , I can run and post the output here
Really appreciate you for taking time to help with this issue.
------------------------------
Nag N
Original Message:
Sent: Wed March 23, 2022 09:51 AM
From: Ayappan P
Subject: yum repo time out errors , repo is on prod network. prod servers works , but dev and test fails
Please check whether you are able to ping the prod server from the machine. Also you can try invoking curl to get a file from the repo.
This mostly looks like a network issue.
------------------------------
Ayappan P
Original Message:
Sent: Wed March 23, 2022 02:00 AM
From: Nag N
Subject: yum repo time out errors , repo is on prod network. prod servers works , but dev and test fails
Our yum repo was on AIX prod server in production network . Yum works fine on prod servers but yum times out if I am on dev/test network.
I am sorry for posting again , I could not change previous title.
Does yum needs any firewall ports to be opened ? I am guessing our firewall team changed rules between prod and nonprod .
On non prod server:
yum -y install sudo_noldap-1.9.5p2-1.ppc
http://server1.edc.nam.com/aixtoolbox/AIX_Toolbox/repodata/repomd.xml: [Errno 12] Timeout on http://server1.edc.nam.gm.com/aixtoolbox/AIX_Toolbox/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')
Trying other mirror.
On Prod server:
yum -y install sudo_noldap-1.9.5p2-1.ppc ....... it installs the rpm.
Please suggest , what leads these timeout errors . it was working 6 months ago . We upgraded sudo on all non prod servers using yum . Same yum repo and no changes and repo is on production network.
------------------------------
Nag N
------------------------------