Revision b459a848 lib/watcher/nodemaint.py
b/lib/watcher/nodemaint.py | ||
---|---|---|
34 | 34 |
from ganeti import utils |
35 | 35 |
from ganeti import confd |
36 | 36 |
|
37 |
import ganeti.confd.client # pylint: disable-msg=W0611
|
|
37 |
import ganeti.confd.client # pylint: disable=W0611 |
|
38 | 38 |
|
39 | 39 |
|
40 | 40 |
class NodeMaintenance(object): |
... | ... | |
70 | 70 |
hv = hypervisor.GetHypervisor(hv_name) |
71 | 71 |
ilist = hv.ListInstances() |
72 | 72 |
results.extend([(iname, hv_name) for iname in ilist]) |
73 |
except: # pylint: disable-msg=W0702
|
|
73 |
except: # pylint: disable=W0702 |
|
74 | 74 |
logging.error("Error while listing instances for hypervisor %s", |
75 | 75 |
hv_name, exc_info=True) |
76 | 76 |
return results |
... | ... | |
121 | 121 |
logging.info("Following DRBD minors should not be active," |
122 | 122 |
" shutting them down: %s", utils.CommaJoin(drbd_running)) |
123 | 123 |
for minor in drbd_running: |
124 |
# pylint: disable-msg=W0212
|
|
124 |
# pylint: disable=W0212 |
|
125 | 125 |
# using the private method as is, pending enhancements to the DRBD |
126 | 126 |
# interface |
127 | 127 |
bdev.DRBD8._ShutdownAll(minor) |
Also available in: Unified diff