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

2021-02-05 Thread Avi Miller
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:  on behalf of tommy 
Reply to: "spacewalk-list@redhat.com" 
Date: Friday, 5 February 2021 at 6:58 pm
To: "spacewalk-list@redhat.com" 
Subject: [External] : Re: [Spacewalk-list] Why there are two activation keys in 
my kickstart file ?

Anyone can help me ??



From: spacewalk-list-boun...@redhat.com  On 
Behalf Of tommy
Sent: Friday, February 5, 2021 12:02 PM
To: spacewalk-list@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:image001.jpg@01D6FC52.F293D220]
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

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

2021-02-05 Thread tommy
Anyway, thanks!

 

 

From: spacewalk-list-boun...@redhat.com  On 
Behalf Of Robert Paschedag
Sent: Friday, February 5, 2021 4:28 PM
To: spacewalk-list@redhat.com
Cc: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Why there are two activation keys in my kickstart 
file ?

 

Sorry...I'm not the kickstart expertbut within other project to install 
some redhat servers

via spacewalk (or uyuni) ~ 1 year ago, I always had trouble with the "magic" 
kickstart snippets that were

included (maybe I always did something wrongdon't know).

 

We always uploaded our own kickstart files and this worked for us.

 

This is for now all I can say. Maybe you want to try this. But hopefully some 
other spacewalker can

give you a better advise here.

 

Robert

 

  

Gesendet: Freitag, 05. Februar 2021 um 08:57 Uhr
Von: "tommy" mailto:sz_cui...@163.com> >
An: spacewalk-list@redhat.com  
Betreff: Re: [Spacewalk-list] Why there are two activation keys in my kickstart 
file ?

Anyone can help me ??

 

 

 

From: spacewalk-list-boun...@redhat.com 
  mailto:spacewalk-list-boun...@redhat.com> > On Behalf Of tommy
Sent: Friday, February 5, 2021 12:02 PM
To: spacewalk-list@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.

 

 



___ Spacewalk-list mailing list 
Spacewalk-list@redhat.com   
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

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

2021-02-05 Thread Robert Paschedag
Sorry...I'm not the kickstart expertbut within other project to install some redhat servers

via spacewalk (or uyuni) ~ 1 year ago, I always had trouble with the "magic" kickstart snippets that were

included (maybe I always did something wrongdon't know).

 

We always uploaded our own kickstart files and this worked for us.

 

This is for now all I can say. Maybe you want to try this. But hopefully some other spacewalker can

give you a better advise here.

 

Robert

 


 

Gesendet: Freitag, 05. Februar 2021 um 08:57 Uhr
Von: "tommy" 
An: spacewalk-list@redhat.com
Betreff: Re: [Spacewalk-list] Why there are two activation keys in my kickstart file ?




Anyone can help me ??

 

 

 



From: spacewalk-list-boun...@redhat.com  On Behalf Of tommy
Sent: Friday, February 5, 2021 12:02 PM
To: spacewalk-list@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.

 

 



___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list