[validation tool] should give more feedback
Bug #1503830 reported by
Eugene Korekin
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 |
Changed in mos: | |
assignee: | MOS Linux (mos-linux) → asyriy (asyriy) |
status: | Triaged → In Progress |
Changed in mos: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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: api.get_ all_nodes( conn)
nodes = [node for node in fuel_rest_
if node.cluster is None]
if len(nodes) < min_nodes:
logger. info(templ. format( len(nodes) , min_nodes))
time. sleep(60)
continue
templ = "Only {0} nodes available. {1} requires. Wait 60 sec"
=========== 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