search for: ovirt_vars

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

2010 Oct 25
0
[PATCH node] add network.py script
...self.VLAN_ID="" + self.VL_ROOT="" + self.VL_FILENAME ="" + self.nic="" + self.bridge="" + self.vlan_id="" + + def configure_interface(self): + log("Configuring Interface") + if OVIRT_VARS.has_key("OVIRT_IP_ADDRESS"): + IPADDR = OVIRT_VARS["OVIRT_IP_ADDRESS"] + NETMASK = OVIRT_VARS["OVIRT_IP_NETMASK"] + GATEWAY = OVIRT_VARS["OVIRT_IP_GATEWAY"] + PREFIX = OVIRT_VARS["OVIRT_IP_PREFIX"] + +...
2011 Jul 18
0
[PATCH] fix ipv6 switch to disabled
...a/scripts/network.py +++ b/scripts/network.py @@ -78,7 +78,6 @@ class Network: self.BR_CONFIG += "set %s/TYPE Bridge\n" % BR_ROOT self.BR_CONFIG += "set %s/PEERNTP yes\n" % BR_ROOT self.BR_CONFIG += "set %s/DELAY 0\n" % BR_ROOT - if OVIRT_VARS.has_key("OVIRT_IPV6"): if OVIRT_VARS["OVIRT_IPV6"] == "auto": self.BR_CONFIG += "set %s/IPV6INIT yes\n" % BR_ROOT @@ -89,11 +88,16 @@ class Network: self.BR_CONFIG += "set %s/IPV6_AUTOCONF no\n" % BR_R...
2010 Oct 26
0
[PATCH node] add install.py
...ers like console=... +# default is $OVIRT_BOOTPARAMS +# +# reboot - reboot after install +# default is yes + +from ovirtfunctions import * +import shutil +import sys + +def ovirt_boot_setup(): + + log("installing the image.") + + if OVIRT_VARS["OVIRT_ROOT_INSTALL"] == "n": + log("done.") + return + + found_boot=False + rc = os.system("findfs LABEL=Boot 2>&1 >/dev/null") + if rc == 0: + found_boot = True + grub_dev_label = "Boot" + rc = os....
2011 Jul 20
0
[PATCH] fix ipv4 static/dhcp/disabled networking changes
...) diff --git a/scripts/network.py b/scripts/network.py index 8159283..8956d00 100644 --- a/scripts/network.py +++ b/scripts/network.py @@ -42,27 +42,21 @@ class Network: def configure_interface(self): log("Configuring Interface") + self.disabled_nic = 0 if OVIRT_VARS.has_key("OVIRT_IP_ADDRESS"): IPADDR = OVIRT_VARS["OVIRT_IP_ADDRESS"] NETMASK = OVIRT_VARS["OVIRT_IP_NETMASK"] GATEWAY = OVIRT_VARS["OVIRT_IP_GATEWAY"] - if OVIRT_VARS.has_key("OVIRT_BOOTIF"): -...
2011 Aug 03
1
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations
..., 54 insertions(+), 17 deletions(-) diff --git a/scripts/network.py b/scripts/network.py index ccc4bd8..f51ee7c 100644 --- a/scripts/network.py +++ b/scripts/network.py @@ -85,9 +85,10 @@ class Network: self.BR_CONFIG += "set %s/DHCPV6C yes\n" % BR_ROOT elif OVIRT_VARS["OVIRT_IPV6"] == "static": self.BR_CONFIG += "set %s/IPV6INIT yes\n" % BR_ROOT - self.BR_CONFIG += "set %s/IPV6ADDR %s\n" % (BR_ROOT, OVIRT_VARS["OVIRT_IPV6_ADDRESS"]) + self.BR_CONFIG += "set %s/I...
2011 Aug 03
0
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations.
..., 53 insertions(+), 18 deletions(-) diff --git a/scripts/network.py b/scripts/network.py index ccc4bd8..f51ee7c 100644 --- a/scripts/network.py +++ b/scripts/network.py @@ -85,9 +85,10 @@ class Network: self.BR_CONFIG += "set %s/DHCPV6C yes\n" % BR_ROOT elif OVIRT_VARS["OVIRT_IPV6"] == "static": self.BR_CONFIG += "set %s/IPV6INIT yes\n" % BR_ROOT - self.BR_CONFIG += "set %s/IPV6ADDR %s\n" % (BR_ROOT, OVIRT_VARS["OVIRT_IPV6_ADDRESS"]) + self.BR_CONFIG += "set %s/I...
2011 Aug 11
0
[PATCH] map nics-> bridges correctly in network pages, when cancelling nic configuration return to network page
...allback(self.ipv4_netmask_callback) self.ipv4_netdevgateway = Entry(16, "", scroll = 0) self.ipv4_netdevgateway.setCallback(self.ipv4_gateway_callback) + if not dev_bridge is None: + dev = dev_bridge if "OVIRT_IP_ADDRESS" in OVIRT_VARS: self.ipv4_netdevip.set(OVIRT_VARS["OVIRT_IP_ADDRESS"]) else: - current_ip = get_ip_address(self.nic_lb.current()) - if current_ip == "": - current_ip = get_ip_address("br" + self.nic_lb.current()) +...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...quot; +# configuration values are loaded in the following order: +# 1. /etc/sysconfig/node-config sets the default values +# 2. /etc/default/ovirt is loaded to override defaults with karg values +NODE_SYSCONFIG="/etc/sysconfig/node-config" +OVIRT_DEFAULTS="/etc/default/ovirt" + +OVIRT_VARS = {} +# Parse all OVIRT_* variables +if os.path.exists(NODE_SYSCONFIG): + try: + f = open(NODE_SYSCONFIG, 'r') + for line in f: + try: + line = line.strip() + key, value = line.split("\"", 1) + key = key...
2010 Oct 26
0
[PATCH node] add collectd.py
...log("Failed to write $collectd_conf") + sys.exit(1) + + os.system("chkconfig collectd on") + os.system("service collectd restart") + +# AUTO for auto-install +if len(sys.argv) > 1: + if sys.argv[1] == "AUTO": + if not OVIRT_VARS.has_key("OVIRT_COLLECTD_SERVER") or not OVIRT_VARS.has_key["OVIRT_COLLECTD_PORT"]: + log("\nAttempting to locate remote collectd server...") + host, port = find_srv("collectd", "udp") + if not host is None and not po...
2010 Oct 26
0
[PATCH node] add logging.py
...log_dict + rsyslog_config = open(RSYSLOG_FILE, "w") + rsyslog_config.write(rsyslog_config_out) + rsyslog_config.close() + os.system("/sbin/service rsyslog restart") + +if len(sys.argv) > 1: + try: + if sys.argv[1] == "AUTO": + if not OVIRT_VARS.has_key("OVIRT_SYSLOG_SERVER") or not OVIRT_VARS.has_key("OVIRT_SYSLOG_PORT"): + + log("\nAttempting to locate remote syslog server...") + host, port = find_srv("syslog", "udp") + if not h...
2011 Aug 11
1
[PATCH] fix augtool calls
...key, value = line.split() + augtool(oper, key, value) except: - oper, file = line.split() - - augtool(oper, line, "") + oper, key = line.split() + augtool(oper, key, "") if OVIRT_VARS.has_key("OVIRT_NTP"): offset=1 @@ -201,33 +201,33 @@ class Network: for line in self.IF_CONFIG: log(line) try: - oper, file, value = line.split() - augtool(oper, file, value) + oper, key, value =...
2011 Aug 10
0
[PATCH] remove network page loop when selecting other pages
...if pressed == BACK_BUTTON: self.__current_page = NETWORK_PAGE elif self.net_apply_config == 1: self.__current_page = NETWORK_PAGE - elif is_managed(OVIRT_VARS["OVIRT_BOOTPARAMS"]): + elif is_managed(): dev_interface,dev_bootproto,dev_vendor,dev_address,dev_driver,dev_conf_status = self.nic_dict[self.nic_lb.current()].split(",", 5) if self.conf...
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
...HostVG") + log("Wiping LVM on HOSTVGDRIVE") self.wipe_lvm_on_disk(self.HOSTVGDRIVE) + log("Wiping LVM on ROOTDRIVE") self.wipe_lvm_on_disk(self.ROOTDRIVE) self.boot_size_si = self.BOOT_SIZE * (1024 * 1024) / (1000 * 1000) if OVIRT_VARS.has_key("OVIRT_ISCSI_ENABLED") and OVIRT_VARS["OVIRT_ISCSI_ENABLED"] == "y": -- 1.7.4.4
2011 Aug 15
0
[PATCH node] Don't start ntp daemons until networking is started
...log("\nStarting Network service") os.system("service network start &> /dev/null") + os.system("service ntpdate start &> /dev/null") + os.system("service ntpd start &> /dev/null") if OVIRT_VARS.has_key("NTP"): log("Testing NTP Configuration") test_ntp_configuration() diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking index cb96ab5..116159e 100755 --- a/scripts/ovirt-config-networking +++ b/scripts/ovirt-conf...