Bug 784612 - rhevm images not reporting IP address
Summary: rhevm images not reporting IP address
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: deltacloud-core
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
Assignee: Francesco Vollero
QA Contact: Ronelle Landy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-25 15:02 UTC by Dave Johnson
Modified: 2012-05-15 20:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 20:32:46 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0587 0 normal SHIPPED_LIVE new packages: deltacloud-core 2012-05-15 22:31:31 UTC

Description Dave Johnson 2012-01-25 15:02:54 UTC
Description of problem:
=============================
Build/push/deploy a image created from the following template and you do not get a IP address in the conductor UI.  Checking the deltacloud UI it does not appear it is getting the IP address that is reported in the rhevm ui.

Version-Release number of selected component (if applicable):
==============================================================
aeolus-all-0.8.0-9.el6.noarch
aeolus-conductor-0.8.0-9.el6.noarch
aeolus-conductor-daemons-0.8.0-9.el6.noarch
aeolus-conductor-doc-0.8.0-9.el6.noarch
aeolus-configure-2.5.0-6.el6.noarch
deltacloud-core-0.5.0-1.rc1.el6.noarch
deltacloud-core-ec2-0.5.0-1.rc1.el6.noarch
deltacloud-core-rhevm-0.5.0-1.rc1.el6.noarch
deltacloud-core-vsphere-0.5.0-1.rc1.el6.noarch
rubygem-aeolus-cli-0.3.0-5.el6.noarch
rubygem-aeolus-image-0.3.0-3.el6.noarch
rubygem-deltacloud-client-0.4.0-3.el6.noarch

Comment 2 wes hayutin 2012-01-25 15:05:23 UTC
[whayutin@whayutin cloudEngine]$ ssh root.120.211
root.120.211's password: 
Last login: Tue Jan 24 17:45:38 2012 from whayutin.rdu.redhat.com
[root@10-16-120-211 ~]# /etc/init.d/rhev-agentd status
rhev-agentd (pid  1525) is running...
[root@10-16-120-211 ~]# tail -f /var/log/rhev-agent/rhev-agent.log 
MainThread::INFO::2012-01-24 17:10:52,847::rhev-agentd::25::root::Starting RHEV-Agent daemon
RhevCredServer::INFO::2012-01-24 17:10:52,868::RhevCredServer::213::root::RhevCredServer is running...
^C
[root@10-16-120-211 ~]# rpm -qa | grep rhev-agent
rhev-agent-2.3.16-3.el6.x86_64
[root@10-16-120-211 ~]#

Comment 4 Ronelle Landy 2012-01-25 15:51:25 UTC
Deltacloud API output for instance (used in Comment 2 above): 

curl -X GET --user 'username:password'
"http://server:3001/api/instances/8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance
href='http://server:3001/api/instances/8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2'
id='8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2'>
  <name>dajo-20-rhel62-image3</name>
  <owner_id>user@xxx</owner_id>
  <image
href='http://server:3001/api/images/5571f008-5179-4bd6-9c7f-ceb2b58309be'
id='5571f008-5179-4bd6-9c7f-ceb2b58309be'></image>
  <realm
href='http://server:3001/api/realms/ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'
id='ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'></realm>
  <state>RUNNING</state>
  <hardware_profile href='http://server: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://server:3001/api/instances/8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2/stop'
method='post' rel='stop' />
    <link
href='http://server.com:3001/api/images;instance_id=8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2'
method='post' rel='create_image' />
  </actions>
  <launch_time>2012-01-24T17:50:29.521-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>

Comment 5 Francesco Vollero 2012-01-25 19:23:44 UTC
Solved, the problem was that RHEV-m changed the xml layout from beta to production.

Comment 6 Ronelle Landy 2012-01-25 19:49:13 UTC
Tested that the ip address is now returned by Deltacloud (change to Deltacloud code was made on the local test machine). The API output is copied below. Waiting for this fix to get in to RHEL 6 rpms before marking bug 'verified'.

[root@localhost /]# curl -X GET --user 'username:password' "http://hp-z600-01.rhts.eng.bos.redhat.com:3008/api/instances/8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance href='http://hp-z600-01.rhts.eng.bos.redhat.com:3008/api/instances/8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2' id='8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2'>
  <name>dajo-20-rhel62-image3</name>
  <owner_id>xxx</owner_id>
  <image href='http://hp-z600-01.rhts.eng.bos.redhat.com:3008/api/images/5571f008-5179-4bd6-9c7f-ceb2b58309be' id='5571f008-5179-4bd6-9c7f-ceb2b58309be'></image>
  <realm href='http://hp-z600-01.rhts.eng.bos.redhat.com:3008/api/realms/ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c' id='ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'></realm>
  <state>RUNNING</state>
  <hardware_profile href='http://hp-z600-01.rhts.eng.bos.redhat.com:3008/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-z600-01.rhts.eng.bos.redhat.com:3008/api/instances/8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2/stop' method='post' rel='stop' />
    <link href='http://hp-z600-01.rhts.eng.bos.redhat.com:3008/api/images;instance_id=8d3d1e6e-f5f8-4117-a7a5-10fcfc575ff2' method='post' rel='create_image' />
  </actions>
  <launch_time>2012-01-24T17:50:29.521-05:00</launch_time>
  <public_addresses><address type='ipv4'>10.16.120.112</address></public_addresses>
  <private_addresses></private_addresses>
</instance>

