[CentOS7] Changes in feature groups are applied only second restart of nailgun container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Matthew Mosesohn |
Bug Description
Fuel version: 8.0, build 288.
Changes made in feature groups via amending /etc/fuel/
1. Check current feature groups (e.g. via 'fuel fuel-version' request):
[root@nailgun ~]# fuel fuel-version
api: '1'
auth_required: true
feature_groups: []
openstack_version: 2015.1.0-8.0
release: '8.0'
2. Update /etc/fuel/
[root@nailgun ~]# cat /etc/fuel/
"FEATURE_GROUPS":
- "advanced"
3. Restart nailgun container and check feature groups data.
[root@nailgun ~]# dockerctl restart nailgun
fuel-core-
[root@nailgun ~]# fuel fuel-version
api: '1'
auth_required: true
feature_groups: []
openstack_version: 2015.1.0-8.0
release: '8.0'
Expected result: new features are enabled.
4. Once more, restart nailgun container and check feature groups data:
[root@nailgun ~]# dockerctl restart nailgun
fuel-core-
[root@nailgun ~]# fuel fuel-version
api: '1'
auth_required: true
feature_groups:
- advanced
openstack_version: 2015.1.0-8.0
release: '8.0'
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: area-library |
Changed in fuel: | |
assignee: | Fuel Library Team (fuel-library) → MOS Linux (mos-linux) |
tags: |
added: area-linux removed: area-library |
tags: | added: team-linux |
tags: |
added: area-library team-bugfix removed: area-linux team-linux |
Changed in fuel: | |
status: | Fix Committed → In Progress |
tags: | added: on-verification |
Related bug #1526917.
When Nailgun container is re-started, systemd starts Nailgun service and start.sh (start- container. service) simultaneously , so its configuration isn't updated by puppet at that moment. There are two issues here:
1) nailgun.service (and others [0]) is started before applying puppet manifests
2) puppet doesn't reload services if their configuration is changed
[0] https:/ /github. com/openstack/ fuel-library/ blob/master/ deployment/ puppet/ nailgun/ examples/ nailgun- only.pp# L171-L180