Displaying 13 results from an estimated 13 matches for "ovirtfunct".
2011 Aug 10
0
[PATCH] remove network page loop when selecting other pages
rhbz#725412
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
scripts/ovirt-config-setup.py | 5 ++---
scripts/ovirtfunctions.py | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index a83e7e8..4bd46d5 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -1570,13 +1570,12 @@ class NodeConfigScreen()...
2011 Aug 03
0
[PATCH] update valid_hostname regex checks
rhbz#720956
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
scripts/ovirt-config-setup.py | 22 +++++++++++++---------
scripts/ovirtfunctions.py | 10 +++++++---
2 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index 8c6c8af..a8f85cf 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -274,8 +274,8 @@ class NodeConfigScre...
2011 Aug 03
0
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations.
rhbz#698650
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
scripts/network.py | 3 +-
scripts/ovirt-config-setup.py | 46 +++++++++++++++++++++++++++++++++-------
scripts/ovirtfunctions.py | 22 +++++++++++--------
3 files changed, 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 += "...
2011 Jul 20
0
[PATCH] fix ipv4 static/dhcp/disabled networking changes
...lues from the previous configuration. Support for disabled devices is now added and some useless remnant bash->python coding cleaned up
---
scripts/network.py | 45 +++++++++++++++++++---------------------
scripts/ovirt-config-setup.py | 34 +++++++++++++++++-------------
scripts/ovirtfunctions.py | 2 +-
3 files changed, 41 insertions(+), 40 deletions(-)
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("...
2011 Aug 11
1
[PATCH] fix augtool calls
parse input augtool strings to oper,key,value
---
scripts/network.py | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/scripts/network.py b/scripts/network.py
index f51ee7c..65b551c 100644
--- a/scripts/network.py
+++ b/scripts/network.py
@@ -165,11 +165,11 @@ class Network:
ntpconf = ntpconf.split("\n")
for line
2011 Aug 03
1
[PATCH] display ipv6 address in networking details page, also fix ipv6 netmask configurations
rhbz#698650
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
scripts/network.py | 3 +-
scripts/ovirt-config-setup.py | 48 ++++++++++++++++++++++++++++++++++------
scripts/ovirtfunctions.py | 20 ++++++++++------
3 files changed, 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...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
Putting these out for feedback and comments.
These will eventually support the new newt/python based ui for installation/configuration
storage.py functions will be moved under a class for better data portability before final version
---
scripts/ovirtfunctions.py | 672 +++++++++++++++++++++++++++++++++++++++++++++
scripts/storage.py | 451 ++++++++++++++++++++++++++++++
2 files changed, 1123 insertions(+), 0 deletions(-)
create mode 100644 scripts/ovirtfunctions.py
create mode 100644 scripts/storage.py
diff --git a/scripts/ovirtfunctions...
2010 Oct 26
0
[PATCH node] add collectd.py
...0 deletions(-)
create mode 100755 scripts/collectd.py
diff --git a/scripts/collectd.py b/scripts/collectd.py
new file mode 100755
index 0000000..729f3a9
--- /dev/null
+++ b/scripts/collectd.py
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+#
+# Configures the collectd daemon.
+
+import os
+import sys
+from ovirtfunctions import *
+from subprocess import Popen, PIPE, STDOUT
+
+collectd_conf="/etc/collectd.conf"
+
+def ovirt_collectd(server, port):
+ if os.path.exists(collectd_conf + ".in"):
+ sed_cmd = "sed -e \"s/@COLLECTD_SERVER@/%s/\" \
+ -e \"s/@CO...
2010 Oct 26
0
[PATCH node] add logging.py
...(+), 0 deletions(-)
create mode 100755 scripts/logging.py
diff --git a/scripts/logging.py b/scripts/logging.py
new file mode 100755
index 0000000..6a32b7a
--- /dev/null
+++ b/scripts/logging.py
@@ -0,0 +1,89 @@
+#!/usr/bin/python
+#
+# Configures the rsyslog daemon.
+
+import os
+import sys
+from ovirtfunctions import *
+
+RSYSLOG_FILE="/etc/rsyslog.conf"
+
+RSYSLOG_CONFIG_TEMPLATE = """
+#ovirt rsyslog config file
+
+#### MODULES ####
+\$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command)
+\$ModLoad imklog.so # provides kernel log...
2010 Oct 27
0
[PATCH node] add password.py
...y | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
create mode 100755 scripts/password.py
diff --git a/scripts/password.py b/scripts/password.py
new file mode 100755
index 0000000..bb8f3ee
--- /dev/null
+++ b/scripts/password.py
@@ -0,0 +1,34 @@
+import ovirtfunctions
+import libuser
+
+def cryptPassword(password):
+ saltlen = 2
+ algo = 'sha512'
+ saltlen = 16
+ saltstr = '$6$'
+ for i in range(saltlen):
+ saltstr = saltstr + random.choice (string.letters +
+ string.digits + ...
2010 Oct 27
0
[PATCH node] add uninstall module
...tall.py b/scripts/uninstall.py
new file mode 100755
index 0000000..9e0baff
--- /dev/null
+++ b/scripts/uninstall.py
@@ -0,0 +1,75 @@
+#!/usr/bin/python
+#
+# uninstall.py - destroys an installed copy of the oVirt node
+
+# SYNOPSIS
+# Destroys the HostVG volume group and logical volumes.
+#
+import ovirtfunctions
+import subprocess
+from subprocess import STDOUT, PIPE
+
+def uninstall():
+ if os.path.isdir("/dev/HostVG"):
+ log("Uninstalling node")
+ log("Detaching logging")
+ # multipathd holds all mounts under /var in a private namespace
+ o...
2010 Oct 25
0
[PATCH node] add network.py script
...++++++++++++++++++++++++++
1 files changed, 207 insertions(+), 0 deletions(-)
create mode 100644 scripts/network.py
diff --git a/scripts/network.py b/scripts/network.py
new file mode 100644
index 0000000..28e32f2
--- /dev/null
+++ b/scripts/network.py
@@ -0,0 +1,207 @@
+#!/usr/bin/python
+
+from ovirtfunctions import *
+import tempfile
+import sys
+
+class Network:
+
+ def __init__(self):
+ self.WORKDIR=tempfile.mkdtemp()
+ self.IFCONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg"
+ self.NTPCONF_FILE_ROOT="/files/etc/ntp"
+ self.NTP_CONFIG...
2010 Oct 26
0
[PATCH node] add install.py
...parent of LiveOS and isolinux folders
+# default is /live
+#
+# bootparams - extra boot parameters 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...