diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2018-04-30 14:51:41 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-05-01 23:15:31 -0400 |
| commit | edb9fed9aca8452e54624d9da109cdd7cabcf30c (patch) | |
| tree | d4e82ce24e800b24d08548a138b3df0488eda780 /meta-openstack/recipes-devtools/python/python-cinder_git.bb | |
| parent | db5a6a32fed0b97dcaa590120558c857f30c1bec (diff) | |
| download | meta-cloud-services-edb9fed9aca8452e54624d9da109cdd7cabcf30c.tar.gz | |
python-cinder: uprev to latest stable/pike
Requires the introduction of python-oauth2client and
python-google-api-python-client packages/recipes. As with other
openstack component uprev's we move some of the initialization from
the first run scripts to the cinder-init.service which is run on first
boot. This allows for someone to disable the default configuration by
not including the cinder-init package in their image.
The initialization is done following the guide at:
At this point we have cinder up and running, which we can verify using
the "openstack volume service list" command.
root@controller:~# openstack volume service list
+------------------+----------------------+------+---------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated At |
+------------------+----------------------+------+---------+-------+----------------------------+
| cinder-backup | controller | nova | enabled | down | 2018-04-30T15:31:08.330770 |
| cinder-volume | controller@nfsdriver | nova | enabled | down | 2018-04-30T15:31:10.477678 |
| cinder-scheduler | controller | nova | enabled | down | 2018-04-30T15:31:10.653041 |
+------------------+----------------------+------+---------+-------+----------------------------+
We will have to adjust the configuration for a compute node but at
this point we are concentrating on the initial configuration for the
controller image.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder_git.bb | 309 |
1 files changed, 168 insertions, 141 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index 3523038..5274698 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb | |||
| @@ -6,9 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" | |||
| 6 | 6 | ||
| 7 | SRCNAME = "cinder" | 7 | SRCNAME = "cinder" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \ | 9 | SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/pike \ |
| 10 | file://cinder-init \ | ||
| 11 | file://cinder-init.service \ | ||
| 12 | file://cinder-api.service \ | ||
| 13 | file://cinder-backup.service \ | ||
| 14 | file://cinder-scheduler.service \ | ||
| 15 | file://cinder-volume.service \ | ||
| 10 | file://cinder.conf \ | 16 | file://cinder.conf \ |
| 11 | file://cinder.init \ | ||
| 12 | file://cinder-volume \ | 17 | file://cinder-volume \ |
| 13 | file://nfs_setup.sh \ | 18 | file://nfs_setup.sh \ |
| 14 | file://glusterfs_setup.sh \ | 19 | file://glusterfs_setup.sh \ |
| @@ -16,41 +21,22 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \ | |||
| 16 | file://add-cinder-volume-types.sh \ | 21 | file://add-cinder-volume-types.sh \ |
| 17 | " | 22 | " |
| 18 | 23 | ||
| 19 | # file://0001-run_tests-respect-tools-dir.patch | 24 | SRCREV = "4fb3a702ba8c3de24c41a6f706597bfa81e60435" |
| 20 | # file://fix_cinder_memory_leak.patch | 25 | PV = "11.1.0+git${SRCPV}" |
| 21 | # file://cinder-builtin-tests-config-location.patch | ||
| 22 | |||
| 23 | SRCREV = "61026d4e4f2a58dd84ffb2e4e40ab99860b9316a" | ||
| 24 | PV = "7.0.0+git${SRCPV}" | ||
| 25 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |
| 26 | 27 | ||
| 27 | inherit setuptools update-rc.d identity default_configs hosts monitor | 28 | inherit setuptools systemd useradd identity default_configs hosts monitor |
| 28 | |||
| 29 | CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift" | ||
| 30 | |||
| 31 | SERVICECREATE_PACKAGES = "${SRCNAME}-setup" | ||
| 32 | KEYSTONE_HOST="${CONTROLLER_IP}" | ||
| 33 | 29 | ||
| 34 | # USERCREATE_PARAM and SERVICECREATE_PARAM contain the list of parameters to be set. | 30 | USER = "cinder" |
| 35 | # If the flag for a parameter in the list is not set here, the default value will be given to that parameter. | 31 | GROUP = "cinder" |
| 36 | # Parameters not in the list will be set to empty. | ||
| 37 | 32 | ||
| 38 | USERCREATE_PARAM_${SRCNAME}-setup = "name pass tenant role email" | 33 | USERADD_PACKAGES = "${PN}" |
| 39 | SERVICECREATE_PARAM_${SRCNAME}-setup = "name type description region publicurl adminurl internalurl" | 34 | GROUPADD_PARAM_${PN} = "--system ${GROUP}" |
| 40 | python () { | 35 | USERADD_PARAM_${PN} = "--system -m -d ${localstatedir}/lib/cinder -s /bin/false -g ${GROUP} ${USER}" |
| 41 | flags = {'type':'volume',\ | ||
| 42 | 'description':'OpenStack Volume Service',\ | ||
| 43 | 'publicurl':"'http://${KEYSTONE_HOST}:8776/v1/\$(tenant_id)s'",\ | ||
| 44 | 'adminurl':"'http://${KEYSTONE_HOST}:8776/v1/\$(tenant_id)s'",\ | ||
| 45 | 'internalurl':"'http://${KEYSTONE_HOST}:8776/v1/\$(tenant_id)s'"} | ||
| 46 | 36 | ||
| 47 | d.setVarFlags("SERVICECREATE_PARAM_%s-setup" % d.getVar('SRCNAME',True), flags) | 37 | CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift" |
| 48 | } | ||
| 49 | SERVICECREATE_PACKAGES[vardeps] += "KEYSTONE_HOST" | ||
| 50 | 38 | ||
| 51 | #do_install_prepend() { | 39 | KEYSTONE_HOST="${CONTROLLER_IP}" |
| 52 | # sed 's:%PYTHON_SITEPACKAGES_DIR%:${PYTHON_SITEPACKAGES_DIR}:g' -i ${S}/${SRCNAME}/tests/conf_fixture.py | ||
| 53 | #} | ||
| 54 | 40 | ||
| 55 | CINDER_LVM_VOLUME_BACKING_FILE_SIZE ?= "2G" | 41 | CINDER_LVM_VOLUME_BACKING_FILE_SIZE ?= "2G" |
| 56 | CINDER_NFS_VOLUME_SERVERS_DEFAULT = "controller:/etc/cinder/nfs_volumes" | 42 | CINDER_NFS_VOLUME_SERVERS_DEFAULT = "controller:/etc/cinder/nfs_volumes" |
| @@ -65,9 +51,9 @@ do_install_append() { | |||
| 65 | #Instead of substituting api-paste.ini from the WORKDIR, | 51 | #Instead of substituting api-paste.ini from the WORKDIR, |
| 66 | #move it over to the image's directory and do the substitution there | 52 | #move it over to the image's directory and do the substitution there |
| 67 | install -d ${CINDER_CONF_DIR} | 53 | install -d ${CINDER_CONF_DIR} |
| 68 | install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ | 54 | install -o ${USER} -m 664 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ |
| 69 | install -m 600 ${TEMPLATE_CONF_DIR}/api-paste.ini ${CINDER_CONF_DIR}/ | 55 | install -o ${USER} -m 664 ${TEMPLATE_CONF_DIR}/api-paste.ini ${CINDER_CONF_DIR}/ |
| 70 | install -m 600 ${S}/etc/cinder/policy.json ${CINDER_CONF_DIR}/ | 56 | install -o ${USER} -m 664 ${S}/etc/cinder/policy.json ${CINDER_CONF_DIR}/ |
| 71 | 57 | ||
| 72 | install -d ${CINDER_CONF_DIR}/drivers | 58 | install -d ${CINDER_CONF_DIR}/drivers |
| 73 | install -m 600 ${WORKDIR}/nfs_setup.sh ${CINDER_CONF_DIR}/drivers/ | 59 | install -m 600 ${WORKDIR}/nfs_setup.sh ${CINDER_CONF_DIR}/drivers/ |
| @@ -76,33 +62,62 @@ do_install_append() { | |||
| 76 | install -m 700 ${WORKDIR}/add-cinder-volume-types.sh ${CINDER_CONF_DIR}/ | 62 | install -m 700 ${WORKDIR}/add-cinder-volume-types.sh ${CINDER_CONF_DIR}/ |
| 77 | 63 | ||
| 78 | install -d ${D}${localstatedir}/log/${SRCNAME} | 64 | install -d ${D}${localstatedir}/log/${SRCNAME} |
| 79 | 65 | ||
| 80 | for file in api-paste.ini cinder.conf; do | 66 | # Setup the neutron initialization script |
| 81 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ | 67 | INIT_FILE=${CINDER_CONF_DIR}/cinder-init |
| 82 | -i ${CINDER_CONF_DIR}/$file | 68 | install -g ${USER} -m 750 ${WORKDIR}/cinder-init ${INIT_FILE} |
| 83 | sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${CINDER_CONF_DIR}/$file | 69 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${INIT_FILE} |
| 84 | sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ | 70 | sed -e "s:%CINDER_USER%:${USER}:g" -i ${INIT_FILE} |
| 85 | -i ${CINDER_CONF_DIR}/$file | 71 | sed -e "s:%CINDER_GROUP%:${GROUP}:g" -i ${INIT_FILE} |
| 86 | 72 | sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${INIT_FILE} | |
| 87 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${CINDER_CONF_DIR}/$file | 73 | sed -e "s:%ADMIN_USER%:${ADMIN_USER}:g" -i ${INIT_FILE} |
| 88 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${CINDER_CONF_DIR}/$file | 74 | sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${INIT_FILE} |
| 89 | sed -e "s:%CINDER_BACKUP_BACKEND_DRIVER%:${CINDER_BACKUP_BACKEND_DRIVER}:g" \ | 75 | sed -e "s:%ADMIN_ROLE%:${ADMIN_ROLE}:g" -i ${INIT_FILE} |
| 90 | -i ${CINDER_CONF_DIR}/$file | 76 | sed -e "s:%SYSCONFDIR%:${sysconfdir}:g" -i ${INIT_FILE} |
| 77 | sed -e "s:%ROOT_HOME%:${ROOT_HOME}:g" -i ${INIT_FILE} | ||
| 78 | |||
| 79 | # install systemd service files | ||
| 80 | install -d ${D}${systemd_system_unitdir}/ | ||
| 81 | for j in cinder-init cinder-api cinder-backup cinder-volume cinder-scheduler; do | ||
| 82 | SERVICE_FILE=${D}${systemd_system_unitdir}/$j.service | ||
| 83 | install -m 644 ${WORKDIR}/$j.service ${SERVICE_FILE} | ||
| 84 | sed -e "s:%USER%:${USER}:g" -i ${SERVICE_FILE} | ||
| 85 | sed -e "s:%GROUP%:${GROUP}:g" -i ${SERVICE_FILE} | ||
| 86 | sed -e "s:%LOCALSTATEDIR%:${localstatedir}:g" -i ${SERVICE_FILE} | ||
| 87 | sed -e "s:%SYSCONFDIR%:${sysconfdir}:g" -i ${SERVICE_FILE} | ||
| 91 | done | 88 | done |
| 92 | 89 | ||
| 93 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 90 | # |
| 94 | install -d ${D}${sysconfdir}/init.d | 91 | # Per https://docs.openstack.org/cinder/pike/install/cinder-controller-install-ubuntu.html |
| 95 | sed 's:@suffix@:api:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-api.init.sh | 92 | # |
| 96 | install -m 0755 ${WORKDIR}/cinder-api.init.sh ${D}${sysconfdir}/init.d/cinder-api | 93 | CONF_FILE="${CINDER_CONF_DIR}/cinder.conf" |
| 97 | sed 's:@suffix@:scheduler:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-scheduler.init.sh | 94 | sed -e "/^\[database\]/aconnection = postgresql+psycopg2://${DB_USER}:${DB_PASSWORD}@${CONTROLLER_IP}/cinder" \ |
| 98 | install -m 0755 ${WORKDIR}/cinder-scheduler.init.sh ${D}${sysconfdir}/init.d/cinder-scheduler | 95 | -i ${CONF_FILE} |
| 99 | sed 's:@suffix@:backup:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-backup.init.sh | 96 | sed -e "/#transport_url =/atransport_url = rabbit://openstack:${ADMIN_PASSWORD}@${CONTROLLER_IP}" -i ${CONF_FILE} |
| 100 | install -m 0755 ${WORKDIR}/cinder-backup.init.sh ${D}${sysconfdir}/init.d/cinder-backup | 97 | sed -e "/#auth_strategy =/aauth_strategy = keystone" -i ${CONF_FILE} |
| 101 | install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume | 98 | |
| 102 | fi | 99 | str="auth_uri = http://${CONTROLLER_IP}:5000" |
| 100 | str="$str\nauth_url = http://${CONTROLLER_IP}:35357" | ||
| 101 | str="$str\nmemcached_servers = ${CONTROLLER_IP}:11211" | ||
| 102 | str="$str\nauth_type = password" | ||
| 103 | str="$str\nproject_domain_name = Default" | ||
| 104 | str="$str\nuser_domain_name = Default" | ||
| 105 | str="$str\nproject_name = service" | ||
| 106 | str="$str\nusername = ${USER}" | ||
| 107 | str="$str\npassword = ${ADMIN_PASSWORD}" | ||
| 108 | sed -e "/^\[keystone_authtoken\].*/a$str" -i ${CONF_FILE} | ||
| 109 | |||
| 110 | sed -e "/#my_ip =/amy_ip = ${MY_IP}" -i ${CONF_FILE} | ||
| 111 | sed -e "/#lock_path =/alock_path = ${localstatedir}/lib/cinder/tmp" -i ${CONF_FILE} | ||
| 112 | |||
| 113 | sed -e "/#enabled_backends =/aenabled_backends = nfsdriver" -i ${CONF_FILE} | ||
| 114 | str="[nfsdriver]" | ||
| 115 | str="$str\nvolume_group=nfs-group-1" | ||
| 116 | str="$str\nvolume_driver=cinder.volume.drivers.nfs.NfsDriver" | ||
| 117 | str="$str\nvolume_backend_name=Generic_NFS" | ||
| 118 | sed -e "s/\(^\[backend\].*\)/$str\n\1/" -i ${CONF_FILE} | ||
| 103 | 119 | ||
| 104 | # test setup | 120 | # test setup |
| 105 | cp run_tests.sh ${CINDER_CONF_DIR} | ||
| 106 | cp -r tools ${CINDER_CONF_DIR} | 121 | cp -r tools ${CINDER_CONF_DIR} |
| 107 | 122 | ||
| 108 | #Create cinder volume group backing file | 123 | #Create cinder volume group backing file |
| @@ -123,32 +138,26 @@ do_install_append() { | |||
| 123 | sed -e "s:%IS_DEFAULT%:${is_default}:g" -i ${D}/etc/cinder/drivers/glusterfs_setup.sh | 138 | sed -e "s:%IS_DEFAULT%:${is_default}:g" -i ${D}/etc/cinder/drivers/glusterfs_setup.sh |
| 124 | } | 139 | } |
| 125 | 140 | ||
| 126 | pkg_postinst_${SRCNAME}-setup () { | 141 | #pkg_postinst_${SRCNAME}-setup () { |
| 127 | if [ -z "$D" ]; then | 142 | # if [ -z "$D" ]; then |
| 128 | # This is to make sure postgres is configured and running | 143 | # if [ ! -d /var/log/cinder ]; then |
| 129 | if ! pidof postmaster > /dev/null; then | 144 | # mkdir /var/log/cinder |
| 130 | /etc/init.d/postgresql-init | 145 | # fi |
| 131 | /etc/init.d/postgresql start | 146 | # |
| 132 | fi | 147 | # sudo -u postgres createdb cinder |
| 133 | 148 | # cinder-manage db sync | |
| 134 | if [ ! -d /var/log/cinder ]; then | 149 | # |
| 135 | mkdir /var/log/cinder | 150 | # # Create Cinder nfs_share config file with default nfs server |
| 136 | fi | 151 | # if [ ! -f /etc/cinder/nfs_shares ]; then |
| 137 | 152 | # /bin/bash /etc/cinder/drivers/nfs_setup.sh | |
| 138 | sudo -u postgres createdb cinder | 153 | # fi |
| 139 | cinder-manage db sync | 154 | # |
| 140 | 155 | # # Create Cinder glusterfs_share config file with default glusterfs server | |
| 141 | # Create Cinder nfs_share config file with default nfs server | 156 | # if [ ! -f /etc/cinder/glusterfs_shares ] && [ -f /usr/sbin/glusterfsd ]; then |
| 142 | if [ ! -f /etc/cinder/nfs_shares ]; then | 157 | # /bin/bash /etc/cinder/drivers/glusterfs_setup.sh |
| 143 | /bin/bash /etc/cinder/drivers/nfs_setup.sh | 158 | # fi |
| 144 | fi | 159 | # fi |
| 145 | 160 | #} | |
| 146 | # Create Cinder glusterfs_share config file with default glusterfs server | ||
| 147 | if [ ! -f /etc/cinder/glusterfs_shares ] && [ -f /usr/sbin/glusterfsd ]; then | ||
| 148 | /bin/bash /etc/cinder/drivers/glusterfs_setup.sh | ||
| 149 | fi | ||
| 150 | fi | ||
| 151 | } | ||
| 152 | 161 | ||
| 153 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler ${SRCNAME}-backup" | 162 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-setup ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler ${SRCNAME}-backup" |
| 154 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | 163 | ALLOW_EMPTY_${SRCNAME}-setup = "1" |
| @@ -161,20 +170,23 @@ RDEPENDS_${SRCNAME}-tests += " bash python" | |||
| 161 | 170 | ||
| 162 | FILES_${PN} = "${libdir}/* /etc/tgt" | 171 | FILES_${PN} = "${libdir}/* /etc/tgt" |
| 163 | 172 | ||
| 164 | FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh \ | 173 | FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/tools" |
| 165 | ${sysconfdir}/${SRCNAME}/tools" | ||
| 166 | 174 | ||
| 167 | FILES_${SRCNAME}-api = "${bindir}/cinder-api \ | 175 | FILES_${SRCNAME}-api = " \ |
| 168 | ${sysconfdir}/init.d/cinder-api" | 176 | ${bindir}/cinder-api \ |
| 177 | " | ||
| 169 | 178 | ||
| 170 | FILES_${SRCNAME}-volume = "${bindir}/cinder-volume \ | 179 | FILES_${SRCNAME}-volume = " \ |
| 171 | ${sysconfdir}/init.d/cinder-volume" | 180 | ${bindir}/cinder-volume \ |
| 181 | " | ||
| 172 | 182 | ||
| 173 | FILES_${SRCNAME}-scheduler = "${bindir}/cinder-scheduler \ | 183 | FILES_${SRCNAME}-scheduler = " \ |
| 174 | ${sysconfdir}/init.d/cinder-scheduler" | 184 | ${bindir}/cinder-scheduler \ |
| 185 | " | ||
| 175 | 186 | ||
| 176 | FILES_${SRCNAME}-backup = "${bindir}/cinder-backup \ | 187 | FILES_${SRCNAME}-backup = " \ |
| 177 | ${sysconfdir}/init.d/cinder-backup" | 188 | ${bindir}/cinder-backup \ |
| 189 | " | ||
| 178 | 190 | ||
| 179 | FILES_${SRCNAME} = "${bindir}/* \ | 191 | FILES_${SRCNAME} = "${bindir}/* \ |
| 180 | ${sysconfdir}/${SRCNAME}/* \ | 192 | ${sysconfdir}/${SRCNAME}/* \ |
| @@ -187,32 +199,21 @@ DEPENDS += " \ | |||
| 187 | python-pbr \ | 199 | python-pbr \ |
| 188 | " | 200 | " |
| 189 | 201 | ||
| 190 | RDEPENDS_${PN} += "lvm2 \ | 202 | RDEPENDS_${PN} += " \ |
| 191 | python-sqlalchemy \ | 203 | lvm2 \ |
| 192 | python-amqplib \ | 204 | python-pbr \ |
| 193 | python-anyjson \ | 205 | python-babel \ |
| 194 | python-eventlet \ | 206 | python-decorator \ |
| 195 | python-kombu \ | 207 | python-eventlet \ |
| 196 | python-lxml \ | 208 | python-greenlet \ |
| 197 | python-routes \ | 209 | python-httplib2 \ |
| 198 | python-webob \ | 210 | python-iso8601 \ |
| 199 | python-greenlet \ | 211 | python-ipaddress \ |
| 200 | python-lockfile \ | 212 | python-keystoneauth1 \ |
| 201 | python-pastedeploy \ | 213 | python-keystonemiddleware \ |
| 202 | python-paste \ | 214 | python-lxml \ |
| 203 | python-sqlalchemy-migrate \ | 215 | python-oauth2client \ |
| 204 | python-stevedore \ | 216 | python-oslo.config \ |
| 205 | python-suds-jurko \ | ||
| 206 | python-paramiko \ | ||
| 207 | python-babel \ | ||
| 208 | python-iso8601 \ | ||
| 209 | python-setuptools-git \ | ||
| 210 | python-glanceclient \ | ||
| 211 | python-keystoneclient \ | ||
| 212 | python-swiftclient \ | ||
| 213 | python-cinderclient \ | ||
| 214 | python-oslo.config \ | ||
| 215 | python-oslo.rootwrap \ | ||
| 216 | python-oslo.concurrency \ | 217 | python-oslo.concurrency \ |
| 217 | python-oslo.context \ | 218 | python-oslo.context \ |
| 218 | python-oslo.db \ | 219 | python-oslo.db \ |
| @@ -220,52 +221,78 @@ RDEPENDS_${PN} += "lvm2 \ | |||
| 220 | python-oslo.messaging \ | 221 | python-oslo.messaging \ |
| 221 | python-oslo.middleware \ | 222 | python-oslo.middleware \ |
| 222 | python-oslo.policy \ | 223 | python-oslo.policy \ |
| 224 | python-oslo.privsep \ | ||
| 223 | python-oslo.reports \ | 225 | python-oslo.reports \ |
| 226 | python-oslo.rootwrap \ | ||
| 224 | python-oslo.serialization \ | 227 | python-oslo.serialization \ |
| 225 | python-oslo.service \ | 228 | python-oslo.service \ |
| 226 | python-oslo.utils \ | 229 | python-oslo.utils \ |
| 227 | python-oslo.versionedobjects \ | 230 | python-oslo.versionedobjects \ |
| 228 | python-pbr \ | ||
| 229 | python-taskflow \ | ||
| 230 | python-rtslib-fb \ | ||
| 231 | python-keystonemiddleware \ | ||
| 232 | python-netaddr \ | ||
| 233 | python-osprofiler \ | 231 | python-osprofiler \ |
| 234 | python-pycrypto \ | 232 | python-paramiko \ |
| 233 | python-paste \ | ||
| 234 | python-pastedeploy \ | ||
| 235 | python-psutil \ | ||
| 235 | python-pyparsing \ | 236 | python-pyparsing \ |
| 236 | python-barbicanclient \ | 237 | python-barbicanclient \ |
| 237 | python-glanceclient \ | 238 | python-glanceclient \ |
| 239 | python-keystoneclient \ | ||
| 238 | python-novaclient \ | 240 | python-novaclient \ |
| 239 | python-swiftclient \ | 241 | python-swiftclient \ |
| 242 | python-pytz \ | ||
| 240 | python-requests \ | 243 | python-requests \ |
| 241 | python-retrying \ | 244 | python-retrying \ |
| 245 | python-routes \ | ||
| 242 | python-taskflow \ | 246 | python-taskflow \ |
| 243 | python-rtslib-fb \ | 247 | python-rtslib-fb \ |
| 248 | python-simplejson \ | ||
| 244 | python-six \ | 249 | python-six \ |
| 250 | python-sqlalchemy \ | ||
| 251 | python-sqlalchemy-migrate \ | ||
| 252 | python-stevedore \ | ||
| 253 | python-suds-jurko \ | ||
| 254 | python-webob \ | ||
| 245 | python-oslo.i18n \ | 255 | python-oslo.i18n \ |
| 246 | python-oslo.vmware \ | 256 | python-oslo.vmware \ |
| 247 | python-os-brick \ | 257 | python-os-brick \ |
| 248 | python-enum34 \ | 258 | python-os-win \ |
| 249 | python-routes \ | 259 | python-tooz \ |
| 250 | " | 260 | python-google-api-python-client \ |
| 261 | python-castellan \ | ||
| 262 | python-cryptography \ | ||
| 263 | " | ||
| 251 | 264 | ||
| 252 | RDEPENDS_${SRCNAME} = "${PN} \ | 265 | RDEPENDS_${SRCNAME} = " \ |
| 253 | postgresql postgresql-client python-psycopg2 tgt" | 266 | ${PN} \ |
| 267 | postgresql \ | ||
| 268 | postgresql-client \ | ||
| 269 | python-psycopg2 \ | ||
| 270 | tgt" | ||
| 254 | 271 | ||
| 255 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}" | 272 | RDEPENDS_${SRCNAME}-api = "${SRCNAME}" |
| 256 | RDEPENDS_${SRCNAME}-volume = "${SRCNAME}" | 273 | RDEPENDS_${SRCNAME}-volume = "${SRCNAME}" |
| 257 | RDEPENDS_${SRCNAME}-scheduler = "${SRCNAME}" | 274 | RDEPENDS_${SRCNAME}-scheduler = "${SRCNAME}" |
| 258 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}" | 275 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME} bash" |
| 259 | 276 | ||
| 260 | INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler ${SRCNAME}-backup" | 277 | SYSTEMD_PACKAGES = " \ |
| 261 | INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" | 278 | ${SRCNAME}-setup \ |
| 262 | INITSCRIPT_PARAMS_${SRCNAME}-api = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 279 | ${SRCNAME}-api \ |
| 263 | INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" | 280 | ${SRCNAME}-volume \ |
| 264 | INITSCRIPT_PARAMS_${SRCNAME}-volume = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 281 | ${SRCNAME}-scheduler \ |
| 265 | INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" | 282 | ${SRCNAME}-backup \ |
| 266 | INITSCRIPT_PARAMS_${SRCNAME}-scheduler = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 283 | " |
| 267 | INITSCRIPT_NAME_${SRCNAME}-backup = "cinder-backup" | 284 | |
| 268 | INITSCRIPT_PARAMS_${SRCNAME}-backup = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 285 | SYSTEMD_SERVICE_${SRCNAME}-setup = "cinder-init.service" |
| 286 | SYSTEMD_SERVICE_${SRCNAME}-api = "cinder-api.service" | ||
| 287 | SYSTEMD_SERVICE_${SRCNAME}-volume = "cinder-volume.service" | ||
| 288 | SYSTEMD_SERVICE_${SRCNAME}-scheduler = "cinder-scheduler.service" | ||
| 289 | SYSTEMD_SERVICE_${SRCNAME}-backup = "cinder-backup.service" | ||
| 290 | |||
| 291 | # Disable until they are configured (via -setup) | ||
| 292 | SYSTEMD_AUTO_ENABLE_${SRCNAME}-api = "disable" | ||
| 293 | SYSTEMD_AUTO_ENABLE_${SRCNAME}-volume = "disable" | ||
| 294 | SYSTEMD_AUTO_ENABLE_${SRCNAME}-scheduler = "disable" | ||
| 295 | SYSTEMD_AUTO_ENABLE_${SRCNAME}-backup = "disable" | ||
| 269 | 296 | ||
| 270 | MONITOR_SERVICE_PACKAGES = "${SRCNAME}" | 297 | MONITOR_SERVICE_PACKAGES = "${SRCNAME}" |
| 271 | MONITOR_SERVICE_${SRCNAME} = "cinder" | 298 | MONITOR_SERVICE_${SRCNAME} = "cinder" |
