No hosts show up under the 'Hosts -> All Hosts' panel on katello host

Hi all.

I've setup a new katello host for testing in our environment. There are a
couple of Products added, and repos assigned; syncing the repos, and other
functionality appears to be working fine.

I have a test host added using the following command: puppet agent -t -d
–server <katello.host>

I see the host successfully connecting, and sending facts in the foreman
production.log, and I see the host entry in the database. However, when I
browse to the 'All Hosts' page on the web portal, nothing shows up. If I
look under the Hosts > Operating Systems, or Hosts > Architecture page, I
see a '2' under the Hosts column (the katello host itself, and my test VM,
I assume). Is there any other log that I can check to see if there's an
error? I do not see any errors being logged to the foreman logs.

From production.log:

> Started GET "/node/salmanlinuxvm.nj01?format=yml" for 10.60.52.12 at
2016-02-03 12:14:05 -0500
2016-02-03 12:14:05 [app] [I] Processing by HostsController#externalNodes
as YML
2016-02-03 12:14:05 [app] [I] Parameters: {"name"=>"salmanlinuxvm.nj01"}
2016-02-03 12:14:05 [app] [I] Rendered text template (0.0ms)
2016-02-03 12:14:05 [app] [I] Completed 200 OK in 76ms (Views: 0.7ms |
ActiveRecord: 7.8ms)
2016-02-03 12:14:06 [app] [I]
>
> Started POST "/api/hosts/facts" for 10.60.52.12 at 2016-02-03 12:14:06
-0500
2016-02-03 12:14:06 [app] [I] Processing by Api::V2::HostsController#facts
as JSON
2016-02-03 12:14:06 [app] [I] Parameters: {"facts"=>"[FILTERED]",
"name"=>"salmanlinuxvm.nj01", "certname"=>"salmanlinuxvm.nj01",
"apiv"=>"v2", :host=>{"name"=>"salmanlinuxvm.nj01",
"certname"=>"salmanlinuxvm.nj01"}}
2016-02-03 12:14:06 [app] [I] Import facts for 'salmanlinuxvm.nj01'
completed. Added: 0, Updated: 5, Deleted 0 facts
2016-02-03 12:14:06 [app] [I] Completed 201 Created in 119ms (Views: 4.1ms
> ActiveRecord: 0.0ms)
2016-02-03 12:14:06 [app] [I]
>
> Started GET "/node/salmanlinuxvm.nj01?format=yml" for 10.60.52.12 at
2016-02-03 12:14:06 -0500
2016-02-03 12:14:06 [app] [I] Processing by HostsController#externalNodes
as YML
2016-02-03 12:14:06 [app] [I] Parameters: {"name"=>"salmanlinuxvm.nj01"}
2016-02-03 12:14:06 [app] [I] Rendered text template (0.0ms)
2016-02-03 12:14:06 [app] [I] Completed 200 OK in 81ms (Views: 0.6ms |
ActiveRecord: 9.2ms)
2016-02-03 12:14:06 [app] [I]
>
> Started POST "/api/reports" for 10.60.52.12 at 2016-02-03 12:14:06 -0500
2016-02-03 12:14:06 [app] [I] Processing by
Api::V2::ReportsController#create as JSON
2016-02-03 12:14:06 [app] [I] Parameters: {"report"=>"[FILTERED]",
"apiv"=>"v2"}
2016-02-03 12:14:06 [app] [I] processing report for salmanlinuxvm.nj01
2016-02-03 12:14:06 [app] [I] Imported report for salmanlinuxvm.nj01 in
0.02 seconds
2016-02-03 12:14:06 [app] [I] Rendered api/v2/reports/create.json.rabl
(7.4ms)
2016-02-03 12:14:06 [app] [I] Completed 201 Created in 49ms (Views: 7.6ms |
ActiveRecord: 11.8ms)

Check your Organization / Location :slight_smile:

You can set default ones under Administer --> Settings

Sean

··· On Wed, Feb 3, 2016 at 5:22 PM, salman b wrote:

Hi all.

I’ve setup a new katello host for testing in our environment. There are a
couple of Products added, and repos assigned; syncing the repos, and other
functionality appears to be working fine.

I have a test host added using the following command: puppet agent -t -d
–server <katello.host>

I see the host successfully connecting, and sending facts in the foreman
production.log, and I see the host entry in the database. However, when I
browse to the ‘All Hosts’ page on the web portal, nothing shows up. If I
look under the Hosts > Operating Systems, or Hosts > Architecture page, I
see a ‘2’ under the Hosts column (the katello host itself, and my test VM,
I assume). Is there any other log that I can check to see if there’s an
error? I do not see any errors being logged to the foreman logs.

