Displaying 20 results from an estimated 20 matches for "boot_type".
2009 Jul 23
0
[PATCH server] Add network QMF apis.
...ender(@network)
+ end
+
+ def list
+ puts "query for Network class!"
+ svc_list
+ @networks.collect { |network| render(network) }
+ end
+
+ def render(network)
+ obj = to_qmf(network, :propmap => { :proto => nil})
+ obj['proto'] = network.boot_type.proto
+ puts "network.type is #{@network.type}"
+ if @network.type == 'PhysicalNetwork'
+ obj['impl'] = @agent.encode_id(PhysicalNetworkImplController.schema_class.id, @network.id)
+ elsif @network.type == 'Vlan'
+ obj['impl'] =...
2009 Sep 23
0
[PATCH server] add network boot protocol 'none'
---
src/app/models/boot_type.rb | 2 +-
src/db/migrate/043_add_bootproto_none.rb | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 1 deletions(-)
create mode 100644 src/db/migrate/043_add_bootproto_none.rb
diff --git a/src/app/models/boot_type.rb b/src/app/models/boot_type.rb
index 6cfdb...
2009 Nov 03
0
[PATCH server] suggest ip address for nics/bondings on edit host/vm network forms
...ler.rb
index 9860843..c4ad7ce 100644
--- a/src/app/controllers/vm_controller.rb
+++ b/src/app/controllers/vm_controller.rb
@@ -193,7 +193,7 @@ class VmController < ApplicationController
networks.each{ |net|
nnic = Nic.new(:mac => Nic::gen_mac, :network => net)
if(net.boot_type.proto == 'static')
- nnic.ip_addresses << IpAddress.new(:address => '127.0.0.1') # FIXME
+ nnic.ip_addresses << IpAddress.new(:address => net.gen_address)
end
@nics.push nnic
}
diff --git a/src/app/models/ip_address.rb b/s...
2010 Aug 25
2
[PATCH] Virtio support
...@vm.nics.each { |nic|
nnic = Nic.new(:mac => nic.mac,
:vm_id => @vm.id,
- :network => nic.network)
+ :network => nic.network,
+ :virtio => nic.virtio)
if(nic.network.boot_type.proto == 'static')
nnic.ip_addresses << IpAddress.new(:address => nic.ip_address)
@@ -216,7 +229,9 @@ class VmController < ApplicationController
network_id = params[:networks][i]
unless network_id.nil? || network_id == ""...
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
...trollers/vm_controller.rb
+++ b/src/app/controllers/vm_controller.rb
@@ -177,9 +177,10 @@ class VmController < ApplicationController
nnic = Nic.new(:mac => nic.mac,
:vm_id => @vm.id,
:network => nic.network)
- if(nic.network.boot_type.proto == 'static')
- nnic.ip_addresses << IpAddress.new(:address => nic.ip_address)
- end
+
+ if(nic.network.boot_type.proto == 'static')
+ nnic.ip_addresses << IpAddress.new(:address => nic.ip_address)
+ end
@nics.push n...
2010 Sep 21
1
[PATCH] Introduce ability to select any kind of nic model, not just default or virtio.
...r < ApplicationController
nnic = Nic.new(:mac => nic.mac,
:vm_id => @vm.id,
:network => nic.network,
- :virtio => nic.virtio)
+ :model => nic.model)
if(nic.network.boot_type.proto == 'static')
nnic.ip_addresses << IpAddress.new(:address => nic.ip_address)
@@ -221,6 +221,8 @@ class VmController < ApplicationController
@nics.push nnic
}
+ @nic_models = Nic::NIC_MODELS
+
end
# merges vm / network parameters as sub...
2009 May 15
0
[PATCH server] use service layer for Network controller.
...ntent' if params[:ajax]
- render :layout => 'help-and-content' if params[:nolayout]
- }
- format.xml {
- render :xml => @pool.to_xml(XML_OPTS)
- }
- end
- end
-
- def networks_json
- json_list(Network.find(:all), [:id, :name, :type, [:boot_type, :label]])
- end
+ def list
+ svc_list()
+ respond_to do |format|
+ format.html {
+ render :layout => 'tabs-and-content' if params[:ajax]
+ render :layout => 'help-and-content' if params[:nolayout]
+ }
+ format.xml {
+ render :xml =...
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
...form
+ def _setup_network_options
+ net_conditions = ""
+ @nics = []
+
+ unless @vm.nil?
+ @vm.nics.each { |nic|
+ nnic = Nic.new(:mac => nic.mac,
+ :vm_id => @vm.id,
+ :network => nic.network)
+ if(nic.network.boot_type.proto == 'static')
+ nnic.ip_addresses << IpAddress.new(:address => nic.ip_address)
+ end
+ @nics.push nnic
+
+ net_conditions += (net_conditions == "" ? "" : " AND ") +
+ "id != " + nic.network_i...
2009 Oct 06
0
[PATCH server] new host networking wui
...; + j[i].id + '">' + j[i].name +
- '</option>';
+ // create list of networks
+ var networks = new Array();
+ <% @networks.each { |rnet| %>
+ jnet = new Object;
+ jnet.id = <%= rnet.id.to_s %>;
+ jnet.static_ip = <%= rnet.boot_type.proto == 'static' %>;
+ jnet.boot_type = "<%= rnet.boot_type.proto %>";
+ jnet.selected = false;
+ networks.push(jnet);
+ <% } %>
+
+ // the last network selected upon clicking a network select box
+ var last_network_selected = null;
+
+ // create list...
2009 Jul 16
0
[PATCH server] add network QMF apis. (still in progress)
..."query for Network class!"
+ svc_list
+ @networks.collect { |network| render(network) }
+ end
+
+ def render(network)
+ puts "calling to_qmf on #{pool}, #{pool.name}"
+ obj = to_qmf(network, :propmap => { :proto => nil})
+ obj.proto = network.boot_type.label
+ return obj
+ end
+
+ end
+end
diff --git a/src/ovirt-agent/lib/ovirt/controllers/physical_network_impl_controller.rb b/src/ovirt-agent/lib/ovirt/controllers/physical_network_impl_controller.rb
new file mode 100644
index 0000000..456b4e9
--- /dev/null
+++ b/src/ovirt-agent/lib/ovirt...
2020 Aug 27
1
Re: Weird results from g.sh()
I see, thanks for the clarification.
On Thu, Aug 27, 2020 at 12:05 PM Richard W.M. Jones <rjones@redhat.com> wrote:
>
> On Thu, Aug 27, 2020 at 11:24:57AM +0300, Sam Eiderman wrote:
> > Yes, I understand that, I am just surprised to know that we bind /sys
> > for g.sh() commands.
> >
> > However, "g.command([self.mkconfig, '-o', self.config])"
2009 Sep 23
0
[PATCH server] consolidated network & routing info ui's
...h
# bonding_id column in nics table, and relationship changed
diff --git a/src/app/models/network.rb b/src/app/models/network.rb
index 89f9876..22e5692 100644
--- a/src/app/models/network.rb
+++ b/src/app/models/network.rb
@@ -18,7 +18,7 @@
class Network < ActiveRecord::Base
belongs_to :boot_type
- has_many :ip_addresses, :dependent => :destroy
+ has_many :ip_addresses, :dependent => :destroy # FIXME should really be a has_one
has_and_belongs_to_many :usages, :join_table => 'networks_usages'
diff --git a/src/app/models/nic.rb b/src/app/models/nic.rb
index 51425bc.....
2020 Aug 27
2
Re: Weird results from g.sh()
...config command:
def _fix_grub2_config_efi(self, g):
# On rhel7.8 the grub config is set to non efi commands due to
# a weak uefi detection algorithm which doesn't work from a chrooted
# environment (checks for [ -d /sys/firmware/efi ])
if (self.root.family, self.boot_type) != (LinuxFamily.RHEL,
BootType.UEFI):
return
grub_config = g.read_file(self.config).decode('utf-8')
write = False
for old, new in [('linux16', 'linuxefi'),
('i...
2020 Aug 27
2
Weird results from g.sh()
Hi,
I'm using libguestfs 1.42,
When I run the following python3 commands on a rhel7.8:
print(g.ls('/sys'))
print(g.sh('ls /sys'))
I get:
[]
block
bus
class
dev
devices
firmware
fs
hypervisor
kernel
module
power
It seems that g.ls('/sys') is chrooted correctly.
But g.sh('ls /sys') isn't.
I came across this behavior when I used
2009 Jul 31
2
RFC: This patch is not being submitted for ACK...
...just looking for some feedback on the direction I'm going.
The code won't get all the way to the define stage since I'm in
the middle of retrofitting it to use virtinst instead of a home
spun node definition.
2009 Jul 08
1
[PATCH: host-browser replacement 0/3] replacement of host-browser on ovirt-server
The purpose of this patch is to replace the identify function in
host-browser.rb with a new script, host-register.rb.
host-register.rb is a qmf ruby console that interfaces with the newly
added matahari qmf agent on the ovirt node. While it stores node data
in the database with the same behavior as the original host-browser
implementation, it acquires the data using the amqp protocol (and
2009 Jul 10
2
[PATCH: server 0/3] Add host-register.rb (replaces host-browser.rb in part)
Removes node identification functionality from host-browser.rb and adds a new script,
host-register.rb, that takes over that functionality.
The chief difference is that host-browser used a simple TCP server setup to get data
from the node, while host-register uses the qpid bus to do so. Specifically, it
communicates with the matahari qmf agent added to the node in two related patchsets to
node
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server