[openvps-dev] error creating reference server

Penelope DEVEREUX penelope.devereux at gmail.com
Thu May 5 00:14:56 EDT 2005


Hi,

I had an error creating a reference server.  Basically, the openvps
program was trying to copy traceroute from the directory noted by
OH_MISC but traceroute is not there.  Thus the program sadly stops in
its tracks.  I dumped the trace at the end of this post.  Also, I
using a 2.6.10 kernel with VS 1.9.4 on FC3.

I tracked down the problem (I think).  In file:

openvps/host/dft.py (located in the site-packages)

around line 35 you will see the following:

OH_DIR = os.path.join(PREFIX, 'oh')

However, the package I downloaded seems like it should be:

OH_DIR = os.path.join(PREFIX, 'openvps')

Since this is the proper directory that contains the traceroute that
openvps buildref was looking for.

So maybe this is a bug?  I checked the /etc/openvps.conf and this
doesn't seem to be configurable there.  Also, the openvps buildref
does not fail anymore.  So maybe this will help someone out there.

peace!

--
Traceback (most recent call last):
  File "/usr/sbin/openvps", line 258, in ?
    main()
  File "/usr/sbin/openvps", line 254, in main
    cmd_func()
  File "/usr/sbin/openvps", line 79, in cmd_buildref
    vds.buildref(refroot, distroot)
  File "/usr/lib/python2.3/site-packages/openvps/host/vds.py", line
443, in buildref
    ref_make_libexec_oh(refroot)
  File "/usr/lib/python2.3/site-packages/openvps/host/vds.py", line
362, in ref_make_libexec_oh
    shutil.copy(os.path.join(cfg.OH_MISC, short_name), dest_path)
  File "/usr/lib/python2.3/shutil.py", line 71, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.3/shutil.py", line 37, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/oh/misc/traceroute'



More information about the dev mailing list