Revision 377972f4 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
3910 | 3910 |
bad_nodes.append(name) |
3911 | 3911 |
elif result.payload: |
3912 | 3912 |
for inst in result.payload: |
3913 |
if all_info[inst].primary_node == name: |
|
3914 |
live_data.update(result.payload) |
|
3913 |
if inst in all_info: |
|
3914 |
if all_info[inst].primary_node == name: |
|
3915 |
live_data.update(result.payload) |
|
3916 |
else: |
|
3917 |
wrongnode_inst.add(inst) |
|
3915 | 3918 |
else: |
3916 |
wrongnode_inst.add(inst) |
|
3919 |
# orphan instance; we don't list it here as we don't |
|
3920 |
# handle this case yet in the output of instance listing |
|
3921 |
logging.warning("Orphan instance '%s' found on node %s", |
|
3922 |
inst, name) |
|
3917 | 3923 |
# else no instance is alive |
3918 | 3924 |
else: |
3919 | 3925 |
live_data = {} |
Also available in: Unified diff