[Spacewalk-list] Error when trying to update Spacewalk server from itself.

Waldirio Manhães Pinheiro waldirio at gmail.com
Fri Dec 12 12:06:44 UTC 2014


Hello Matt

Talking about RHN Satellite isn't not possible to do this, the server need
to connect in rhn.redhat.com to retrieve all packages and when you sign
locally (same server), problem happens !! :-)

Talking about SW, maybe will work, but I've never seen this or configured.
Coming from RedHat products (e.g. RHN Satellite), normally we still the
same recommendation.

In fact have to test, in theory can or should work's, but I prefer test
before talk about it. ;-)

Take Care

______________
Atenciosamente
Waldirio
msn: waldirio at gmail.com
Skype: waldirio
Site: www.waldirio.com.br
Blog: blog.waldirio.com.br
LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
PGP: www.waldirio.com.br/public.html

On Fri, Dec 12, 2014 at 7:47 AM, Matt Bayliss <aarrgghh765 at gmail.com> wrote:

> Waldrino:
>
> Thanks for your reply - I did investigate whether this was recommended
> prior to doing it, according to a post from someone with apparently good
> credentials (Red Hat Satellite engineer) its OK to do this.
>
> https://www.redhat.com/archives/spacewalk-list/2011-October/msg00010.html
>
> However this was a while ago and things may have changed.  If this is not
> what most people are donig then I'll reconsider.
>
>
> Matthew:
>
> I hadn't, I have now but sadly it didn';t help - same error in log.  To
> reply to your question, I have registered the spacewalk "master" server
> directly to itself.
>
> Regards,
>
> Matt
>
> On 11 December 2014 at 17:49, Waldirio Manhães Pinheiro <
> waldirio at gmail.com> wrote:
>
>> Matt
>>
>> Normally you update your server from Internet and not from local
>> repositories. Like example bellow
>>
>>
>> |Internet|
>>      |
>> |firewall|
>>      |
>> |SW|
>> ----------------------------
>>    |         |           |
>> Proxy  Proxy  Proxy
>>
>> ===============
>> Clients .....
>>
>> So your proxy and your clients (connected directly to SW or via proxy)
>> will be updated from SW, btw the SW will be updated from Internet.
>>
>> I'm not sure if we have someone in the channel updating from local repo.
>> Please guys, tell us! ;-)
>>
>> Take Care
>>
>> ______________
>> Atenciosamente
>> Waldirio
>> msn: waldirio at gmail.com
>> Skype: waldirio
>> Site: www.waldirio.com.br
>> Blog: blog.waldirio.com.br
>> LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
>> PGP: www.waldirio.com.br/public.html
>>
>> On Thu, Dec 11, 2014 at 2:53 PM, Matt Bayliss <aarrgghh765 at gmail.com>
>> wrote:
>>
>>> I am testing a Spacewalk 2.2 server with a connected proxy and three
>>> hosts connected via the proxy.  I can successfully update packages both on
>>> the proxy and hosts connected though it.
>>>
>>> I have added my Spacewalk 2.2 server to itselff, using its DNS FQDN
>>> rather than localhost, however when I try to update packages for it I get
>>> the following error in /var/log/up2date:
>>>
>>> Cannot retrieve repository metadata (repomd.xml) for repository:
>>> centos6-base-x86_64
>>>
>>> I have checked the httpd logs and can't spot a relevant error, what
>>> could be the problem?
>>>
>>> Regards,
>>>
>>> Matt
>>>
>>> Full /var/log/up2date log:
>>>
>>>
>>> [Thu Dec 11 13:43:42 2014] up2date logging into up2date server
>>> [Thu Dec 11 13:43:42 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 13:43:44 2014] up2date updateLoginInfo() login info
>>> [Thu Dec 11 13:43:44 2014] up2date logging into up2date server
>>> [Thu Dec 11 13:43:44 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 13:43:44 2014] up2date updateLoginInfo() login info
>>> [Thu Dec 11 13:43:44 2014] up2date logging into up2date server
>>> [Thu Dec 11 13:43:44 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 13:43:44 2014] up2date updateLoginInfo() login info
>>> [Thu Dec 11 13:43:44 2014] up2date logging into up2date server
>>> [Thu Dec 11 13:43:44 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 13:43:44 2014] up2date
>>> Traceback (most recent call last):
>>>   File "/usr/sbin/rhn_check", line 351, in __run_action
>>>     (status, message, data) = CheckCli.__do_call(method, params, kwargs)
>>>   File "/usr/sbin/rhn_check", line 343, 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 273, in <module>
>>>     yum_base = YumAction()
>>>   File "/usr/share/rhn/actions/packages.py", line 67, in __init__
>>>     self.doSackSetup()
>>>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in
>>> doSackSetup
>>>     return self._getSacks(archlist=archlist, thisrepo=thisrepo)
>>>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 686, in
>>> _getSacks
>>>     self.repos.populateSack(which=repos)
>>>   File "/usr/lib/python2.6/site-packages/yum/repos.py", line 319, 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 1260, in
>>> _check_db_version
>>>     repoXML = self.repoXML
>>>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1459, in
>>> <lambda>
>>>     repoXML = property(fget=lambda self: self._getRepoXML(),
>>>   File "/usr/share/yum-plugins/rhnplugin.py", line 580, in _getRepoXML
>>>     return YumRepository._getRepoXML(self)
>>>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1455, in
>>> _getRepoXML
>>>     raise Errors.RepoError, msg
>>> <class 'yum.Errors.RepoError'>: Cannot retrieve repository metadata
>>> (repomd.xml) for repository: centos6-base-x86_64. Please verify its path
>>> and try again
>>>
>>> [Thu Dec 11 16:11:07 2014] up2date logging into up2date server
>>> [Thu Dec 11 16:11:07 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 16:11:10 2014] up2date updateLoginInfo() login info
>>> [Thu Dec 11 16:11:10 2014] up2date logging into up2date server
>>> [Thu Dec 11 16:11:10 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 16:11:10 2014] up2date updateLoginInfo() login info
>>> [Thu Dec 11 16:11:10 2014] up2date logging into up2date server
>>> [Thu Dec 11 16:11:10 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 16:11:10 2014] up2date updateLoginInfo() login info
>>> [Thu Dec 11 16:11:10 2014] up2date logging into up2date server
>>> [Thu Dec 11 16:11:10 2014] up2date successfully retrieved authentication
>>> token from up2date server
>>> [Thu Dec 11 16:11:10 2014] up2date
>>> Traceback (most recent call last):
>>>   File "/usr/sbin/rhn_check", line 351, in __run_action
>>>     (status, message, data) = CheckCli.__do_call(method, params, kwargs)
>>>   File "/usr/sbin/rhn_check", line 343, 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 273, in <module>
>>>     yum_base = YumAction()
>>>   File "/usr/share/rhn/actions/packages.py", line 67, in __init__
>>>     self.doSackSetup()
>>>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in
>>> doSackSetup
>>>     return self._getSacks(archlist=archlist, thisrepo=thisrepo)
>>>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 686, in
>>> _getSacks
>>>     self.repos.populateSack(which=repos)
>>>   File "/usr/lib/python2.6/site-packages/yum/repos.py", line 319, 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 1260, in
>>> _check_db_version
>>>     repoXML = self.repoXML
>>>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1459, in
>>> <lambda>
>>>     repoXML = property(fget=lambda self: self._getRepoXML(),
>>>   File "/usr/share/yum-plugins/rhnplugin.py", line 580, in _getRepoXML
>>>     return YumRepository._getRepoXML(self)
>>>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1455, in
>>> _getRepoXML
>>>     raise Errors.RepoError, msg
>>> <class 'yum.Errors.RepoError'>: Cannot retrieve repository metadata
>>> (repomd.xml) for repository: centos6-base-x86_64. Please verify its path
>>> and try again
>>>
>>>
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20141212/9faad675/attachment.htm>


More information about the Spacewalk-list mailing list