search for: needs_restart

Displaying 13 results from an estimated 13 matches for "needs_restart".

2009 Jun 25
2
[PATCH] Fix dbomatic state changes.
...00755 --- a/src/db-omatic/db_omatic.rb +++ b/src/db-omatic/db_omatic.rb @@ -113,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 DbOma...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...iption, :vnic_mac_addr, :state ], + acts_as_xapian :texts => [ :uuid, :description, :state ], :terms => [ [ :search_users, 'U', "search_users" ] ], :eager_load => :smart_pools @@ -111,8 +111,8 @@ class Vm < ActiveRecord::Base NEEDS_RESTART_FIELDS = [:uuid, :num_vcpus_allocated, - :memory_allocated, - :vnic_mac_addr] + :memory_allocated] + STATE_PENDING = "pending" STATE_CREATING = "creating" @...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...D_CREATE, :desc => "VM description/name.")) + @vmdef_class.add_property(Qmf::SchemaProperty.new("provisioning", Qmf::TYPE_LSTR, :access => Qmf::ACCESS_READ_WRITE, :desc => "VM description/name.")) + @vmdef_class.add_property(Qmf::SchemaProperty.new("needs_restart", Qmf::TYPE_BOOL, :access => Qmf::ACCESS_READ_ONLY, :desc => "VM description/name.")) + @vmdef_class.add_property(Qmf::SchemaProperty.new("state", Qmf::TYPE_SSTR, :access => Qmf::ACCESS_READ_ONLY, :desc => "Current state of VM instance.")) + + @a...
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
....rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/> State:<br/> Pending State:<br/> + Total Run Time:<br/> </div> <div class="selection_value"> <%=h @vm.uuid %><br/> @@ -128,7 +129,8 @@ <%unless @vm.needs_restart.nil? or @vm.needs_restart == 0 -%> (needs restart) <% end -%><br/> - <%=h @vm.get_pending_state %> + <%=h @vm.get_pending_state %><br/> + <%=h number_to_duration(@vm.get_calculated_uptime) %> </div> <!-- FI...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
....rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/> State:<br/> Pending State:<br/> + Total Run Time:<br/> </div> <div class="selection_value"> <%=h @vm.uuid %><br/> @@ -128,7 +129,8 @@ <%unless @vm.needs_restart.nil? or @vm.needs_restart == 0 -%> (needs restart) <% end -%><br/> - <%=h @vm.get_pending_state %> + <%=h @vm.get_pending_state %><br/> + <%=h number_to_duration(@vm.get_calculated_uptime) %> </div> <!-- FI...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
....rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/> State:<br/> Pending State:<br/> + Total Run Time:<br/> </div> <div class="selection_value"> <%=h @vm.uuid %><br/> @@ -128,7 +129,8 @@ <%unless @vm.needs_restart.nil? or @vm.needs_restart == 0 -%> (needs restart) <% end -%><br/> - <%=h @vm.get_pending_state %> + <%=h @vm.get_pending_state %><br/> + <%=h number_to_duration(@vm.get_calculated_uptime) %> </div> <!-- FI...
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
....rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/> State:<br/> Pending State:<br/> + Total Run Time:<br/> </div> <div class="selection_value"> <%=h @vm.uuid %><br/> @@ -128,7 +129,8 @@ <%unless @vm.needs_restart.nil? or @vm.needs_restart == 0 -%> (needs restart) <% end -%><br/> - <%=h @vm.get_pending_state %> + <%=h @vm.get_pending_state %><br/> + <%=h number_to_duration(@vm.get_calculated_uptime) %> </div> <!-- FI...
2008 Jun 05
14
Why not ignore stale PID files?
Hi, I have an application which is dying horrible deaths (i.e. segmentation faults) in mid-flight, in production... And of course, I should fix it. But while I find and fix the bugs, I found something I think should be different - I can work on submitting a patch, as it is quite simple, but I might be losing something on my rationale. When Mongrel segfaults, it does not -obviously- get to clean
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...00755 --- a/src/db-omatic/db_omatic.rb +++ b/src/db-omatic/db_omatic.rb @@ -113,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 DbOma...
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...ates_uniqueness_of :forward_vnc_port, - :message => "is already in use", - :if => Proc.new { |vm| vm.forward_vnc && - !vm.forward_vnc_port.nil? && - vm.forward_vnc_port != 0 } - - validates_numericality_of :needs_restart, :greater_than_or_equal_to => 0, :less_than_or_equal_to => 1, @@ -408,18 +384,6 @@ class Vm < ActiveRecord::Base super end - # find the first available vnc port - def self.available_forward_vnc_port - i = FORWARD_VNC_PORT_START - Vm.find(:all, - :co...
2009 Jun 29
2
One more fix
This resend includes the rebase, but fixes a problem I just noticed with nil/empty checks.
2009 Jun 29
2
Resend of Cloud UI/service patches
This is a resend of the 2-patch series from a week or so ago, needed to be rebased due to some commits on next
2009 Jun 22
2
Patch series for Cloud Vm Actions
The following two patches should be applied in the order: * [PATCH server] Add svc_vm_actions method to VmService. * [PATCH server] Cloud UI layer to initiate actions on vms. The service layer patch should work fine on its own (and not break anything), but cloud patch relies on service being there.