Delatcloud is not returning the ip address for a running instance in RHEVM
(including audrey agent/ rhev agent)
---------------------------------------------------------------------------------------------------------------
Key: DTACLOUD-147
URL: https://issues.apache.org/jira/browse/DTACLOUD-147
Project: DeltaCloud
Issue Type: Bug
Components: Server
Environment: Fedora 16/ RHEL 6.2
rbovirt (0.0.5)
rhevm 3.0
Reporter: Ronelle Landy
Assignee: David Lutterkort
Deltacloud returns the mac and vnc address for a running instance in rhevm but
not the ip address. Even if the instance was launched from an image with rhev
agent or aeolus-audrey agent, the ip address is not returned. The ip address
for the same running instance is returned in previous versions of Deltacloud
(deltacloud-core 0.5.0/5)
API output from Deltacloud (using rbovirt):
curl -X GET --user "username:password"
"http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/d959f410-526b-4962-9e50-881f43a16a11?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance
href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/d959f410-526b-4962-9e50-881f43a16a11'
id='d959f410-526b-4962-9e50-881f43a16a11'>
<name>rlandyBasicRhevm</name>
<owner_id>admin@internal</owner_id>
<image
href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/images/194a5df9-141b-4f8f-973e-157afd2cd01b'
id='194a5df9-141b-4f8f-973e-157afd2cd01b'></image>
<realm
href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/realms/ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'
id='ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'></realm>
<state>RUNNING</state>
<hardware_profile
href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/hardware_profiles/SERVER'
id='SERVER'>
<property kind='fixed' name='storage' unit='GB' value='1'></property>
<property kind='fixed' name='cpu' unit='count' value='1'></property>
<property kind='fixed' name='memory' unit='MB' value='512'></property>
</hardware_profile>
<actions>
<link
href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/d959f410-526b-4962-9e50-881f43a16a11/stop'
method='post' rel='stop' />
<link
href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/images;instance_id=d959f410-526b-4962-9e50-881f43a16a11'
method='post' rel='create_image' />
</actions>
<launch_time>2012-02-14T20:27:25.886-05:00</launch_time>
<public_addresses><address type='mac'>00:1a:4a:10:78:3d</address>
<address port='5906'
type='vnc'>qeblade27.rhq.lab.eng.bos.redhat.com</address></public_addresses>
<private_addresses></private_addresses>
</instance>
[rlandy@localhost yum.repos.d]$
API output from deltacloud-core-0.5.0/5:
[rlandy@localhost yum.repos.d]$ curl -X GET --user "uname:password"
"http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3001/api/instances/d959f410-526b-4962-9e50-881f43a16a11?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance
href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3001/api/instances/d959f410-526b-4962-9e50-881f43a16a11'
id='d959f410-526b-4962-9e50-881f43a16a11'>
<name>rlandyBasicRhevm</name>
<owner_id>admin@internal</owner_id>
<image
href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3001/api/images/194a5df9-141b-4f8f-973e-157afd2cd01b'
id='194a5df9-141b-4f8f-973e-157afd2cd01b'></image>
<realm
href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3001/api/realms/ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'
id='ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'></realm>
<state>RUNNING</state>
<hardware_profile
href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3001/api/hardware_profiles/SERVER'
id='SERVER'>
<property kind='fixed' name='cpu' unit='count' value='1'></property>
<property kind='fixed' name='memory' unit='MB' value='512'></property>
<property kind='fixed' name='storage' unit='GB' value='1'></property>
</hardware_profile>
<actions>
<link
href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3001/api/instances/d959f410-526b-4962-9e50-881f43a16a11/stop'
method='post' rel='stop' />
<link
href='http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3001/api/images;instance_id=d959f410-526b-4962-9e50-881f43a16a11'
method='post' rel='create_image' />
</actions>
<launch_time>2012-02-14T20:27:25.886-05:00</launch_time>
<public_addresses><address
type='ipv4'>10.16.120.161</address></public_addresses>
<private_addresses></private_addresses>
</instance>
[rlandy@localhost yum.repos.d]$
--
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