Bug 1130708 - root password not inherited from host group
Summary: root password not inherited from host group
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: Ohad Levy
QA Contact: Katello QA List
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-16 16:17 UTC by David Juran
Modified: 2017-02-23 21:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-08-19 11:30:25 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description David Juran 2014-08-16 16:17:49 UTC
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.

How reproducible:
Every time

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

Comment 1 RHEL Program Management 2014-08-16 16:22:54 UTC
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.

Comment 3 Dominic Cleal 2014-08-18 08:10:53 UTC
Can you describe precisely why "you need to"?  Is an error shown in the web UI if you save the host?

Comment 4 David Juran 2014-08-18 13:55:02 UTC
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

Comment 5 Dominic Cleal 2014-08-18 14:56:08 UTC
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.

Comment 6 David Juran 2014-08-19 11:30:25 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.