| Summary: | Monitor, instances - restart is really sending a "reset" to vsphere | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | wes hayutin <whayutin> | ||||
| Component: | aeolus-conductor | Assignee: | Michal Fojtik <mfojtik> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.0.0 | CC: | akarol, deltacloud-maint, mfojtik, rlandy, ssachdev | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | http://server/conductor/deployments/1?details_tab=instances | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | r1235216 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-08-30 17:17:26 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
wes hayutin
2012-01-09 21:25:50 UTC
adding to ce-sprint removing ce-sprint-next tracker vsphere doesn§t support ACPI reboot operation just reset: http://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.VirtualMachine.html diff --git a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
index 581500a..a2a5249 100644
--- a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
+++ b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
@@ -317,7 +317,7 @@ module Deltacloud::Drivers::VSphere
# Reboot an instance, given its id.
def reboot_instance(credentials, id)
- find_vm(credentials, id)[:instance].ResetVM_Task
+ find_vm(credentials, id)[:instance].RebootGuest
end
# Start an instance, given its id.
Tests:
Processing /api/instances/test-setup/reboot (for 127.0.0.1 at Tue Jan 24 15:12:30 +0100 2012) [POST] [VSphere]
Parameters: {"_method"=>"post"}
Provider: vsphere.virt.bos.redhat.com
Authentication: Basic
Server: thin 1.3.1 codename Triple Espresso
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Completed in 0.000000 | 0.000000 | 303 | text/html | http://localhost:3045/api/instances/test-setup/reboot
==========
Current results: In console I can see the instance is being rebooted.
Task 3969676 on x86-004.build.bos.redhat.com Task Type: buildArch (deltacloud-core-0.5.0-2.rc1.el6.src.rpm, noarch) logs: https://brewweb.devel.redhat.com//getfile?taskID=3969676&name=build.log https://brewweb.devel.redhat.com//getfile?taskID=3969676&name=mock_output.log https://brewweb.devel.redhat.com//getfile?taskID=3969676&name=root.log https://brewweb.devel.redhat.com//getfile?taskID=3969676&name=state.log rpms: http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/2.rc1.el6/noarch/deltacloud-core-0.5.0-2.rc1.el6.noarch.rpm http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/2.rc1.el6/noarch/deltacloud-core-all-0.5.0-2.rc1.el6.noarch.rpm http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/2.rc1.el6/noarch/deltacloud-core-doc-0.5.0-2.rc1.el6.noarch.rpm http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/2.rc1.el6/noarch/deltacloud-core-ec2-0.5.0-2.rc1.el6.noarch.rpm http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/2.rc1.el6/noarch/deltacloud-core-rhevm-0.5.0-2.rc1.el6.noarch.rpm http://download.devel.redhat.com/brewroot/packages/deltacloud-core/0.5.0/2.rc1.el6/noarch/deltacloud-core-vsphere-0.5.0-2.rc1.el6.noarch.rpm Tested that a 'reboot' action from Delatcloud results in a "reboot guest" not a 'restart' or 'power down' Command issued from Delatcloud: curl -X POST --user 'uname:password' "http://server:3003/api/instances/Deployment-4jmu1-testVsphere/reboot?format=xml" See attached screenshot for Vsphere console registering this action as a reboot. Also Deltacloud API always shows the guest as running (truncated API output copied below): curl -X GET --user 'username:password' "http://server/api/instances/Deployment-4jmu1-testVsphere?format=xml" <?xml version='1.0' encoding='utf-8' ?> ... <state>RUNNING</state> ... <private_addresses></private_addresses> </instance> Created attachment 557266 [details]
Screenshot of Vsphere console with 'Reboot guest' lines
|