Hi, I'm trying the kickstarted client to auto-register using the Activation Key feature, so after I created the profile with activation key and loaded the rpms from following source( http://spacewalk.redhat.com/yum/2.0/RHEL/6/x86_64/) to a custom channel which is also linked to that key, the kickstart works fine but they client aren't subscribe/registered.
Any clue and logs to check? [root@localhost ~]# cat ks-rhn-post.log /tmp/ks-script-u_8nYC: line 100: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT: No such file or directory Can't open /etc/sysconfig/rhn/up2date: No such file or directory. --2013-10-15 21:36:03-- http://192.168.152.129/download/package/4a267281b8ff72b90212e68a0e5e4d0235b1dcd7/0/3/6761/libxml2-python-2.7.6-12.el6_4.1.x86_64.rpm Connecting to 192.168.152.129:80... connected. HTTP request sent, awaiting response... 200 OK Length: 328816 (321K) [application/octet-stream] Saving to: `/tmp/rhn_rpms/optional/libxml2-python-2.7.6-12.el6_4.1.x86_64.rpm' 0K .......... .......... .......... .......... .......... 15% 8.67M 0s 50K .......... .......... .......... .......... .......... 31% 15.2M 0s 100K .......... .......... .......... .......... .......... 46% 12.4M 0s 150K .......... .......... .......... .......... .......... 62% 6.16M 0s 200K .......... .......... .......... .......... .......... 77% 7.39M 0s 250K .......... .......... .......... .......... .......... 93% 7.78M 0s 300K .......... .......... . 100% 16.5M=0.03s 2013-10-15 21:36:03 (9.00 MB/s) - `/tmp/rhn_rpms/optional/libxml2-python-2.7.6-12.el6_4.1.x86_64.rpm' saved [328816/328816] --2013-10-15 21:36:03-- http://192.168.152.129/download/package/a7e8dea6f6ea94b6115e9a4b6cca64de958df23a/0/3/3093/pyOpenSSL-0.10-2.el6.x86_64.rpm Reusing existing connection to 192.168.152.129:80. HTTP request sent, awaiting response... 200 OK Length: 216752 (212K) [application/octet-stream] Saving to: `/tmp/rhn_rpms/optional/pyOpenSSL-0.10-2.el6.x86_64.rpm' 0K .......... .......... .......... .......... .......... 23% 6.64M 0s 50K .......... .......... .......... .......... .......... 47% 4.40M 0s 100K .......... .......... .......... .......... .......... 70% 6.95M 0s 150K .......... .......... .......... .......... .......... 94% 12.8M 0s 200K .......... . 100% 1.75M=0.04s 2013-10-15 21:36:03 (5.77 MB/s) - `/tmp/rhn_rpms/optional/pyOpenSSL-0.10-2.el6.x86_64.rpm' saved [216752/216752] --2013-10-15 21:36:03-- http://192.168.152.129/download/package/0f3e1f6eb4ee6824ad1f972bebb8595684e519a7/0/3/7972/rhnlib-2.5.65-1.el6.noarch.rpm Reusing existing connection to 192.168.152.129:80. HTTP request sent, awaiting response... 200 OK Length: 65208 (64K) [application/octet-stream] Saving to: `/tmp/rhn_rpms/optional/rhnlib-2.5.65-1.el6.noarch.rpm' 0K .......... .......... .......... .......... .......... 78% 10.2M 0s 50K .......... ... 100% 2.41M=0.01s 2013-10-15 21:36:04 (6.02 MB/s) - `/tmp/rhn_rpms/optional/rhnlib-2.5.65-1.el6.noarch.rpm' saved [65208/65208] FINISHED --2013-10-15 21:36:04-- Downloaded: 3 files, 596K in 0.08s (7.19 MB/s) warning: /tmp/rhn_rpms/optional/pyOpenSSL-0.10-2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY warning: /tmp/rhn_rpms/optional/rhnlib-2.5.65-1.el6.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 863a853d: NOKEY error: Failed dependencies: libxml2 = 2.7.6-12.el6_4.1 is needed by libxml2-python-2.7.6-12.el6_4.1.x86_64 Can't open /etc/sysconfig/rhn/up2date: No such file or directory. cp: cannot stat `/tmp/ks-tree-copy/*': No such file or directory --2013-10-15 21:36:04-- http://192.168.152.129/pub/RHN-ORG-TRUSTED-SSL-CERT Connecting to 192.168.152.129:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5316 (5.2K) [text/plain] Saving to: `/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT' 0K ..... 100% 43.1M=0s 2013-10-15 21:36:04 (43.1 MB/s) - `/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT' saved [5316/5316] Can't do inplace edit: /etc/sysconfig/rhn/allowed-actions is not a regular file. /tmp/ks-script-u_8nYC: line 137: rhnreg_ks: command not found /tmp/ks-script-u_8nYC: line 143: rhn_check: command not found on cobbler.ks begin cobbler snippet # set default MOTD echo "Kickstarted on $(date +'%Y-%m-%d')" >> /etc/motd # begin Red Hat management server registration mkdir -p /usr/share/rhn/ wget http://192.168.152.129/pub/RHN-ORG-TRUSTED-SSL-CERT -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT perl -npe 's/RHNS-CA-CERT/RHN-ORG-TRUSTED-SSL-CERT/g' -i /etc/sysconfig/rhn/* if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release ]; then rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release fi key="" if [ -f /tmp/key ]; then key=`cat /tmp/key` fi if [ $key ]; then rhnreg_ks --serverUrl=https://192.168.152.129/XMLRPC--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=$key,3-6a740efa6397acfb6e0a51aea45ef9e4,3-dee44aee5d49c58f764a539005973fde else rhnreg_ks --serverUrl=https://192.168.152.129/XMLRPC--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=3-6a740efa6397acfb6e0a51aea45ef9e4,3-dee44aee5d49c58f764a539005973fde fi # end Red Hat management server registration # end cobbler snippet rhn_check
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
