[katello-devel] Registering pre-registered system (uh)

Cliff Perry cperry at redhat.com
Mon Dec 10 14:37:55 UTC 2012


On 12/10/2012 02:20 PM, Bryan Kearney wrote:
> On 12/10/2012 09:14 AM, Lukas Zapletal wrote:
>> Okay, strange subject but...
>>
>> Well, I have added new system using CLI/UI with name "XYZ" and then
>> registered a system using rhsm under this name. New system entry is
>> created while I'd expected the one I have created is
>> reused.
>>
>> Is this correct behavior?
>
> We do have a duplicate issue. The only way to work around this is to use
> the UUID during registration, which will pull down the latest version of
> the consumer with the same UUID.
>
Any way to make this happen automagically? (my guess is new code in both 
client and server).

  - I don't quite know/understand why you would allow to manually create 
a system profile within UI, prior to the attempted registration of said 
system. But the correct way today to do this, seems to be by documenting 
the usage of --consumerid at time of registering system with rhsm.

>>
>> I'd expect the entry in Katello to be reused. That would question the
>> New System button in Katello completely.
>>
>> ps - the same for hostname as name
>>
>
> We have the same "duplicate system" issue which spacewalk has,
> unfortunately.
Yes. I know today the rhsm client code does a good job in trying to 
prevent duplicates.

I guess, the biggest kicker is, what is the use case in allowing the 
creation in UI prior to registration. And then if that use case is 
valid, is there a way to get it to do the right thing and not create a 
duplicate.

Cliff

>
> -- bk
>
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel




More information about the katello-devel mailing list