Description of problem:
I've noticed that when creating a host from a host-group where the root password is filled in, I still need to enter it manually when creating the host.
Steps to Reproduce:
1. Create host group with root password filled in
2. Create host from group above
3. Note how you still need to fill in the password when creating the host
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Can you describe precisely why "you need to"? Is an error shown in the web UI if you save the host?
Sorry, I should have clarified my urges (-:
Yes, if I click submit, I'm thrown back into the host creation dialogue and the root password is highlighted in red saying
"should be 8 characters or more and should not be blank - consider setting a global or host group default"
(Which is kind of ironic now that I think of it...)
The same message is also repeated in /var/log/foreman/production.log
I'm struggling to reproduce this in any way. Could you run: sudo -u foreman psql -c 'select id,title,root_pass from hostgroups;' to list what's stored in the DB. Perhaps also try editing the host group again and ensure the password is set.
I hope this wasn't just me being silly but after (re?)-entering the password into the host group, I was able to create the host just fine.