Deltacloud API displays server ip instead of vm ip for an stopped instance in rhevm setup -----------------------------------------------------------------------------------------
Key: DTACLOUD-143 URL: https://issues.apache.org/jira/browse/DTACLOUD-143 Project: DeltaCloud Issue Type: Bug Components: Server Environment: Deltacloud API 0.5.0 commit f2fffe85b7826a8627e51eeb78ef3c1d3e1d25dd API Provider - RHEVM 3.0. OS - Fedora, RHEL Reporter: Ramesh A Assignee: David Lutterkort Priority: Minor When the instance is in stopped state, Deltacloud API renders the server ip as the vm ip(in public_addresses section), ideally should not display the server ip. Displays the correct vm ip when the instance is in running state. Expected Result: ============= Should display appropriate message or Should not display the ip as the rhevm-agent does not render any ip from the guest info from rhevm server Curl Output: ========= [rananda@rananda ~]$ curl -X GET --user "<username>:<password>" "http://localhost:3001/api/instances/6373cfcd-8eba-4d1a-b370-90358f89e2d9?format=xml" <?xml version='1.0' encoding='utf-8' ?> <instance href='http://localhost:3001/api/instances/6373cfcd-8eba-4d1a-b370-90358f89e2d9' id='6373cfcd-8eba-4d1a-b370-90358f89e2d9'> <name>Ramesh-test-vm</name> <owner_id><username></owner_id> <image href='http://localhost:3001/api/images/714322dd-b912-46f9-8e08-6b83c8d2cdaf' id='714322dd-b912-46f9-8e08-6b83c8d2cdaf'></image> <realm href='http://localhost:3001/api/realms/ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c' id='ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'></realm> <state>STOPPED</state> <hardware_profile href='http://localhost:3001/api/hardware_profiles/SERVER' id='SERVER'> <property kind='fixed' name='memory' unit='MB' value='512'></property> <property kind='fixed' name='storage' unit='GB' value='1'></property> <property kind='fixed' name='cpu' unit='count' value='1'></property> </hardware_profile> <actions> <link href='http://localhost:3001/api/instances/6373cfcd-8eba-4d1a-b370-90358f89e2d9/start' method='post' rel='start' /> <link href='http://localhost:3001/api/instances/6373cfcd-8eba-4d1a-b370-90358f89e2d9' method='delete' rel='destroy' /> <link href='http://localhost:3001/api/images;instance_id=6373cfcd-8eba-4d1a-b370-90358f89e2d9' method='post' rel='create_image' /> </actions> <launch_time>2012-02-10T05:31:27.571-05:00</launch_time> <public_addresses><address port='5902' type='vnc'>qeblade27.rhq.lab.eng.bos.redhat.com</address></public_addresses> <private_addresses></private_addresses> </instance> [rananda@rananda ~]$ -- 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