python-cinder: Move tgt config files to avoid confliction
PATCH 1/1 python-cinder: Move tgt config files to avoid confliction
From: He Zhe <[email protected]>
We might have the following warning and error since both tgt and python- cinder create /etc/tgt/targets.conf. This patch creates conf.d/ under /etc/tgt/ and puts python-cinder's config file there. tgt's config file will include it automatically.
warning: Removing tgt-1.0.63+git0+eca74a72d2-r0.0@corei7_64 due to file /etc/tgt/targets.conf conflicting with python-cinder-7.0.0+git0+61026d4e4f-r0.0@corei7_64
error: tgt-dev-1.0.63+git0+eca74a72d2-r0.0 requires tgt = 1.0.63+git0+eca74a72d2-r0.0
--- meta-openstack/recipes-devtools/python/python-cinder_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-openstack/recipes-devtools/python/python-cinder_git.bb +2 -2
@@ -107,8 +107,8 @@ do_install_append() { #Create cinder volume group backing file sed 's/%CINDER_LVM_VOLUME_BACKING_FILE_SIZE%/${CINDER_LVM_VOLUME_BACKING_FILE_SIZE}/g' -i ${D}/etc/cinder/drivers/lvm_iscsi_setup.sh - mkdir -p ${D}/etc/tgt/ - echo "include /etc/cinder/data/volumes/*" > ${D}/etc/tgt/targets.conf + mkdir -p ${D}/etc/tgt/conf.d/ + echo "include /etc/cinder/data/volumes/*" > ${D}/etc/tgt/conf.d/python-cinder.conf # Create Cinder nfs_share config file with default nfs server echo "${CINDER_NFS_VOLUME_SERVERS}" > ${D}/etc/cinder/nfs_shares
Signature · 1 line
2.8.1
Quoted 7 lines · On Mon, Jun 13, 2016 at 3:23 AM, <[email protected]> wrote:
From: He Zhe <[email protected]>
We might have the following warning and error since both tgt and python- cinder create
/etc/tgt/targets.conf. This patch creates conf.d/ under/etc/tgt/and puts python-cinder's config file there. tgt's config file will include it automatically.
Quoted 6 lines
warning: Removing tgt-1.0.63+git0+eca74a72d2-r0.0@corei7_64 due to file
/etc/tgt/targets.confconflicting with python-cinder-7.0.0+git0+61026d4e4f-r0.0@corei7_64
error: tgt-dev-1.0.63+git0+eca74a72d2-r0.0 requires tgt = 1.0.63+git0+eca74a72d2-r0.0
merged.
Bruce
Quoted 29 lines
Signed-off-by He Zhe <[email protected]>--- meta-openstack/recipes-devtools/python/python-cinder_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta-openstack/recipes-devtools/python/python-cinder_git.bb +0
-0@@ -107,8 +107,8 @@ do_install_append() { #Create cinder volume group backing file sed's/%CINDER_LVM_VOLUME_BACKING_FILE_SIZE%/${CINDER_LVM_VOLUME_BACKING_FILE_SIZE}/g'
meta-openstack/recipes-devtools/python/python-cinder_git.bb +2
-3-i ${D}/etc/cinder/drivers/lvm_iscsi_setup.sh - mkdir -p ${D}/etc/tgt/ - echo "include /etc/cinder/data/volumes/*" > ${D}/etc/tgt/targets.conf + mkdir -p ${D}/etc/tgt/conf.d/ + echo "include /etc/cinder/data/volumes/*" >
${D}/etc/tgt/conf.d/python-cinder.conf# Create Cinder
nfs_shareconfig file with default nfs server echo "${CINDER_NFS_VOLUME_SERVERS}" > ${D}/etc/cinder/nfs_shares
--
2.8.1
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"