Bug 1282618 - cfme cloud-init broken with rhev 3.5.5
Summary: cfme cloud-init broken with rhev 3.5.5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.5.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.6.0
Assignee: Brandon Dunne
QA Contact: luke couzens
URL:
Whiteboard:
Depends On:
Blocks: 1290175 1328439
TreeView+ depends on / blocked
 
Reported: 2015-11-16 22:04 UTC by Josh Carter
Modified: 2019-10-10 10:30 UTC (History)
13 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1290175 1328439 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:08:24 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Josh Carter 2015-11-16 22:04:00 UTC
Description of problem:

Issue : Customizations (cloudinit scripts) are not getting injected to the provisioned VM/VMs. 

Investigation done : Issue is reproducible locally. Even with the customization data provider,
VMs are getting provisioned with no cloud-init payload attached. 


- Provisioned vm disk configuration. (no payload disk/floppy attached)  

[root@dell-per210-3 ~]# virsh -r domblklist vm005
Target     Source
------------------------------------------------
hdc        -
vda        /rhev/data-center/296a1353-c567-4ed1-9394-d59cd5fcf566/ea4dec1c-22f5-45a5-9994-f0dc0b01425a/images/51036b3e-b05d-4e91-bfd5-5d26206ca4e2/fbff4e72-eea8-4cd4-9dc1-372a65554e8b


- In API, initialization data is there but payload is not generated 

<initialization><regenerate_ssh_keys>false</regenerate_ssh_keys><nic_configurations/><custom_script>runcmd:
- touch /eprasad1.txt
- echo "test" > /eprasad1.txt
</custom_script></initialization><placement_policy>


Reproducer access :  
CFME : https://10.65.223.177 (admin:smartvm)
RHEVM : https://10.65.209.226/ovirt-engine (admin@internal:redhat.com)

NOTE : Issue is reproducible only with  RHEVM 3.5.5-0.1. With older versions, Customization is working 
perfectly fine. 

It could be this patch as pointed by the customer that is causing the problem : https://gerrit.ovirt.org/#/c/43385/


Version-Release number of selected component (if applicable): 5.4.3 & 5.5 beta 2


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Greg McCullough 2015-11-16 22:35:19 UTC
Drew - Please work with Brandon on this issue.

Comment 3 Brandon Dunne 2015-11-20 19:24:48 UTC
Seems related to https://bugzilla.redhat.com/show_bug.cgi?id=1269534

Even with the "use_cloud_init" change, no success provisioning to RHEV 3.5.5

Comment 5 Greg McCullough 2015-11-24 14:00:37 UTC
Opened RHEVM Bug 1284654 while working on this issue.

Comment 6 Brandon Dunne 2015-11-24 15:28:38 UTC
Based on feedback from https://bugzilla.redhat.com/show_bug.cgi?id=1269534#c17 it seems we will be unable to provision using cloud-init on RHEV 3.5.5 due to changes in the RHEV API at this version.

I am currently testing against RHEV 3.5.6 and will make any changes required to restore the functionality that we had before RHEV 3.5.5 API change.

Comment 9 CFME Bot 2015-12-15 19:55:31 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/407dbdc450f6f0c8dcae90c120fd1cc7bb106fb2

commit 407dbdc450f6f0c8dcae90c120fd1cc7bb106fb2
Author:     Brandon Dunne <bdunne>
AuthorDate: Wed Nov 25 12:24:39 2015 -0500
Commit:     Brandon Dunne <bdunne>
CommitDate: Tue Dec 15 10:26:49 2015 -0500

    Send use_cloud_init to start when provisioning RHEV 3.5.5+ with cloud-init
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1282618
    
    Initialization data no longer used in cloud-init user data:
    https://bugzilla.redhat.com/show_bug.cgi?id=1269534
    
    Version field incorrect:
    https://bugzilla.redhat.com/show_bug.cgi?id=1284654

 .../providers/redhat/infra_manager/provision/configuration.rb |  4 ++++
 .../providers/redhat/infra_manager/provision/state_machine.rb | 11 +++++++++++
 gems/pending/Gemfile                                          |  2 +-
 3 files changed, 16 insertions(+), 1 deletion(-)

Comment 12 CFME Bot 2015-12-17 21:24:34 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=7445e4208eb360a6c6775ced847d3d9a957b3165

commit 7445e4208eb360a6c6775ced847d3d9a957b3165
Author:     Brandon Dunne <bdunne>
AuthorDate: Wed Nov 25 12:24:39 2015 -0500
Commit:     Brandon Dunne <bdunne>
CommitDate: Wed Dec 16 18:12:33 2015 -0500

    Send use_cloud_init to start when provisioning RHEV 3.5.5+ with cloud-init
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1282618
    
    Initialization data no longer used in cloud-init user data:
    https://bugzilla.redhat.com/show_bug.cgi?id=1269534
    
    Version field incorrect:
    https://bugzilla.redhat.com/show_bug.cgi?id=1284654

 .../providers/redhat/infra_manager/provision/configuration.rb |  4 ++++
 .../providers/redhat/infra_manager/provision/state_machine.rb | 11 +++++++++++
 gems/pending/Gemfile                                          |  2 +-
 3 files changed, 16 insertions(+), 1 deletion(-)

Comment 15 luke couzens 2016-06-15 22:22:29 UTC
verified in 5.6.0.10 with rhev 3.5.7-0.1

Comment 17 errata-xmlrpc 2016-06-29 15:08:24 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:1348


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