[openvps-dev] problem with openvps control panel
Gregory (Grisha) Trubetskoy
grisha at ispol.com
Tue May 10 16:50:04 EDT 2005
On Mon, 9 May 2005, Penelope DEVEREUX wrote:
> [Mon May 09 23:06:14 2005] [error] [client 192.168.0.3] PythonHandler
> openvps.www.panel: ValueError: opening
> '/var/db/openvps/vsmon/widgets.rrd': No such file or directory,
This file gets placed there by openvps-mon process, which you should have
running (it's started by /usr/local/sbin/ovcheckproc which in turn is
started from /etc/cron.d/openvps).
> I have found the widgets.rrd file in /var/db/oh/.
Basically there are two .rrd files for evey vserver right now, the one in
/var/db/oh is obsolete - we're keeping it around so that there is 90 days
of cross-over so that the rrd graphs look OK when /var/db/oh is killed.
> Also, in
>
> openvps/www/panel.py
>
> around line 690 you see:
>
> rrd = os.path.join(cfg.VAR_DB_OPENVPS, 'vsmon/%s.rrd' % name)
>
> but I cannot see VAR_DB_OPENVPS in the /etc/openvps.conf file.
There should be a ton more parameters in
/usr/lib/python2.3/site-packages/openvps/host/dft.py, openvps.conf only
contains most tweakable ones.
> But, there is a VAR_DB_OH.
>
> So I guess I'm wondering which way it is supposed to be because I
> could fix the paths either way. I would guess that /var/db/oh/ is the
> bad path and /var/db/openvps/vsmon/ is the good path? Then I also
> guess that VAR_DB_OH is bad and a VAR_DB_OPENVPS is needed in the
> config file? I added VAR_DB_OPENVPS but it seemed to have no effect.
VAR_DB_OH is old, VAR_DB_OPENVPS is new. The rrd files in OPENVPS have a
lot more variables. VAR_DB_OH is updated by /usr/bin/ohbwidth (run from
cron), while the files in VAR_DB_OPENVPS are updated by the openvps-mon
daemon. Eventually, VAR_DB_OH and /usr/bin/ohbwidth are going to get
killed.
Grisha
More information about the dev
mailing list