[Kimchi-devel] [WOK RFC] Update objectstore information while migrating to new structure.

Paulo Ricardo Paz Vital pvital at linux.vnet.ibm.com
Tue Sep 22 21:38:12 UTC 2015


Hello guys. 

Doing some tests in the new Wok and Kimchi (as plugin) code I
discovered something that can cause some issues for us. Let'me show a
possible user case to explain better:

The user uses some version of the current Kimchi (previous of 1.5.1 and
called for now as, Kimchi_old) totally functional and operating. The
user has a few templates created, which are stored in the the
objectstore function of Kimchi, and for each template has the
storagepool URI allocated for that template.

The storagepool information has the following properties in Kimchi-old:

    "storagepool": {
	"description": "Location of the storage pool",
        "type": "string",
        "pattern": "^/storagepools/[^/]+/?$",
        "error": "KCHTMPL0015E"
    }

However, the new Wok+Kimchi_plugin structure changed the URI for all
virtualization features and the pattern now is:

    "^/plugins/kimchi/storagepools/[^/]+/?$"

There's an issue when getting the information of all Kimchi-old
templates from the objectstore, the URI information continues with the
older pattern and some checks in the code will fail.

My suggestion is to create an info-update process when the user upgrade
from Kimchi-old to Wok+Kimchi_plugin, modifying the storagepool
information of all templates that not follow the new pattern in the
database already created.

I'd like to know what do you guys think about and ask for more
suggestions also.

Best regards,
-- 
Paulo Ricardo Paz Vital <pvital at linux.vnet.ibm.com>
IBM Linux Technology Center




More information about the Kimchi-devel mailing list