Bug 990572 - cloud-init integration - REST API
Summary: cloud-init integration - REST API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.3.0
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
: 3.3.0
Assignee: Omer Frenkel
QA Contact: Pavel Novotny
URL: http://www.ovirt.org/Features/Cloud-I...
Whiteboard: virt
Depends On: 619761 1047356
Blocks: 641301 977201 977663 977664 3.3snap4
TreeView+ depends on / blocked
 
Reported: 2013-07-31 13:28 UTC by Michal Skrivanek
Modified: 2015-10-27 23:57 UTC (History)
10 users (show)

Fixed In Version: is26
Doc Type: Bug Fix
Doc Text:
Clone Of: 619761
Environment:
Last Closed:
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
REST API request to run VM with cloud-init data (1.74 KB, application/xml)
2014-01-15 18:03 UTC, Pavel Novotny
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 15537 0 None None None Never
oVirt gerrit 21447 0 None None None Never
oVirt gerrit 22026 0 None None None Never

Comment 1 Michal Skrivanek 2013-11-20 13:44:33 UTC
merged to master, pending ovirt-engine-3.3 backport acceptance

Comment 2 Sven Kieske 2013-12-06 14:04:53 UTC
Hi, can this one get backported in 3.3.1 or at least 3.3.2?
I would help and provide testing for this.

Comment 3 Pavel Novotny 2014-01-15 17:54:19 UTC
Verified in rhevm-3.3.0-0.44.el6ev.noarch (is31).

Verification steps:
1. Create new fresh VM with two network interfaces. I used RHEL 6.5 x86_64 with installed cloud-init-0.7.2-2.el6.noarch.
2. In your favorite REST client send the attached XML request via POST method to https://<fqdn>/api/vms/<vm-uuid>/start
  - see example at http://www.ovirt.org/Features/Cloud-Init_Integration - API Design section
3. When the VM is fully started, log into it (using the specified root password and also with SSH key) and check the following:
 * hostname (/etc/sysconfig/network)
 * network interfaces (IP address, mask, boot protocol, gateway)
 * DNS settings (/etc/resolv.conf)
 * system time zone (/etc/sysconfig/clock)
 * new file with proper content (/tmp/file1.txt)

All data are corresponding with those from the XML request.

Optionally, the cloud-init config drive data are visible via REST API as the CD-ROM payload. Do a GET request on the VM (https://<fqdn>/api/vm/<vm-uuid>/) and search for the <payload type="cdrom"> node.

Comment 4 Pavel Novotny 2014-01-15 18:03:08 UTC
Created attachment 850603 [details]
REST API request to run VM with cloud-init data

Comment 5 Itamar Heim 2014-01-21 22:31:11 UTC
Closing - RHEV 3.3 Released

Comment 6 Itamar Heim 2014-01-21 22:31:14 UTC
Closing - RHEV 3.3 Released

Comment 7 Itamar Heim 2014-01-21 22:34:01 UTC
Closing - RHEV 3.3 Released


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