Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1326044 - Fix the user data template for atomic
Fix the user data template for atomic
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
6.2.0
Unspecified Unspecified
unspecified Severity high (vote)
: Beta
: Unused
Assigned To: Partha Aji
Jan Hutař
http://projects.theforeman.org/issues...
: Reopened, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-11 12:05 EDT by Partha Aji
Modified: 2017-09-27 14:04 EDT (History)
13 users (show)

See Also:
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 14:04:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
verification screenshot (127.40 KB, image/png)
2016-10-25 14:38 EDT, jcallaha
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 14579 None None None 2016-04-22 12:47 EDT
Red Hat Product Errata RHBA-2016:2108 normal SHIPPED_LIVE Satellite 6.2.3 Async Bug Release 2016-10-26 12:21:52 EDT

  None (edit)
Description Partha Aji 2016-04-11 12:05:55 EDT
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 12:05:56 EDT
Created from redmine issue http://projects.theforeman.org/issues/14579
Comment 2 Partha Aji 2016-04-11 12:05:59 EDT
Upstream bug assigned to paji@redhat.com
Comment 4 Bryan Kearney 2016-05-18 18:22:34 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/14579 has been closed
Comment 8 Sachin Ghai 2016-10-13 06:56:17 EDT
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 08:13:34 EDT
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 03:39:16 EDT
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 14:37:39 EDT
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 14:38 EDT
Created attachment 1214046 [details]
verification screenshot
Comment 15 errata-xmlrpc 2016-10-26 08:25:58 EDT
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 14:04:09 EDT
This bug was fixed in 6.2.3 and was moved to MODIFIED accidentally, re-closing as it was prior.

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