Re: [Spacewalk-list] Client machine update issue without internet

2014-03-18 Thread Jonathan Hoser
Actually,

On 03/18/2014 01:18 PM, Dhaval Oza wrote:
> Error: Cannot retrieve metalink for repository: epel. Please verify its path 
> and try again
this says it all:
yum is not happy having one repository unreachable, and fails,
not matter if the others would be fine (my observations).

Disable epel (hell, disable everything ) from setting-files in
/etc/yum.repos.d/*

Then try again.

Best
-Jonathan

--
Jonathan Hoser, M.Sc.
Institute of Bioinformatics and System Biology
Phone: +49-89-3187-4556
Fax: +49-89-3187-3585
Email: jonathan.ho...@helmholtz-muenchen.de
WWW: http://mips.helmholtz-muenchen.de


Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Client machine update issue without internet

2014-03-18 Thread Boyd, Robert
Dhaval,

I see that the yum repolist is failing to display the server that it's 
connecting to.  You either are not cleanly registered and/or you have 
extraneous information in some of the configuration files in /etc/yum.repos.d

I suggest you try adding an entry in /etc/hosts on the client for the master 
using the same name that the master uses in DNS.  Be sure to put in the FQDN 
and the short alias form with just the name.

Then try re-registering the client as Lukas was suggesting.

After you re-register using the name instead of the IP number, please try:

Verify on the master that the client is registered.Make sure to remove any 
duplicate entry from before that is no longer communicating.  Then:

Yum clean all
Yum repolist --verbose

See what you get then.

Robert

-Original Message-
From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Dhaval Oza
Sent: Tuesday, March 18, 2014 8:18 AM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Robert,

We are not use /etc/hosts file on client side for resolving name (my spacewalk 
server ip is 192.168.12.52), as per your instruction we are remove gateway IP,  
when I trigger "route -n" and "yum repolist --verbose" it display below.

root@testspacewalk ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.12.00.0.0.0 255.255.255.0   U 1  00 eth0
192.168.122.0   0.0.0.0 255.255.255.0   U 0  00 virbr0
[root@testspacewalk ~]#
[root@testspacewalk ~]#
[root@testspacewalk ~]#
[root@testspacewalk ~]# yum repolist --verbose Loading "rhnplugin" plugin 
Loading "fastestmirror" plugin Loading "refresh-packagekit" plugin Loading 
"security" plugin Config time: 0.075 This system is receiving updates from RHN 
Classic or Red Hat Satellite.
Looking for repo options for [main]
Looking for repo options for [centos-6.4-x86_64-base] Repo 
'centos-6.4-x86_64-base' setting option 'enabled' = '1'
Repo 'centos-6.4-x86_64-base' setting option 'gpgcheck' = '1'
Yum Version: 3.2.29
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path 
and try again [root@testspacewalk ~]#

Awaiting your help,

Thanks and Regards,
Dhaval Oza



- Original Message -----
From: "Robert Boyd" 
To: spacewalk-list@redhat.com
Sent: Monday, March 17, 2014 8:58:53 PM
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Dhaval,

So do you use /etc/hosts on the client to provide a name/IP address match for 
the spacewalk master server?
When you say you removed the gateway IP, do you have any routes in your route 
table?  What does route -n show?

Also, what do you get when you do this command:

  yum repolist --verbose

Robert

-Original Message-
From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Dhaval Oza
Sent: Friday, March 14, 2014 8:46 AM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Hi Lukas,

Yes the client connects to spacewalk server locally, on a LAN, and it has 
network connection for communication with the spacewalk server. 

What I mean by stopping internet connection is the following:

I removed gateway IP on client side machines.
I removed DNS IPs on client side machines.

This is needed to be done since our requirement is that no client should be 
able to connect to internet, however they should be able to connect to 
spacewalk server.

I hope this makes it clear.

Awaiting your help,

Thanks and Regards,
Dhaval



----- Original Message -----
From: "Lukas Pramuk" 
To: spacewalk-list@redhat.com
Sent: Thursday, March 13, 2014 9:09:15 PM
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Hi,
I assume that the client connects to spacewalk server locally, on a LAN.
So the client needs network connection for communication with the spacewalk 
server.

What you mean with "stop internet connection on client"?
How do you do that?

Regards,

Lukas Pramuk
Systems Management QA, Red Hat


On 03/13/2014 03:56 PM, Dhaval Oza wrote:
> Dear Sir,
>
> We have configured and installed  Spacewalk Server 2.2  nightly on 
> Centos 6.5 & spacewalk client machine. All things are working 
> perfectly fine on server side also the client side tool has been 
> installed on server to communicate with client machine with activation 
> key for getting updates from spacewalk server but the problem is when 
> i stop internet connection on client machine we are not getting any 
> updates and also when I trigger "yum repolist" command on client 
> machine it shows  0 packages av

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-18 Thread Lukas Pramuk

On 03/14/2014 07:44 AM, Dhaval Oza wrote:

rhnreg_ks --serverUrl=http://192.168.12.52/XMLRPC  
--activationkey=

I don't like this command, can you please run "rhn_check -vv" at the client?

When I register client using IP address I'm getting folowing errors 
during rhn_check:


# rhn_check -vv
...
D: local action status: ((6,), 'Fatal error in Python code occured', {})
D: rpcServer: Calling XMLRPC registration.welcome_message

# tail -f /var/log/update
...
[Tue Mar 18 09:37:32 2014] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 338, in __run_action
(status, message, data) = CheckCli.__do_call(method, params, kwargs)
  File "/usr/sbin/rhn_check", line 330, in __do_call
method = getMethod.getMethod(method, "/usr/share/rhn/", "actions")
  File "/usr/share/rhn/up2date_client/getMethod.py", line 78, in getMethod
actions = __import__(modulename)
  File "/usr/share/rhn/actions/packages.py", line 270, in 
yum_base = YumAction()
  File "/usr/share/rhn/actions/packages.py", line 65, in __init__
self.doTsSetup()
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 84, in 
doTsSetup

return self._getTs()
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in 
_getTs

self._getTsInfo(remove_only)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in 
_getTsInfo

pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 887, in 


pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 669, in 
_getSacks

self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 308, in 
populateSack

sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 165, in 
populate

if self._check_db_version(repo, mydbtype):
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in 
_check_db_version

return repo._check_db_version(mdtype)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1256, in 
_check_db_version

repoXML = self.repoXML
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1455, in 


repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/share/yum-plugins/rhnplugin.py", line 566, in _getRepoXML
return YumRepository._getRepoXML(self)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1451, in 
_getRepoXML

raise Errors.RepoError, msg
: Cannot retrieve repository metadata 
(repomd.xml) for repository: rhel-x86_64-server-6. Please verify its 
path and try again


[Tue Mar 18 09:37:32 2014] up2date D: local action status: ((6,), 'Fatal 
error in Python code occured', {})
[Tue Mar 18 09:37:32 2014] up2date D: rpcServer: Calling XMLRPC 
registration.welcome_message


As you can read from the log yum-rhn-plugin is not able to retrieve 
repository metada, when I use IP address to access SW server.

Is that your case?
If so, just use hostname that's in your SW server certificate. Or you 
can disable SSL for clients (not recommended, not tested).


Regards,

Lukas Pramuk
QA Engineer (RHCE, RHCVA)
Systems Management QA, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-18 Thread Dhaval Oza
Robert,

We are not use /etc/hosts file on client side for resolving name (my spacewalk 
server ip is 192.168.12.52), as per your instruction we are remove gateway IP,  
when I trigger "route -n" and "yum repolist --verbose" it display below.

root@testspacewalk ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.12.00.0.0.0 255.255.255.0   U 1  00 eth0
192.168.122.0   0.0.0.0 255.255.255.0   U 0  00 virbr0
[root@testspacewalk ~]#
[root@testspacewalk ~]#
[root@testspacewalk ~]#
[root@testspacewalk ~]# yum repolist --verbose
Loading "rhnplugin" plugin
Loading "fastestmirror" plugin
Loading "refresh-packagekit" plugin
Loading "security" plugin
Config time: 0.075
This system is receiving updates from RHN Classic or Red Hat Satellite.
Looking for repo options for [main]
Looking for repo options for [centos-6.4-x86_64-base]
Repo 'centos-6.4-x86_64-base' setting option 'enabled' = '1'
Repo 'centos-6.4-x86_64-base' setting option 'gpgcheck' = '1'
Yum Version: 3.2.29
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path 
and try again
[root@testspacewalk ~]#

Awaiting your help,

Thanks and Regards,
Dhaval Oza



- Original Message -
From: "Robert Boyd" 
To: spacewalk-list@redhat.com
Sent: Monday, March 17, 2014 8:58:53 PM
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Dhaval,

So do you use /etc/hosts on the client to provide a name/IP address match for 
the spacewalk master server?
When you say you removed the gateway IP, do you have any routes in your route 
table?  What does route -n show?

Also, what do you get when you do this command:

  yum repolist --verbose

Robert

-Original Message-
From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Dhaval Oza
Sent: Friday, March 14, 2014 8:46 AM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Hi Lukas,

Yes the client connects to spacewalk server locally, on a LAN, and it has 
network connection for communication with the spacewalk server. 

What I mean by stopping internet connection is the following:

I removed gateway IP on client side machines.
I removed DNS IPs on client side machines.

This is needed to be done since our requirement is that no client should be 
able to connect to internet, however they should be able to connect to 
spacewalk server.

I hope this makes it clear.

Awaiting your help,

Thanks and Regards,
Dhaval



- Original Message -
From: "Lukas Pramuk" 
To: spacewalk-list@redhat.com
Sent: Thursday, March 13, 2014 9:09:15 PM
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Hi,
I assume that the client connects to spacewalk server locally, on a LAN.
So the client needs network connection for communication with the spacewalk 
server.

What you mean with "stop internet connection on client"?
How do you do that?

Regards,

Lukas Pramuk
Systems Management QA, Red Hat


On 03/13/2014 03:56 PM, Dhaval Oza wrote:
> Dear Sir,
>
> We have configured and installed  Spacewalk Server 2.2  nightly on 
> Centos 6.5 & spacewalk client machine. All things are working 
> perfectly fine on server side also the client side tool has been 
> installed on server to communicate with client machine with activation 
> key for getting updates from spacewalk server but the problem is when 
> i stop internet connection on client machine we are not getting any 
> updates and also when I trigger "yum repolist" command on client 
> machine it shows  0 packages available.
>
> My problem is what to configure on client machine so I can get all the 
> updates from spacewalk server without internet connection.
>
> And also let me know what to do on client machine and which file we 
> have to check and do the changes accordingly .
>
> It will be grateful if any one can help us in solving the issue.
>
> Thanks and Regards,
> Dhaval Oza.
>
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


-- 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Client machine update issue without internet

2014-03-17 Thread Boyd, Robert
Dhaval,

So do you use /etc/hosts on the client to provide a name/IP address match for 
the spacewalk master server?
When you say you removed the gateway IP, do you have any routes in your route 
table?  What does route -n show?

Also, what do you get when you do this command:

  yum repolist --verbose

Robert

-Original Message-
From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Dhaval Oza
Sent: Friday, March 14, 2014 8:46 AM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Hi Lukas,

Yes the client connects to spacewalk server locally, on a LAN, and it has 
network connection for communication with the spacewalk server. 

What I mean by stopping internet connection is the following:

I removed gateway IP on client side machines.
I removed DNS IPs on client side machines.

This is needed to be done since our requirement is that no client should be 
able to connect to internet, however they should be able to connect to 
spacewalk server.

I hope this makes it clear.

Awaiting your help,

Thanks and Regards,
Dhaval



- Original Message -
From: "Lukas Pramuk" 
To: spacewalk-list@redhat.com
Sent: Thursday, March 13, 2014 9:09:15 PM
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Hi,
I assume that the client connects to spacewalk server locally, on a LAN.
So the client needs network connection for communication with the spacewalk 
server.

What you mean with "stop internet connection on client"?
How do you do that?

Regards,

Lukas Pramuk
Systems Management QA, Red Hat


On 03/13/2014 03:56 PM, Dhaval Oza wrote:
> Dear Sir,
>
> We have configured and installed  Spacewalk Server 2.2  nightly on 
> Centos 6.5 & spacewalk client machine. All things are working 
> perfectly fine on server side also the client side tool has been 
> installed on server to communicate with client machine with activation 
> key for getting updates from spacewalk server but the problem is when 
> i stop internet connection on client machine we are not getting any 
> updates and also when I trigger "yum repolist" command on client 
> machine it shows  0 packages available.
>
> My problem is what to configure on client machine so I can get all the 
> updates from spacewalk server without internet connection.
>
> And also let me know what to do on client machine and which file we 
> have to check and do the changes accordingly .
>
> It will be grateful if any one can help us in solving the issue.
>
> Thanks and Regards,
> Dhaval Oza.
>
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


-- 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Client machine update issue without internet

2014-03-14 Thread Jonathan Hoser
Ah,
sorry I forgot:
Curl - as supplied by the CentOS repos - caused major issues for me
using the https transfer of repo-data from the SW-server.
There are (were?) some serious issues with the certificate handling.
Check if you are having curl-7.30.0 in place.
If not, get:
c-ares-1.10.0-1.0.cf.rhel6.x86_64.rpm
curl-7.30.0-2.0.cf.rhel6.x86_64.rpm
libcurl-7.30.0-2.0.cf.rhel6.x86_64.rpm
libssh2-1.4.3-6.0.cf.rhel6.x86_64.rpm
from a repository near you place them in a tar, and this on the spacewalk server
and install them i.e. using:

echo "# updating CURL and LIBCURL to 7.30!"

mkdir -p /tmp/curlUp
pushd /tmp/curlUp

wget http://spacewalkserver/pub/curlUp.tar

tar -xf curlUp.tar

sed -i "s/useNoSSLForPackages=0/useNoSSLForPackages=1/g" 
/etc/sysconfig/rhn/up2date

yum -y localinstall --nogpgcheck *.rpm

sed -i "s/useNoSSLForPackages=1/useNoSSLForPackages=0/g" 
/etc/sysconfig/rhn/up2date

popd
rm -rf /tmp/curlUp

...
Worth a try.

Best
-Jonathan


On 03/14/2014 01:37 PM, Dhaval Oza wrote:
Hello Jonathan,

Thanks for you reply. I tried the steps you had suggested but still the issue 
persists.  Any further help will be greatly appreciated.

Thank You.


From: "Jonathan Hoser" 
<mailto:jonathan.ho...@helmholtz-muenchen.de>
To: spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>
Sent: Friday, March 14, 2014 12:52:52 PM
Subject: Re: [Spacewalk-list] Client machine update issue without internet

On 03/14/2014 07:44 AM, Dhaval Oza wrote:

On 03/13/2014 04:03 PM, Stuart Green wrote:

Dear Sir,

We have configured and installed  Spacewalk Server 2.2  nightly on Centos 6.5 & 
spacewalk client machine. All things are working perfectly fine on server side 
also the client side tool has been installed on server to communicate with 
client machine with activation key for getting updates from spacewalk server 
but the problem is when i stop internet connection on client machine we are not 
getting any updates and also when I trigger "yum repolist" command on client 
machine it shows  0 packages available.

My problem is what to configure on client machine so I can get all the updates 
from spacewalk server without internet connection.

And also let me know what to do on client machine and which file we have to 
check and do the changes accordingly .

It will be grateful if any one can help us in solving the issue.

Thanks and Regards,
Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com<mailto:Spacewalk-list@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list


Sir... How very nice :)

Are the clients registered in the gui, if so it should show what packages can 
be updated on the clients?

Stuart

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com<mailto:Spacewalk-list@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list


Hi Stuart,

We are registered clients on Spacewalk Server.
My Spacewalk Server IP is 192.168.12.52Below are the Client side configuration 
detail :# Client Side Configuration ## rpm -Uvh 
http://spacewalk.redhat.com/yum/2.1-client/RHEL/6/x86_64/spacewalk-client-repo-2.1-2.el6.noarch.rpm
 BASEARCH=$(uname -i) rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/$BASEARCH/epel-release-6-8.noarch.rpm 
###Activate your clinet system rhnreg_ks 
--serverUrl=http://192.168.12.52/XMLRPC 
--activationkey= #Install packages to enable 
Configuration File Management yum –y install osad rhncfg rhncfg-actions 
rhncfg-client rhncfg-managemen #Install the Spacewalk Organization Cert on 
the Client wget -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT 
http://192.168.12.52/pub/RHN-ORG-TRUSTED-SSL-CERT rhn-actions-control 
--enable-all rhn-actions-control --report #Start osad service so that 
remote actions are executed quickly rather than waiting for the systems to 
check in: yum install osad* yum install jabber* service osad start chkconfig 
osad on /usr/bin/perl -p -i -e "s/osa_ssl_cert =/osa_ssl_cert = 
\/usr\/share\/rhn\/RHN-ORG-TRUSTED-SSL-CERT/g" /etc/sysconfig/rhn/osad.conf It 
will be grateful if any one can help us in solving the issue. Thanks and 
Regards, Dhaval Oza.

Dear Dhaval,
go to /etc/yum.repos.d/
and edit CentOS-Base.repo
for every section in the file, make sure you have the string 'enabled=0'
in place.
Then do a 'yum clean all'
and a yum repolist
and it shall only list your spacewalk channels.

Best
-Jonathan



--
Jonathan Hoser, M.Sc.
Institute of Bioinformatics and System Biology
WWW: http://mips.helmholtz-muenchen.de




Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de<http://www.helmholtz-muenchen.de>
Aufsichtsratsvorsitzende: MinDir´in

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-14 Thread Dhaval Oza
Hi Lukas,

Yes the client connects to spacewalk server locally, on a LAN, and it has 
network connection for communication with the spacewalk server. 

What I mean by stopping internet connection is the following:

I removed gateway IP on client side machines.
I removed DNS IPs on client side machines.

This is needed to be done since our requirement is that no client should be 
able to connect to internet, however they should be able to connect to 
spacewalk server.

I hope this makes it clear.

Awaiting your help,

Thanks and Regards,
Dhaval



- Original Message -
From: "Lukas Pramuk" 
To: spacewalk-list@redhat.com
Sent: Thursday, March 13, 2014 9:09:15 PM
Subject: Re: [Spacewalk-list] Client machine update issue without internet

Hi,
I assume that the client connects to spacewalk server locally, on a LAN.
So the client needs network connection for communication with the 
spacewalk server.

What you mean with "stop internet connection on client"?
How do you do that?

Regards,

Lukas Pramuk
Systems Management QA, Red Hat


On 03/13/2014 03:56 PM, Dhaval Oza wrote:
> Dear Sir,
>
> We have configured and installed  Spacewalk Server 2.2  nightly on 
> Centos 6.5 & spacewalk client machine. All things are working 
> perfectly fine on server side also the client side tool has been 
> installed on server to communicate with client machine with activation 
> key for getting updates from spacewalk server but the problem is when 
> i stop internet connection on client machine we are not getting any 
> updates and also when I trigger "yum repolist" command on client 
> machine it shows  0 packages available.
>
> My problem is what to configure on client machine so I can get all the 
> updates from spacewalk server without internet connection.
>
> And also let me know what to do on client machine and which file we 
> have to check and do the changes accordingly .
>
> It will be grateful if any one can help us in solving the issue.
>
> Thanks and Regards,
> Dhaval Oza.
>
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


-- 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Client machine update issue without internet

2014-03-14 Thread Dhaval Oza
Hello Jonathan, 

Thanks for you reply. I tried the steps you had suggested but still the issue 
persists. Any further help will be greatly appreciated. 

Thank You. 

- Original Message -

From: "Jonathan Hoser"  
To: spacewalk-list@redhat.com 
Sent: Friday, March 14, 2014 12:52:52 PM 
Subject: Re: [Spacewalk-list] Client machine update issue without internet 

On 03/14/2014 07:44 AM, Dhaval Oza wrote: 



On 03/13/2014 04:03 PM, Stuart Green wrote: 




Dear Sir, 

We have configured and installed Spacewalk Server 2.2 nightly on Centos 6.5 & 
spacewalk client machine. All things are working perfectly fine on server side 
also the client side tool has been installed on server to communicate with 
client machine with activation key for getting updates from spacewalk server 
but the problem is when i stop internet connection on client machine we are not 
getting any updates and also when I trigger "yum repolist" command on client 
machine it shows 0 packages available. 

My problem is what to configure on client machine so I can get all the updates 
from spacewalk server without internet connection. 

And also let me know what to do on client machine and which file we have to 
check and do the changes accordingly . 

It will be grateful if any one can help us in solving the issue. 

Thanks and Regards, 
Dhaval Oza. 

___ 
Spacewalk-list mailing list 
Spacewalk-list@redhat.com 
https://www.redhat.com/mailman/listinfo/spacewalk-list 




Sir... How very nice :) 

Are the clients registered in the gui, if so it should show what packages can 
be updated on the clients? 

Stuart 

___ 
Spacewalk-list mailing list 
Spacewalk-list@redhat.com 
https://www.redhat.com/mailman/listinfo/spacewalk-list 




Hi Stuart, 

We are registered clients on Spacewalk Server. 
My Spacewalk Server IP is 192.168.12.52 Below are the Client side configuration 
detail : # Client Side Configuration ## rpm -Uvh 
http://spacewalk.redhat.com/yum/2.1-client/RHEL/6/x86_64/spacewalk-client-repo-2.1-2.el6.noarch.rpm
 BASEARCH=$(uname -i) rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/$BASEARCH/epel-release-6-8.noarch.rpm 
###Activate your clinet system rhnreg_ks --serverUrl= 
http://192.168.12.52/XMLRPC --activationkey= 
#Install packages to enable Configuration File Management yum –y 
install osad rhncfg rhncfg-actions rhncfg-client rhncfg-managemen #Install 
the Spacewalk Organization Cert on the Client wget -O 
/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT 
http://192.168.12.52/pub/RHN-ORG-TRUSTED-SSL-CERT rhn-actions-control 
--enable-all rhn-actions-control --report #Start osad service so that 
remote actions are executed quickly rather than waiting for the systems to 
check in: yum install osad* yum install jabber* service osad start chkconfig 
osad on /usr/bin/perl -p -i -e "s/osa_ssl_cert =/osa_ssl_cert = 
\/usr\/share\/rhn\/RHN-ORG-TRUSTED-SSL-CERT/g" /etc/sysconfig/rhn/osad.conf It 
will be grateful if any one can help us in solving the issue. Thanks and 
Regards, Dhaval Oza. 


Dear Dhaval, 
go to /etc/yum.repos.d/ 
and edit CentOS-Base.repo 
for every section in the file, make sure you have the string 'enabled=0' 
in place. 
Then do a 'yum clean all' 
and a yum repolist 
and it shall only list your spacewalk channels. 

Best 
-Jonathan 


-- 
Jonathan Hoser, M.Sc.
Institute of Bioinformatics and System Biology
WWW: http://mips.helmholtz-muenchen.de 


Helmholtz Zentrum München 
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH) 
Ingolstädter Landstr. 1 
85764 Neuherberg 
www.helmholtz-muenchen.de 
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe 
Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen 
Registergericht: Amtsgericht München HRB 6466 
USt-IdNr: DE 129521671 

___ 
Spacewalk-list mailing list 
Spacewalk-list@redhat.com 
https://www.redhat.com/mailman/listinfo/spacewalk-list 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-14 Thread Michael Mraka
Dhaval Oza wrote:
% Dear Sir,
% 
% We have installed&  configured Spacewalk Server 2.2 (Nightly) on CentOS 6.5 
server&  also installed client tools on client side machines.

Hello,

Just a side note:

Spacewalk Nightly is a development version. Never ever use it for
production purpose. There can be bugs which might destroy your data.
Moreover there's no way to upgrade it to stable release.

Always use released version (as of today latest release is Spacewalk 2.1).

Regards,

--
Michael Mráka
Satellite Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-14 Thread Jonathan Hoser
On 03/14/2014 07:44 AM, Dhaval Oza wrote:

On 03/13/2014 04:03 PM, Stuart Green wrote:

Dear Sir,

We have configured and installed  Spacewalk Server 2.2  nightly on Centos 6.5 & 
spacewalk client machine. All things are working perfectly fine on server side 
also the client side tool has been installed on server to communicate with 
client machine with activation key for getting updates from spacewalk server 
but the problem is when i stop internet connection on client machine we are not 
getting any updates and also when I trigger "yum repolist" command on client 
machine it shows  0 packages available.

My problem is what to configure on client machine so I can get all the updates 
from spacewalk server without internet connection.

And also let me know what to do on client machine and which file we have to 
check and do the changes accordingly .

It will be grateful if any one can help us in solving the issue.

Thanks and Regards,
Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Sir... How very nice :)

Are the clients registered in the gui, if so it should show what packages can 
be updated on the clients?

Stuart

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Hi Stuart,

We are registered clients on Spacewalk Server.

My Spacewalk Server IP is 192.168.12.52

Below are the Client side configuration detail :

# Client Side Configuration ##

rpm -Uvh 
http://spacewalk.redhat.com/yum/2.1-client/RHEL/6/x86_64/spacewalk-client-repo-2.1-2.el6.noarch.rpm
BASEARCH=$(uname -i)
rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/$BASEARCH/epel-release-6-8.noarch.rpm

###Activate your clinet system

rhnreg_ks --serverUrl=http://192.168.12.52/XMLRPC 
--activationkey=

#Install packages to enable Configuration File Management
yum –y install osad rhncfg rhncfg-actions rhncfg-client rhncfg-managemen

#Install the Spacewalk Organization Cert on the Client
wget -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT 
http://192.168.12.52/pub/RHN-ORG-TRUSTED-SSL-CERT


rhn-actions-control --enable-all
rhn-actions-control --report


#Start osad service so that remote actions are executed quickly rather than 
waiting for the systems to check in:

yum install osad*
yum install jabber*
service osad start
chkconfig osad on


/usr/bin/perl -p -i -e "s/osa_ssl_cert =/osa_ssl_cert = 
\/usr\/share\/rhn\/RHN-ORG-TRUSTED-SSL-CERT/g" /etc/sysconfig/rhn/osad.conf

It will be grateful if any one can help us in solving the issue.

Thanks and Regards,

Dhaval Oza.

Dear Dhaval,
go to /etc/yum.repos.d/
and edit CentOS-Base.repo
for every section in the file, make sure you have the string 'enabled=0'
in place.
Then do a 'yum clean all'
and a yum repolist
and it shall only list your spacewalk channels.

Best
-Jonathan



--
Jonathan Hoser, M.Sc.
Institute of Bioinformatics and System Biology
WWW: http://mips.helmholtz-muenchen.de




Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-13 Thread Dhaval Oza


On 03/13/2014 04:03 PM, Stuart Green wrote:



Dear Sir,

We have configured and installed  Spacewalk Server 2.2  nightly on 
Centos 6.5 & spacewalk client machine. All things are working 
perfectly fine on server side also the client side tool has been 
installed on server to communicate with client machine with 
activation key for getting updates from spacewalk server but the 
problem is when i stop internet connection on client machine we are 
not getting any updates and also when I trigger "yum repolist" 
command on client machine it shows  0 packages available.


My problem is what to configure on client machine so I can get all 
the updates from spacewalk server without internet connection.


And also let me know what to do on client machine and which file we 
have to check and do the changes accordingly .


It will be grateful if any one can help us in solving the issue.

Thanks and Regards,
Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



Sir... How very nice :)

Are the clients registered in the gui, if so it should show what 
packages can be updated on the clients?


Stuart

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



Hi Stuart,

We are registered clients on Spacewalk Server.

My Spacewalk Server IP is 192.168.12.52

Below are the Client side configuration detail :

#Client Side Configuration  ##

rpm 
-Uvhhttp://spacewalk.redhat.com/yum/2.1-client/RHEL/6/x86_64/spacewalk-client-repo-2.1-2.el6.noarch.rpm
BASEARCH=$(uname -i)
rpm 
-Uvhhttp://dl.fedoraproject.org/pub/epel/6/$BASEARCH/epel-release-6-8.noarch.rpm

###Activate your clinet system

rhnreg_ks --serverUrl=http://192.168.12.52/XMLRPC  
--activationkey=

#Install packages to enable Configuration File Management
yum --y install osad rhncfg rhncfg-actions rhncfg-client rhncfg-managemen

#Install the Spacewalk Organization Cert on the Client
wget -O 
/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERThttp://192.168.12.52/pub/RHN-ORG-TRUSTED-SSL-CERT


rhn-actions-control --enable-all
rhn-actions-control --report


#Start osad service so that remote actions are executed quickly rather than 
waiting for the systems to check in:

yum install osad*
yum install jabber*
service osad start
chkconfig osad on


/usr/bin/perl -p -i -e "s/osa_ssl_cert =/osa_ssl_cert = 
\/usr\/share\/rhn\/RHN-ORG-TRUSTED-SSL-CERT/g" /etc/sysconfig/rhn/osad.conf

It will be grateful if any one can help us in solving the issue.

Thanks and Regards,

Dhaval Oza.




___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] Client machine update issue without internet

2014-03-13 Thread Dhaval Oza

Dear Sir,

We have installed&  configured Spacewalk Server 2.2 (Nightly) on CentOS 6.5 
server&  also installed client tools on client side machines.

Our goal is to get downloaded all latest packages on Spacewalk server&  it work as 
central update repository for all our Linux machine where they don't have direct 
internet connectivity&  client should get update from this Spacewalk server where 
it have always ON internet connectivity.

Our issue is that we have configured server&  client and everything work fine. But 
when we remove gateway IP from client machine to avoid internet connection it wont be 
able to get any update from Spacewalk server. Although this Spacewalk server is in same 
subnet&  having proper
internet connectivity all the time.

Please let us know what we have to check on Spacewalk server side&  client side 
for our issue.

_The Error shows below :-_
Loaded plugins: fastestmirror, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or Red Hat Satellite.
Determining fastest mirrors
Could not retrieve mirrorlist 
http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

When I trigger "yum repolist" command on client machine it shows  0 packages 
available.

And also let me know what to do on client machine and which file we have to 
check and do the changes accordingly .

My Spacewalk Server IP is 192.168.12.52

Below are the Client side configuration detail :

#Client Side Configuration  ##

rpm -Uvh 
http://spacewalk.redhat.com/yum/2.1-client/RHEL/6/x86_64/spacewalk-client-repo-2.1-2.el6.noarch.rpm
BASEARCH=$(uname -i)
rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/$BASEARCH/epel-release-6-8.noarch.rpm

###Activate your clinet system

rhnreg_ks --serverUrl=http://192.168.12.52/XMLRPC 
--activationkey=

#Install packages to enable Configuration File Management
yum --y install osad rhncfg rhncfg-actions rhncfg-client rhncfg-managemen

#Install the Spacewalk Organization Cert on the Client
wget -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT 
http://192.168.12.52/pub/RHN-ORG-TRUSTED-SSL-CERT


rhn-actions-control --enable-all
rhn-actions-control --report


#Start osad service so that remote actions are executed quickly rather than 
waiting for the systems to check in:

yum install osad*
yum install jabber*
service osad start
chkconfig osad on


/usr/bin/perl -p -i -e "s/osa_ssl_cert =/osa_ssl_cert = 
\/usr\/share\/rhn\/RHN-ORG-TRUSTED-SSL-CERT/g" /etc/sysconfig/rhn/osad.conf

It will be grateful if any one can help us in solving the issue.

Thanks and Regards,

Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-13 Thread Dhaval Oza

Hi,

Our issue is that we have configured server&  client and everything work fine. But 
when we remove gateway IP from client machine to avoid internet connection it wont be 
able to get any update from Spacewalk server. Although this Spacewalk server is in same 
subnet&  having proper
internet connectivity all the time.

When we ping the server (Spacewalk Server) it working fine.

Please let us know what we have to check on Spacewalk server side&  client side 
for our issue.


Thanks and Regards,

Dhaval Oza.



On 03/13/2014 04:39 PM, Lukas Pramuk wrote:

Hi,
I assume that the client connects to spacewalk server locally, on a LAN.
So the client needs network connection for communication with the 
spacewalk server.


What you mean with "stop internet connection on client"?
How do you do that?

Regards,

Lukas Pramuk
Systems Management QA, Red Hat


On 03/13/2014 03:56 PM, Dhaval Oza wrote:

Dear Sir,

We have configured and installed  Spacewalk Server 2.2  nightly on 
Centos 6.5 & spacewalk client machine. All things are working 
perfectly fine on server side also the client side tool has been 
installed on server to communicate with client machine with 
activation key for getting updates from spacewalk server but the 
problem is when i stop internet connection on client machine we are 
not getting any updates and also when I trigger "yum repolist" 
command on client machine it shows  0 packages available.


My problem is what to configure on client machine so I can get all 
the updates from spacewalk server without internet connection.


And also let me know what to do on client machine and which file we 
have to check and do the changes accordingly .


It will be grateful if any one can help us in solving the issue.

Thanks and Regards,
Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list





___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Client machine update issue without internet

2014-03-13 Thread Lukas Pramuk

Hi,
I assume that the client connects to spacewalk server locally, on a LAN.
So the client needs network connection for communication with the 
spacewalk server.


What you mean with "stop internet connection on client"?
How do you do that?

Regards,

Lukas Pramuk
Systems Management QA, Red Hat


On 03/13/2014 03:56 PM, Dhaval Oza wrote:

Dear Sir,

We have configured and installed  Spacewalk Server 2.2  nightly on 
Centos 6.5 & spacewalk client machine. All things are working 
perfectly fine on server side also the client side tool has been 
installed on server to communicate with client machine with activation 
key for getting updates from spacewalk server but the problem is when 
i stop internet connection on client machine we are not getting any 
updates and also when I trigger "yum repolist" command on client 
machine it shows  0 packages available.


My problem is what to configure on client machine so I can get all the 
updates from spacewalk server without internet connection.


And also let me know what to do on client machine and which file we 
have to check and do the changes accordingly .


It will be grateful if any one can help us in solving the issue.

Thanks and Regards,
Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



--

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Client machine update issue without internet

2014-03-13 Thread Stuart Green



Dear Sir,

We have configured and installed  Spacewalk Server 2.2  nightly on 
Centos 6.5 & spacewalk client machine. All things are working 
perfectly fine on server side also the client side tool has been 
installed on server to communicate with client machine with activation 
key for getting updates from spacewalk server but the problem is when 
i stop internet connection on client machine we are not getting any 
updates and also when I trigger "yum repolist" command on client 
machine it shows  0 packages available.


My problem is what to configure on client machine so I can get all the 
updates from spacewalk server without internet connection.


And also let me know what to do on client machine and which file we 
have to check and do the changes accordingly .


It will be grateful if any one can help us in solving the issue.

Thanks and Regards,
Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



Sir... How very nice :)

Are the clients registered in the gui, if so it should show what 
packages can be updated on the clients?


Stuart

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


[Spacewalk-list] Client machine update issue without internet

2014-03-13 Thread Dhaval Oza

Dear Sir,

We have configured and installed  Spacewalk Server 2.2  nightly on 
Centos 6.5 & spacewalk client machine. All things are working perfectly 
fine on server side also the client side tool has been installed on 
server to communicate with client machine with activation key for 
getting updates from spacewalk server but the problem is when i stop 
internet connection on client machine we are not getting any updates and 
also when I trigger "yum repolist" command on client machine it shows  0 
packages available.


My problem is what to configure on client machine so I can get all the 
updates from spacewalk server without internet connection.


And also let me know what to do on client machine and which file we have 
to check and do the changes accordingly .


It will be grateful if any one can help us in solving the issue.

Thanks and Regards,
Dhaval Oza.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list