Bug 220409

Summary: xm gives python traceback when trying pwd is /etc/xen
Product: Red Hat Enterprise Linux 5 Reporter: Jim Dennis <jdennis>
Component: xenAssignee: Xen Maintainance List <xen-maint>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-21 07:18:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jim Dennis 2006-12-21 01:38:13 UTC
Description of problem:

The xm create command gives the following Python traceback when attempting 
create a domain when the invocation occurs from within the /etc/xen directory:


cd /etc/xen && xm create foo
Using config file "foo".
/usr/lib/python2.4/site-packages/xen/xm/opts.py:520: DeprecationWarning: Non-
ASCII character '\xeb' in file foo on line 1, but no encoding declared; see 
http://www.python.org/peps/pep-0263.html for details
  execfile(defconfig, globs, locs)
Error: invalid syntax (foo, line 1)



Version-Release number of selected component (if applicable): xen-3.0.3-8.el5


How reproducible: 

trivially

Steps to Reproduce:

1. 
    Create a domU (named $foo)

2.
    cd /etc/xen

3.
    xm create $foo

  
Actual results:

Using config file "foo".
/usr/lib/python2.4/site-packages/xen/xm/opts.py:520: DeprecationWarning: Non-
ASCII character '\xeb' in file foo on line 1, but no encoding declared; see 
http://www.python.org/peps/pep-0263.html for details
  execfile(defconfig, globs, locs)
Error: invalid syntax (foo, line 1)


Expected results:

Using config file "/etc/xen/foo"
Started domain foo


Additional info:

Comment 1 Daniel Veillard 2006-12-21 07:18:35 UTC

*** This bug has been marked as a duplicate of 220408 ***