Duplication in starting an image on VSphere through curl, neither creates a new
instance nor displays any error message related to this
---------------------------------------------------------------------------------------------------------------------------------------
Key: DTACLOUD-116
URL: https://issues.apache.org/jira/browse/DTACLOUD-116
Project: DeltaCloud
Issue Type: Bug
Components: Client (Ruby)
Environment: Deltacloud API 0.4.1
OS- Fedora 15
API_PROVIDER=vsphere.virt.bos.redhat.com
VMware vSphere 4
commit 9ce0222c3b88ac83a676f948a99ee07aa0f24b3c
[root@cavenger ~]# rpm -qa | grep deltacloud
deltacloud-core-rhevm-0.4.1-8.fc15.noarch
deltacloud-core-vsphere-0.4.1-8.fc15.noarch
deltacloud-core-ec2-0.4.1-8.fc15.noarch
rubygem-deltacloud-client-0.4.0-3.fc15.noarch
deltacloud-core-0.4.1-8.fc15.noarch
Reporter: Ramesh A
Assignee: David Lutterkort
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira