MCPcopy Create free account
hub / github.com/apache/cloudstack / probe

Method probe

scripts/vm/hypervisor/xenserver/xcposs/NFSSR.py:123–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121
122
123 def probe(self):
124 # Verify NFS target and port
125 util._testHost(self.dconf['server'], NFSPORT, 'NFSTarget')
126
127 self.validate_remotepath(True)
128 self.check_server()
129
130 temppath = os.path.join(SR.MOUNT_BASE, PROBE_MOUNTPOINT)
131
132 self.mount(temppath, self.dconf['serverpath'])
133 try:
134 return nfs.scan_srlist(temppath)
135 finally:
136 try:
137 nfs.unmount(temppath, True)
138 except:
139 pass
140
141
142 def detach(self, sr_uuid):

Callers 2

getIscsiSRMethod · 0.45
resignatureIscsiSrMethod · 0.45

Calls 4

validate_remotepathMethod · 0.95
check_serverMethod · 0.95
mountMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected