search for: vm_resource_pool_id

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

2009 May 15
1
[PATCH server] provide default uuid and mac if not provided for create.
...++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/app/services/vm_service.rb b/src/app/services/vm_service.rb index 4c29bcf..47ac5f5 100644 --- a/src/app/services/vm_service.rb +++ b/src/app/services/vm_service.rb @@ -52,15 +52,9 @@ module VmService def svc_new(vm_resource_pool_id) raise ActionError.new("VM Resource Pool is required.") unless vm_resource_pool_id - # random MAC - mac = [ 0x00, 0x16, 0x3e, rand(0x7f), rand(0xff), rand(0xff) ] - # random uuid - uuid = ["%02x"*4, "%02x"*2, "%02x"*2, "%02x"*2, &...
2010 Sep 01
1
[PATCH 1/3] Adding the VM Pool migration for vms
...+ @vm = Vm.find(params[:id]) + @vm_pools = VmResourcePool.find_all_by_parent_id(@vm.vm_resource_pool.parent.id) + render :layout => 'popup' + end + + def update_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + @vm_pool = VmResourcePool.find(params[:vm][:vm_resource_pool_id]) + @vm.update_attribute(:vm_resource_pool, @vm_pool) + render :json => { :object => "vm", :success => true, + :alert => "VM Pool changed for this Virtual Machine" } + end + protected def _setup_provisioning_options @provisionin...
2010 Aug 25
0
[PATCH] Adding the VM Pool migration for vms
...+ @vm = Vm.find(params[:id]) + @vm_pools = VmResourcePool.find_all_by_parent_id(@vm.vm_resource_pool.parent.id) + render :layout => 'popup' + end + + def update_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + @vm_pool = VmResourcePool.find(params[:vm][:vm_resource_pool_id]) + @vm.update_attribute(:vm_resource_pool, @vm_pool) + render :json => { :object => "vm", :success => true, + :alert => "VM Pool changed for this Virtual Machine" } + end + protected def _setup_provisioning_options @provisionin...
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 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...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 @@ class VmController < ApplicationController def new alert = svc_new(params[:vm_resource_pool_id]) _setup_provisioning_options + _setup_network_options @storage_tree = VmResourcePool.find(params[:vm_resource_pool_id]).get_hardware_pool.storage_tree.to_json - @networks = Network.find(:all).collect{ |net| [net.name, net.id] } render :layout => 'popup' end...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
...get :new, :hardware_pool_id => @default_pool.id, :format => "json" - json = ActiveSupport::JSON.decode(@response.body) - assert_equal 'You do not have permission to create or modify this item ', json['alert'] - assert_not_nil assigns(:vm) + get :new, :vm_resource_pool_id => @vm_pool.id + assert_response :success + assert_template 'new' + assert assigns(:vm) end def test_create num_vms = Vm.count - post :create, :vm_resource_pool_name => 'foobar', - :hardware_pool_id => @default_pool.id, - :vm => { :uu...
2009 Aug 21
0
Unable to assign cobbler image as boot device
...e following is shown in the rails log. Processing VmController#update (for 192.168.42.102 at 2009-08-21 23:45:26) [POST] Parameters: {"vm"=>{"provisioning_and_boot_settings"=>"image at cobbler:W2k8-R2", "storage_volume_ids"=>["9"], "vm_resource_pool_id"=>"5", "uuid"=>"d25a31bb-23a4-aa62-3113-1539a7f9dce9", "description"=>"Alfresco", "memory_allocated_in_mb"=>"1024", "num_vcpus_allocated"=>"1"}, "id"=>"8", "macs...
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
...ame}">#{_(label)}</label></div> } end diff --git a/src/app/views/vm/_form.rhtml b/src/app/views/vm/_form.rhtml index 034c3df..8373bf4 100644 --- a/src/app/views/vm/_form.rhtml +++ b/src/app/views/vm/_form.rhtml @@ -6,15 +6,19 @@ <%= hidden_field 'vm', 'vm_resource_pool_id' %> <%= hidden_field_tag 'hardware_pool_id', @hardware_pool.id if @hardware_pool %> + <div class="form_heading clickable open">General</div> + <div class="vm_form_section"> <%= text_field_with_label "Name:", "vm&...
2010 Sep 09
1
Provisioning Windows
How do I go about provisioning a windows VM? I've added the iso to cobbler using the following command. cobbler image add --name=W2k8Prov --file=nfs://192.168.50.190/ovirt/w2k8.iso The image then appears in the list of Operating Systems to choose when creating a VM. I select the image when I create the VM but then when I go to save I get the error: undefined method `keys' for
2009 Jun 19
0
[PATCH server] add toggable sections to vm form
...eletions(-) create mode 100644 src/public/images/Sort_right_11.png diff --git a/src/app/views/vm/_form.rhtml b/src/app/views/vm/_form.rhtml index 034c3df..4be7bba 100644 --- a/src/app/views/vm/_form.rhtml +++ b/src/app/views/vm/_form.rhtml @@ -6,52 +6,77 @@ <%= hidden_field 'vm', 'vm_resource_pool_id' %> <%= hidden_field_tag 'hardware_pool_id', @hardware_pool.id if @hardware_pool %> - <%= text_field_with_label "Name:", "vm", "description", {:style=>"width:250px;"} %> - <%= text_field_with_label "UUID:",...
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
...t;><label for="#{name}">#{_(label)}</label> diff --git a/src/app/views/vm/_form.rhtml b/src/app/views/vm/_form.rhtml index 034c3df..373452d 100644 --- a/src/app/views/vm/_form.rhtml +++ b/src/app/views/vm/_form.rhtml @@ -6,15 +6,23 @@ <%= hidden_field 'vm', 'vm_resource_pool_id' %> <%= hidden_field_tag 'hardware_pool_id', @hardware_pool.id if @hardware_pool %> + <div class="form_heading"> + <%= link_to "", "#", :id => "vm_general_section_link" %> + </div> + <div id="vm_gener...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...key] = value + end + vm_hash.delete('vm') + vm_hash.delete('uuid') if args['uuid'] == '' + vm_hash.delete('vnic_mac_addr') if args['vnic_mac_addr'] == '' + + # FIXME: DOH! Need to implement pools.. + vm_hash['vm_resource_pool_id'] = 5 + # FIXME: This needs to come from the service layer too.. + vm_hash['boot_device'] = '/dev/sda1' + # FIXME: Scott has made a patch to have these created in the service layer if + # they are not provided. Saves duplicating code here. + vm_hash[...
2009 May 21
1
[PATCH server] Updated look and feel for empty grid views
...t;<br/> - <%if @can_modify -%> - <%= image_tag "icon_add_host.png", :style => "vertical-align:middle;" %>&nbsp;&nbsp; - <a href="<%= url_for :controller => 'vm', :action => 'new', :vm_resource_pool_id => @pool %>" rel="facebox[.bolder]">Add first virtual machine to resource pool</a></li> - <% end -%> + <div class="no-grid-items"> + <img src="images/jumbo_vm.png" alt="virtual machine" width=...