Updates for packaging Grizzly-2
(cherry picked from commit f3139817265aa0684018e404a87373d8163a64a6)
This commit is contained in:
parent
d7b1585bc2
commit
7f33191f3e
10
debian/README.Debian
vendored
Normal file
10
debian/README.Debian
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
Migration from nova-volumes to cinder-volumes:
|
||||
|
||||
1. upgrade your nova install to folsom
|
||||
2. upgrade your nova database using nova-manage db sync
|
||||
3. install the folsom version of cinder
|
||||
4. create a cinder database using cinder-manage db sync
|
||||
5. copy data from nova database using cinder-manage migrate import_db --src=$NOVA_SQL_CONN --dest=$CINDER_SQL_CONN
|
||||
6. disable the nova-volume-api in enabled apis in /etc/nova/nova.conf sed -i "s/osapi_volume,// /etc/nova/nova.conf"
|
||||
7. restart nova-api
|
||||
8. start cinder-api
|
3
debian/cinder-api.logrotate
vendored
3
debian/cinder-api.logrotate
vendored
@ -1,4 +1,7 @@
|
||||
/var/log/cinder/cinder-api.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
}
|
||||
|
1
debian/cinder-common.postinst.in
vendored
1
debian/cinder-common.postinst.in
vendored
@ -14,6 +14,7 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
|
||||
pkgos_var_user_group cinder
|
||||
pkgos_write_new_conf cinder cinder.conf
|
||||
pkgos_write_new_conf cinder api-paste.ini
|
||||
chown root:root /etc/cinder/rootwrap.d/volume.filters
|
||||
pkgos_dbc_postinst ${CINDER_CONF} cinder DEFAULT sql_connection $@
|
||||
pkgos_write_admin_creds ${CINDER_API} cinder filter:authtoken
|
||||
db_get cinder/volume_group
|
||||
|
3
debian/cinder-scheduler.logrotate
vendored
3
debian/cinder-scheduler.logrotate
vendored
@ -1,4 +1,7 @@
|
||||
/var/log/cinder/cinder-scheduler.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
}
|
||||
|
1
debian/cinder-volume.dirs
vendored
Normal file
1
debian/cinder-volume.dirs
vendored
Normal file
@ -0,0 +1 @@
|
||||
var/lib/cinder/volumes
|
1
debian/cinder-volume.install
vendored
1
debian/cinder-volume.install
vendored
@ -1 +1,2 @@
|
||||
usr/bin/cinder-volume
|
||||
debian/cinder_tgt.conf etc/tgt/conf.d
|
||||
|
3
debian/cinder-volume.logrotate
vendored
3
debian/cinder-volume.logrotate
vendored
@ -1,4 +1,7 @@
|
||||
/var/log/cinder/cinder-volume.log {
|
||||
daily
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
}
|
||||
|
21
debian/cinder-volume.postinst.in
vendored
Normal file
21
debian/cinder-volume.postinst.in
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
#PKGOS-INCLUDE#
|
||||
|
||||
if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
|
||||
pkgos_var_user_group cinder
|
||||
chmod 0750 /var/lib/cinder/volumes
|
||||
chown root:root /etc/cinder/rootwrap.d/volume.filters
|
||||
|
||||
if which invoke-rc.d >/dev/null 2>&1; then
|
||||
invoke-rc.d tgtd restart > /dev/null 2>&1 || true
|
||||
else
|
||||
/etc/init.d/tgtd restart > /dev/null 2>&1 || true
|
||||
fi
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
1
debian/cinder.conf
vendored
1
debian/cinder.conf
vendored
@ -10,3 +10,4 @@ auth_strategy = keystone
|
||||
logdir = /var/log/cinder
|
||||
state_path=/var/lib/cinder
|
||||
lock_path=/var/lock/cinder
|
||||
volumes_dir = /var/lib/cinder/volumes
|
||||
|
3
debian/cinder_sudoers
vendored
Normal file
3
debian/cinder_sudoers
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
Defaults:cinder !requiretty
|
||||
|
||||
cinder ALL = (root) NOPASSWD: /usr/bin/cinder-rootwrap
|
1
debian/cinder_tgt.conf
vendored
Normal file
1
debian/cinder_tgt.conf
vendored
Normal file
@ -0,0 +1 @@
|
||||
include /var/lib/cinder/volumes/*
|
1
debian/clean
vendored
Normal file
1
debian/clean
vendored
Normal file
@ -0,0 +1 @@
|
||||
setup.cfg
|
8
debian/control
vendored
8
debian/control
vendored
@ -22,6 +22,7 @@ Build-Depends-Indep: pep8,
|
||||
python-glanceclient,
|
||||
python-greenlet,
|
||||
python-iso8601,
|
||||
python-keystoneclient,
|
||||
python-kombu,
|
||||
python-lockfile,
|
||||
python-lxml,
|
||||
@ -38,6 +39,7 @@ Build-Depends-Indep: pep8,
|
||||
python-setuptools-git,
|
||||
python-sphinx,
|
||||
python-sqlalchemy,
|
||||
python-stevedore (>= 0.7),
|
||||
python-suds,
|
||||
python-webob,
|
||||
Standards-Version: 3.9.3
|
||||
@ -55,7 +57,6 @@ Depends: ${python:Depends},
|
||||
python-cheetah,
|
||||
python-daemon,
|
||||
python-eventlet,
|
||||
python-glance,
|
||||
python-glanceclient,
|
||||
python-greenlet,
|
||||
python-iso8601,
|
||||
@ -67,6 +68,8 @@ Depends: ${python:Depends},
|
||||
python-paramiko,
|
||||
python-paste,
|
||||
python-pastedeploy,
|
||||
python-migrate,
|
||||
python-netaddr,
|
||||
python-routes,
|
||||
python-suds,
|
||||
python-sqlalchemy,
|
||||
@ -112,7 +115,8 @@ Description: Openstack block storage as a service - API server
|
||||
Package: cinder-volume
|
||||
Architecture: all
|
||||
Pre-Depends: dpkg (>= 1.15.6~)
|
||||
Depends: ${ostack-lsb-base}, cinder-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
|
||||
Depends: ${ostack-lsb-base}, cinder-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends},
|
||||
lvm2, tgt
|
||||
Description: Openstack block storage as a service - Volume server
|
||||
Cinder is a block storage as service system for the Openstack cloud computing
|
||||
software suite. It is a direct replacement for nova-volume as a separate
|
||||
|
1
debian/pydist-overrides
vendored
Normal file
1
debian/pydist-overrides
vendored
Normal file
@ -0,0 +1 @@
|
||||
babel
|
5
debian/rules
vendored
5
debian/rules
vendored
@ -12,14 +12,14 @@ endif
|
||||
|
||||
override_dh_clean:
|
||||
dh_clean
|
||||
rm -f debian/cinder-common.config debian/cinder-common.postinst debian/cinder-api.config debian/cinder-api.postinst
|
||||
rm -f debian/cinder-common.config debian/cinder-common.postinst debian/cinder-api.config debian/cinder-api.postinst debian/cinder-volume.postinst
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
install -D -m 0440 debian/cinder-common.sudoers $(CURDIR)/debian/cinder-common/etc/sudoers.d/cinder-common
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
dh_fixperms -Xcinder_tgt.conf
|
||||
chmod 0440 $(CURDIR)/debian/cinder-common/etc/sudoers.d/cinder-common
|
||||
|
||||
override_dh_auto_build:
|
||||
@ -29,3 +29,4 @@ override_dh_auto_build:
|
||||
/usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-common.postinst
|
||||
/usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-api.config
|
||||
/usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-api.postinst
|
||||
/usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-volume.postinst
|
||||
|
Loading…
Reference in New Issue
Block a user