[Spacewalk-list] Freshly installed system
John Hodrien
J.H.Hodrien at leeds.ac.uk
Thu Jan 22 15:19:10 UTC 2009
Right. I've got to the stage where I can install a system using spacewalk
0.4. I've just build an f9 spacewalk-koan package and added that to my
spacewalk channel.
A system already registered with spacewalk was selected through the webui, I
selected Provisioning, selected my only kickstart profile, and clicked
"schedule kickstart and finish".
Off it went.
The rhnreg_ks failed. It looked like it was trying to do:
rhnreg_ks --serverUrl=https://spacewalkserver.localdomain/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--activationkey=1-6dc85002e07027f9dbc7000f9118d6f6,1-689fc466371229946694b241624470a7
The first activationkey I was assuming was a system specific one. Trying from
the command line it gave me:
# rhnreg_ks --serverUrl=https://spacewalkserver.localdomain/XMLRPC
# --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
# --activationkey=1-6dc85002e07027f9dbc7000f9118d6f6,1-689fc466371229946694b241624470a7
An error has occurred:
<type 'exceptions.IndexError'>
See /var/log/up2date for more information
Snipping an activationkey gave:
# rhnreg_ks --serverUrl=https://spacewalkserver.localdomain/XMLRPC
# --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
# --activationkey=1-6dc85002e07027f9dbc7000f9118d6f6 -vvvvv
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
Error Message:
Could not find token '1-6dc85002e07027f9dbc7000f9118d6f6'
Error Class Code: 60
Error Class Info: Invalid system registration token
Using the other key, the system registered (although as a new machine, not
overwriting the existing record in spacewalk).
# rhnreg_ks --serverUrl=https://spacewalkserver.localdomain/XMLRPC
# --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
# --activationkey=1-689fc466371229946694b241624470a7 -vvvvv
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
ERROR: refreshing remote package list for System Profile
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))
As it said, the package list was empty. So I tried:
rhn-profile-sync
This fixed the package list.
Deleted the machine from spacewalk, and reregistered:
# rhnreg_ks --serverUrl=https://spacewalkserver.localdomain/XMLRPC
# --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
# --activationkey=1-689fc466371229946694b241624470a7 -vvvvv --force
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))
Machine is registered, and 215 of the 2.5k packages are listed.
rhn-profile-sync fixed it up again.
IP Address is listed in the webui as "0", although this doesn't appear to
happen everytime, sometimes this comes through correctly.
There's also some Internal Server Errors lurking that appear to get worse the
longer the spacewalk server is up. When they return I'll try and track down
what's going on.
jh
--
"God is a comedian playing to an audience too afraid to laugh."
-- Voltaire
More information about the Spacewalk-list
mailing list