Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't list all hosts in Satellite 6 #4

Open
dagwieers opened this issue Jul 20, 2016 · 2 comments
Open

Doesn't list all hosts in Satellite 6 #4

dagwieers opened this issue Jul 20, 2016 · 2 comments

Comments

@dagwieers
Copy link

dagwieers commented Jul 20, 2016

We discovered that the api/hosts call only returns the Puppet hosts (i.e. same as in the Web GUI), but not all the systems in Satellite 6 (Content Hosts in GUI). So in our case only 63 hosts of the total 111 hosts are being returned.

What's worse, the Satellite 6 API does not even have a simple ReST call for getting a list of all content hosts. It requires several calls to the katello API, one for the list, one for each host to translate the system id into a proper hostname, etc... From a user-perspective the Satellite 6 ReST API is a disaster. Especially compared to Satellite 5.

What's worse is that the complete ReST API is very hard to understand because there is a lack of documentation and no online documentation as most other ReST API's offer. So one has to rely on trial-and-error to get understand what is possible and what options are required. Sigh...

@dagwieers dagwieers changed the title Doesn't list all hosts Doesn't list all hosts in Satellite 6 Jul 20, 2016
@nstrug
Copy link
Owner

nstrug commented Jul 20, 2016

Hi Dag, I'm not really working on this, it was a quick and dirty demo written in an hour after attending Ansible training. The dynamic inventory that will be shipped with Ansible 3 is this one: https://github.com/theforeman/foreman_ansible_inventory/
However, my understanding is that it doesn't use the Sat6 API at all, but just uses the foreman one - therefore you will have the same issue of only reporting puppet hosts and not content hosts. Additionally, it does not group by Katello concepts such as Host Collection, Lifecycle Environment etc. Wish I could help out but I'm assigned to other work now.

@dagwieers
Copy link
Author

@nstrug Thanks for your feedback. I have implemented my own Satellite 6 inventory script, it does support host_collections and life cycle environment. But it also does support a lot more that is specific to $CUSTOMER, incl. network inventory support, DNS facts and OS/hostname-based grouping.

However the remarks regarding Satellite 6 ReST API still stand ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants