Hammer capsule content available-lifecycle-environments is empty

hammer -u <USERNAME> capsule content lifecycle-environments --id 2
[Foreman] Password for <USERNAME>
—|------|-------------

ID NAME ORGANIZATION

> >
—|------|-------------

hammer -u <USERNAME> capsule content available-lifecycle-environments --id 2
[Foreman] Password for <USERNAME>:
—|------|-------------

ID NAME ORGANIZATION

> >
—|------|-------------

George,

Double check that the capsule/smart proxy is associated with an
organization and there are lifecycle environments available to that org.

Thanks,

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

··· On Thu, Apr 7, 2016 at 10:49 PM, George Lim wrote:

hammer -u capsule content lifecycle-environments --id 2
[Foreman] Password for
—|------|-------------

ID NAME ORGANIZATION
 >

—|------|-------------

hammer -u capsule content available-lifecycle-environments --id
2
[Foreman] Password for :
—|------|-------------

ID NAME ORGANIZATION
 >

—|------|-------------


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

I can confirm this as well. Foreman 1.10.3, Katello 2.4.1, hammer 0.5.1.

We create our capsule life-cycle environments using hammer, so we know they
exist. They just don't display.

Hope that helps!

/Mike

··· On Thursday, April 7, 2016 at 10:49:12 PM UTC-4, George Lim wrote: > > hammer -u capsule content lifecycle-environments --id 2 > [Foreman] Password for > ---|------|------------- > ID | NAME | ORGANIZATION > ---|------|------------- > > > > ---|------|------------- > > hammer -u capsule content available-lifecycle-environments --id > 2 > [Foreman] Password for : > ---|------|------------- > ID | NAME | ORGANIZATION > ---|------|------------- > > > > ---|------|------------- > >

Hi John,

I am seeing the same issue:
[root@katello01 log]# hammer capsule list
[Foreman] Password for admin:
—|--------------------|--------------------------------

ID NAME URL
2 capsule01.acme.org https://capsule01.acme.org:9090
1 katello01.acme.org https://katello01.acme.org:9090
-------------------- --------------------------------

[root@katello01 log]# hammer capsule info --id 2
[Foreman] Password for admin:
Id: 2
Name: capsule01.acme.org
URL: https://capsule01.acme.org:9090
Features: Templates, TFTP, DHCP, Puppet, Puppet CA, Pulp Node
Created at: 2016/04/26 22:05:14
Updated at: 2016/04/26 22:05:14

[root@katello01 log]# hammer capsule content
available-lifecycle-environments --id 2
[Foreman] Password for admin:
—|------|-------------

ID NAME ORGANIZATION

> >
—|------|-------------

I verified that the capsule is associated with an organization, and there
are several content views published. I'm at a loss trying to figure out a
starting point for troubleshooting. The only log entry related to the
hammer command is in the foreman production log:

> Started GET
"/katello/api/capsules/2/content/available_lifecycle_environments" for ::1
at 2016-04-26 23:35:31 +0200
2016-04-26 23:35:31 [app] [I] Processing by
Katello::Api::V2::CapsuleContentController#available_lifecycle_environments
as application/json;version=2
2016-04-26 23:35:31 [app] [I] Parameters: {"api_version"=>"v2",
"id"=>"2", "capsule_content"=>{}}
2016-04-26 23:35:31 [app] [I] Authorized user admin(Admin User)
2016-04-26 23:35:32 [app] [I] Rendered
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.1/app/views/katello/api/v2/capsule_content/lifecycle_environments.json.rabl
(197.0ms)
2016-04-26 23:35:32 [app] [I] Completed 200 OK in 228ms (Views: 74.1ms |
ActiveRecord: 129.9ms)

I also tried adding the environments though the web front-end, but that
didn't give the expected result either:

[root@katello01 foreman]# hammer capsule content lifecycle-environments
–id 2
[Foreman] Password for admin:
—|------|-------------

ID NAME ORGANIZATION

> >
—|------|-------------

··· On Friday, April 8, 2016 at 3:19:32 PM UTC+2, John Mitsch wrote: > > George, > > Double check that the capsule/smart proxy is associated with an > organization and there are lifecycle environments available to that org. > > Thanks, > > John Mitsch > Red Hat Engineering > (860)-967-7285 > irc: jomitsch > > On Thu, Apr 7, 2016 at 10:49 PM, George Lim > wrote: > >> hammer -u capsule content lifecycle-environments --id 2 >> [Foreman] Password for >> ---|------|------------- >> ID | NAME | ORGANIZATION >> ---|------|------------- >> > > >> ---|------|------------- >> >> hammer -u capsule content available-lifecycle-environments >> --id 2 >> [Foreman] Password for : >> ---|------|------------- >> ID | NAME | ORGANIZATION >> ---|------|------------- >> > > >> ---|------|------------- >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > >