<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
ok about issue #744.<br>
<br>
I guess this issue not introduced after new plug in development. To
explain in detail:<br>
<br>
I downloaded the latest kimchi master and for testing I tried the
following:<br>
<b>Base folder level:</b><br>
$cd kimchi<br>
$./autogen.sh --system<br>
$make<br>
<b><br>
</b><b>To plugin level:</b><br>
$cd src/wok/plugins/kimchi<br>
$./autogen.sh --system<br>
$make<br>
<br>
<b>Then at the base folder level ran the following command:</b><br>
[root@chandra kimchi]# sudo src/wokd --environment=dev<br>
Plugin configuration file
/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/plugins/ginger/ginger.conf
doesn't exist.<br>
Plugin configuration file
/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/plugins/ginger/ginger.conf
doesn't exist.<br>
>
/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/plugins/kimchi/root.py(21)<module>()<br>
-> import json<br>
(Pdb) c<br>
WARNING: no 'numpy' module, HyBi protocol will be slower<br>
Traceback (most recent call last):<br>
File "src/wokd", line 101, in <module><br>
sys.exit(main(sys.argv[1:]))<br>
File "src/wokd", line 98, in main<br>
wok.server.main(options)<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/server.py",
line 205, in main<br>
srv = Server(options)<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/server.py",
line 137, in __init__<br>
self._load_plugins(options)<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/server.py",
line 160, in _load_plugins<br>
plugin_app = import_class(plugin_class)(options)<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/plugins/kimchi/root.py",
line 39, in __init__<br>
self.model = kimchiModel.Model()<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/plugins/kimchi/model/model.py",
line 45, in __init__<br>
self.objstore = ObjectStore(objstore_loc or
config.get_object_store())<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/objectstore.py",
line 91, in __init__<br>
self._init_db()<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/objectstore.py",
line 94, in _init_db<br>
conn = self._get_conn()<br>
File
"/run/media/chandra/8cf6e9d9-bd8d-4982-9d83-26760e0dd24e/workspace-python/kimchi/src/wok/objectstore.py",
line 117, in _get_conn<br>
timeout=10)<br>
sqlite3.OperationalError: unable to open database file<br>
<br>
Since there is no folder (/var/lib/kimchi) where objectstore file
creation happens, it fails with operational error. This due to the
fact the Model class instantiated even before creating the directory
where objectstore file will be created.<br>
<br>
Fix requires in both Kimchi/Ginger Base plugins base class (root.py
and gingerbase.py).<br>
<br>
Also additionally I will go with option 2 for gingerbase plugin
directory location.<br>
<br>
Thanks and Regards<br>
Chandra<br>
<br>
<div class="moz-cite-prefix">On 10/28/2015 11:31 PM, Daniel Henrique
Barboza wrote:<br>
</div>
<blockquote cite="mid:56310D75.4030906@gmail.com" type="cite">
<br>
<br>
On 10/28/2015 03:49 PM, Lucio Correia wrote:
<br>
<blockquote type="cite">On 28-10-2015 15:23, Chandra Shehkhar
Reddy Potula wrote:
<br>
<blockquote type="cite">Hi all,
<br>
<br>
I need your input on the directory location (for debug reports
and
<br>
objectstore files) for new plugin gingerbase. Issue #744 is
because of
<br>
usage of /var/lib/kimchi directory.
<br>
<br>
Kimchi uses the location /var/lib/kimchi for objectstore,
isos,
<br>
screenshots and so on...
<br>
<br>
When I was coming up the new plugin gingerbase based on the
inputs on
<br>
below tickets, I tried to use same directory (/var/lib/kimchi)
for the
<br>
compatibility reasons.
<br>
<a class="moz-txt-link-freetext" href="https://github.com/kimchi-project/kimchi/issues/721">https://github.com/kimchi-project/kimchi/issues/721</a>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/kimchi-project/kimchi/issues/738">https://github.com/kimchi-project/kimchi/issues/738</a>
<br>
<br>
Now I feel that we should think about this carefully and pick
the right
<br>
location for objectstore and debug reports of new plugin
gingerbase.
<br>
<br>
I am thinking of two options here due to the fact that plugin
kimchi
<br>
instruction might destroy the path location /var/lib/kimchi
<br>
1. /var/lib/wok
<br>
or
<br>
2. /var/lib/gingerbase
<br>
</blockquote>
<br>
Hi Chandra, option 2 is the best IMO. Each plugin should have
its own place for data files.
<br>
</blockquote>
<br>
I agree with Lucio and Paulo. Go for option 2
<br>
<br>
<blockquote type="cite">
<br>
<blockquote type="cite">
<br>
Based on your inputs I will fix issue #744.
<br>
<br>
Thanks and Regards
<br>
Chandra
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Kimchi-devel mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
Kimchi-devel mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
<br>
<br>
</blockquote>
<br>
</body>
</html>