Revision 9c1c3c19 lib/cmdlib/cluster.py
b/lib/cmdlib/cluster.py | ||
---|---|---|
2324 | 2324 |
"Node should not have returned forbidden file storage" |
2325 | 2325 |
" paths") |
2326 | 2326 |
|
2327 |
def _VerifyStoragePaths(self, ninfo, nresult): |
|
2328 |
"""Verifies (file) storage paths. |
|
2329 |
|
|
2330 |
@type ninfo: L{objects.Node} |
|
2331 |
@param ninfo: the node to check |
|
2332 |
@param nresult: the remote results for the node |
|
2333 |
|
|
2334 |
""" |
|
2335 |
cluster = self.cfg.GetClusterInfo() |
|
2336 |
if cluster.IsFileStorageEnabled(): |
|
2337 |
self._ErrorIf( |
|
2338 |
constants.NV_FILE_STORAGE_PATH in nresult, |
|
2339 |
constants.CV_ENODEFILESTORAGEPATHUNUSABLE, ninfo.name, |
|
2340 |
"The configured file storage path is unusable: %s" % |
|
2341 |
nresult.get(constants.NV_FILE_STORAGE_PATH)) |
|
2342 |
|
|
2327 | 2343 |
def _VerifyOob(self, ninfo, nresult): |
2328 | 2344 |
"""Verifies out of band functionality of a node. |
2329 | 2345 |
|
... | ... | |
2839 | 2855 |
self._VerifyOob(node_i, nresult) |
2840 | 2856 |
self._VerifyAcceptedFileStoragePaths(node_i, nresult, |
2841 | 2857 |
node_i.uuid == master_node_uuid) |
2858 |
self._VerifyStoragePaths(node_i, nresult) |
|
2842 | 2859 |
|
2843 | 2860 |
if nimg.vm_capable: |
2844 | 2861 |
self._UpdateVerifyNodeLVM(node_i, nresult, vg_name, nimg) |
Also available in: Unified diff