[katello-devel] Different params for unsubscription in RHSM and Katello CLI
Ivan Nečas
inecas at redhat.com
Wed Jan 18 10:25:55 UTC 2012
So there are 2 ways how to unsubscribe in CP:
1. DELETE
"/candlepin/consumers/d4b32e09-4bab-4fe2-a98b-ce7ec96cb8cb/certificates/6444937435662822417"
(used by subscription-manager unsubscribe --serial)
AND
2. DELETE
/candlepin/consumers/d4b32e09-4bab-4fe2-a98b-ce7ec96cb8cb/entitlements/4028fa8134f045a10134f048a0ed0026
(used by katello unsubscribe)
AND
3. DELETE
/candlepin/consumers/d4b32e09-4bab-4fe2-a98b-ce7ec96cb8cb/entitlements
(used by subscription-manager unsubscribe --all)
I don't know what's the semantic difference between 1. and 2. (I would
vote for having only one option here, but maybe there is something I'm
missing) Any explanation welcomed.
So adding support for unsubscribing by serial should not be problem
(just change the API call in case serial is provided).
We should also provide unsubscribe --all call in katello CLI, mapped to
3. call.
-- Ivan
On 01/18/2012 08:46 AM, Lukas Zapletal wrote:
> It's because of Candlepin's API I guess.
>
> You are providing a serial when unsubscribing. This gives you better
> flexibility of choosing which one should go.
>
> If possible leave the option there.
>
> LZ
>
> On Tue, Jan 17, 2012 at 11:12:38PM +0100, Martin Bacovsky wrote:
>> Hi,
>>
>> I found out that params needed to unsubscribe system in Katello CLI
>> and RHSM differs:
>>
>> CLI: system unsubscribe --org ACME_Corporation --name
>> mbacovsk-test1.redhat.com --pool=ff80808134cde4dc0134d1ac03290027
>> (the --pool means in fact entitlement, it will be fixed)
>> RHSM: subscription-manager unsubscribe --serial=<serial>
>>
>> CLI (as well as Candlepin API) uses entitlementId while RHSM uses
>> serial. I was curious why is the difference, shouldn't it be
>> unified?
>>
>> Regards,
>>
>> Martin
>>
>> _______________________________________________
>> katello-devel mailing list
>> katello-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/katello-devel
--
Regards,
Ivan Necas
Red Hat Czech s.r.o. Brno
More information about the katello-devel
mailing list