Displaying 6 results from an estimated 6 matches for "__connection".
2009 Oct 29
1
[PATCH] Enables users to migrate virtual machines between hosts.
...y
index ef35b7d..ebcb4ea 100644
--- a/nodeadmin/addhost.py
+++ b/nodeadmin/addhost.py
@@ -59,7 +59,9 @@ class AddHostConfigScreen(ConfigScreen):
def validate_input(self, page, errors):
if page is DETAILS_PAGE:
- if len(self.__hostname.value()) > 0:
+ if self.__connection.getSelection() is CONNECTION_LOCAL:
+ return True
+ elif len(self.__hostname.value()) > 0:
return True
else:
errors.append("You must enter a remote hostname.")
@@ -115,8 +117,12 @@ class AddHostConfigScreen(Config...
2009 Dec 08
2
Rebased patches, fixed a rebasing problem...
The previous patch set had an error and one development branch's changes
showed up twice, and two different change sets. So it was missing the bulk
of the configuration work. This patch set fixes that.
2009 Oct 26
0
[PATCH node] Users can now work with remote libvirt hosts.
...errors.append("You must enter a remote hostname.")
+ elif page is CONFIRM_PAGE: return True
+ return False
+
+ def process_input(self, page):
+ if page is CONFIRM_PAGE:
+ hv = self.__hypervisor.getSelection()
+ conn = self.__connection.getSelection()
+ hostname = self.__hostname.value()
+
+ if hv is HYPERVISOR_XEN:
+ if conn is CONNECTION_LOCAL: url = "xen:///"
+ elif conn is CONNECTION_KERBEROS: url = "xen+tcp:///" + hostname + "/"
+...
2009 Dec 03
1
Rebased against next...
This set of patches have been rebased since the originals have grown stale.
2009 Nov 11
1
Combined patch set for migration...
This patch set includes both the host configuration patch and the
node migration patch which depends on it. And the latter has a fix
for missing files.
2009 Oct 28
1
[PATCH] Users can now work with remote libvirt hosts.
...errors.append("You must enter a remote hostname.")
+ elif page is CONFIRM_PAGE: return True
+ return False
+
+ def process_input(self, page):
+ if page is CONFIRM_PAGE:
+ hv = self.__hypervisor.getSelection()
+ conn = self.__connection.getSelection()
+ hostname = self.__hostname.value()
+
+ if hv is HYPERVISOR_XEN:
+ if conn is CONNECTION_LOCAL: url = "xen:///"
+ elif conn is CONNECTION_KERBEROS: url = "xen+tcp:///" + hostname + "/"
+...