| Summary: | rhevm images not reporting IP address | ||
|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Dave Johnson <dajohnso> |
| Component: | deltacloud-core | Assignee: | Francesco Vollero <fvollero> |
| Status: | CLOSED ERRATA | QA Contact: | Ronelle Landy <rlandy> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.0.0 | CC: | mfojtik, morazi, rananda, whayutin |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-05-15 20:32:46 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Dave Johnson
2012-01-25 15:02:54 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 ~]# Deltacloud UI instance: http://hp-z600-01.rhts.eng.bos.redhat.com:3007/api/instances/8d02a99c-dfb2-4fba-9763-c2b0669e150e Conductor UI Instance: http://hp-z600-01.rhts.eng.bos.redhat.com/instance 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> Solved, the problem was that RHEV-m changed the xml layout from beta to production. 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> 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 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' 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 |