[Bug 688519] New: xen-4.1.0_01-118.1 'IndentationError' in XendDomainInfo.py; patch included
https://bugzilla.novell.com/show_bug.cgi?id=688519 https://bugzilla.novell.com/show_bug.cgi?id=688519#c0 Summary: xen-4.1.0_01-118.1 'IndentationError' in XendDomainInfo.py; patch included Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: All Status: NEW Severity: Major Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: 6dsSgiu6.5.7y5uGY5s@spamgourmet.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0 after xen 4.1.0 update, xend can't be started rpm -qa | grep -i xen kernel-xen-devel-2.6.37.1-1.2.2.x86_64 xen-kmp-default-4.1.0_01_k2.6.37.1_1.2-118.1.x86_64 xen-tools-4.1.0_01-118.1.x86_64 xen-4.1.0_01-118.1.x86_64 kernel-xen-2.6.37.1-1.2.2.x86_64 xen-libs-4.1.0_01-118.1.x86_64 service xend start IndentationError: unexpected indent .Traceback (most recent call last): File "/usr/sbin/xend", line 36, in <module> from xen.xend.server import SrvDaemon File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py", line 26, in <module> import relocate File "/usr/lib64/python2.7/site-packages/xen/xend/server/relocate.py", line 28, in <module> from xen.xend import XendDomain File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py", line 36, in <module> from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2989 ... apply following patch, --------------------------------------------------------------- --- /usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py.ORIG 2011-04-19 03:59:13.000000000 -0700 +++ /usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py 2011-04-19 09:07:49.464004162 -0700 @@ -2986,9 +2986,9 @@ self._stateSet(DOM_STATE_HALTED) self.domid = None # Do not push into _stateSet()! - try: + try: self.release_running_lock() - except: + except: log.exception("Failed to release domain lock.") finally: self.refresh_shutdown_lock.release() @@ -4498,7 +4498,7 @@ return (dev_uuid in self.info['%s_refs' % dev_class.lower()]) # Return name of host contained in lock file. - def get_lock_host(self, path): + def get_lock_host(self, path): fin = os.popen(xoptions.get_xend_domain_lock_utility() + \ ' -s ' + path, 'r') hostname = "unknown" @@ -4514,7 +4514,7 @@ fin.close() # Acquire a lock for the domain. No-op if domain locking is turned off. - def acquire_running_lock(self): + def acquire_running_lock(self): if not xoptions.get_xend_domain_lock(): return @@ -4540,7 +4540,7 @@ raise XendError("The VM is locked and appears to be running on host %s." % self.get_lock_host(path)) # Release lock for domain. No-op if domain locking is turned off. - def release_running_lock(self, name = None): + def release_running_lock(self, name = None): if not xoptions.get_xend_domain_lock(): return --------------------------------------------------------------- service xend start done all's OK Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=688519 https://bugzilla.novell.com/show_bug.cgi?id=688519#c1 Olaf Hering <ohering@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Olaf Hering <ohering@novell.com> 2011-04-20 17:57:22 CEST --- Thanks for spotting. Python3 will require braces to avoid such errors... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=688519 https://bugzilla.novell.com/show_bug.cgi?id=688519#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-04-20 21:00:38 CEST --- This is an autogenerated message for OBS integration: This bug (688519) was mentioned in https://build.opensuse.org/request/show/67999 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com