Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1326044

Summary: Fix the user data template for atomic
Product: Red Hat Satellite Reporter: Partha Aji <paji>
Component: Content ManagementAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Jan Hutaƙ <jhutar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney, cwelton, dyordano, ehelms, jcallaha, jhutar, mmccune, paji, sbream, sghai, stbenjam, zhunting
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14579
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.53-1,rubygem-foreman_theme_satellite-0.1.31-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-27 18:04:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
verification screenshot none

Description Partha Aji 2016-04-11 16:05:55 UTC
We need the Katello Kickstart User Data template to work with atomic. The current template does things like running yum commands which do not work on atomic.

Comment 1 Partha Aji 2016-04-11 16:05:56 UTC
Created from redmine issue http://projects.theforeman.org/issues/14579

Comment 2 Partha Aji 2016-04-11 16:05:59 UTC
Upstream bug assigned to paji

Comment 4 Bryan Kearney 2016-05-18 22:22:34 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14579 has been closed

Comment 8 Sachin Ghai 2016-10-13 10:56:17 UTC
Verified with sat6.2.3.

I tried to provision atomic host with following steps:

1. added atomic-host-image from 6.3 under selected libvirt CR
2. associated "Satellite Kickstart Default User Data" template with "Red Hat atomic host 7 OS"
3. created a new host with image-based provisioning

Host was provisioned successfully and I can see that it got registered with satellite. But I can't login on atomic host with default user "cloud-user".

Am I missing something here ?

Comment 9 Sachin Ghai 2016-10-13 12:13:34 UTC
Also, I don't see the fixes in "Satellite Kickstart Default User Data" template as shown in the PR attached to upstream issue. like:

---
groups:
 - admin

users:
 - default
 - name: admin
   primary-group: admin
   groups: users
   shell: /bin/bash
   sudo: ['ALL=(ALL) ALL']
   lock-passwd: false
   passwd: <%= @host.root_pass %>
---


I see these changes in "UserData default" template

Comment 10 Sachin Ghai 2016-10-14 07:39:16 UTC
Please note that if I use "Userdata default" template then I can login with admin user, however not with cloud-user. 

And in case of "Satellite Kickstart Default User Data" template, I was not able to login with cloud-user as well as admin.


Moving this back to assigned state to get more info.

Comment 12 jcallaha 2016-10-25 18:37:39 UTC
Verified in Satellite 6.2.3 Snap 4

The Satellite Kickstart Default User Data template has been update with the appropriate content. Can now login to atomic host as admin user. See attached screenshot.

Comment 13 jcallaha 2016-10-25 18:38:01 UTC
Created attachment 1214046 [details]
verification screenshot

Comment 15 errata-xmlrpc 2016-10-26 12:25:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:2108

Comment 18 Mike McCune 2017-09-27 18:04:09 UTC
This bug was fixed in 6.2.3 and was moved to MODIFIED accidentally, re-closing as it was prior.