Hide Forgot
Description of problem: Monitor, instances - restart is really sending a "reset" to vsphere Recreate: 1. start a vsphere instance via aeolus conductor 2. navigate to the deployment, click "restart" Expected results: The instance goes through the reboot process.. Actual results: The box is reset, meaning the power is pulled and instance boots back up. [root@qeblade31 yum.repos.d]# rpm -qa | grep aeolus aeolus-conductor-daemons-0.9.0-1.el6.noarch rubygem-aeolus-cli-0.4.0-1.el6.noarch rubygem-aeolus-image-0.4.0-1.el6.noarch aeolus-all-0.9.0-1.el6.noarch aeolus-configure-2.6.0-1.el6.noarch aeolus-conductor-0.9.0-1.el6.noarch aeolus-conductor-doc-0.9.0-1.el6.noarch [root@qeblade31 yum.repos.d]# rpm -qa | grepd deltacloud -bash: grepd: command not found [root@qeblade31 yum.repos.d]# rpm -qa | grep deltacloud deltacloud-core-ec2-0.5.0-0.rc1.el6.noarch deltacloud-core-vsphere-0.5.0-0.rc1.el6.noarch deltacloud-core-0.5.0-0.rc1.el6.noarch rubygem-deltacloud-client-0.4.0-3.el6.noarch deltacloud-core-rhevm-0.5.0-0.rc1.el6.noarch
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