Revision 83266db6 lib/cmdlib/instance.py
b/lib/cmdlib/instance.py | ||
---|---|---|
1707 | 1707 |
def BuildHooksEnv(self): |
1708 | 1708 |
"""Build hooks env. |
1709 | 1709 |
|
1710 |
This runs on master, primary and secondary nodes of the instance.
|
|
1710 |
This runs on master, primary and target nodes of the instance.
|
|
1711 | 1711 |
|
1712 | 1712 |
""" |
1713 | 1713 |
env = { |
... | ... | |
1771 | 1771 |
ignore=self.op.ignore_ipolicy) |
1772 | 1772 |
|
1773 | 1773 |
if self.instance.admin_state == constants.ADMINST_UP: |
1774 |
# check memory requirements on the secondary node
|
|
1774 |
# check memory requirements on the target node
|
|
1775 | 1775 |
CheckNodeFreeMemory( |
1776 | 1776 |
self, target_node.uuid, "failing over instance %s" % |
1777 | 1777 |
self.instance.name, bep[constants.BE_MAXMEM], |
Also available in: Unified diff