You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Joseph J. VLcek (JIRA)" <ji...@apache.org> on 2013/04/08 16:19:15 UTC

[jira] [Closed] (DTACLOUD-281) CIMI: How do I add user_data when creating a machine?

     [ 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