Hi, I''m having trouble using xc_com_create.py. It reports that it''s missing tempfile.mkdtemp() in xend_control_message from line 195 of xenctl/utils.py. The xen.bkbits.net indicates this change was added to version 1.19 on 14 March. The reason it''s missing is it was only introduced to Python 2.3, and both Red Hat Linux 9 and Fedora are using 2.2 (2.2.2-26 and 2.2.3-7 respectively). Although I can install the 2.3 RPM from python.org along side Red Hat''s, /usr/bin/python is still 2.2 and changing that would break all sorts, as discussed in this FAQ: http://www.python.org/2.3.3/rpms.html#FAQ Changing "python" to "python2.3" in the scripts doesn''t import Xc.so since it''s installed in 2.2 site packages. We could change every python script to specify python2.3 instead of the default system version and fix the site packages too, but forcing a particular version seems bad. What distributions are these scripts tested to work on? Is there any magic I should be using to make things work on Red Hat? Cheers, Sean. -- Sean Atkinson <sean@netproject.com> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> I''m having trouble using xc_com_create.py. It reports that it''s missing > tempfile.mkdtemp() in xend_control_message from line 195 of > xenctl/utils.py. The xen.bkbits.net indicates this change was added to > version 1.19 on 14 March. > > The reason it''s missing is it was only introduced to Python 2.3, and > both Red Hat Linux 9 and Fedora are using 2.2 (2.2.2-26 and 2.2.3-7 > respectively). Although I can install the 2.3 RPM from python.org along > side Red Hat''s, /usr/bin/python is still 2.2 and changing that would > break all sorts, as discussed in this FAQ: > > http://www.python.org/2.3.3/rpms.html#FAQ > > Changing "python" to "python2.3" in the scripts doesn''t import Xc.so > since it''s installed in 2.2 site packages. We could change every python > script to specify python2.3 instead of the default system version and > fix the site packages too, but forcing a particular version seems bad. > > What distributions are these scripts tested to work on? Is there any > magic I should be using to make things work on Red Hat?Whoops! I use Python 2.3 for most testing, so these backward incompatibilities tend to creep in. Python earlier than 2.2 we don''t care about, but 2.2 is used by a lot of distros. Since we certainly want to support Python 2.2 we''ll need an alternative to tempfile. I''ll look into this. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Whoops! I use Python 2.3 for most testing, so these backward > incompatibilities tend to creep in. Python earlier than 2.2 we don''t > care about, but 2.2 is used by a lot of distros. Since we certainly > want to support Python 2.2 we''ll need an alternative to tempfile. I''ll > look into this.Great - I''m glad 2.2 is to be maintained since it should avoid a whole lot of bother. However I didn''t want to suggest dropping mkdtemp since I read that it''s more secure than previous methods like mktemp, which is now deprecated: http://www.python.org/doc/2.3.3/lib/module-tempfile.html Perhaps somebody who knows Python better than me would be able to work around this without having force such compromises into Xen? Cheers, Sean. -- Sean Atkinson <sean@netproject.com> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > Whoops! I use Python 2.3 for most testing, so these backward > > incompatibilities tend to creep in. Python earlier than 2.2 we don''t > > care about, but 2.2 is used by a lot of distros. Since we certainly > > want to support Python 2.2 we''ll need an alternative to tempfile. I''ll > > look into this. > > Great - I''m glad 2.2 is to be maintained since it should avoid a whole > lot of bother. However I didn''t want to suggest dropping mkdtemp since > I read that it''s more secure than previous methods like mktemp, which is > now deprecated: > > http://www.python.org/doc/2.3.3/lib/module-tempfile.html > > Perhaps somebody who knows Python better than me would be able to work > around this without having force such compromises into Xen?I checked in a fix yesterday --- if the installer sees Python <2.3 it installs a private copy of the Python 2.3 tempfile module. I also fixed the --home= vs. root= problem. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> I checked in a fix yesterday --- if the installer sees Python <2.3 it > installs a private copy of the Python 2.3 tempfile module.I didn''t notice this because the unstable-src tarball I download for my RPM packaging wasn''t updated this morning - it''s still dated 18-Mar-2004 03:57. Trying to build with a tarball I created from a current bit keeper source clone wouldn''t apply the patches used by my spec file, complaining about not matching the default SCSS version, so I''ve just removed them for now. I''ve attached both patches for review. One just adds xen_dmesg.py in the installed files, and the other adds a TARGET_CPU variable to build Xen with -march, defaulting to i686 as the minimum required processor.> I also fixed the --home= vs. root= problem.Thanks. -- Sean Atkinson <sean@netproject.com> Netproject
> > I checked in a fix yesterday --- if the installer sees Python <2.3 it > > installs a private copy of the Python 2.3 tempfile module. > > I didn''t notice this because the unstable-src tarball I download for my > RPM packaging wasn''t updated this morning - it''s still dated 18-Mar-2004 > 03:57.I''m afraid the nightly build failed last night due to lack of disk space. I''ve cranked the handle manually so it should be there now. BTW: Within the tar ball, I''m thinking of renaming the ''xeno-unstable.bk'' directory to something based on the MD5KEY of the repository e.g. ''xeno-unstable-d7f7a767b78c50a7d2dd.bk'' and create a soft link from xeno.bk to the new name. The idea behind this change is that when we receive patches we''d be able to easily tell what version of the repository the patch is against. Any objections? Ian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > I checked in a fix yesterday --- if the installer sees Python <2.3 it > > installs a private copy of the Python 2.3 tempfile module. > > I didn''t notice this because the unstable-src tarball I download for my > RPM packaging wasn''t updated this morning - it''s still dated 18-Mar-2004 > 03:57. Trying to build with a tarball I created from a current bit > keeper source clone wouldn''t apply the patches used by my spec file, > complaining about not matching the default SCSS version, so I''ve just > removed them for now. > > I''ve attached both patches for review. One just adds xen_dmesg.py in > the installed files, and the other adds a TARGET_CPU variable to build > Xen with -march, defaulting to i686 as the minimum required processor.Applied. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Hi,> I''m afraid the nightly build failed last night due to lack of > disk space. I''ve cranked the handle manually so it should be > there now.My RPM now builds fine with the new tarball - thanks. However I''m getting new errors using it. First: # xc_dom_create.py Parsing config file ''/etc/xc/defaults'' VM image : "/boot/xenolinux.gz" VM ramdisk : "" VM memory (MB) : "64" VM IP address(es) : "169.254.1.1" VM block device(s) : "" VM cmdline : "ip=169.254.1.1:169.254.1.0:192.168.1.1:255.255.255.0::eth0:off root=/dev/nfs nfsroot=/tmp/root " Traceback (most recent call last): File "/usr/bin/xc_dom_create.py", line 332, in ? (current_id, current_port) = make_domain() File "/usr/bin/xc_dom_create.py", line 245, in make_domain xend_response = xenctl.utils.xend_control_message(cmsg) File "/usr/lib/python2.2/site-packages/xenctl/utils.py", line 198, in xend_control_message ctl.sendto(message, ''/var/run/xend/management_sock'') socket.error: (2, ''No such file or directory'') So I issue "xend start", but then another error finishes: File "/usr/lib/python2.2/site-packages/xenctl/utils.py", line 198, in xend_control_message ctl.sendto(message, ''/var/run/xend/management_sock'') socket.error: (111, ''Connection refused'') Am I misusing xend somehow?> BTW: Within the tar ball, I''m thinking of renaming the > ''xeno-unstable.bk'' directory to something based on the MD5KEY of > the repository e.g. ''xeno-unstable-d7f7a767b78c50a7d2dd.bk'' and > create a soft link from xeno.bk to the new name. The idea behind > this change is that when we receive patches we''d be able to > easily tell what version of the repository the patch is against. > Any objections?Seems sensible to me, but wouldn''t a date & time stamp be easier than an MD5? Cheers, Sean. -- Sean Atkinson <sean@netproject.com> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Are you running both xend and xc_dom_create.py as root? -- Keir> Hi, > > > I''m afraid the nightly build failed last night due to lack of > > disk space. I''ve cranked the handle manually so it should be > > there now. > > My RPM now builds fine with the new tarball - thanks. > > However I''m getting new errors using it. First: > > # xc_dom_create.py > Parsing config file ''/etc/xc/defaults'' > VM image : "/boot/xenolinux.gz" > VM ramdisk : "" > VM memory (MB) : "64" > VM IP address(es) : "169.254.1.1" > VM block device(s) : "" > VM cmdline : > "ip=169.254.1.1:169.254.1.0:192.168.1.1:255.255.255.0::eth0:off > root=/dev/nfs nfsroot=/tmp/root " > Traceback (most recent call last): > File "/usr/bin/xc_dom_create.py", line 332, in ? > (current_id, current_port) = make_domain() > File "/usr/bin/xc_dom_create.py", line 245, in make_domain > xend_response = xenctl.utils.xend_control_message(cmsg) > File "/usr/lib/python2.2/site-packages/xenctl/utils.py", line 198, in > xend_control_message > ctl.sendto(message, ''/var/run/xend/management_sock'') > socket.error: (2, ''No such file or directory'') > > So I issue "xend start", but then another error finishes: > > File "/usr/lib/python2.2/site-packages/xenctl/utils.py", line 198, in > xend_control_message > ctl.sendto(message, ''/var/run/xend/management_sock'') > socket.error: (111, ''Connection refused'') > > Am I misusing xend somehow? > > > BTW: Within the tar ball, I''m thinking of renaming the > > ''xeno-unstable.bk'' directory to something based on the MD5KEY of > > the repository e.g. ''xeno-unstable-d7f7a767b78c50a7d2dd.bk'' and > > create a soft link from xeno.bk to the new name. The idea behind > > this change is that when we receive patches we''d be able to > > easily tell what version of the repository the patch is against. > > Any objections? > > Seems sensible to me, but wouldn''t a date & time stamp be easier than an > MD5? > > Cheers, > > Sean. > > -- > Sean Atkinson <sean@netproject.com> > Netproject >------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Are you running both xend and xc_dom_create.py as root?Sure am. The socket file''s visible, but xend isn''t in the process list. Perhaps it''s silently bailing out early? -- Sean Atkinson <sean@netproject.com> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > Are you running both xend and xc_dom_create.py as root? > > Sure am. The socket file''s visible, but xend isn''t in the process > list. Perhaps it''s silently bailing out early? > > -- > Sean Atkinson <sean@netproject.com> > Netproject >Take a peek at /var/log/xend.log to see what messed up. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Take a peek at /var/log/xend.log to see what messed up.OK this might help somebody, but it''s not immediately obvious to me which file is missing: Traceback (most recent call last): File "/usr/sbin/xend", line 22, in ? sys.exit(main()) File "/usr/sbin/xend", line 16, in main return xend.main.stop_daemon() or xend.main.start_daemon() File "/usr/lib/python2.2/site-packages/xend/main.py", line 288, in start_daemo n daemon_loop() File "/usr/lib/python2.2/site-packages/xend/main.py", line 46, in daemon_loop notifier = xend.utils.notifier() IOError: [Errno 2] No such file or directory -- Sean Atkinson <sean@netproject.com> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Whoops! One for the FAQ :-). I''ll also add a better error message to xend. What you need to do is: mkdir /dev/xen mknod /dev/xen/evtxhn c 10 200 -- Keir> > Take a peek at /var/log/xend.log to see what messed up. > > OK this might help somebody, but it''s not immediately obvious to me > which file is missing: > > Traceback (most recent call last): > File "/usr/sbin/xend", line 22, in ? > sys.exit(main()) > File "/usr/sbin/xend", line 16, in main > return xend.main.stop_daemon() or xend.main.start_daemon() > File "/usr/lib/python2.2/site-packages/xend/main.py", line 288, in > start_daemo > n > daemon_loop() > File "/usr/lib/python2.2/site-packages/xend/main.py", line 46, in > daemon_loop > notifier = xend.utils.notifier() > IOError: [Errno 2] No such file or directory > > -- > Sean Atkinson <sean@netproject.com> > Netproject > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> What you need to do is: > mkdir /dev/xen > mknod /dev/xen/evtxhn c 10 200Thanks. Works once I noticed the typo - tools/xend/lib/utils.c lists "/dev/xen/evtchn". Cheers, Sean. -- Sean Atkinson <sean@netproject.com> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > What you need to do is: > > mkdir /dev/xen > > mknod /dev/xen/evtxhn c 10 200 > > Thanks. Works once I noticed the typo - tools/xend/lib/utils.c lists > "/dev/xen/evtchn".Great. I''ve also fixed xend so that it will automatically attempt to create /dev/xen/evtchn if it doesn''t already exist. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel