Setting custom hostnames breaks database-related OSTF checks

Bug #1582800 reported by Dmitry Nikishov
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dmitry Nikishov
Mitaka
Fix Released
High
Artem Panchenko
Newton
Fix Released
High
Dmitry Nikishov

Bug Description

9.0, 10.0 is affected as well

When there are custom hostnames are set for nodes, after environment has been deployed, MySQL-related HA checks fail. This happens due to this code: https://github.com/openstack/fuel-ostf/blob/master/fuel_health/tests/ha/test_mysql_status.py#L62-L72

Ruby command returns names like "node-$i" even when there are custom hostnames are set. This results in "databases" being empty.

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

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

Changed in fuel:
assignee: nobody → Dmitry Nikishov (nikishov-da)
status: New → In Progress
Revision history for this message
Alexandr Kostrikov (akostrikov-mirantis) wrote :

That is reproducing at SWARM ci jobs. Setting to high

Changed in fuel:
importance: Undecided → High
Dmitry Klenov (dklenov)
tags: added: area-library
tags: added: swarm-fail
Revision history for this message
Ksenia Svechnikova (kdemina) wrote :
Dmitry Pyzhov (dpyzhov)
tags: added: area-ostf
removed: area-library
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ostf (master)

Reviewed: https://review.openstack.org/317660
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=43a58efbaf17ca4fd3a2545bcefaff888c6e565d
Submitter: Jenkins
Branch: master

commit 43a58efbaf17ca4fd3a2545bcefaff888c6e565d
Author: Dmitry Nikishov <email address hidden>
Date: Tue May 17 13:05:41 2016 -0500

    Fixed hiera command to output correct DB hostnames

    hiera_cmd used to output internal node names like "node-$i"
    even if there are user-defined hostnames set. This breaks
    DB-related checks when hostnames are customized.
    The fix is to return not "database_nodes" keys, but
    the value of "name" key in each "database_nodes"
    subhash.

    Change-Id: I9fbcfc270ab17d6302ce0a785c96f5b44fc9e75d
    Co-Authored-By: Omar Rivera <email address hidden>
    Closes-Bug: #1582800

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

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

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

Reviewed: https://review.openstack.org/346795
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=a8ee937a869c95dc2a231c32daa5c8c08dd96b4a
Submitter: Jenkins
Branch: stable/mitaka

commit a8ee937a869c95dc2a231c32daa5c8c08dd96b4a
Author: Dmitry Nikishov <email address hidden>
Date: Tue May 17 13:05:41 2016 -0500

    Fixed hiera command to output correct DB hostnames

    hiera_cmd used to output internal node names like "node-$i"
    even if there are user-defined hostnames set. This breaks
    DB-related checks when hostnames are customized.
    The fix is to return not "database_nodes" keys, but
    the value of "name" key in each "database_nodes"
    subhash.

    Change-Id: I9fbcfc270ab17d6302ce0a785c96f5b44fc9e75d
    Co-Authored-By: Omar Rivera <email address hidden>
    Closes-Bug: #1582800
    (cherry picked from commit 43a58efbaf17ca4fd3a2545bcefaff888c6e565d)

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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