Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-116

Duplication in starting an image on VSphere through curl, neither creates a new instance nor displays any error message related to this

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Client (Ruby)
    • None

    Description

      This issue is related to https://issues.apache.org/jira/browse/DTACLOUD-115

      When an instance is started with the curl, gives the below mentioned output, nevertheless how many times this command is issues. Also, only one instance is displayed in the Instances page

      [rananda@rananda server]$ curl X POST -F "image_id=lutter-template" -F "name=ramesh-test-cli-3" -F "instance_profile=default" -F "hwp_id=default" --user 'Administrator:100yard' "http://cavenger.lab.eng.pnq.redhat.com:3001/api/instances?format=xml"
      <?xml version='1.0' encoding='utf-8' ?>
      <instance href='http://cavenger.lab.eng.pnq.redhat.com:3001/api/instances/ramesh-test-cli-3' id='ramesh-test-cli-3'>
      <name>ramesh-test-cli-3</name>
      <owner_id>Administrator</owner_id>
      <image href='http://cavenger.lab.eng.pnq.redhat.com:3001/api/images/lutter-template' id='lutter-template'></image>
      <realm href='http://cavenger.lab.eng.pnq.redhat.com:3001/api/realms/datastore1' id='datastore1'></realm>
      <state>PENDING</state>
      <hardware_profile href='http://cavenger.lab.eng.pnq.redhat.com:3001/api/hardware_profiles/default' id='default'>
      </hardware_profile>
      <actions>
      </actions>
      <public_addresses></public_addresses>
      <private_addresses></private_addresses>
      </instance>
      [rananda@rananda server]$

      Expected Result:
      ============
      Should start a new instance upon issuing this command or throw an error message stating that new instance cannot be created as there is another instance running with the same name

      Attachments

        Issue Links

          Activity

            People

              lutter David Lutterkort
              rananda Ramesh A
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: