Hi,

I am running Katello in the latest stable release with Foreman 1.12.3 and 
when I'm registering new hosts using bootstrap.py the operating system is 
not shown.
The following bootstrap.py parameters were used to register all hosts:
python bootstrap.py -l admin -s katello.example.com -o 'Org' -L 'C' -a 
CentOS7 -g 'CentOS/CentOS 7' -O 'CentOS 7.2' --force -P --skip-foreman
I did also try removing the -O parameter which didn't change anything.

As stated in the subject the operatingsystem_id is empty:

foreman=# select id,name,operatingsystem_id from hosts where id = '39';

 id |              name              | operatingsystem_id 

----+--------------------------------+--------------------

 39 | centos7-testhost01.example.com |                   

(1 row)


foreman=# select * from fact_names where name like 'distribution%';

 id  |         name          |         updated_at         |         
created_at         | compose |  short_name  |         type          | 
ancestry 

-----+-----------------------+----------------------------+----------------------------+---------+--------------+-----------------------+----------

 110 | distribution          | 2016-10-14 10:19:46.735531 | 2016-10-14 
10:19:46.735531 | t       | distribution | Katello::RhsmFactName | 

 111 | distribution::name    | 2016-10-14 10:19:46.741979 | 2016-10-14 
10:19:46.741979 | f       | name         | Katello::RhsmFactName | 110

 124 | distribution::id      | 2016-10-14 10:19:46.826738 | 2016-10-14 
10:19:46.826738 | f       | id           | Katello::RhsmFactName | 110

 151 | distribution::version | 2016-10-14 10:19:47.024304 | 2016-10-14 
10:19:47.024304 | f       | version      | Katello::RhsmFactName | 110

(4 rows)


foreman=# select host_id,fact_name_id,value from fact_values where 
host_id='39' and fact_name_id IN ('110','111','124', '151') order by 
fact_name_id;

 host_id | fact_name_id |    value     

---------+--------------+--------------

      39 |          110 | 

      39 |          111 | CentOS Linux

      39 |          124 | Core

      39 |          151 | 7

(4 rows)


If I lookup another host the facts are the same, but the operatingsystem_id 
is filled in correctly in the hosts table:


foreman=# select host_id,fact_name_id,value from fact_values where 
host_id='17' and fact_name_id IN ('110','111','124', '151') order by 
fact_name_id;

 host_id | fact_name_id |    value     

---------+--------------+--------------

      17 |          110 | 

      17 |          111 | CentOS Linux

      17 |          124 | Core

      17 |          151 | 7

(4 rows)


foreman=# select id,name,operatingsystem_id from hosts where id = '17';

 id |        name         | operatingsystem_id 

----+---------------------+--------------------

 17 | test01.example.com |                  2

(1 row)


Does anyone have an idea why this happens? Am I doing something wrong?


Regards,

Raoul

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to