Comment 7 Michal Fojtik 2012-01-26 09:09:52 UTC
Package: deltacloud-core-0.5.0-3.rc1.el6
Tag: ce-rhel-6-candidate
Status: complete
Built by: mfojtik
ID: 196323
Started: Thu, 26 Jan 2012 04:06:12 EST
Finished: Thu, 26 Jan 2012 04:08:30 EST
Changelog:
* Thu Jan 26 2012 Michal Fojtik <mfojtik> - 0.5.0-3.rc1
- Fixed incompatibility between RHEV-M beta and GA, where guest IP
 address was reported using different XPath.

* Tue Jan 24 2012 Michal Fojtik <mfojtik> - 0.5.0-2.rc1
- A RebootGuest method is now used to soft reboot VSphere instances
 instead of ResetVM_Task which caused hard reboot.

* Mon Jan 16 2012 Michal Fojtik <mfojtik> - 0.5.0-1.rc1
- Fixed default realm behavior in RHEV-M driver JIRA:DTACLOUD126



SRPMS:
 deltacloud-core-0.5.0-3.rc1.el6.src.rpm

Closed tasks:
-------------

Task 3977209 on x86-001.build.bos.redhat.com
Task Type: tagBuild (noarch)

Task 3977206 on x86-010.build.bos.redhat.com
Task Type: buildSRPMFromSCM (/rpms/deltacloud-core:cc09ca57d30f1c5949c2de6bcb16f94d960eee4c)
logs:
 https://brewweb.devel.redhat.com//getfile?taskID=3977206&name=build.log
 https://brewweb.devel.redhat.com//getfile?taskID=3977206&name=checkout.log
 https://brewweb.devel.redhat.com//getfile?taskID=3977206&name=mock_output.log
 https://brewweb.devel.redhat.com//getfile?taskID=3977206&name=root.log
 https://brewweb.devel.redhat.com//getfile?taskID=3977206&name=state.log

Task 3977207 on x86-001.build.bos.redhat.com
Task Type: buildArch (deltacloud-core-0.5.0-3.rc1.el6.src.rpm, noarch)
logs:
 https://brewweb.devel.redhat.com//getfile?taskID=3977207&name=build.log
 https://brewweb.devel.redhat.com//getfile?taskID=3977207&name=mock_output.log
 https://brewweb.devel.redhat.com//getfile?taskID=3977207&name=root.log
 https://brewweb.devel.redhat.com//getfile?taskID=3977207&name=state.log
rpms:
http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/3.rc1.el6/noarch/deltacloud-core-0.5.0-3.rc1.el6.noarch.rpm
http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/3.rc1.el6/noarch/deltacloud-core-all-0.5.0-3.rc1.el6.noarch.rpm
http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/3.rc1.el6/noarch/deltacloud-core-doc-0.5.0-3.rc1.el6.noarch.rpm
http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/3.rc1.el6/noarch/deltacloud-core-ec2-0.5.0-3.rc1.el6.noarch.rpm
http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/3.rc1.el6/noarch/deltacloud-core-rhevm-0.5.0-3.rc1.el6.noarch.rpm
http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/3.rc1.el6/noarch/deltacloud-core-vsphere-0.5.0-3.rc1.el6.noarch.rpm



Task Info: https://brewweb.devel.redhat.com//taskinfo?taskID=3977205
Build Info: https://brewweb.devel.redhat.com//buildinfo?buildID=196323

Comment 8 Ronelle Landy 2012-01-26 15:14:57 UTC
Verifying fix from rpm install:

>> rpm -qa deltacloud-core-all
deltacloud-core-all-0.5.0-3.rc1.el6.noarch

[root@localhost /]# curl -X GET --user 'uname:password' "http://server:3001/api/instances/bf388696-55a4-4fb2-b2d8-170416651a28?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance href='http://server:3001/api/instances/bf388696-55a4-4fb2-b2d8-170416651a28' id='bf388696-55a4-4fb2-b2d8-170416651a28'>
  <name>woA</name>
  <owner_id>xxx</owner_id>
  <image href='http://server:3001/api/images/308046ad-8fbb-44f3-b4ba-ed87dc437b56' id='308046ad-8fbb-44f3-b4ba-ed87dc437b56'></image>
  <realm href='http://server:3001/api/realms/ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c' id='ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'></realm>
  <state>RUNNING</state>
  <hardware_profile href='http://server:3001/api/hardware_profiles/DESKTOP' id='DESKTOP'>
    <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://server:3001/api/instances/bf388696-55a4-4fb2-b2d8-170416651a28/stop' method='post' rel='stop' />
    <link href='http://server:3001/api/images;instance_id=bf388696-55a4-4fb2-b2d8-170416651a28' method='post' rel='create_image' />
  </actions>
  <launch_time>2012-01-25T16:50:10.631-05:00</launch_time>
  <public_addresses><address type='ipv4'>10.16.120.107</address></public_addresses>
  <private_addresses></private_addresses>
</instance>

---------------------------

Added automated test to check for an ip addressed to be returned for a RUNNING instance:

>> RestClientMethods.pollForState(restClient, 'instances', respInstance.data.(), 'RUNNING')
>> respXML = restClient.get( path: '/api/instances' +  '/' + respInstance.data.(), contentType: ContentType.XML,
	headers: [Accept: 'application/xml'])
>> assert respXML.data.state.text().toUpperCase() == 'RUNNING'
>> assert respXML.data.public_addresses.address.() =='ipv4'

Comment 10 errata-xmlrpc 2012-05-15 20:32:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-0587.html


Note You need to log in before you can comment on or make changes to this bug.