Exchange applying order compute with cinder configuration

Bug #1587023 reported by Ksenia Svechnikova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Ksenia Svechnikova
Mitaka
Fix Released
High
Ksenia Svechnikova
Newton
Confirmed
High
MOS QA Team

Bug Description

Detailed bug description:

Test Apply config for node with multiple role fail with AssertionError: https://product-ci.infra.mirantis.net/job/9.0.system_test.ubuntu.services_reconfiguration_thread_1/116/testReport/(root)/apply_config_for_node_with_multiple_role/

Steps to reproduce: Run test 'apply_config_for_node_with_multiple_role'

Expected results: Test pass

Actual result: AssertionError: Expected that the option "default_ephemeral_format" has value "ext4" in config file /etc/nova/nova.conf but actually has value "ext3": FAIL

Description of the environment: 9.0 mos iso #416

Additional information: The root cause is in new order of config execution. Previously it was 'compute, cinder' and openstack-config tasks were executed in this order. But now we can see that they are executed in ID-priority way:

[root@nailgun ~]# fuel2 openstack-config list --env 1
+----+-----------+-------------+------------+---------+------------+
| id | is_active | config_type | cluster_id | node_id | node_role |
+----+-----------+-------------+------------+---------+------------+
| 4 | True | role | 1 | None | controller |
| 7 | True | role | 1 | None | cinder |
| 8 | True | role | 1 | None | compute |
+----+-----------+-------------+------------+---------+------------+
====> compute conf was executed

[root@nailgun ~]# fuel2 openstack-config list --env 1
+----+-----------+-------------+------------+---------+------------+
| id | is_active | config_type | cluster_id | node_id | node_role |
+----+-----------+-------------+------------+---------+------------+
| 4 | True | role | 1 | None | controller |
| 8 | True | role | 1 | None | compute |
| 9 | True | role | 1 | None | cinder |
+----+-----------+-------------+------------+---------+------------+
[root@nailgun ~]#
==> cinder conf

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

Fix proposed to branch: master
Review: https://review.openstack.org/323375

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/323738

tags: added: swarm-fail
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/323375
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=44555374e72930c0e0f7eedaeb2341fe9d2b9eae
Submitter: Jenkins
Branch: master

commit 44555374e72930c0e0f7eedaeb2341fe9d2b9eae
Author: Ksenia Demina <email address hidden>
Date: Tue May 31 16:30:26 2016 +0300

    Change checkers of config's applying order

    Now for a node with multi-roles configs fot the same section
    are merging by ID-priority. Thus last config for cinder will
    be have higher priority and will rewrite compute config

    Change-Id: Ic35a6c5efb05974dc7ab7ae36cc175a91471c778
    Closes-Bug: #1587023

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/mitaka)

Reviewed: https://review.openstack.org/323738
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=a95e465336d20807f8efc548d9069f4fec02693f
Submitter: Jenkins
Branch: stable/mitaka

commit a95e465336d20807f8efc548d9069f4fec02693f
Author: Ksenia Demina <email address hidden>
Date: Tue May 31 16:30:26 2016 +0300

    Change checkers of config's applying order

    Now for a node with multi-roles configs fot the same section
    are merging by ID-priority. Thus last config for cinder will
    be have higher priority and will rewrite compute config

    Change-Id: Ic35a6c5efb05974dc7ab7ae36cc175a91471c778
    Closes-Bug: #1587023

Revision history for this message
Ksenia Svechnikova (kdemina) wrote :

Test pass 10 last runs (fuel-9.0-mos-485-2016-06-14 and more older)

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

reproduced on 10 SWARM

https://product-ci.infra.mirantis.net/job/10.0.system_test.ubuntu.services_reconfiguration_thread_1/180/testReport/(root)/apply_config_for_node_with_multiple_role/apply_config_for_node_with_multiple_role/

Expected that the option "default_ephemeral_format" has value "ext3" in config file /etc/nova/nova.conf but actually has value "ext4": FAIL

Revision history for this message
Alexander Kurenyshev (akurenyshev) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.