search for: get_hardware_pool

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

2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
...39;vm_action' %>"> + <div class="dialog_form"> + <%= error_messages_for 'start_vm' %> + + <%= render :partial => '/host/grid', :locals => { + :table_id => 'start_vm_grid', + :hwpool => @vm.get_hardware_pool, + :exclude_pool => nil, + :exclude_host => nil, + :is_popup => true, + :checkboxes => false, + :on_select => 'start_vm_select', + :on_deselect => 'start_vm_deselect', + :on_hover => ...
2010 Feb 25
2
[PATCH] Enhance vms display
...gs) - attr_list = [:id, :description, :uuid, + attr_list = [:id, :description, :num_vcpus_allocated, :memory_allocated_in_mb, - :state, :calc_uptime, :id] + :state, :contact, :os, :eol, :comment ] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) - attr_list.insert(3, [:host, :hostname]) + attr_list.insert(2, [:host, :hostname]) end json_list(args[:full_items], attr_list, [:all], args[:find_opts]) end diff --git a/src/app/views/vm/_form.rhtml b/src/app/views/vm/_form.rhtml index adb75d2..13e73db 100644...
2010 Sep 01
1
[PATCH 2/2] Adding the ability to select a Host to start a VM [2/2]
...b/src/task-omatic/taskomatic.rb index 471ec88..1dfd74f 100755 --- a/src/task-omatic/taskomatic.rb +++ b/src/task-omatic/taskomatic.rb @@ -355,11 +355,10 @@ class TaskOmatic end end - if task.args + if task.args && !task.args.blank? db_host = db_vm.vm_resource_pool.get_hardware_pool.hosts.find(task.args) - else - db_host = find_capable_host(db_vm) end + db_host ||= find_capable_host(db_vm) node = @qmfc.object(:class => "node", 'hostname' => db_host.hostname) -- 1.7.2.2
2009 Sep 08
1
[PATCH server] fix live migration
...s_a? SmartPool) and (hwpool.tagged_hosts.size > hosts_per_page))) diff --git a/src/app/views/vm/migrate.rhtml b/src/app/views/vm/migrate.rhtml index f94723a..9165425 100644 --- a/src/app/views/vm/migrate.rhtml +++ b/src/app/views/vm/migrate.rhtml @@ -44,6 +44,7 @@ :hwpool => @vm.get_hardware_pool, :exclude_pool => nil, :exclude_host => @vm.host_id, + :is_popup => true, :checkboxes => false, :on_select => "migrate_vm_select", :on_deselect => "migrate_vm_deselect", -- 1.6.2...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with multiple networks and vice-versa. updated patchset so as to be applicable against current oVirt server HEAD these patches may be applied in any order, they all need to be pushed together
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server frontend, backend, and tests components, permitting vms to be associated with multiple networks and vice versa. Also included are two patches which are required for the frontend bits; a patch adding collapsable sections to the vm form, which in itself depends on the second patch that provides default values for the cpu and memory vm table fields
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...x b51f4ae..b2965af 100644 --- a/src/app/controllers/vm_controller.rb +++ b/src/app/controllers/vm_controller.rb @@ -135,10 +135,7 @@ class VmController < ApplicationController end def migrate - @vm = Vm.find(params[:id]) - @current_pool_id=@vm.vm_resource_pool.id - set_perms(@vm.get_hardware_pool) - authorize_admin + svc_get_for_migrate(params[:id]) render :layout => 'popup' end @@ -173,12 +170,4 @@ class VmController < ApplicationController #if cobbler doesn't respond/is misconfigured/etc just don't add profiles end end - - # FIXME: rem...
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...ionController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :vnic_mac_addr, :state, :calc_uptime, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb index 9d1074a..87f07f5 100644 --- a/src/app/controllers/resources_controller.rb +++ b/src/app/controllers/resources_controll...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...ionController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :vnic_mac_addr, :state, :calc_uptime, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb index 9d1074a..87f07f5 100644 --- a/src/app/controllers/resources_controller.rb +++ b/src/app/controllers/resources_controll...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...ionController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :vnic_mac_addr, :state, :calc_uptime, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb index 9d1074a..87f07f5 100644 --- a/src/app/controllers/resources_controller.rb +++ b/src/app/controllers/resources_controll...
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
...ionController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :vnic_mac_addr, :state, :calc_uptime, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/controllers/resources_controller.rb b/src/app/controllers/resources_controller.rb index 9d1074a..7188db8 100644 --- a/src/app/controllers/resources_controller.rb +++ b/src/app/controllers/resources_controll...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...s PoolController < ApplicationController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :state, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/controllers/vm_controller.rb b/src/app/controllers/vm_controller.rb index 197241d..2c0079c 100644 --- a/src/app/controllers/vm_controller.rb +++ b/src/app/controllers/vm_controller.rb @@ -55,29 +55,31 @@ cl...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...to be for migration # but it could break creation of VMs in certain conditions.. - vm = @session.object(:class => "domain", 'uuid' => db_vm.uuid) + vm = @qmfc.object(:class => "domain", 'uuid' => db_vm.uuid) db_vm.vm_resource_pool.get_hardware_pool.hosts.each do |curr| # Now each of 'curr' is in the right hardware pool.. # now we check them out. - node = @session.object(:class => "node", 'hostname' => curr.hostname) + node = @qmfc.object(:class => "node", 'hostname'...