fuel menu allow to run second copy of itself

Bug #1566401 reported by Sergey Vasilenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Dmitry Guryanov

Bug Description

Detailed bug description:

fuel menu allow to run second copy of itself.
This leads to two negative results:
* different operators can make configuration changes consurently
* operator has ability do not end of master-node configuration before master-node operate

Steps to reproduce:
* boot ISO
* configure IP addresses by fuel-menu
* apply changes (do not exit from fuel menu!!!)
* ssh to master-node
* run fuel-menu
* configure another cluster options
* apply config and exit
After such steps there are no running nailgun, astute, etc...

Expected results:
  Fuel menu shouldn't allow to run second copy of itself

Actual result:
Multiple copy of fuel-menu can be running simultaneously.

Reproducibility:
  100%

Workaround:
  No

Changed in fuel:
importance: Undecided → High
Changed in fuel:
status: New → Confirmed
Dmitry Pyzhov (dpyzhov)
tags: added: area-python module-fuelmenu
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Moving back to fuel-python in case someone else can work on this

Changed in fuel:
assignee: Matthew Mosesohn (raytrac3r) → Fuel Python Team (fuel-python)
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Seems to be rare case caused by user mistake. Setting medium priority and moving to the Newton release.

Changed in fuel:
milestone: 9.0 → 10.0
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-menu (master)

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

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Dmitry Guryanov (dguryanov)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-menu (master)

Reviewed: https://review.openstack.org/307682
Committed: https://git.openstack.org/cgit/openstack/fuel-menu/commit/?id=3f84153673cc82b7d915b057adc68fc55eee9798
Submitter: Jenkins
Branch: master

commit 3f84153673cc82b7d915b057adc68fc55eee9798
Author: Dmitry Guryanov <email address hidden>
Date: Tue Apr 19 12:50:15 2016 +0300

    prevent running second copy of fuelmenu

    Create a file and take a lock on it before running main
    part of fuel-menu, so running two copies would be impossible.

    This patch adds an option -l, --lock-file to have ability to
    specify path to lock file.

    Change-Id: I8ab41e6e068caa0881e0affcbfb5695a9025b762
    Closes-Bug: #1566401

Changed in fuel:
status: In Progress → Fix Committed
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.