Browse Source

nlbaas2octavia: improve member error log message

While NLBaaS member is an invalid state, the shown error message doesn't
give enough info to resolve the problem.

Change-Id: Ia18958d6f7126b46eae33ee615a18b34e3b76357
Kobi Samoray 8 months ago
parent
commit
eb47e20e87
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      tools/nlbaas2octavia/nlbaas2octavia.py

+ 4
- 1
tools/nlbaas2octavia/nlbaas2octavia.py View File

@@ -188,7 +188,10 @@ def process_members(LOG, n_session, o_session, project_id, pool_id):
188 188
         if member[6] == 'DELETED':
189 189
             continue
190 190
         elif member[6] != 'ACTIVE':
191
-            raise Exception(_('Member is invalid state of %s.'), member[6])
191
+            raise Exception(_('Member %s for pool %s is invalid state of %s.'),
192
+                            member[0],
193
+                            pool_id,
194
+                            member[6])
192 195
 
193 196
         result = o_session.execute(
194 197
             "INSERT INTO member (id, pool_id, project_id, subnet_id, "

Loading…
Cancel
Save