cinder service is down when re-spawning child process
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Yikun Jiang |
Bug Description
Currently, then oslo.service provider a mechanism that the main process will re-spawn the children as necessary.
But if we kill the children service, the services (except the latest service) are always down after re-spawn.
Reproduce Step:
1. First, if we have 2 volume backends like: lvmdriver-1, lvmdriver-2, we will start 3 process:
# ps -ef | grep cinder-v
stack 24951 1 1 01:45 ? 00:01:02 cinder-volume --config-file /etc/cinder/
stack 25379 24951 2 01:47 ? 00:01:44 cinder-volume --config-file /etc/cinder/
stack 25380 24951 2 01:47 ? 00:01:44 cinder-volume --config-file /etc/cinder/
the 24951 is the main process, and the 25379 and 25380 are children process.
The cinder-volume.conf is like:
enabled_backends = lvmdriver-
[lvmdriver-1]
image_volume_
volume_clear = zero
lvm_type = auto
target_helper = tgtadm
volume_group = stack-volumes-
volume_driver = cinder.
volume_backend_name = lvmdriver-1
[lvmdriver-2]
image_volume_
volume_clear = zero
lvm_type = auto
target_helper = tgtadm
volume_group = stack-volumes-
volume_driver = cinder.
volume_backend_name = lvmdriver-1
# cinder service-list
+------
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------
| cinder-backup | ubuntubase | nova | enabled | up | 2019-01-
| cinder-scheduler | ubuntubase | nova | enabled | up | 2019-01-
| cinder-volume | ubuntubase@
| cinder-volume | ubuntubase@
+------
2. Kill the 25379 and 25380 child.
If we kill the 25379 and 25380, the main process will re-spawn these two process.
# kill -9 25379;kill -9 25380
# ps -ef | grep cinder-v
stack 24951 1 1 01:45 ? 00:01:07 cinder-volume --config-file /etc/cinder/
stack 32433 24951 5 03:17 ? 00:00:00 cinder-volume --config-file /etc/cinder/
stack 32434 24951 5 03:17 ? 00:00:00 cinder-volume --config-file /etc/cinder/
We can see the process are started as expected.
3. The lvmdriver-1 is always down.
root@ubuntubase
+------
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------
| cinder-backup | ubuntubase | nova | enabled | up | 2019-01-
| cinder-scheduler | ubuntubase | nova | enabled | up | 2019-01-
| cinder-volume | ubuntubase@
| cinder-volume | ubuntubase@
+------
But the problem is that, if we kill 25379 and 25380, only latest service (ubuntubase@
[1] https:/
Changed in cinder: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/630068
Review: https:/