[Spacewalk-list] Kickstart Auto Client Registaration

Net Warrior netwarrior863 at gmail.com
Thu Nov 14 18:07:03 UTC 2013


Did that and I see the same files under  /root with the same errors
and the temporal scripts under /tmp with the same errors, no more
verbose than before.

the last lines of ks-rhn-post.log
FINISHED --2013-11-14 12:30:36--

Downloaded: 3 files, 596K in 0.05s (11.1 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-11-14 12:30:36--  http://spacewalk/pub/RHN-ORG-TRUSTED-SSL-CERT
Resolving spacewalk... 128.2.101.107
Connecting to spacewalk|128.2.101.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5217 (5.1K) [text/plain]
Saving to: `/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT'

     0K .....                                                 100% 25.6M=0s

2013-11-14 12:30:36 (25.6 MB/s) -
`/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT' saved [5217/5217]

Can't open /etc/sysconfig/rhn/*: No such file or directory.
/tmp/ks-script-m2hytA: line 135: rhnreg_ks: command not found
/tmp/ks-script-m2hytA: line 141: rhn_check: command not found

Under tmp those packages that could not be installed.

[root at slnxserver ~]# ls /tmp/rhn_rpms/optional/
libxml2-python-2.7.6-12.el6_4.1.x86_64.rpm
pyOpenSSL-0.10-2.el6.x86_64.rpm  rhnlib-2.5.65-1.el6.noarch.rpm

Still do not undestand in which part of the process the rhn-xxx
packages are installed.
I can see from the script in /tmp that the certificate is copied, then
it tries to install by calling
rhnreg_ks but obviously the package is not installed, still cannot
realize what the problem is.


# begin Red Hat management server registration
mkdir -p /usr/share/rhn/
wget http://spacewalk/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


rhnreg_ks --serverUrl=https://spacewalk/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--activationkey=1-c3d592fc62a5eec7a23464fd109d8cb6,1-02e7348b884906689e4b29cc2b834a48,1-e57b50e187c3caafda18a1a90224e75a
fi


Thanks for your time and support
Regards.

2013/11/14, Lupin Deterd <lupindeterd at gmail.com>:
> No, under KS Profile->Kickstart Details, check the
> Log custom post script
> Log custom pre script
> Preserve ks.cfg
>
> and under KS Profile->Systems Details->Troubleshooting
> Enabled debugging on up2date/yum
>
> the later debug on will allow you to see what's going on during kickstart
> on client side.
>
>
> On Fri, Nov 15, 2013 at 12:33 AM, Net Warrior
> <netwarrior863 at gmail.com>wrote:
>
>> I can see the GPG asociated to the ks,
>> >>Did you enable the logging of your ks?
>>
>> How do I do that? Under System Details I have, Enable Spacewlk
>> Configuration Management, Enable Spacewalk Remote Command,  those options
>> are unchecked , and in Spacewalk Profile  I checked Delete the existing
>> system profile and create a new system profile  are those the  related
>> options?
>>
>>
>> Thanks for your time and support.
>> Regards.
>>
>>
>> 2013/11/13 Lupin Deterd <lupindeterd at gmail.com>
>>
>>> Did you enable the logging of your ks? Did you link the gpg keys of your
>>> child channel to your ks profile? It will not install packages if you
>>> didn't add it there.
>>>
>>>
>>> On Thu, Nov 14, 2013 at 2:25 AM, Net Warrior
>>> <netwarrior863 at gmail.com>wrote:
>>>
>>>> Hi Lupin.
>>>>
>>>> During install I get the same error, packages does not exist, I
>>>> includes
>>>> as you suggested those packages in the package profile and also under
>>>> operating system, checked the spacewalk-repository and epe-l as well.
>>>>
>>>> Any way, in the profile package section it read:
>>>> Note: only packages available in your Enterprise Linux install tree
>>>> should be specified here. To install packages available in Spacewalk
>>>> software channels, please associate an appropriate activation key with
>>>> this
>>>> kickstart profile in the Activation Keys tab.
>>>>
>>>> I give it a try also, created an activation key and asociated to the
>>>> profile, and same error, package do not exists.
>>>>
>>>> Thanks for your time and support
>>>> Regards.
>>>>
>>>>
>>>>
>>>> 2013/11/13 Lupin Deterd <lupindeterd at gmail.com>
>>>>
>>>>> I have the following packages on my ks profile.
>>>>>
>>>>>
>>>>> @Base
>>>>> rhn-setup
>>>>> osad
>>>>> rhncfg
>>>>> rhncfg-actions
>>>>> rhncfg-client
>>>>> wget
>>>>> perl
>>>>>
>>>>> with spacewalk-client and epel as child channels to solve the deps.
>>>>>
>>>>> Hth,
>>>>>
>>>>> Lupin
>>>>>
>>>>>
>>>>> On Wed, Nov 13, 2013 at 12:19 AM, Net Warrior
>>>>> <netwarrior863 at gmail.com>wrote:
>>>>>
>>>>>> That's what I did, still getting the same  error.
>>>>>>
>>>>>> In the profile, under operating system I check the spacewalk
>>>>>> repository only which is a child channel of the main Centos-x64
>>>>>> channel,
>>>>>> left unchecked  the other child channels,  to the profile there  is
>>>>>> also
>>>>>> associated the activation key which has te rest of the channels like
>>>>>> centos-update and epel, under profile also, in the  profile software
>>>>>> properties I also have
>>>>>>
>>>>>> @ Base ( added by default )
>>>>>> postfix
>>>>>> nfs-utils
>>>>>> ksh
>>>>>> (Adding the rhn-setup or spacewalk-client group  in here gives a
>>>>>> package / group not found )
>>>>>>
>>>>>> I'm I missing something else?
>>>>>> Thanks for your time and support.
>>>>>>
>>>>>>
>>>>>> 2013/11/10 Lupin Deterd <lupindeterd at gmail.com>
>>>>>>
>>>>>>> Don't put your registration packages(rhn-setup) on activation key,
>>>>>>> add in ks profile portion.
>>>>>>>
>>>>>>>
>>>>>>> On Sunday, November 10, 2013, Net Warrior wrote:
>>>>>>>
>>>>>>>>  El 09/11/13 16:29, Lupin Deterd escribió:
>>>>>>>>
>>>>>>>>> hello,
>>>>>>>>>
>>>>>>>>> you need rhn-setup packages on your ks profile packages.
>>>>>>>>>
>>>>>>>>> Make sure it is able to resolve all the dependecies of the
>>>>>>>>> packages
>>>>>>>>> that you install for registtion.
>>>>>>>>>
>>>>>>>>> I have the same issue and was resolve by adding epel and
>>>>>>>>> spacewalk-client channel on my ks profile.
>>>>>>>>>
>>>>>>>>> cheers
>>>>>>>>> lupin
>>>>>>>>>
>>>>>>>>> On Saturday, November 9, 2013, Net Warrior wrote:
>>>>>>>>>
>>>>>>>>>     Hi guys.
>>>>>>>>>
>>>>>>>>>     I'm   having some issues while trying to register a client
>>>>>>>>> over
>>>>>>>>>     kickstart methood, the client is not registered, and I do not
>>>>>>>>> know why
>>>>>>>>>     is complaining about a package depenency when the package was
>>>>>>>>>     dowloaded already.
>>>>>>>>>
>>>>>>>>>     I tryied include the package a part of the software, tried
>>>>>>>>> include
>>>>>>>>>     both, libxml-python and libxlm but same error, the last error
>>>>>>>>> says
>>>>>>>>>     "rhnreg_ks not found" that's part of the code that is
>>>>>>>>> generated
>>>>>>>>>     automatically ( the kickstart ) where I can see how the
>>>>>>>>> registration
>>>>>>>>>     is preformed, but I do not see the package that contain the
>>>>>>>>> command is
>>>>>>>>>     downloaded somewhere. I only see that the only package that's
>>>>>>>>> is want
>>>>>>>>>     to be installed is rhnlib.
>>>>>>>>>
>>>>>>>>>     Any hints on this will really appreciated, maybe I not
>>>>>>>>> following the
>>>>>>>>>     right procedure and of course I'm missing something.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>     Connecting to spacewalk|128.2.101.107|: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%
>>>>>>>>>     11.8M 0s
>>>>>>>>>         50K .......... .......... .......... .......... ..........
>>>>>>>>> 31%
>>>>>>>>>     11.0M 0s
>>>>>>>>>        100K .......... .......... .......... .......... ..........
>>>>>>>>> 46%
>>>>>>>>>     10.3M 0s
>>>>>>>>>        150K .......... .......... .......... .......... ..........
>>>>>>>>> 62%
>>>>>>>>>     11.3M 0s
>>>>>>>>>        200K .......... .......... .......... .......... ..........
>>>>>>>>> 77%
>>>>>>>>>     10.9M 0s
>>>>>>>>>        250K .......... .......... .......... .......... ..........
>>>>>>>>> 93%
>>>>>>>>>     11.3M 0s
>>>>>>>>>        300K .......... .......... .   100% 10.9M=0.03s
>>>>>>>>>
>>>>>>>>>     2013-11-07 18:26:11 (11.1 MB/s) -
>>>>>>>>>     `/tmp/rhn_rpms/optional/libxml2-python-2.7.6-12.el6_4.
>>>>>>>>> 1.x86_64.rpm'
>>>>>>>>>     saved [328816/328816]
>>>>>>>>>
>>>>>>>>>     --2013-11-07 18:26:11--
>>>>>>>>>     http://spacewalk/download/package/
>>>>>>>>> 47afc36f888ddfc2450660e6ee490c8700928b5e/0/1/17834/rhnlib-2.
>>>>>>>>> 5.65-1.el6.noarch.rpm
>>>>>>>>>     Reusing existing connection to spacewalk: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%
>>>>>>>>>     11.6M 0s
>>>>>>>>>         50K .......... ...  100% 11.4M=0.005s
>>>>>>>>>
>>>>>>>>>     2013-11-07 18:26:11 (11.6 MB/s) -
>>>>>>>>>     `/tmp/rhn_rpms/optional/rhnlib-2.5.65-1.el6.noarch.rpm' saved
>>>>>>>>>     [65208/65208]
>>>>>>>>>
>>>>>>>>>     --2013-11-07 18:26:11--
>>>>>>>>>     http://spacewalk/download/package/
>>>>>>>>> 2c1c80089288e8f2ef90ed729d798fe0bd67b980/0/1/7256/pyOpenSSL-
>>>>>>>>> 0.10-2.el6.x86_64.rpm
>>>>>>>>>     Reusing existing connection to spacewalk: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%
>>>>>>>>>     11.6M 0s
>>>>>>>>>         50K .......... .......... .......... .......... ..........
>>>>>>>>> 47%
>>>>>>>>>     10.9M 0s
>>>>>>>>>        100K .......... .......... .......... .......... ..........
>>>>>>>>> 70%
>>>>>>>>>     10.2M 0s
>>>>>>>>>        150K .......... .......... .......... .......... ..........
>>>>>>>>> 94%
>>>>>>>>>     11.2M 0s
>>>>>>>>>        200K .......... .  100% 11.3M=0.02s
>>>>>>>>>
>>>>>>>>>     2013-11-07 18:26:11 (11.0 MB/s) -
>>>>>>>>>     `/tmp/rhn_rpms/optional/pyOpenSSL-0.10-2.el6.x86_64.rpm' saved
>>>>>>>>>     [216752/216752]
>>>>>>>>>
>>>>>>>>>     FINISHED --2013-11-07 18:26:11--
>>>>>>>>>     Downloaded: 3 files, 596K in 0.05s (11.1 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 op     Spacewalk-list at redhat.com <javascript:;>
>>>>>>>>>
>>>>>>>>>     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
>>>>>>>>>
>>>>>>>> I did that, maybe I'm missing somthing else, I found similar cases
>>>>>>>> on the list, I tried most of theirs suggestions but still having the
>>>>>>>> same
>>>>>>>> error.
>>>>>>>> I have the activation key asociated to the child channels including
>>>>>>>> the centos updates , epel and spacewalk client, I also checked
>>>>>>>> under
>>>>>>>> operating system options those channels eventhough I found that are
>>>>>>>> overrriden by the activation key but I did it anyway just to give it
>>>>>>>> a try.
>>>>>>>> I also added the packages in the ks packages section, where I also
>>>>>>>> install for example nfs-utils package which I use to copy some
>>>>>>>> config files
>>>>>>>> during the ks process over nfs, that goes fine, the package is
>>>>>>>> installed
>>>>>>>> and I can make the copy.
>>>>>>>>
>>>>>>>> If I add the @space walk group I get that the group does not exist,
>>>>>>>> If I add the individuals packages, like rhn-clients and the like, (
>>>>>>>> also
>>>>>>>> found that suggestion on the list )  during the installation I get
>>>>>>>> the
>>>>>>>> error that the packages cannot be found.
>>>>>>>>
>>>>>>>> So, I'm lost, maybe I'm missing something else.
>>>>>>>>
>>>>>>>> Thanks for your time and support.
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>




More information about the Spacewalk-list mailing list