[Spacewalk-list] Error : 'NoneType' object is unsubscriptable when I used RHNPUSH
Ludovic BRACHET
Ludovic.BRACHET.ext at boursorama.fr
Mon Feb 13 17:05:57 UTC 2012
Hi,
To continue my story, I tried to setup spacewalk 1.4 and 1.6 on a RHEL 5.7.
So, first, I added "spacewalk-repo-1.4-1.el5.noarch.rpm" then, I do an update:
pfrdep002 ~ :( # yum update
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating Red Hat repositories.
Excluding Packages in global exclude list
Finished
Skipping security plugin, no data
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package rhn-check.noarch 0:1.4.16-1.el5 set to be updated
---> Package rhn-client-tools.noarch 0:1.4.16-1.el5 set to be updated
---> Package rhn-setup.noarch 0:1.4.16-1.el5 set to be updated
---> Package rhn-setup-gnome.noarch 0:1.4.16-1.el5 set to be updated
---> Package rhnlib.noarch 0:2.5.39-1.el5 set to be updated
---> Package yum-rhn-plugin.noarch 0:1.4.15-1.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Updating:
rhn-check noarch 1.4.16-1.el5 spacewalk 62 k
rhn-client-tools noarch 1.4.16-1.el5 spacewalk 697 k
rhn-setup noarch 1.4.16-1.el5 spacewalk 113 k
rhn-setup-gnome noarch 1.4.16-1.el5 spacewalk 151 k
rhnlib noarch 2.5.39-1.el5 spacewalk 72 k
yum-rhn-plugin noarch 1.4.15-1.el5 spacewalk 82 k
Transaction Summary
=============================================================================================================================================================
Install 0 Package(s)
Upgrade 6 Package(s)
Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): rhn-check-1.4.16-1.el5.noarch.rpm | 62 kB 00:00
(2/6): rhnlib-2.5.39-1.el5.noarch.rpm | 72 kB 00:00
(3/6): yum-rhn-plugin-1.4.15-1.el5.noarch.rpm | 82 kB 00:00
(4/6): rhn-setup-1.4.16-1.el5.noarch.rpm | 113 kB 00:01
(5/6): rhn-setup-gnome-1.4.16-1.el5.noarch.rpm | 151 kB 00:02
(6/6): rhn-client-tools-1.4.16-1.el5.noarch.rpm | 697 kB 00:07
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 82 kB/s | 1.1 MB 00:14
attention: rpmts_HdrFromFdno: Entête V4 DSA signature: NOKEY, key ID b3892132
spacewalk/gpgkey | 1.3 kB 00:00
Importing GPG key 0xB3892132 "Spacewalk <spacewalk-devel at redhat.com>" from http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2010
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : rhnlib 1/12
Updating : rhn-client-tools 2/12
warning: /etc/sysconfig/rhn/up2date created as /etc/sysconfig/rhn/up2date.rpmnew
Updating : rhn-setup 3/12
Updating : yum-rhn-plugin 4/12
warning: /etc/yum/pluginconf.d/rhnplugin.conf created as /etc/yum/pluginconf.d/rhnplugin.conf.rpmnew
Updating : rhn-setup-gnome 5/12
Updating : rhn-check 6/12
Cleanup : rhnlib 7/12
Cleanup : yum-rhn-plugin 8/12
Cleanup : rhn-setup-gnome 9/12
Cleanup : rhn-client-tools 10/12
Cleanup : rhn-setup 11/12
Cleanup : rhn-check 12/12
duration: 3555(ms)
Installed products updated.
Updated:
rhn-check.noarch 0:1.4.16-1.el5 rhn-client-tools.noarch 0:1.4.16-1.el5 rhn-setup.noarch 0:1.4.16-1.el5 rhn-setup-gnome.noarch 0:1.4.16-1.el5
rhnlib.noarch 0:2.5.39-1.el5 yum-rhn-plugin.noarch 0:1.4.15-1.el5
Complete!
As you can see, all works good with Spacewalk 1.4, and I'm able to do a "yum update" without errors:
pfrdep002 ~ :) # yum clean all
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating Red Hat repositories.
Cleaning up Everything
pfrdep002 ~ :) # yum update
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating Red Hat repositories.
epel | 3.7 kB 00:00
epel/primary_db | 3.7 MB 00:00
spacewalk | 2.1 kB 00:00
spacewalk/primary_db | 133 kB 00:00
Excluding Packages in global exclude list
Finished
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update
Then, I used the Spacewalk 1.6 to compare:
pfrdep002 ~ :) # yum update
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating Red Hat repositories.
epel | 3.7 kB 00:00
epel/primary_db | 3.7 MB 00:00
rhel-x86_64-server-5 | 1.4 kB 00:00
rhel-x86_64-server-5/primary | 4.3 MB 00:09
rhel-x86_64-server-5 12499/12499
spacewalk | 2.1 kB 00:00
spacewalk/primary_db | 136 kB 00:00
Excluding Packages in global exclude list
Finished
Skipping security plugin, no data
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package rhn-check.noarch 0:1.6.47-1.el5 set to be updated
---> Package rhn-client-tools.noarch 0:1.6.47-1.el5 set to be updated
---> Package rhn-setup.noarch 0:1.6.47-1.el5 set to be updated
---> Package rhn-setup-gnome.noarch 0:1.6.47-1.el5 set to be updated
---> Package rhnlib.noarch 0:2.5.49-1.el5 set to be updated
---> Package yum-rhn-plugin.noarch 0:1.6.16-1.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Updating:
rhn-check noarch 1.6.47-1.el5 spacewalk 68 k
rhn-client-tools noarch 1.6.47-1.el5 spacewalk 689 k
rhn-setup noarch 1.6.47-1.el5 spacewalk 122 k
rhn-setup-gnome noarch 1.6.47-1.el5 spacewalk 160 k
rhnlib noarch 2.5.49-1.el5 spacewalk 74 k
yum-rhn-plugin noarch 1.6.16-1.el5 spacewalk 89 k
Transaction Summary
=============================================================================================================================================================
Install 0 Package(s)
Upgrade 6 Package(s)
Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): rhn-check-1.6.47-1.el5.noarch.rpm | 68 kB 00:00
(2/6): rhnlib-2.5.49-1.el5.noarch.rpm | 74 kB 00:00
(3/6): yum-rhn-plugin-1.6.16-1.el5.noarch.rpm | 89 kB 00:00
(4/6): rhn-setup-1.6.47-1.el5.noarch.rpm | 122 kB 00:00
(5/6): rhn-setup-gnome-1.6.47-1.el5.noarch.rpm | 160 kB 00:00
(6/6): rhn-client-tools-1.6.47-1.el5.noarch.rpm | 689 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.7 MB/s | 1.2 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : rhnlib 1/12
Updating : rhn-client-tools 2/12
warning: /etc/sysconfig/rhn/up2date created as /etc/sysconfig/rhn/up2date.rpmnew
Updating : rhn-setup 3/12
Updating : yum-rhn-plugin 4/12
warning: /etc/yum/pluginconf.d/rhnplugin.conf created as /etc/yum/pluginconf.d/rhnplugin.conf.rpmnew
Updating : rhn-check 5/12
Updating : rhn-setup-gnome 6/12
Cleanup : rhn-setup 7/12
Cleanup : yum-rhn-plugin 8/12
Cleanup : rhn-check 9/12
Cleanup : rhn-setup-gnome 10/12
Cleanup : rhn-client-tools 11/12
Cleanup : rhnlib 12/12
duration: 3527(ms)
Installed products updated.
Updated:
rhn-check.noarch 0:1.6.47-1.el5 rhn-client-tools.noarch 0:1.6.47-1.el5 rhn-setup.noarch 0:1.6.47-1.el5 rhn-setup-gnome.noarch 0:1.6.47-1.el5
rhnlib.noarch 0:2.5.49-1.el5 yum-rhn-plugin.noarch 0:1.6.16-1.el5
Complete!
Now we're crossing our fingers:
pfrdep002 ~ :) # yum clean all
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating Red Hat repositories.
Cleaning up Everything
pfrdep002 ~ :) # yum update
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating Red Hat repositories.
epel | 3.7 kB 00:00
epel/primary_db | 3.7 MB 00:00
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-5. Please verify its path and try again
BOUM! It failed :'(
I didn't change any config files! Do you know why it bugs like it?
I tried on a RHEL 6 and it the same problem with 1.6. With Spacewalk 1.4 it works great.
Thanks for your help!
Best regards,
Ludovic
De : spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] De la part de Ludovic BRACHET
Envoyé : mercredi 8 février 2012 17:08
À : spacewalk-list at redhat.com
Objet : [Spacewalk-list] Error : 'NoneType' object is unsubscriptable when I used RHNPUSH
Hi all,
I use Spacewalk 1.6 on a Red Hat Enterprise Linux Server release 6.2 (Santiago).
I have 2 problems.
1)
On the RHEL 6 (which is subscribe on the RHN), I install the "spacewalk-repo-1.6-1.el6.noarch.rpm", and when I update with "yum update", it downloads some rhn* package, then, I have the error "Cannot retrieve repository metadata (repomd.xml)".
To correct it, I must set the parameter to "useNoSSLForPackages=1" instead of "useNoSSLForPackages=0".
Then, I'm able to do a successful "yum update".
It only appears when the repository spacewalk is used then, RHEL downloads some "rhn*" package from it.
2)
I use the command "reposync" to grab the package from the RHN. Then I push the packages with rhnpush.
You can see the command line:
rhnpush --exclude=nexuiz* --exclude=root-doc* --channel=epel6_x64 --server=https://spacewalk/APP --dir=/mnt/local_rhn/x86_64/6/epel/ -u admin -p password -vv -tolerant
The result:
Package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-1.1.2-2.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-1.1.2-2.el6.noarch.rpm
Using POST request
Package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-doc-1.1.2-2.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-doc-1.1.2-2.el6.noarch.rpm
Using POST request
Package /mnt/local_rhn/x86_64/6/epel/jgoodies-looks-2.4.2-1.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package /mnt/local_rhn/x86_64/6/epel/jgoodies-looks-2.4.2-1.el6.noarch.rpm
Using POST request
While running 'packages.channelPackageSubscriptionBySession': caught
<type 'exceptions.TypeError'> : 'NoneType' object is unsubscriptable
Then, the uploading stops and no package appears in the channels.
When I retry and retry to upload, it fails again and again with the same error.
I didn't know what to do next?
I could upload some package one by one and it works but it fails when I try to upload many packages.
I will try to setup a new VM with RHEL6 + Spacewalk 1.5 to try.
3)
Do you know how to increase the limits size of an uploaded package? I must exclude the packages "nexuiz*" because the RHNPUSH says "500 Internal Server Error" when I uploaded it.
Thanks.
Best regards,
Ludovic
________________________________
Ce message contient des informations confidentielles ou appartenant ? Boursorama et est ?tabli ? l'intention exclusive de ses destinataires. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit ?tre pr?alablement autoris?e. Tout message ?lectronique est susceptible d'alt?ration et son int?grit? ne peut ?tre assur?e.
Boursorama d?cline toute responsabilit? au titre de ce message s'il a ?t? modifi? ou falsifi?. Si vous n'?tes pas destinataire de ce message, merci de le d?truire imm?diatement et d'avertir l'exp?diteur de l'erreur de distribution et de la destruction du message.
________________________________
This e-mail contains confidential information or information belonging to Boursorama and is intended solely for the addressees. The unauthorised disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited. E-mails are susceptible to alteration and their integrity cannot be guaranteed. Boursorama shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion.
________________________________
___________________________________
Ce message contient des informations confidentielles ou appartenant à
Boursorama et est établi à l'intention exclusive de ses destinataires.
Toute divulgation, utilisation, diffusion ou reproduction (totale ou
partielle) de ce message, ou des informations qu'il contient, doit être
préalablement autorisée. Tout message électronique est susceptible
d'altération et son intégrité ne peut être assurée. Boursorama
décline toute responsabilité au titre de ce message s'il a été
modifié ou falsifié. Si vous n'êtes pas destinataire de ce message,
merci de le détruire immédiatement et d'avertir l'expéditeur de
l'erreur de distribution et de la destruction du message.
___________________________________
This e-mail contains confidential information or information belonging to
Boursorama and is intended solely for the addressees. The unauthorised
disclosure, use, dissemination or copying (either whole or partial) of this
e-mail, or any information it contains, is prohibited. E-mails are
susceptible to alteration and their integrity cannot be guaranteed.
Boursorama shall not be liable for this e-mail if modified or falsified. If
you are not the intended recipient of this e-mail, please delete it
immediately from your system and notify the sender of the wrong delivery
and the mail deletion.
___________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120213/cb8d28d0/attachment.htm>
More information about the Spacewalk-list
mailing list