[Spacewalk-list] [External] : Re: Why there are two activation keys in my kickstart file ?

Avi Miller avi.miller at oracle.com
Sun Feb 7 20:30:17 UTC 2021


First, I strongly encourage you to name your activation keys instead of using the ones Spacewalk auto-generates. It makes it a lot easier for troubleshooting. :)

Second, that inconsistency is interesting because there are no errata associated with the 143 packages that Spacewalk thinks are available. If you click on the "143" in the table, does Spacewalk provide a list of the packages? I would also suggest manually running "rhn-profile-sync -v" on testol83.tltd.com to see if that resolves the inconsistency.

From: <spacewalk-list-bounces at redhat.com> on behalf of tommy <sz_cuitao at 163.com>
Reply to: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
Date: Saturday, 6 February 2021 at 10:23 pm
To: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] [External] : Re: Why there are two activation keys in my kickstart file ?

1.You mean that 1-296a3f05d95aec9f804024a596acc810  is host-specific one  and (1-fd833f6fb24dbd1f8807f36d434049a4  is generic ?

2.In my env, there is a problem maybe related to the above question:

One os which registered with 1-296a3f05d95aec9f804024a596acc810  appears that there are 143 packages needs update as below:

[cid:image001.jpg at 01D6FDEC.3E6C9160]
But when select the system, you find that the system is up to date like below:

[cid:image002.jpg at 01D6FDEC.3E6C9160]



[cid:image003.jpg at 01D6FDEC.3E6C9160]
Why ???

Thanks.









From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of Avi Miller
Sent: Saturday, February 6, 2021 3:40 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] [External] : Re: Why there are two activation keys in my kickstart file ?

One of them is generic (for Oracle Linux 8). The other is host-specific and is used to rebuild the host, if triggered. It will store the last known package configuration of that host, so if you reprovision it using Spacewalk, that activation key will ensure the same package set is installed.

From: <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> on behalf of tommy <sz_cuitao at 163.com<mailto:sz_cuitao at 163.com>>
Reply to: "spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Date: Friday, 5 February 2021 at 6:58 pm
To: "spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Subject: [External] : Re: [Spacewalk-list] Why there are two activation keys in my kickstart file ?

Anyone can help me ??



From: spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com> <spacewalk-list-bounces at redhat.com<mailto:spacewalk-list-bounces at redhat.com>> On Behalf Of tommy
Sent: Friday, February 5, 2021 12:02 PM
To: spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>
Subject: [Spacewalk-list] Why there are two activation keys in my kickstart file ?

Hi ,everyone:

This is part of the kickstart which is auto produced by spacewalk.

try:  # python 2
    import xmlrpclib
except ImportError:  # python 3
    import xmlrpc.client as xmlrpclib
import shutil
import sys
import os.path

try:
    old_system_id = "/tmp/rhn/systemid"
    new_system_id = "/mnt/sysimage/root/systemid.old"
    tmp_key = "/mnt/sysimage/tmp/key"

    new_keys = "1-fd833f6fb24dbd1f8807f36d434049a4,1-296a3f05d95aec9f804024a596acc810"
    for key in new_keys.split(','):
        if key.startswith('re-'):
            sys.exit(0)

You can see that there are tow keys, but when I create the kickstart, I only choose one key(1-296a3f05d95aec9f804024a596acc810) just like below pic, and the other one(1-fd833f6fb24dbd1f8807f36d434049a4) does not exists in my spacewalk system.

But why the spacewalk produce such a kickstart file ? Why ?

Could you give me some explain ?

Thanks.


[cid:image004.jpg at 01D6FDEC.3E6C9160]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20210207/282112be/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 32636 bytes
Desc: image001.jpg
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20210207/282112be/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 54495 bytes
Desc: image002.jpg
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20210207/282112be/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 35195 bytes
Desc: image003.jpg
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20210207/282112be/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 43175 bytes
Desc: image004.jpg
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20210207/282112be/attachment-0003.jpg>


More information about the Spacewalk-list mailing list