From production.log:

Started GET “/node/salmanlinuxvm.nj01?format=yml” for 10.60.52.12 at
2016-02-03 12:14:05 -0500
2016-02-03 12:14:05 [app] [I] Processing by HostsController#externalNodes
as YML
2016-02-03 12:14:05 [app] [I] Parameters: {“name”=>“salmanlinuxvm.nj01”}
2016-02-03 12:14:05 [app] [I] Rendered text template (0.0ms)
2016-02-03 12:14:05 [app] [I] Completed 200 OK in 76ms (Views: 0.7ms |
ActiveRecord: 7.8ms)
2016-02-03 12:14:06 [app] [I]

Started POST “/api/hosts/facts” for 10.60.52.12 at 2016-02-03 12:14:06
-0500
2016-02-03 12:14:06 [app] [I] Processing by Api::V2::HostsController#facts
as JSON
2016-02-03 12:14:06 [app] [I] Parameters: {“facts”=>"[FILTERED]",
“name”=>“salmanlinuxvm.nj01”, “certname”=>“salmanlinuxvm.nj01”,
“apiv”=>“v2”, :host=>{“name”=>“salmanlinuxvm.nj01”,
“certname”=>“salmanlinuxvm.nj01”}}
2016-02-03 12:14:06 [app] [I] Import facts for 'salmanlinuxvm.nj01’
completed. Added: 0, Updated: 5, Deleted 0 facts
2016-02-03 12:14:06 [app] [I] Completed 201 Created in 119ms (Views: 4.1ms
ActiveRecord: 0.0ms)
2016-02-03 12:14:06 [app] [I]

Started GET “/node/salmanlinuxvm.nj01?format=yml” for 10.60.52.12 at
2016-02-03 12:14:06 -0500
2016-02-03 12:14:06 [app] [I] Processing by HostsController#externalNodes
as YML
2016-02-03 12:14:06 [app] [I] Parameters: {“name”=>“salmanlinuxvm.nj01”}
2016-02-03 12:14:06 [app] [I] Rendered text template (0.0ms)
2016-02-03 12:14:06 [app] [I] Completed 200 OK in 81ms (Views: 0.6ms |
ActiveRecord: 9.2ms)
2016-02-03 12:14:06 [app] [I]

Started POST “/api/reports” for 10.60.52.12 at 2016-02-03 12:14:06 -0500
2016-02-03 12:14:06 [app] [I] Processing by
Api::V2::ReportsController#create as JSON
2016-02-03 12:14:06 [app] [I] Parameters: {“report”=>"[FILTERED]",
“apiv”=>“v2”}
2016-02-03 12:14:06 [app] [I] processing report for salmanlinuxvm.nj01
2016-02-03 12:14:06 [app] [I] Imported report for salmanlinuxvm.nj01 in
0.02 seconds
2016-02-03 12:14:06 [app] [I] Rendered api/v2/reports/create.json.rabl
(7.4ms)
2016-02-03 12:14:06 [app] [I] Completed 201 Created in 49ms (Views: 7.6ms
ActiveRecord: 11.8ms)


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've had the same question, still have more or less.
Found out about the above by playing around in the webui but was also
wondering whether there is some documentation or video demo that lists
what you should do once you have run katello-installer.
So what are the next standaard things one should do to get something
useful out of the empty shell that is at that moment.
Some things are related or need to be done before others but you'll only
find out about it after it has gone belly up :frowning:
(Stateless/snapshot are my friend but time is my enemy)

Regards,

Joop

PS:
Willing to do a write up about what todo and in which order.

··· On 3-2-2016 20:35, Sean O'Keeffe wrote: > Check your Organization / Location :) > > You can set default ones under Administer --> Settings > > Sean > > On Wed, Feb 3, 2016 at 5:22 PM, salman b > wrote: > > Hi all. > > I've setup a new katello host for testing in our environment. > There are a couple of Products added, and repos assigned; syncing > the repos, and other functionality appears to be working fine. > > I have a test host added using the following command: puppet agent > -t -d --server > > I see the host successfully connecting, and sending facts in the > foreman production.log, and I see the host entry in the database. > However, when I browse to the 'All Hosts' page on the web portal, > nothing shows up. If I look under the Hosts > Operating Systems, > or Hosts > Architecture page, I see a '2' under the Hosts column > (the katello host itself, and my test VM, I assume). Is there any > other log that I can check to see if there's an error? I do not > see any errors being logged to the foreman logs. > >