Katello REST API for registering subscription with specific start_date/end_date

Hello all.

I am searching Katello REST API for registering subscription with specific
start_date/end_date (katello_pool?) but cannot find anything about it in
/katello/app/controllers/katello/api/v2/ (only in web interface).

Is it bug/feature or I missed something?

I generate activation_keys from REST API and I have to generate new
subscriptions with specific start_date/end_date, and edit them (renew
end_date etc)…

Waiting for your answer,
Sincerely, Stas Fomin

Good Morning Stas,

We do not allow any editing of dates for subscriptions in Katello. Can
you share a little more detail of what you are trying to do that would
require you to edit a date in a subscription?

-John Mitsch

··· On 12/28/2015 08:12 AM, Stas Fomin wrote: > Hello all. > > I am searching Katello REST API for registering subscription with > specific start_date/end_date (katello_pool?) but cannot find anything > about it in /katello/app/controllers/katello/api/v2/ (only in web > interface). > > Is it bug/feature or I missed something? > > I generate activation_keys from REST API and I have to generate new > subscriptions with specific start_date/end_date, and edit them (renew > end_date etc)... > > Waiting for your answer, > Sincerely, Stas Fomin > -- > You received this message because you are subscribed to the Google > Groups "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-dev+unsubscribe@googlegroups.com > . > For more options, visit https://groups.google.com/d/optout.


John Mitsch
Red Hat Engineering
860-967-7285
irc: jomitsch

if I were a betting man, they are trying to manage custom content or a
third party subscription with katello. Perhaps similar to [1].

– bk

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1151182

··· On 01/04/2016 08:48 AM, John Mitsch wrote: > Good Morning Stas, > > We do not allow any editing of dates for subscriptions in Katello. Can > you share a little more detail of what you are trying to do that would > require you to edit a date in a subscription? > > -John Mitsch > > On 12/28/2015 08:12 AM, Stas Fomin wrote: >> Hello all. >> >> I am searching Katello REST API for registering subscription with >> specific start_date/end_date (katello_pool?) but cannot find anything >> about it in /katello/app/controllers/katello/api/v2/ (only in web >> interface). >> >> Is it bug/feature or I missed something? >> >> I generate activation_keys from REST API and I have to generate new >> subscriptions with specific start_date/end_date, and edit them (renew >> end_date etc)... >> >> Waiting for your answer, >> Sincerely, Stas Fomin >> -- >> You received this message because you are subscribed to the Google >> Groups "foreman-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send >> an email to foreman-dev+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. > > -- > John Mitsch > Red Hat Engineering > 860-967-7285 > irc: jomitsch > > -- > You received this message because you are subscribed to the Google > Groups "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-dev+unsubscribe@googlegroups.com > . > For more options, visit https://groups.google.com/d/optout.

Hello all!

Thank you for the replies!

…Can you share a little more detail of what you are trying to do that would
require you to edit a date in a subscription?…

…if I were a betting man, they are trying to manage custom content or a

third party subscription with katello…

Yes, I am trying to integrate Katello (+ Foreman/Pulp/Candlepin) with our
LMS (License Management Systems) to distribute by subscriptions some custom
RPM content.

That is

··· -

distribute our “third-party product” by RPM repository on Katello/Pulp.

subscribe customers using subscription-manager and activation keys
generated by Katello.

So I tried to align license periods (start/end/termination dates) from
licenses in our LMS and subscriptions in Katello, providing “License
termination or prolongation” and so on.

I was looking to Foreman/Candlepin DBMS scheme and was hopping that Katello
REST API is complete enough to implement all this. Also I was hoping that
Katello is used in RHS6 subscriptions and all this basic subscription
mechanism must be working…

Unfortunately, I have not found good description of Katello subscription
architecture, so I have dig into DBMS schemes and sources… — please, let me
know if such documentation/slides/something exists.

On Monday, January 4, 2016 at 4:48:16 PM UTC+3, John Mitsch wrote:

Good Morning Stas,

We do not allow any editing of dates for subscriptions in Katello. Can you
share a little more detail of what you are trying to do that would require
you to edit a date in a subscription?

-John Mitsch

On 12/28/2015 08:12 AM, Stas Fomin wrote:

Hello all.

I am searching Katello REST API for registering subscription with specific
start_date/end_date (katello_pool?) but cannot find anything about it in
/katello/app/controllers/katello/api/v2/ (only in web interface).

Is it bug/feature or I missed something?

I generate activation_keys from REST API and I have to generate new
subscriptions with specific start_date/end_date, and edit them (renew
end_date etc)…

Waiting for your answer,
Sincerely, Stas Fomin

You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.


John Mitsch
Red Hat Engineering
860-967-7285
irc: jomitsch

What you want to do is possible in candlepin but doesn't exist today in katello. My suggestion would be to explore the candlepin API[1] and ask questions on #candlepin. There was once code in katello to do some of what you are thinking (creating custom subscriptions and exporting a manifest with those subs with customized aspects) but it is no longer there.

Depending on the level of development you wish to do, manipulating candlepin directly (to create subscriptions, etc.) is going to be simpler than writing a katello plugin to handle this.

Good luck!

[1] http://www.candlepinproject.org/docs/candlepin/api.html

··· ----- Original Message ----- > > > Hello all! > > Thank you for the replies! > > …Can you share a little more detail of what you are trying to do that would > require you to edit a date in a subscription?… > > …if I were a betting man, they are trying to manage custom content or a > > third party subscription with katello… > > Yes, I am trying to integrate Katello (+ Foreman/Pulp/Candlepin) with our > LMS (License Management Systems) to distribute by subscriptions some custom > RPM content. > > That is > > - > > distribute our “third-party product” by RPM repository on Katello/Pulp. > - > > subscribe customers using subscription-manager and activation keys > generated by Katello. > > > So I tried to align license periods (start/end/termination dates) from > licenses in our LMS and subscriptions in Katello, providing “License > termination or prolongation” and so on. > > I was looking to Foreman/Candlepin DBMS scheme and was hopping that Katello > REST API is complete enough to implement all this. Also I was hoping that > Katello is used in RHS6 subscriptions and all this basic subscription > mechanism must be working… > > Unfortunately, I have not found good description of Katello subscription > architecture, so I have dig into DBMS schemes and sources… — please, let me > know if such documentation/slides/something exists. > > > On Monday, January 4, 2016 at 4:48:16 PM UTC+3, John Mitsch wrote: > > > > Good Morning Stas, > > > > We do not allow any editing of dates for subscriptions in Katello. Can you > > share a little more detail of what you are trying to do that would require > > you to edit a date in a subscription? > > > > -John Mitsch > > > > On 12/28/2015 08:12 AM, Stas Fomin wrote: > > > > Hello all. > > > > I am searching Katello REST API for registering subscription with specific > > start_date/end_date (katello_pool?) but cannot find anything about it in > > /katello/app/controllers/katello/api/v2/ (only in web interface). > > > > Is it bug/feature or I missed something? > > > > I generate activation_keys from REST API and I have to generate new > > subscriptions with specific start_date/end_date, and edit them (renew > > end_date etc)... > > > > Waiting for your answer, > > Sincerely, Stas Fomin > > -- > > You received this message because you are subscribed to the Google Groups > > "foreman-dev" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to foreman-dev...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. > > > > > > -- > > John Mitsch > > Red Hat Engineering > > 860-967-7285 > > irc: jomitsch > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. >