Added Saggi, Ayal, Federico into this loop. And got two comments below.
Sheldon:
there is already a wiki page about hsm service standalone.
http://wiki.ovirt.org/HSM_service_stand_alone
And now I'm trying to split hsm as a standalone rpm according to the
wiki proposal.
as the wiki describe:
V)The configuration parameters in vdsm.conf should be pull out to
another hsm.conf file. And all VDSM process should not read hsm.conf
directly. If it is necessary to get the HSM configurations, an API
will be added into VDSM process for hsm configuration querying
I have split the the vdsm/config.py and submit a patch
http://gerrit.ovirt.org/#/c/9345/
I moved 'irs'section from vdsm/config.py to a new
vdsm/storage/config.py for hsm
But some of vdsm python module need to get configure items form
'irs'section, such as vdsm/clientIF.py, vdsm/libvirtvm.py.
I moved vdsm/storage/config.py to site-packages/hsm when install hsm.
And I import all the items form 'irs'section, by "from hsm import
config as hsmconfig"
Is it a good way to split the config.py?
Also I have split the the constants.py and submit a patch
http://gerrit.ovirt.org/#/c/9348/
And should I create a new "hsm" user for the DISKIMAGE_USER instead of
"vdsm" user?
as the wiki describe:
VII) All of the python modules shared by both VDSM service and HSM
service should go into python site-packages directory which is like
/usr/lib/python2.7/site-packages/vdsm Now, task.py doesn't sit in this
directory, we should fix it in this proposal.
Task model is only for storage service now. We have plan to make task
models to all VDSM service. So it is reasonable to move task.py into
site-packages directory.
about the site-packages directory, there are three proposals.
1. VDSM service and HSM service share the same site-packages
directory, still used site-packages/vdsm
and that means there will be still a vdsm-python rpm, and both vdsm
and hsm depends on them.
2. VDSM service and HSM service share the same site-packages
directory, but it will renamed as used site-packages/hsm
Now most codes of hsm and vdsm import modules from site-packages vdsm,
so all of they should be fixed.
3. VDSM service depend on vdsm-python rpm, and HSM service depend on
hsm-python rpm.
I need to re-sort the public modules to hsm-python or vdsm-python rpm.
such as fileUtils.py, misc.py, BetterPopen and qemuImg.py
which is better of the above three?
Packaging HSM site package files into a another new package other than
vdsm-python package doesn't prevent those files contained into a same
targeting package. So at least we can do, two different package say,
vdsm-core-python, vdsm-storage-python and the files in them are
targeting the same directory /usr/lib/python2.7/site-packages/vdsm.
--
---
舒明 Shu Ming
Open Virtualization Engineerning; CSTL, IBM Corp.
Tel: 86-10-82451626 Tieline: 9051626 E-mail: shum...@cn.ibm.com or
shum...@linux.vnet.ibm.com
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
Beijing 100193, PRC
_______________________________________________
vdsm-devel mailing list
vdsm-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-devel