Created
February 1, 2021 17:28
-
-
Save Wurzelmann/790a8d57350c634db73d4eea4f594e6c to your computer and use it in GitHub Desktop.
fix for ganeti xen instance migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- hv_xen.py 2021-02-01 18:04:47.850790870 +0100 | |
+++ hv_xen.py 2021-02-01 18:07:58.119056797 +0100 | |
@@ -799,7 +799,9 @@ | |
try: | |
file_content = utils.ReadFile(filename) | |
except EnvironmentError as err: | |
- raise errors.HypervisorError("Failed to load Xen config file: %s" % err) | |
+ ## temporarily fix xen migration with missing config | |
+ file_content = "" | |
+ #raise errors.HypervisorError("Failed to load Xen config file: %s" % err) | |
return file_content | |
@@ -1208,6 +1210,7 @@ | |
@return: content of the xen config file | |
""" | |
+ ##TODO: we need to create a current config file if it does not exist | |
return self._ReadConfigFile(instance.name) | |
def _UseMigrationDaemon(self, hvparams): | |
@@ -1359,7 +1362,8 @@ | |
# of usable SSH keys as of 2.13 | |
args.extend([ | |
"-s", constants.XL_SOCAT_CMD % (target, port), | |
- "-C", self._ConfigFileName(instance_name), | |
+ ## temporarily fix xen migration | |
+ #"-C", self._ConfigFileName(instance_name), | |
]) | |
else: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment