Bug 1479954 - provision rhev vms with cloudinit user-data templates
Summary: provision rhev vms with cloudinit user-data templates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - RHEV
Version: 6.2.10
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Sanket Jagtap
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On: 1189813
Blocks: rhci-common-installer 1317530
TreeView+ depends on / blocked
 
Reported: 2017-08-09 19:47 UTC by Ivan Necas
Modified: 2021-06-10 12:46 UTC (History)
28 users (show)

Fixed In Version: rubygem-rbovirt-0.0.38.1-1, foreman-1.11.0.85-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1189813
: 1480349 (view as bug list)
Environment:
Last Closed: 2017-09-25 18:59:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Test-User data template (1.71 KB, text/plain)
2017-08-29 15:23 UTC, Sanket Jagtap
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 8289 0 Normal Closed use cloudinit user data in ovirt/rhev compute ressource 2021-01-05 06:02:30 UTC
Foreman Issue Tracker 20591 0 Normal Closed Support for multi-line runcmd cloudinit commands in oVirt 2021-01-05 06:01:52 UTC
Red Hat Knowledge Base (Solution) 2221221 0 None None None 2017-08-09 19:47:58 UTC
Red Hat Product Errata RHBA-2017:2803 0 normal SHIPPED_LIVE Satellite 6.2.12 bug fix update 2017-10-12 19:22:49 UTC

Comment 2 Satellite Program 2017-08-09 20:02:54 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/8289 has been resolved.

Comment 5 Satellite Program 2017-08-17 14:02:42 UTC
Upstream bug assigned to inecas

Comment 6 Satellite Program 2017-08-17 14:02:53 UTC
Upstream bug assigned to inecas

Comment 11 Ivan Necas 2017-08-29 12:40:30 UTC
Btw. there is https://bugzilla.redhat.com/show_bug.cgi?id=1406520, that was causing troubles setting up the cloud-inin on the virtualized box:

systemctl status cloud-init-local
● cloud-init-local.service - Initial cloud-init job (pre-networking)
   Loaded: loaded (/usr/lib/systemd/system/cloud-init-local.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-08-29 06:16:38 EDT; 2h 22min ago
 Main PID: 492 (code=exited, status=1/FAILURE)

Aug 29 06:16:38 localhost.localdomain cloud-init[492]: self.selinux.restorecon(path, recursive=self....ve)
Aug 29 06:16:38 localhost.localdomain cloud-init[492]: File "/usr/lib64/python2.7/site-packages/seli...con
Aug 29 06:16:38 localhost.localdomain cloud-init[492]: restorecon(os.path.join(root, name))
Aug 29 06:16:38 localhost.localdomain cloud-init[492]: File "/usr/lib64/python2.7/site-packages/seli...con
Aug 29 06:16:38 localhost.localdomain cloud-init[492]: status, context = matchpathcon(path, mode)
Aug 29 06:16:38 localhost.localdomain cloud-init[492]: OSError: [Errno 2] No such file or directory
Aug 29 06:16:38 localhost.localdomain systemd[1]: cloud-init-local.service: main process exited, cod...URE
Aug 29 06:16:38 localhost.localdomain systemd[1]: Failed to start Initial cloud-init job (pre-networking).
Aug 29 06:16:38 localhost.localdomain systemd[1]: Unit cloud-init-local.service entered failed state.
Aug 29 06:16:38 localhost.localdomain systemd[1]: cloud-init-local.service failed.
Hint: Some lines were ellipsized, use -l to show in full.



The fix for this issue should be delivered in RHEL 7.4 (see https://bugzilla.redhat.com/show_bug.cgi?id=1406520) for more details.

Comment 12 Sanket Jagtap 2017-08-29 15:21:54 UTC
Build: Satellite 6.2.12 snap1 

Verified on RHV Version 4.0.6.3-0.1.el7ev
Red Hat Enterprise Linux Server release 7.4 (Maipo)

PFA Test User data template

Partial log:
Complete!
Uploading Enabled Repositories Report
Loaded plugins: product-id
Note: Forwarding request to 'systemctl enable puppet.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/puppet.service to /usr/lib/systemd/system/puppet.service.
Redirecting to /bin/systemctl start puppet.service
2017-08-29 11:04:22,929 - util.py[WARNING]: Configuration entry 'tries' is not an integer, using 10 instead
2017-08-29 11:04:22,942 - util.py[WARNING]: /etc/ssh/ssh_host_dsa_key.pub: failed to open, can not phone home that data!
Cloud-init v. 0.7.9 finished at Tue, 29 Aug 2017 15:04:24 +0000. Datasource DataSourceConfigDrive [local,ver=2][source=/dev/sr1].  Up 176.44 seconds

Comment 13 Sanket Jagtap 2017-08-29 15:23:28 UTC
Created attachment 1319598 [details]
Test-User data template

Comment 15 errata-xmlrpc 2017-09-25 18:59:44 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-2017:2803


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