[validation tool] should give more feedback

Bug #1503830 reported by Eugene Korekin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
Albert Syriy

Bug Description

Mirantis validation tool gives too little feedback if there is not enough nodes to deploy cluster.
It just waits for nodes to become available.

I propose to give some feedback in that case.

Changed in mos:
assignee: Dmitry Teselkin (teselkin-d) → MOS Linux (mos-linux)
importance: Undecided → Medium
milestone: none → 8.0
status: New → Triaged
Albert Syriy (asyriy)
Changed in mos:
assignee: MOS Linux (mos-linux) → asyriy (asyriy)
status: Triaged → In Progress
Revision history for this message
Albert Syriy (asyriy) wrote :

Actually the root cause of the issue is the following infinity cycle in the function match_nodes() file main.py

========== start quotation ==============
def match_nodes(conn, min_nodes, probe_cnt):

    while True:
        nodes = [node for node in fuel_rest_api.get_all_nodes(conn)
                 if node.cluster is None]

        if len(nodes) < min_nodes:
            templ = "Only {0} nodes available. {1} requires. Wait 60 sec"
            logger.info(templ.format(len(nodes), min_nodes))
            time.sleep(60)
            continue
=========== end quotation =============

Actually the logger save message on the info level, but due to the all logging is miss-configured, there is no logs at all

Revision history for this message
Albert Syriy (asyriy) wrote :
Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Albert Syriy (asyriy) wrote :

The fix should be reverted

Revision history for this message
Albert Syriy (asyriy) wrote :
Revision history for this message
Albert Syriy (asyriy) wrote :
Albert Syriy (asyriy)
Changed in mos:
status: Fix Committed → Fix Released
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.