Juan Hernandez has uploaded a new change for review.

Change subject: restapi: Fix cloud-init host name
......................................................................

restapi: Fix cloud-init host name

When sending a request to start a VM using cloud-init the host name
should be included using the "address" element, as follows:

  <cloud_init>
    <host>
      <address>the_host_name</address>
    </host>
  </cloud_init>

But this is incorrectly documented in the RSDL metadata as follows:

  action.vm.initialization.cloud_init.hostname: 'xs:string'

This induces wrong documentation in the Python SDK, which in turn
induces a wrong behaviour of the CLI auto-completion. The right way to
document this in the RSDL is the following:

  action.vm.initialization.cloud_init.host.address: 'xs:string'

Change-Id: I5d3159cf476f881c1fe0e6955b1be44f69f94e58
Bug-Url: https://bugzilla.redhat.com/1080033
Signed-off-by: Juan Hernandez <[email protected]>
(cherry picked from commit 6bafe304d82aa54f7b781b8a166681f82de4b602)
---
M 
backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/74/26074/1

diff --git 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
index 3e7a4be..1a8575b 100644
--- 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
+++ 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
@@ -315,7 +315,7 @@
           action.vm.display.type: 'xs:string', action.vm.stateless: 
'xs:boolean', action.vm.os.cmdline: 'xs:string',
           action.vm.domain.user.username: 'xs:string', action.pause: 
'xs:boolean',
           action.vm.os.boot--COLLECTION: {boot.dev: 
'xs:string'},action.vm.domain.user.password: 'xs:string',
-          action.vm.initialization.cloud_init.hostname: 'xs:string',
+          action.vm.initialization.cloud_init.host.address: 'xs:string',
           
action.vm.initialization.cloud_init.network_configuration.nics.nic--COLLECTION: 
{nic.name: 'xs:string',
           nic.boot_protocol: 'xs:string',
           nic.network.address.ip: 'xs:string',


-- 
To view, visit http://gerrit.ovirt.org/26074
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5d3159cf476f881c1fe0e6955b1be44f69f94e58
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to