deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph J. VLcek (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DTACLOUD-281) CIMI: How do I add user_data when creating a machine?
Date Mon, 08 Apr 2013 14:19:15 GMT

     [ https://issues.apache.org/jira/browse/DTACLOUD-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joseph J. VLcek closed DTACLOUD-281.
------------------------------------

    Resolution: Fixed

This issue seems to be resolved as indicating in: tests/cimi/machex3_test.rb

  # 2: Create a new machine with user_data 
  cep_json = cep(:accept => :json)
  # Discover machine create URI:  
  machine_add_uri = discover_uri_for("add", "machines")
  machine_created = post(machine_add_uri,
    "<MachineCreate>" +
      "<name>cimi_machine_machex3</name>" +
      "<description> created as part of tests/cimi/machex3_test </description>"
+                                                   
      "<machineTemplate>" +
        "<machineConfig " +
          "href=\"" + get_a(cep_json, "machineConfig") + "\"/>" +                     
                                             
        "<machineImage " +
          "href=\"" + get_a(cep_json, "machineImage") + "\"/>" +
          "<userData>QmFzZS02NCBlbmNvZGVkIGRhdGE=</userData>" +              
                                                      
      "</machineTemplate>" +
    "</MachineCreate>",
    :accept => :json, :content_type => :xml)                                       
                                                

                
> CIMI: How do I add user_data  when creating a machine?
> ------------------------------------------------------
>
>                 Key: DTACLOUD-281
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-281
>             Project: DeltaCloud
>          Issue Type: Question
>          Components: Server
>         Environment: deltacloud commit version 4e3015fd45439e0e300286e095dcdb8ab6821caf
>            Reporter: Ronelle Landy
>
> Following that the xml listed is needed to create a machine, if I wanted to pass user_data
(needed for Audrey), how and where would I add that to the create command?:
> <Machine> 
> <name>myMachine</name> 
> <description>new machine</description> 
> <machineTemplate>
>  <machineImage href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machine_images/img1"/>
<machineConfig href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machine_configurations/m1-large"/>

> </machineTemplate> 
> </Machine>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message