[upgrade] octane upgrade-node make computes unavailable

Bug #1563253 reported by Sergey Abramov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Sergey Abramov
8.0.x
Fix Committed
High
Unassigned
Newton
Fix Committed
High
Sergey Abramov

Bug Description

Detailed bug description:
If you try to upgrade all nodes by one command
    octane upgrade-node $SEED_ID <ID>
all upgradable nodes became unavailable
Steps to reproduce:
1) upgrade master node from 7.0 -> 8.0
2) upgrade controllers
3) octane upgrade-db $ORIG_ID $SEED_ID
4) octane upgrade-ceph $ORIG_ID $SEED_ID
5) octane upgrade-control $ORIG_ID $SEED_ID
6) octane upgrade-node $SEED_ID [<ID> all list of computes]
Expected results:
all computes return to enabled
Actual result:
all computes are disabled
Workaround:
nova service-enable for each node disabled node
Impact:
Not allowed to upgrade node after argument fix

summary: - octane upgrade-node make computes unavailable
+ [upgrade] octane upgrade-node make computes unavailable
Changed in fuel:
milestone: none → 8.0-updates
Revision history for this message
Oleg S. Gelbukh (gelbuhos) wrote :

Sergey, could you please share the RCA for this bug?

Revision history for this message
Sergey Abramov (sabramov) wrote :

Main reason is octane/bin/host_evacuation.sh
At start it stop compute and after that check are there another computes. If there are no computer it will exit with code 3 and all computes will be disabled.

You can run octane upgrade-node $SEED_ID <ID> with all compute id's as arguments
So if you start it with all compute ids as argument at last compute it will raise exception and all your computes will be disabled.

Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 9.0 → 10.0
Changed in fuel:
assignee: Fuel Octane Dev Team (fuel-octane) → Sergey Abramov (sabramov)
status: Confirmed → In Progress
Revision history for this message
Oleg S. Gelbukh (gelbuhos) wrote :

Addressed in the following change request: https://review.openstack.org/304013

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

Reviewed: https://review.openstack.org/304013
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=8616d029eccb366ee4a36d51e65d099ea190c69c
Submitter: Jenkins
Branch: master

commit 8616d029eccb366ee4a36d51e65d099ea190c69c
Author: Sergey Abramov <email address hidden>
Date: Mon Apr 11 13:16:32 2016 +0300

    Change check on host_evacuation

    Check number of enabled compute nodes on host_evacuation before disable
    current compute node.

    Change-Id: I98f972cb028425d89ae21f77ade2f2fa2e3ee1a5
    Closes-bug: 1563253

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

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/316083

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-octane (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/316084

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-octane (stable/8.0)

Reviewed: https://review.openstack.org/316084
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=858a4319da77bb576266d026fcc57ef44f95d265
Submitter: Jenkins
Branch: stable/8.0

commit 858a4319da77bb576266d026fcc57ef44f95d265
Author: Sergey Abramov <email address hidden>
Date: Mon Apr 11 13:16:32 2016 +0300

    Change check on host_evacuation

    Check number of enabled compute nodes on host_evacuation before disable
    current compute node.

    Change-Id: I98f972cb028425d89ae21f77ade2f2fa2e3ee1a5
    Closes-bug: 1563253
    (cherry picked from commit 8616d029eccb366ee4a36d51e65d099ea190c69c)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-octane (stable/7.0)

Reviewed: https://review.openstack.org/316083
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=8bc7beec905fb613b2f52e0da79319bfae2b7694
Submitter: Jenkins
Branch: stable/7.0

commit 8bc7beec905fb613b2f52e0da79319bfae2b7694
Author: Sergey Abramov <email address hidden>
Date: Mon Apr 11 13:16:32 2016 +0300

    Change check on host_evacuation

    Check number of enabled compute nodes on host_evacuation before disable
    current compute node.

    Change-Id: I98f972cb028425d89ae21f77ade2f2fa2e3ee1a5
    Closes-bug: 1563253
    (cherry picked from commit 8616d029eccb366ee4a36d51e65d099ea190c69c)

no longer affects: fuel/mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-octane (stable/mitaka)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-octane (stable/mitaka)
Download full text (40.5 KiB)

Reviewed: https://review.openstack.org/332931
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=24f3c396612eb0c69fbf06bab3cebbb9ca829426
Submitter: Jenkins
Branch: stable/mitaka

commit b34d749f1c281dafbdbf155bd86830dc8f2a9aa2
Author: Ilya Kharin <email address hidden>
Date: Wed Jun 22 21:10:56 2016 +0300

    Support mock==1.8.0 in unit tests

    Use assert_called_once_with instead of assert_called_once that was
    introduced in 2.0.0.

    Change-Id: Ifb7699d4b552d148984961727355f0e23b487c7c

commit d60f1905143bb7576ffd670595de1c4aeafd7b34
Author: Ilya Kharin <email address hidden>
Date: Wed Jun 22 02:01:52 2016 +0300

    Allow to authorize by the predefined admin_token

    The admin_token_auth middleware is added to keystone pipelines to
    allow authorization by admin_token.

    Change-Id: Ic03150305a669fad1446436a68051fb9aa25b892

commit cc7fab59f44ffef60285f8732d798f52469b2530
Author: Ilya Kharin <email address hidden>
Date: Wed Jun 22 01:47:01 2016 +0300

    Reset default_domain_id before the keystone task

    The default_domain_id should be removed from keystone.conf after restore
    of DB and before to apply the keystone puppet task to avoid of using the
    configured domain as a default.

    Change-Id: I05a6c48532e8042496b3d8ccef53d65bf8c44653

commit e3f82399d567dbcfc1ae9a1ecbddba7bf5028fc8
Author: Ilya Kharin <email address hidden>
Date: Wed Jun 22 01:32:47 2016 +0300

    Add helper function to iterate over parameters

    The helpers.iterate_parameters function allows to iterate over lines of
    INI-like files along with a context of information, such section,
    parameter and value.

    Change-Id: I55b179118116fd5dacf100754057ea6589782dc2

commit 5ed370a4fbb3369d0f75873d205ac7f0c655f93a
Author: Ilya Kharin <email address hidden>
Date: Wed Jun 22 01:18:05 2016 +0300

    Add update_file context manager for local files

    The subprocess.update_file function provides an ability to update
    content of a local file by iterating over lines of an original file and
    forming a result content in a temporary file to replace the original
    file in the end. This function is very useful to change configuration
    files.

    Change-Id: I433a5da67887b231400dd63131799019f45c277c

commit 58f31e6c5f408630c42565ee53de6b59457bc84c
Author: Oleg Gelbukh <email address hidden>
Date: Wed Jun 22 14:34:03 2016 +0000

    Escape passwords passed to openstack client

    If special symbols are used in password for 'admin' user in
    OpenStack, octane passes them to command line client as is
    and it breaks shell.

    Properly escape the password before passing it to subprocess.

    Change-Id: Iad635aec6d5b5cc32975937e00205b7e89dc99d9
    Closes-bug: 1585960

commit 896aba1191eeb59cf85cc8be6a2ae67e08b76070
Author: Yuriy Taraday <email address hidden>
Date: Wed Jun 22 15:28:45 2016 +0300

    Add absolute_import to util/docker.py to avoid local tempfile module

    Closes-Bug: 1595156
    Change-Id: I9484efce6fa7aec1b41cf592f9e9768d85931fa7

commit 46586a62df962b2ce00b5d8a63f6fd34c920a1f4
Author: Oleg Gelbukh <email address hidden>
Date: Thu M...

tags: added: in-stable-mitaka
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.