Cinder backends cause cinder-volume to deploy as both service and container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Alan Bishop |
Bug Description
Heat templates in puppet/services for several Cinder backends contain a step_config that causes the cinder-volume service to deploy on the baremetal host when the service is supposed to only run in a container. The backend templates should only be generating config_settings (basically, hieradata for each backend), and the CinderVolume template is responsible for the config steps.
Background: the Cinder backends are modelled as composable services, but really they are just responsible for establishing the backend config settings for the CinderVolume service. The backends are implemented in puppet/services, and there are no (and no need for) equivalent templates in docker/services. To deploy a backend, you specify either the docker (containerized) or puppet (baremetal) version of the CinderVolume service, and the puppet template for the backend.
The problem is the backend puppet templates contain a step_config that causes puppet-tripleo to deploy the service. This is benign when CinderVolume is deployed on baremetal because it simply repeats the step_config that's in puppet/
Here is an example of what happens after deploying cinder in containers with puppet/
First, there are too many cinder-volume processes (there should be two):
[root@overcloud
90620 /usr/bin/python2 /usr/bin/
90842 /usr/bin/python2 /usr/bin/
98518 /usr/bin/python2 /usr/bin/
100194 /usr/bin/python2 /usr/bin/
Two are running in the cinder_volume container:
[root@overcloud
UID PID PPID C STIME TTY TIME CMD
42407 98518 98491 1 14:57 ? 00:00:15 /usr/bin/p
ython2 /usr/bin/
42407 100194 98518 1 14:58 ? 00:00:16 /usr/bin/p
ython2 /usr/bin/
And two are running on the baremetal host:
[root@overcloud
● openstack-
Loaded: loaded (/usr/lib/
Active: active (running) since Mon 2018-04-30 14:55:49 UTC; 34min ago
Main PID: 90620 (cinder-volume)
Memory: 155.3M
CGroup: /system.
├─90620 /usr/bin/python2 /usr/bin/
└─90842 /usr/bin/python2 /usr/bin/
Fix proposed to branch: master /review. openstack. org/565244
Review: https:/