search for: state_stopped

Displaying 14 results from an estimated 14 matches for "state_stopped".

2009 Jun 25
2
[PATCH] Fix dbomatic state changes.
...13,6 +113,15 @@ class DbOmatic < Qpid::Qmf::Console end end + def set_vm_stopped(db_vm) + db_vm.host_id = nil + db_vm.memory_used = nil + db_vm.num_vcpus_used = nil + db_vm.needs_restart = nil + db_vm.vnc_port = nil + db_vm.state = Vm::STATE_STOPPED + end + def update_domain_state(domain, state_override = nil) vm = Vm.find(:first, :conditions => [ "uuid = ?", domain['uuid'] ]) if vm == nil @@ -190,12 +199,7 @@ class DbOmatic < Qpid::Qmf::Console result = qmf_vm.undefine...
2009 Jun 29
0
[PATCH server] REVISED Vm state change auditing/accounting
...ED = "create_failed" STATE_INVALID = "invalid" + ALL_STATES = [STATE_PENDING, + STATE_CREATING, + STATE_RUNNING, + STATE_UNREACHABLE, + STATE_POWERING_OFF, + STATE_STOPPING, + STATE_STOPPED, + STATE_STARTING, + STATE_SUSPENDING, + STATE_SUSPENDED, + STATE_RESUMING, + STATE_SAVING, + STATE_SAVED, + STATE_RESTORING, + STATE_MIGRATING, + STATE_CREATE_FAIL...
2009 Jun 24
1
[PATCH server] Vm state change auditing/accounting
...ED = "create_failed" STATE_INVALID = "invalid" + ALL_STATES = [STATE_PENDING, + STATE_CREATING, + STATE_RUNNING, + STATE_UNREACHABLE, + STATE_POWERING_OFF, + STATE_STOPPING, + STATE_STOPPED, + STATE_STARTING, + STATE_SUSPENDING, + STATE_SUSPENDED, + STATE_RESUMING, + STATE_SAVING, + STATE_SAVED, + STATE_RESTORING, + STATE_MIGRATING, + STATE_CREATE_FAIL...
2010 Aug 25
2
[PATCH] Virtio support
...-113,10 +124,11 @@ </div> <div class="clear_row"></div> - <div class="form_heading"/> - <%= check_box_tag_with_label "Start VM Now? (pending current resource availability)", "start_now", nil if create or @vm.state == Vm::STATE_STOPPED %> - <%= check_box_tag_with_label "Restart VM Now? (pending current resource availability)", "restart_now", nil if @vm.state == Vm::STATE_RUNNING %> - + <div class="form_heading clickable closed">Restart</div> + <div class="vm_form_se...
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...13,6 +113,15 @@ class DbOmatic < Qpid::Qmf::Console end end + def set_vm_stopped(db_vm) + db_vm.host_id = nil + db_vm.memory_used = nil + db_vm.num_vcpus_used = nil + db_vm.needs_restart = nil + db_vm.vnc_port = nil + db_vm.state = Vm::STATE_STOPPED + end + def update_domain_state(domain, state_override = nil) vm = Vm.find(:first, :conditions => [ "uuid = ?", domain['uuid'] ]) if vm == nil @@ -190,12 +199,7 @@ class DbOmatic < Qpid::Qmf::Console result = qmf_vm.undefine...
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
...sk.rb b/src/app/models/vm_task.rb index 649001d..b8da529 100644 --- a/src/app/models/vm_task.rb +++ b/src/app/models/vm_task.rb @@ -56,7 +56,9 @@ class VmTask < Task :success => Vm::STATE_RUNNING, :failure => Vm::STATE_STOPPED, :privilege => [Privilege::VM_CONTROL, - PRIV_OBJECT_VM_POOL]}, + PRIV_OBJECT_VM_POOL], + :popup_action => 's...
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
...t locally", "forward_vnc", 1, @vm.forward_vnc %> + </div> + <div class="clear_row"></div> - <%= check_box_tag_with_label "Start VM Now? (pending current resource availability)", "start_now", nil if create or @vm.state == Vm::STATE_STOPPED %> - <%= check_box_tag_with_label "Restart VM Now? (pending current resource availability)", "restart_now", nil if @vm.state == Vm::STATE_RUNNING %> + <%= rcheck_box_tag_with_label "Start VM Now? (pending current resource availability)", "start_now...
2010 Jun 08
1
[PATCH] Fix optimistic locking during vm migration
...end @logger.info "Updating VM #{domain['name']} to state #{state}" + # Optimistic locking often fails for this operation + # See http://api.rubyonrails.org/classes/ActiveRecord/Locking/Pessimistic.html#M001320 + vm.lock! if state == Vm::STATE_STOPPED @logger.info "VM has moved to stopped, clearing VM attributes." -- 1.7.0.4
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
...vnc %> - <div class="clear_row"></div> + </div> + <div class="clear_row"></div> <%= check_box_tag_with_label "Start VM Now? (pending current resource availability)", "start_now", nil if create or @vm.state == Vm::STATE_STOPPED %> <%= check_box_tag_with_label "Restart VM Now? (pending current resource availability)", "restart_now", nil if @vm.state == Vm::STATE_RUNNING %> @@ -103,7 +112,11 @@ ${htmlList(pools, id)} channel: 'STORAGE_VOLUME', refresh: VmCreator.ret...
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...'s vnc port locally", "forward_vnc", 1, @vm.forward_vnc %> - <div class="clear_row"></div> - <%= check_box_tag_with_label "Start VM Now? (pending current resource availability)", "start_now", nil if create or @vm.state == Vm::STATE_STOPPED %> <%= check_box_tag_with_label "Restart VM Now? (pending current resource availability)", "restart_now", nil if @vm.state == Vm::STATE_RUNNING %> diff --git a/src/app/views/vm/show.rhtml b/src/app/views/vm/show.rhtml index ffe5055..0bdf1e9 100644 --- a/src/app/vi...
2009 Nov 13
1
[PATCH server] Replace the occurence of the type @qmfc.object(Qmf::Query.new(:class => "xxx", 'key' => search_key)) for @qmfc.object(Qmf::Query.new(:class => "xxx"), 'key' => search_key) else the search on the key is not functionnal.
...iles changed, 11 insertions(+), 9 deletions(-) diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb index 686ad71..da11bfa 100755 --- a/src/db-omatic/db_omatic.rb +++ b/src/db-omatic/db_omatic.rb @@ -198,7 +198,7 @@ class DbOmatic < Qmf::ConsoleHandler if state == Vm::STATE_STOPPED @logger.info "VM has moved to stopped, clearing VM attributes." - qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain", 'uuid' => vm.uuid)) + qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain"), 'uuid'...
2009 Jun 19
0
[PATCH server] add toggable sections to vm form
...cally", "forward_vnc", 1, @vm.forward_vnc %> + </div> <div class="clear_row"></div> <%= check_box_tag_with_label "Start VM Now? (pending current resource availability)", "start_now", nil if create or @vm.state == Vm::STATE_STOPPED %> @@ -104,6 +129,16 @@ ${htmlList(pools, id)} refresh: VmCreator.returnToVmForm }); }); -</script> + toggle_visability_on_click('#vm_general_config', '#vm_general_section_link', 'General'); + toggle_visability_on_click('#vm_resourc...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...s DbOmatic < Qpid::Qmf::Console end end - def ensure_credentials() get_credentials('qpidd') - Thread.new do while true do sleep(3600) @@ -195,7 +198,7 @@ class DbOmatic < Qpid::Qmf::Console if state == Vm::STATE_STOPPED @logger.info "VM has moved to stopped, clearing VM attributes." - qmf_vm = @session.object(:class => "domain", 'uuid' => vm.uuid) + qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain", 'uuid' => vm.uuid...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...;></div> </div> <div class="clear_row"></div> + <div class="form_heading"/> <%= rcheck_box_tag_with_label "Start VM Now? (pending current resource availability)", "start_now", nil if create or @vm.state == Vm::STATE_STOPPED %> <%= rcheck_box_tag_with_label "Restart VM Now? (pending current resource availability)", "restart_now", nil if @vm.state == Vm::STATE_RUNNING %> @@ -135,4 +152,186 @@ ${htmlList(pools, id)} hide_section_with_header('#vm_network_config', '#vm...