query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Test that middleware selected correct limiter class. | def OO1I(YKHO):
assert isinstance(YKHO.app._limiter, KSar) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(tmK8, YKHO).setUp()\n FHui = '(GET, *, .*, 1, MINUTE)'\n YKHO.app = c5uu.RateLimitingMiddleware(YKHO._empty_app, FHui, '%s.TestLimiter' % YKHO.__class__.__module__)",
"def FCbF(YKHO):\n super(tmK8, YKHO).setUp()\n FHui = '(GET, *, .*, 1, MINUTE)'\n YKHO.app = c5uu.RateLi... | [
"0.68525535",
"0.68525535",
"0.6609344",
"0.6388156",
"0.61687994",
"0.60217065",
"0.60217065",
"0.5993304",
"0.5963856",
"0.5912493",
"0.588511",
"0.588511",
"0.5861006",
"0.578564",
"0.57743037",
"0.57523286",
"0.56379884",
"0.5632752",
"0.5632752",
"0.5606392",
"0.55678",
... | 0.75385076 | 1 |
Test that parse_limits() handles invalid input correctly. | def HT9M(YKHO):
YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, ';;;;;') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0fH(YKHO):\n YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, '(GET, *, .*, foo, minute)')",
"def L0fH(YKHO):\n YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, '(GET, *, .*, foo, minute)')",
"def VuOv(YKHO):\n YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, '(GET, *, .*,... | [
"0.7617074",
"0.7617074",
"0.7128082",
"0.7128082",
"0.7000061",
"0.7000061",
"0.6927094",
"0.6927094",
"0.69220465",
"0.6861955",
"0.6861955",
"0.67933893",
"0.672491",
"0.66892225",
"0.6650408",
"0.664615",
"0.6593256",
"0.6592062",
"0.6504667",
"0.6466767",
"0.64506763",
... | 0.76420754 | 1 |
setUp for test suite. Do some nifty HTTP/WSGI magic which allows for WSGI to be called directly by something like the `httplib` library. | def FCbF(YKHO):
super(AJOa, YKHO).setUp()
YKHO.app = c5uu.WsgiLimiter(Tzsg)
YKHO.oldHTTPConnection = q3xP('169.254.0.1:80', YKHO.app)
YKHO.proxy = c5uu.WsgiLimiterProxy('169.254.0.1:80')
YKHO.addCleanup(YKHO._restore, YKHO.oldHTTPConnection) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n EJeC()\n YKHO.testbed = ugOn.Testbed()\n YKHO.testbed.activate()\n YKHO.testbed.init_user_stub()\n YKHO.testbed.init_app_identity_stub()\n YKHO.testbed.init_mail_stub()\n YKHO.mail_stub = YKHO.testbed.get_stub(ugOn.MAIL_SERVICE_NAME)\n YKHO.testapp = O2Cv.TestApp(b8V_.app)... | [
"0.76689994",
"0.74653536",
"0.739677",
"0.73871404",
"0.73859996",
"0.73012644",
"0.72895056",
"0.7288208",
"0.7288208",
"0.7274847",
"0.7244798",
"0.7242259",
"0.7233528",
"0.7231458",
"0.7225706",
"0.7225706",
"0.7225706",
"0.7225706",
"0.7225706",
"0.7225706",
"0.7225706"... | 0.0 | -1 |
Test that middleware selected correct limiter class. | def OO1I(YKHO):
assert isinstance(YKHO.app._limiter, KSar) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(tmK8, YKHO).setUp()\n FHui = '(GET, *, .*, 1, MINUTE)'\n YKHO.app = c5uu.RateLimitingMiddleware(YKHO._empty_app, FHui, '%s.TestLimiter' % YKHO.__class__.__module__)",
"def FCbF(YKHO):\n super(tmK8, YKHO).setUp()\n FHui = '(GET, *, .*, 1, MINUTE)'\n YKHO.app = c5uu.RateLi... | [
"0.68530345",
"0.68530345",
"0.6609563",
"0.6388308",
"0.6168777",
"0.6022105",
"0.6022105",
"0.5993397",
"0.59639186",
"0.5912614",
"0.5884969",
"0.5884969",
"0.5861063",
"0.57855564",
"0.577472",
"0.5752372",
"0.5637893",
"0.56329536",
"0.56329536",
"0.5606307",
"0.55678415... | 0.7539172 | 0 |
Test that parse_limits() handles invalid input correctly. | def HT9M(YKHO):
YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, ';;;;;') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0fH(YKHO):\n YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, '(GET, *, .*, foo, minute)')",
"def L0fH(YKHO):\n YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, '(GET, *, .*, foo, minute)')",
"def VuOv(YKHO):\n YKHO.assertRaises(ValueError, c5uu.Limiter.parse_limits, '(GET, *, .*,... | [
"0.7617074",
"0.7617074",
"0.7128082",
"0.7128082",
"0.7000061",
"0.7000061",
"0.6927094",
"0.6927094",
"0.69220465",
"0.6861955",
"0.6861955",
"0.67933893",
"0.672491",
"0.66892225",
"0.6650408",
"0.664615",
"0.6593256",
"0.6592062",
"0.6504667",
"0.6466767",
"0.64506763",
... | 0.76420754 | 0 |
Ensure no delay on a single call for a known limit. | def Yp4a(YKHO):
h7D2 = YKHO.limiter.check_for_delay('PUT', '/anything')
YKHO.assertEqual(h7D2, (None, None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RlzD(YKHO):\n if YKHO._lastCallTime is not None:\n RA_F = YKHO._timeModule.time() - YKHO._lastCallTime\n if RA_F < 1.0:\n YKHO._timeModule.sleep(1.0 - RA_F)\n YKHO._lastCallTime = YKHO._timeModule.time()",
"def jhYr():\n return",
"def auZH(YKHO):\n with YKHO.limit_lock:... | [
"0.74021155",
"0.7078543",
"0.6787947",
"0.6775617",
"0.6724203",
"0.6696596",
"0.6696596",
"0.65843683",
"0.65621316",
"0.6539734",
"0.65303177",
"0.64080596",
"0.64080596",
"0.6402157",
"0.63227576",
"0.6320615",
"0.6286372",
"0.6276992",
"0.6255858",
"0.6247295",
"0.622330... | 0.0 | -1 |
setUp() for WsgiLimiterProxyTest. Do some nifty HTTP/WSGI magic which allows for WSGI to be called directly by something like the `httplib` library. | def FCbF(YKHO):
super(AJOa, YKHO).setUp()
YKHO.app = c5uu.WsgiLimiter(Tzsg)
PdVM = q3xP('169.254.0.1:80', YKHO.app)
YKHO.proxy = c5uu.WsgiLimiterProxy('169.254.0.1:80')
YKHO.addCleanup(YKHO._restore, PdVM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(AJOa, YKHO).setUp()\n YKHO.app = c5uu.WsgiLimiter(Tzsg)\n YKHO.oldHTTPConnection = q3xP('169.254.0.1:80', YKHO.app)\n YKHO.proxy = c5uu.WsgiLimiterProxy('169.254.0.1:80')\n YKHO.addCleanup(YKHO._restore, YKHO.oldHTTPConnection)",
"def FCbF(YKHO):\n super(_Wv4, YKHO).setU... | [
"0.8267827",
"0.80150604",
"0.80150604",
"0.7340439",
"0.7340439",
"0.65866107",
"0.65866107",
"0.657131",
"0.62577945",
"0.6212272",
"0.61576074",
"0.61513424",
"0.61127317",
"0.61099803",
"0.60942173",
"0.6084467",
"0.6063263",
"0.6033674",
"0.6028376",
"0.6013956",
"0.6003... | 0.8264007 | 1 |
Tests that the default filters from volume.api.API.get_all are set. 1. 'no_migration_status'=True for nonadmins and get_all_by_project is invoked. 2. 'no_migration_status' is not included for admins. 3. When 'all_tenants' is not specified, then it is removed and get_all_by_project is invoked for admins. 3. When 'all_te... | def q3CK(YKHO):
def QtzP(QpfX, ekCf, _5yy, qoqK, gpXh, G852, KUnM=None):
YKHO.assertEqual(KUnM['no_migration_targets'], True)
YKHO.assertFalse('all_tenants' in KUnM)
return [Fwno.stub_volume(1, display_name='vol1')]
def zHV5(QpfX, _5yy, qoqK, gpXh, G852, KUnM=None):
return []
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fLer(YKHO, KUnM=None, N4sh=False):\n Qu4F = super(Xg_X, YKHO).build_filters(KUnM, N4sh)\n if 'pk' not in KUnM:\n Qu4F['enabled'] = True\n return Qu4F",
"def KUnM(YKHO, jGRS='pending', **B2fa):\n xDcj = super(l2qU, YKHO).filters(status=jGRS, **B2fa)\n if YKHO.config.products:\n xD... | [
"0.60751873",
"0.6025477",
"0.5908606",
"0.5832363",
"0.58173007",
"0.58102363",
"0.5793473",
"0.571775",
"0.57088953",
"0.5686414",
"0.5653881",
"0.56474555",
"0.56213105",
"0.5618746",
"0.5613269",
"0.55918765",
"0.55706877",
"0.55596256",
"0.55362225",
"0.5518349",
"0.5488... | 0.745208 | 0 |
Test glance version set by arg to GlanceClientWrapper | def iC6Y(YKHO):
NXke = I0WH.GlanceClientWrapper('fake', 'fake_host', 9292, version=1)
YKHO.assertEqual(NXke.client.__module__, 'glanceclient.v1.client')
mrPE = I0WH.GlanceClientWrapper('fake', 'fake_host', 9292, version=2)
YKHO.assertEqual(mrPE.client.__module__, 'glanceclient.v2.client') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fjG3(YKHO):\n NXke = I0WH.GlanceClientWrapper('fake', 'fake_host', 9292)\n YKHO.assertEqual(NXke.client.__module__, 'glanceclient.v1.client')\n YKHO.flags(glance_api_version=2)\n mrPE = I0WH.GlanceClientWrapper('fake', 'fake_host', 9292)\n YKHO.assertEqual(mrPE.client.__module__, 'glanceclient.v... | [
"0.82423043",
"0.6706103",
"0.65231395",
"0.64271903",
"0.6370709",
"0.63126063",
"0.62961257",
"0.61731046",
"0.617301",
"0.6138277",
"0.6138277",
"0.6069426",
"0.60464287",
"0.59722644",
"0.5963555",
"0.59588176",
"0.59510374",
"0.5928445",
"0.58957666",
"0.5842487",
"0.582... | 0.86114424 | 0 |
Creates a random alphanumeric string of specified length. | def eSJ8(u54L):
return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for eeYG in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drFW(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)))",
"def drFW(u54L=24):\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_letters + vIwR.digits) for YRbF in range(u54L)))",
"def zYAI(u54L):\n return ''.join(tuKI.choices(' ' + vIwR.ascii_upp... | [
"0.8871245",
"0.8825908",
"0.8742957",
"0.87153274",
"0.86784536",
"0.86711746",
"0.86687946",
"0.8632189",
"0.8612678",
"0.8609175",
"0.85948896",
"0.85948896",
"0.8585914",
"0.85833883",
"0.8562557",
"0.8555512",
"0.8552034",
"0.8535237",
"0.8529374",
"0.8504013",
"0.850325... | 0.89059806 | 0 |
Creates a random numeric string of specified length. | def k2s9(u54L):
return ''.join((tuKI.choice(vIwR.digits) for eeYG in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(u54L)))",
"de... | [
"0.8491234",
"0.83588165",
"0.8319187",
"0.82910746",
"0.8267434",
"0.8241822",
"0.8238105",
"0.8237769",
"0.82109886",
"0.82109886",
"0.82108516",
"0.82084686",
"0.82025415",
"0.8189034",
"0.81821865",
"0.816531",
"0.814271",
"0.8140965",
"0.8129004",
"0.81069183",
"0.806869... | 0.83687377 | 1 |
Poll (briefly) while the state is in continue_states. | def Xv8Z(YKHO, Z5cL, q0Ga, _FOV=5):
pgFO = 0
while True:
try:
x2ng = YKHO.api.get_volume(Z5cL)
except x0hE.OpenStackApiNotFoundException:
x2ng = None
na1r.debug('Got 404, proceeding')
break
na1r.debug('Found %s' % x2ng)
YKHO.assertE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dVvP(YKHO, lgNN):\n pRmv = YKHO.MIN_POLL_INTERVAL\n while not all((lgNN(QTBn) for QTBn in YKHO.states().values())):\n ITS7.sleep(pRmv.as_(Kmii.SECONDS))\n pRmv = min(YKHO.MAX_POLL_INTERVAL, 2 * pRmv)",
"def sJDd(YKHO):\n while 1:\n try:\n YKHO.poll(True)\n exce... | [
"0.66936564",
"0.6547609",
"0.6502127",
"0.6438971",
"0.6396046",
"0.62846583",
"0.62822396",
"0.6245596",
"0.6223551",
"0.62177414",
"0.6107648",
"0.6022464",
"0.6010412",
"0.6001084",
"0.59749854",
"0.59603506",
"0.5938513",
"0.5913964",
"0.5912022",
"0.5910069",
"0.5896106... | 0.6492109 | 3 |
Test error handling when creating a backup with a backup with a bad status | def C_2y(YKHO):
uK4j = YKHO._create_volume_db_entry(size=1)
RjST = YKHO._create_backup_db_entry(status='available', volume_id=uK4j)
YKHO.assertRaises(AJ5d.InvalidBackup, YKHO.backup_mgr.create_backup, YKHO.ctxt, RjST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DHZE(YKHO):\n uK4j = YKHO._create_volume_db_entry(status='available', size=1)\n RjST = YKHO._create_backup_db_entry(volume_id=uK4j)\n YKHO.assertRaises(AJ5d.InvalidVolume, YKHO.backup_mgr.create_backup, YKHO.ctxt, RjST)",
"def gI3Q(YKHO, kw1g):\n uK4j = YKHO._create_volume_db_entry(size=1)\n R... | [
"0.7993918",
"0.78564245",
"0.7840211",
"0.78049964",
"0.7796214",
"0.76215893",
"0.762144",
"0.72937",
"0.7233219",
"0.71638215",
"0.7043221",
"0.7041629",
"0.70322335",
"0.69948786",
"0.69262105",
"0.6915592",
"0.68852806",
"0.6869691",
"0.68355024",
"0.6824234",
"0.6799055... | 0.83444273 | 0 |
Test error handling when deleting a backup with a backup with a bad status. | def e0TD(YKHO):
uK4j = YKHO._create_volume_db_entry(size=1)
RjST = YKHO._create_backup_db_entry(status='available', volume_id=uK4j)
YKHO.assertRaises(AJ5d.InvalidBackup, YKHO.backup_mgr.delete_backup, YKHO.ctxt, RjST)
JKMw = NCls.backup_get(YKHO.ctxt, RjST)
YKHO.assertEqual(JKMw['status'], 'error') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KOn0(YKHO):\n uK4j = YKHO._create_volume_db_entry(size=1)\n RjST = YKHO._create_backup_db_entry(status='deleting', display_name='fail_on_delete', volume_id=uK4j)\n YKHO.assertRaises(IOError, YKHO.backup_mgr.delete_backup, YKHO.ctxt, RjST)\n JKMw = NCls.backup_get(YKHO.ctxt, RjST)\n YKHO.assertEq... | [
"0.8659753",
"0.7874502",
"0.76129293",
"0.74877167",
"0.74858284",
"0.7416752",
"0.7284906",
"0.7256428",
"0.7246751",
"0.7196037",
"0.71361893",
"0.7114317",
"0.7058889",
"0.70037323",
"0.6993886",
"0.69525373",
"0.68223846",
"0.68217224",
"0.6813788",
"0.6754611",
"0.67415... | 0.8628843 | 1 |
Test error handling when attempting a delete of a backup with a different service to that used to create the backup. | def BVLg(YKHO):
uK4j = YKHO._create_volume_db_entry(size=1)
RjST = YKHO._create_backup_db_entry(status='deleting', volume_id=uK4j)
zVa7 = 'cinder.tests.backup.bad_service'
NCls.backup_update(YKHO.ctxt, RjST, {'service': zVa7})
YKHO.assertRaises(AJ5d.InvalidBackup, YKHO.backup_mgr.delete_backup, YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KOn0(YKHO):\n uK4j = YKHO._create_volume_db_entry(size=1)\n RjST = YKHO._create_backup_db_entry(status='deleting', display_name='fail_on_delete', volume_id=uK4j)\n YKHO.assertRaises(IOError, YKHO.backup_mgr.delete_backup, YKHO.ctxt, RjST)\n JKMw = NCls.backup_get(YKHO.ctxt, RjST)\n YKHO.assertEq... | [
"0.7790498",
"0.7331039",
"0.73008764",
"0.7211771",
"0.71532255",
"0.70539093",
"0.6867939",
"0.6813563",
"0.68092775",
"0.6793813",
"0.67625934",
"0.67153484",
"0.6692567",
"0.6691399",
"0.6615592",
"0.6551823",
"0.65385336",
"0.6533392",
"0.64662683",
"0.6458108",
"0.64410... | 0.8145338 | 0 |
_find_share should throw error if there is no share to host vol. | def mIbQ(YKHO):
L66n = YKHO._mox
P8hV = YKHO._driver
P8hV._mounted_shares = [YKHO.TEST_EXPORT1, YKHO.TEST_EXPORT2]
L66n.StubOutWithMock(P8hV, '_get_available_capacity')
P8hV._get_available_capacity(YKHO.TEST_EXPORT1).AndReturn((0, 5 * rYO3.GiB))
P8hV._get_available_capacity(YKHO.TEST_EXPORT2).An... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKhi(YKHO):\n P8hV = YKHO._driver\n P8hV._mounted_shares = []\n YKHO.assertRaises(AJ5d.NfsNoSharesMounted, P8hV._find_share, YKHO.TEST_SIZE_IN_GB)",
"def AbS6(YKHO, rbx7):\n if YKHO.ssc_vols:\n for qjHC in YKHO.ssc_vols['all']:\n if qjHC.export['path'] == rbx7:\n ... | [
"0.72062105",
"0.71952456",
"0.70434755",
"0.6979105",
"0.69565916",
"0.69485337",
"0.6914297",
"0.68863183",
"0.68145674",
"0.6813945",
"0.679795",
"0.6679985",
"0.6548117",
"0.6532128",
"0.6515319",
"0.6467112",
"0.6416109",
"0.6348141",
"0.62561417",
"0.6149507",
"0.603758... | 0.6953131 | 5 |
create_volume should return provider_location with found share. | def cM6X(YKHO):
L66n = YKHO._mox
P8hV = YKHO._driver
YKHO.stub_out_not_replaying(dRSw, 'LOG')
YKHO.stub_out_not_replaying(P8hV, '_ensure_shares_mounted')
YKHO.stub_out_not_replaying(P8hV, '_do_create_volume')
L66n.StubOutWithMock(P8hV, '_find_share')
P8hV._find_share(YKHO.TEST_SIZE_IN_GB).An... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cM6X(YKHO):\n P8hV = YKHO._driver\n with TMAJ.patch.object(P8hV, '_find_share') as wvpq, TMAJ.patch.object(P8hV, '_do_create_volume') as ZFJX, TMAJ.patch.object(P8hV, '_ensure_shares_mounted') as dmo7:\n wvpq.return_value = YKHO.TEST_EXPORT1\n akib = n3tr.fake_volume_obj(YKHO.context, size=... | [
"0.82991827",
"0.80410546",
"0.74047565",
"0.74047565",
"0.7163093",
"0.70483816",
"0.6901107",
"0.6712012",
"0.6638377",
"0.6638377",
"0.66243136",
"0.66243136",
"0.6585516",
"0.6564116",
"0.6541352",
"0.6541352",
"0.6533181",
"0.6515305",
"0.65021646",
"0.649453",
"0.647537... | 0.80614465 | 1 |
Snapshot not in info file / info file doesn't exist. Snapshot creation failed so nothing is ondisk. Driver should allow operation to succeed so the manager can remove the snapshot record. | def sedn(YKHO):
L66n, P8hV = (YKHO._mox, YKHO._driver)
Nzyw = P8hV._get_hash_str(YKHO.TEST_EXPORT1)
u9Xt = Hy7s.path.join(YKHO.TEST_MNT_POINT_BASE, Nzyw)
Bhyr = 'volume-%s' % YKHO.VOLUME_UUID
LYvN = Hy7s.path.join(u9Xt, Bhyr)
L9ol = '%s%s' % (LYvN, '.info')
L66n.StubOutWithMock(P8hV, '_read_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S9o8(YKHO, Rwel):\n na1r.debug(bGrB('deleting snapshot %s') % Rwel['id'])\n LfEN = Rwel['volume']['status']\n if LfEN not in ['available', 'in-use']:\n tO9_ = bGrB('Volume status must be \"available\" or \"in-use\".')\n raise AJ5d.InvalidVolume(tO9_)\n YKHO._ensure_share_writable(YKHO... | [
"0.7141015",
"0.7063123",
"0.6994514",
"0.69575197",
"0.6935229",
"0.69137555",
"0.68868643",
"0.6808057",
"0.66962594",
"0.66603994",
"0.66567135",
"0.66499794",
"0.66176677",
"0.6611268",
"0.66019756",
"0.6599907",
"0.6595121",
"0.6578551",
"0.65641284",
"0.65470093",
"0.65... | 0.7883053 | 0 |
Test creating a volume. | def ojQ0(YKHO):
YKHO.driver.do_setup(None)
YKHO.driver.create_volume(w4eR)
xSy1 = YKHO.driver.xiv_ds8k_proxy.volume_exists(w4eR)
YKHO.assertTrue(xSy1)
YKHO.driver.delete_volume(w4eR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojQ0(YKHO):\n YKHO.driver.create_volume(YKHO.volume)",
"def ojQ0(YKHO):\n U5bT = YKHO._driver.create_volume(YKHO.TEST_VOLUME)\n YKHO.assertEqual(U5bT['provider_location'], Hy7s.path.join(YKHO.TEST_VOLDIR, YKHO.TEST_VOLNAME))\n YKHO.assertTrue(Hy7s.path.isfile(YKHO.TEST_VOLPATH))\n YKHO.assertE... | [
"0.9122155",
"0.87050647",
"0.869116",
"0.86630976",
"0.8318949",
"0.80587244",
"0.79106826",
"0.79092765",
"0.7900671",
"0.7874925",
"0.78711766",
"0.7822693",
"0.7821656",
"0.781808",
"0.7801388",
"0.77908987",
"0.7769061",
"0.77467626",
"0.77125686",
"0.7710167",
"0.770444... | 0.87715507 | 1 |
Test a slightly different variation of qemuimg output. (Based on Fedora 19's qemuimg 1.4.2.) | def dRlp(YKHO):
ZwH_ = 'img/qemu.qcow2'
f77g = 'image: qemu.qcow2\nbacking file: qemu.qcow2 (actual path: qemu.qcow2)\nfile format: qcow2\nvirtual size: 50M (52428800 bytes)\ncluster_size: 65536\ndisk size: 196K (200704 bytes)\nSnapshot list:\nID TAG VM SIZE DATE VM CLOCK\n1 snap1 1.7G 2011-10-04 19:04:00 32:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def darO():\n Hy7s.chdir(Hy7s.path.dirname(xAKo) + '/data')\n NRWD = Yn3K.Popen(['swc', 'view', 'pass_simple_branch.swc', '-o', '/tmp/test_treem.png'], stdout=Yn3K.PIPE, stderr=Yn3K.PIPE, universal_newlines=True)\n zJsh, wIbz = NRWD.communicate()\n assert NRWD.returncode == 0\n assert zJsh == ''\n ... | [
"0.6515187",
"0.6430693",
"0.6424564",
"0.6400893",
"0.6333029",
"0.6323864",
"0.61979896",
"0.6187067",
"0.6076034",
"0.58438957",
"0.58390784",
"0.5799765",
"0.57902557",
"0.57466465",
"0.573718",
"0.5733442",
"0.57155865",
"0.5712652",
"0.57102954",
"0.57017267",
"0.568955... | 0.7366376 | 0 |
_find_share should throw error if there is no share to host vol. | def mIbQ(YKHO):
L66n = YKHO._mox
P8hV = YKHO._driver
P8hV._mounted_shares = [YKHO.TEST_NFS_EXPORT1, YKHO.TEST_NFS_EXPORT2]
L66n.StubOutWithMock(P8hV, '_get_capacity_info')
P8hV._get_capacity_info(YKHO.TEST_NFS_EXPORT1).AndReturn((5 * rYO3.GiB, 0, 5 * rYO3.GiB))
P8hV._get_capacity_info(YKHO.TEST_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKhi(YKHO):\n P8hV = YKHO._driver\n P8hV._mounted_shares = []\n YKHO.assertRaises(AJ5d.NfsNoSharesMounted, P8hV._find_share, YKHO.TEST_SIZE_IN_GB)",
"def AbS6(YKHO, rbx7):\n if YKHO.ssc_vols:\n for qjHC in YKHO.ssc_vols['all']:\n if qjHC.export['path'] == rbx7:\n ... | [
"0.72062105",
"0.71952456",
"0.6979105",
"0.69565916",
"0.6953131",
"0.69485337",
"0.6914297",
"0.68863183",
"0.68145674",
"0.6813945",
"0.679795",
"0.6679985",
"0.6548117",
"0.6532128",
"0.6515319",
"0.6467112",
"0.6416109",
"0.6348141",
"0.62561417",
"0.6149507",
"0.6037584... | 0.70434755 | 2 |
create_volume should return provider_location with found share. | def cM6X(YKHO):
L66n = YKHO._mox
P8hV = YKHO._driver
YKHO.stub_out_not_replaying(m7mN, 'LOG')
YKHO.stub_out_not_replaying(P8hV, '_ensure_shares_mounted')
YKHO.stub_out_not_replaying(P8hV, '_do_create_volume')
L66n.StubOutWithMock(P8hV, '_find_share')
P8hV._find_share(YKHO.TEST_SIZE_IN_GB).An... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cM6X(YKHO):\n P8hV = YKHO._driver\n with TMAJ.patch.object(P8hV, '_find_share') as wvpq, TMAJ.patch.object(P8hV, '_do_create_volume') as ZFJX, TMAJ.patch.object(P8hV, '_ensure_shares_mounted') as dmo7:\n wvpq.return_value = YKHO.TEST_EXPORT1\n akib = n3tr.fake_volume_obj(YKHO.context, size=... | [
"0.82991827",
"0.80614465",
"0.74047565",
"0.74047565",
"0.7163093",
"0.70483816",
"0.6901107",
"0.6712012",
"0.6638377",
"0.6638377",
"0.66243136",
"0.66243136",
"0.6585516",
"0.6564116",
"0.6541352",
"0.6541352",
"0.6533181",
"0.6515305",
"0.65021646",
"0.649453",
"0.647537... | 0.80410546 | 2 |
Clone raw image then verify volume is in available state. | def ScRr(YKHO):
def G4hN(akib, ylwd, r8m5, lhCo):
return ({'provider_location': None}, True)
with TMAJ.patch.object(YKHO.volume.driver, 'clone_image') as YRP4:
YRP4.side_effect = G4hN
with TMAJ.patch.object(YKHO.volume.driver, 'create_volume') as ISxl:
with TMAJ.patch.object... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUPe(YKHO, akib, ylwd):\n return False",
"def mpzG(YKHO):\n akib = YKHO._create_volume_from_image(fakeout_clone_image=True)\n YKHO.assertEqual(akib['status'], 'available')\n YKHO.assertEqual(akib['bootable'], True)\n YKHO.volume.delete_volume(YKHO.context, akib['id'])",
"def gq5T(YKHO):\n\n ... | [
"0.7882061",
"0.78454095",
"0.7775245",
"0.7580652",
"0.7551864",
"0.7551864",
"0.72579485",
"0.71486485",
"0.7134799",
"0.7067558",
"0.7066652",
"0.7018327",
"0.68873876",
"0.6863522",
"0.6791976",
"0.67483807",
"0.67168456",
"0.661136",
"0.6568269",
"0.65645856",
"0.6548285... | 0.7546366 | 6 |
Clone nonraw image then verify volume is in available state. | def gq5T(YKHO):
def G4hN(akib, ylwd, r8m5, lhCo):
return ({'provider_location': None}, False)
with TMAJ.patch.object(YKHO.volume.driver, 'clone_image') as YRP4:
YRP4.side_effect = G4hN
with TMAJ.patch.object(YKHO.volume.driver, 'create_volume') as ISxl:
with TMAJ.patch.objec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mpzG(YKHO):\n akib = YKHO._create_volume_from_image(fakeout_clone_image=True)\n YKHO.assertEqual(akib['status'], 'available')\n YKHO.assertEqual(akib['bootable'], True)\n YKHO.volume.delete_volume(YKHO.context, akib['id'])",
"def nUPe(YKHO, akib, ylwd):\n return False",
"def ScRr(YKHO):\n\n ... | [
"0.81115776",
"0.78739285",
"0.7671455",
"0.7622773",
"0.74049616",
"0.74049616",
"0.71126866",
"0.7103295",
"0.7081546",
"0.7079902",
"0.6990987",
"0.6893866",
"0.6686254",
"0.6659735",
"0.6634231",
"0.65687597",
"0.65367377",
"0.6473468",
"0.6433945",
"0.64157414",
"0.63890... | 0.7974996 | 1 |
Expected behaviour for copy_image_to_volume. | def mHOR(YKHO):
YKHO.mox.StubOutWithMock(N_vL, 'fetch_to_raw')
N_vL.fetch_to_raw(QpfX, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_ID, YKHO.TEST_VOLPATH, eTlc.IgnoreArg(), size=YKHO.TEST_VOLSIZE)
YKHO.mox.ReplayAll()
YKHO._driver.copy_image_to_volume(QpfX, YKHO.TEST_VOLUME, YKHO.TEST_IMAGE_SERVICE, YKHO.TE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jQ_y(YKHO):\n YKHO.mox.StubOutWithMock(N_vL, 'upload_volume')\n N_vL.upload_volume(QpfX, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_META, YKHO.TEST_VOLPATH)\n YKHO.mox.ReplayAll()\n YKHO._driver.copy_volume_to_image(QpfX, YKHO.TEST_VOLUME, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_META)",
"def mHOR(... | [
"0.84655523",
"0.83550394",
"0.8026949",
"0.79191655",
"0.776766",
"0.7624758",
"0.75841105",
"0.7561115",
"0.74825835",
"0.72516674",
"0.7227838",
"0.720481",
"0.71849924",
"0.7100418",
"0.7082595",
"0.70733905",
"0.7062268",
"0.7009055",
"0.6973711",
"0.69565",
"0.6942152",... | 0.8569776 | 0 |
Expected behaviour for copy_volume_to_image. | def jQ_y(YKHO):
YKHO.mox.StubOutWithMock(N_vL, 'upload_volume')
N_vL.upload_volume(QpfX, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_META, YKHO.TEST_VOLPATH)
YKHO.mox.ReplayAll()
YKHO._driver.copy_volume_to_image(QpfX, YKHO.TEST_VOLUME, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_META) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mHOR(YKHO):\n YKHO.mox.StubOutWithMock(N_vL, 'fetch_to_raw')\n N_vL.fetch_to_raw(QpfX, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_ID, YKHO.TEST_VOLPATH, eTlc.IgnoreArg(), size=YKHO.TEST_VOLSIZE)\n YKHO.mox.ReplayAll()\n YKHO._driver.copy_image_to_volume(QpfX, YKHO.TEST_VOLUME, YKHO.TEST_IMAGE_SERVICE... | [
"0.8306843",
"0.8152438",
"0.78289795",
"0.77601063",
"0.7757586",
"0.77088773",
"0.7586637",
"0.743067",
"0.7430621",
"0.71986496",
"0.7164457",
"0.70630586",
"0.69925225",
"0.6988095",
"0.6986574",
"0.6933432",
"0.6884611",
"0.688005",
"0.68603027",
"0.6857741",
"0.6838983"... | 0.8414257 | 0 |
Test vmdk.create_snapshot without backing. | def BJP9(YKHO):
r8hN = YKHO.mox
r8hN.StubOutWithMock(YKHO._driver.__class__, 'volumeops')
YKHO._driver.volumeops = YKHO._volumeops
r8hN.StubOutWithMock(YKHO._volumeops, 'get_backing')
Rwel = XKNx()
Rwel['volume_name'] = 'volume_name'
Rwel['name'] = 'snap_name'
Rwel['volume'] = XKNx()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HNkK(YKHO):\n L66n = YKHO.mox\n P8hV = YKHO._driver\n L66n.StubOutWithMock(P8hV, '_clone_volume')\n P8hV._clone_volume(jgui(), jgui(), jgui())\n L66n.ReplayAll()\n P8hV.create_snapshot(LExC())\n L66n.VerifyAll()",
"def JXli(YKHO):\n r8hN = YKHO.mox\n r8hN.StubOutWithMock(YKHO._driv... | [
"0.79539347",
"0.78224033",
"0.7806914",
"0.7698995",
"0.76430124",
"0.76430124",
"0.75263923",
"0.75097805",
"0.7360874",
"0.7360874",
"0.734788",
"0.73420495",
"0.7338849",
"0.7263987",
"0.7243156",
"0.7199013",
"0.71963704",
"0.7164233",
"0.71507037",
"0.7128187",
"0.71037... | 0.81701076 | 0 |
Test vmdk.create_snapshot when volume is attached. | def qKVj(YKHO):
Rwel = XKNx()
Rwel['volume'] = XKNx()
Rwel['volume']['status'] = 'in-use'
YKHO.assertRaises(AJ5d.InvalidVolume, YKHO._driver.create_snapshot, Rwel) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def klpF(YKHO):\n P8hV = YKHO._driver\n TMAJ = YKHO._mock\n akib = P8yT()\n akib['id'] = '123'\n akib['name'] = 'volume-123'\n akib['size'] = YKHO.TEST_SIZE_IN_GB\n Rwel = P8yT()\n Rwel['volume_id'] = akib['id']\n Rwel['volume_name'] = 'volume-123'\n Rwel['volume_size'] = YKHO.TEST_SI... | [
"0.78225493",
"0.76898265",
"0.7606512",
"0.7563608",
"0.75585586",
"0.7537698",
"0.7526039",
"0.7515972",
"0.7436523",
"0.7418274",
"0.73652726",
"0.72991484",
"0.7230725",
"0.7230725",
"0.71996194",
"0.71776986",
"0.71512395",
"0.71071565",
"0.71071565",
"0.7098733",
"0.707... | 0.8217052 | 0 |
Test copy_image_to_volume for a nonvmdk disk format. | def eYPB(YKHO):
xjL5 = TMAJ.sentinel.context
kCcU = 'image-123456789'
yvTG = {'disk_format': 'novmdk'}
gZz_ = TMAJ.Mock()
gZz_.show.return_value = yvTG
n3tr = {'name': 'fake_name', 'size': 1}
YKHO.assertRaises(AJ5d.ImageUnacceptable, YKHO._driver.copy_image_to_volume, xjL5, n3tr, gZz_, kCcU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTHy(YKHO):\n r8hN = YKHO.mox\n lhCo = XKNx()\n lhCo['disk_format'] = 'novmdk'\n akib = XKNx()\n akib['name'] = 'vol-name'\n akib['instance_uuid'] = None\n akib['attached_host'] = None\n r8hN.ReplayAll()\n YKHO.assertRaises(AJ5d.ImageUnacceptable, YKHO._driver.copy_volume_to_image, L... | [
"0.9101518",
"0.7749211",
"0.77196825",
"0.763195",
"0.76190287",
"0.75773245",
"0.75394374",
"0.7512072",
"0.7512072",
"0.74525577",
"0.74190325",
"0.7357571",
"0.72957337",
"0.72187763",
"0.71286166",
"0.7067791",
"0.70657617",
"0.6926533",
"0.69258606",
"0.6901906",
"0.683... | 0.89781237 | 1 |
Test copy_image_to_volume with an acceptable vmdk disk format. | def QCT4(YKHO, Hces, cuiw, HD9c, JLR0, MHRh, Y7hr):
YKHO._test_copy_image_to_volume_vmdk(Hces, cuiw, HD9c, JLR0, MHRh, Y7hr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTHy(YKHO):\n r8hN = YKHO.mox\n lhCo = XKNx()\n lhCo['disk_format'] = 'novmdk'\n akib = XKNx()\n akib['name'] = 'vol-name'\n akib['instance_uuid'] = None\n akib['attached_host'] = None\n r8hN.ReplayAll()\n YKHO.assertRaises(AJ5d.ImageUnacceptable, YKHO._driver.copy_volume_to_image, L... | [
"0.8364555",
"0.82756793",
"0.7450482",
"0.72830397",
"0.72574747",
"0.7249186",
"0.71282005",
"0.71118194",
"0.7096481",
"0.7069576",
"0.68935037",
"0.6859109",
"0.68563324",
"0.67908376",
"0.6771943",
"0.67698187",
"0.6736144",
"0.6618345",
"0.6581404",
"0.65800637",
"0.653... | 0.7290721 | 3 |
Test copy_volume_to_image for a nonvmdk disk format. | def tTHy(YKHO):
r8hN = YKHO.mox
lhCo = XKNx()
lhCo['disk_format'] = 'novmdk'
akib = XKNx()
akib['name'] = 'vol-name'
akib['instance_uuid'] = None
akib['attached_host'] = None
r8hN.ReplayAll()
YKHO.assertRaises(AJ5d.ImageUnacceptable, YKHO._driver.copy_volume_to_image, L66n.IgnoreArg(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eYPB(YKHO):\n xjL5 = TMAJ.sentinel.context\n kCcU = 'image-123456789'\n yvTG = {'disk_format': 'novmdk'}\n gZz_ = TMAJ.Mock()\n gZz_.show.return_value = yvTG\n n3tr = {'name': 'fake_name', 'size': 1}\n YKHO.assertRaises(AJ5d.ImageUnacceptable, YKHO._driver.copy_image_to_volume, xjL5, n3tr,... | [
"0.8708148",
"0.75983906",
"0.7539633",
"0.74995995",
"0.7474025",
"0.7408372",
"0.7403673",
"0.7384568",
"0.73675966",
"0.73675966",
"0.7251377",
"0.7205879",
"0.7203144",
"0.71632916",
"0.70681685",
"0.70464337",
"0.68904006",
"0.6821545",
"0.6804876",
"0.67986196",
"0.6767... | 0.91170067 | 0 |
Test copy_volume_to_image when volume is attached. | def z3gb(YKHO):
r8hN = YKHO.mox
akib = XKNx()
akib['instance_uuid'] = 'my_uuid'
r8hN.ReplayAll()
YKHO.assertRaises(AJ5d.InvalidVolume, YKHO._driver.copy_volume_to_image, L66n.IgnoreArg(), akib, L66n.IgnoreArg(), L66n.IgnoreArg())
r8hN.UnsetStubs()
r8hN.VerifyAll() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jQ_y(YKHO):\n YKHO.mox.StubOutWithMock(N_vL, 'upload_volume')\n N_vL.upload_volume(QpfX, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_META, YKHO.TEST_VOLPATH)\n YKHO.mox.ReplayAll()\n YKHO._driver.copy_volume_to_image(QpfX, YKHO.TEST_VOLUME, YKHO.TEST_IMAGE_SERVICE, YKHO.TEST_IMAGE_META)",
"def mHOR(... | [
"0.8599897",
"0.833996",
"0.8334479",
"0.83008265",
"0.8215457",
"0.7577922",
"0.75718564",
"0.74516124",
"0.739628",
"0.71112466",
"0.7050899",
"0.70431477",
"0.7032309",
"0.7024556",
"0.70174044",
"0.70174044",
"0.70174044",
"0.70174044",
"0.70174044",
"0.7016059",
"0.69984... | 0.8703488 | 0 |
Test copy_volume_to_image for a valid vmdk disk format. | def Yom0(YKHO):
r8hN = YKHO.mox
r8hN.StubOutWithMock(YKHO._driver.__class__, 'session')
YKHO._driver.session = YKHO._session
r8hN.StubOutWithMock(nNXP.VMwareAPISession, 'vim')
YKHO._session.vim = YKHO._vim
r8hN.StubOutWithMock(YKHO._driver.__class__, 'volumeops')
YKHO._driver.volumeops = YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTHy(YKHO):\n r8hN = YKHO.mox\n lhCo = XKNx()\n lhCo['disk_format'] = 'novmdk'\n akib = XKNx()\n akib['name'] = 'vol-name'\n akib['instance_uuid'] = None\n akib['attached_host'] = None\n r8hN.ReplayAll()\n YKHO.assertRaises(AJ5d.ImageUnacceptable, YKHO._driver.copy_volume_to_image, L... | [
"0.8464969",
"0.8152318",
"0.72471845",
"0.7234492",
"0.7211493",
"0.7119748",
"0.71080405",
"0.71080405",
"0.70659906",
"0.7044284",
"0.703915",
"0.69998085",
"0.6987046",
"0.69547874",
"0.6927978",
"0.6878891",
"0.6835652",
"0.6828276",
"0.67436415",
"0.6693271",
"0.6672785... | 0.73022646 | 2 |
Test retrieve_properties_ex_fault_checker is called. | def njAS(YKHO):
r8hN = YKHO.mox
class FakeVim(ty0B.Vim):
def FIMM(YKHO):
pass
@property
def x0hE(YKHO):
class FakeRetrv(object):
def D9tH(YKHO, AWqv):
pass
def JgjC(YKHO, mWFP):
if mWFP ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1OQ(geh0):\n GYMv = []\n if not geh0:\n GYMv = [O9yk.NOT_AUTHENTICATED]\n else:\n for QmP7 in geh0:\n if hasattr(QmP7, 'missingSet'):\n for vKPc in QmP7.missingSet:\n Ydps = vKPc.fault.fault.__class__\n GYMv.append(Ydps.__n... | [
"0.7242146",
"0.6334706",
"0.6297589",
"0.62358755",
"0.616201",
"0.6111133",
"0.60763854",
"0.6020213",
"0.60134566",
"0.5980564",
"0.5977115",
"0.58974695",
"0.5873641",
"0.58596313",
"0.5842297",
"0.58195513",
"0.5813154",
"0.57729703",
"0.5705548",
"0.5634199",
"0.5607016... | 0.78849566 | 0 |
Test copy_image_to_volume with an acceptable vmdk disk format. | def QCT4(YKHO, Hces, cuiw, HD9c, JLR0, MHRh, Y7hr):
YKHO._test_copy_image_to_volume_vmdk(Hces, cuiw, HD9c, JLR0, MHRh, Y7hr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTHy(YKHO):\n r8hN = YKHO.mox\n lhCo = XKNx()\n lhCo['disk_format'] = 'novmdk'\n akib = XKNx()\n akib['name'] = 'vol-name'\n akib['instance_uuid'] = None\n akib['attached_host'] = None\n r8hN.ReplayAll()\n YKHO.assertRaises(AJ5d.ImageUnacceptable, YKHO._driver.copy_volume_to_image, L... | [
"0.8365144",
"0.8276347",
"0.7450628",
"0.7284313",
"0.7258606",
"0.7250349",
"0.71297014",
"0.7112346",
"0.70958954",
"0.70703423",
"0.6893741",
"0.6859807",
"0.685525",
"0.6790955",
"0.67731774",
"0.676858",
"0.67373776",
"0.66198003",
"0.6582852",
"0.65798056",
"0.65390205... | 0.7291579 | 4 |
Test volume create with too much metadata fails. | def nYxt(YKHO):
BvRn = IaY_.volume.api.API()
erP8 = {'fake_key': 'fake_value' * 256}
YKHO.assertRaises(AJ5d.InvalidVolumeMetadataSize, BvRn.create, YKHO.context, 1, 'name', 'description', None, None, None, erP8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KgQw(YKHO):\n GSdb = c1Gf(name=YKHO.__class__.__name__ + '-' + str(YKHO.guid), size=-1)\n YKHO.volume_creator = psQd(YKHO.os_creds, GSdb)\n with YKHO.assertRaises(rDSL):\n YKHO.volume_creator.create(block=True)",
"def KgQw(YKHO):\n GSdb = Ukrt(name=YKHO.__class__.__name__ + '-' + str(YKHO.... | [
"0.7605615",
"0.75609076",
"0.7432987",
"0.7419808",
"0.73751223",
"0.7220822",
"0.71690416",
"0.7112901",
"0.7103513",
"0.7091405",
"0.7079813",
"0.707534",
"0.70650655",
"0.7050362",
"0.70411795",
"0.7001208",
"0.69894964",
"0.6846226",
"0.6843361",
"0.6840949",
"0.6801372"... | 0.82020646 | 0 |
Test volume can be created from a snapshot of an encrypted volume. | def Ij4_(YKHO):
YKHO.stubs.Set(FSMO, 'API', YYXH.fake_api)
bp_0 = QpfX.get_admin_context()
NCls.volume_type_create(bp_0, {'id': '61298380-0c12-11e3-bfd6-4b48424183be', 'name': 'LUKS'})
NCls.volume_type_encryption_create(bp_0, '61298380-0c12-11e3-bfd6-4b48424183be', {'control_location': 'front-end', 'pro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pBvf(YKHO):\n YKHO.stubs.Set(FSMO, 'API', YYXH.fake_api)\n BvRn = IaY_.volume.api.API()\n bp_0 = QpfX.get_admin_context()\n NCls.volume_type_create(bp_0, {'id': '61298380-0c12-11e3-bfd6-4b48424183be', 'name': 'LUKS'})\n NCls.volume_type_encryption_create(bp_0, '61298380-0c12-11e3-bfd6-4b48424183... | [
"0.8054419",
"0.7644268",
"0.74930495",
"0.74293405",
"0.74224997",
"0.7285067",
"0.7263789",
"0.72485775",
"0.7231381",
"0.72293",
"0.7202247",
"0.7199514",
"0.71718633",
"0.71418726",
"0.7090884",
"0.70836055",
"0.7078513",
"0.7039883",
"0.7036747",
"0.7036747",
"0.7030877"... | 0.8405211 | 0 |
Test volume can't be created from snapshot with bad volume size. | def gxwA(YKHO):
BvRn = IaY_.volume.api.API()
Rwel = {'id': 1234, 'status': 'available', 'volume_size': 10}
YKHO.assertRaises(AJ5d.InvalidInput, BvRn.create, YKHO.context, size=1, name='fake_name', description='fake_desc', snapshot=Rwel) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KgQw(YKHO):\n GSdb = c1Gf(name=YKHO.__class__.__name__ + '-' + str(YKHO.guid), size=-1)\n YKHO.volume_creator = psQd(YKHO.os_creds, GSdb)\n with YKHO.assertRaises(rDSL):\n YKHO.volume_creator.create(block=True)",
"def KgQw(YKHO):\n GSdb = Ukrt(name=YKHO.__class__.__name__ + '-' + str(YKHO.... | [
"0.77655494",
"0.7735891",
"0.7592919",
"0.7320418",
"0.73166543",
"0.7267746",
"0.7258109",
"0.72407174",
"0.720224",
"0.71484715",
"0.7139518",
"0.7122796",
"0.70924234",
"0.70564437",
"0.70436513",
"0.7021461",
"0.7011982",
"0.6984351",
"0.69730073",
"0.6963909",
"0.695695... | 0.8594687 | 0 |
Make sure volume can be attached and detached from host. | def hV1I(YKHO):
v2CM = '/dev/sdf'
akib = q7mr.create_volume(YKHO.context, admin_metadata={'readonly': 'False'}, **YKHO.volume_params)
Z5cL = akib['id']
YKHO.volume.create_volume(YKHO.context, Z5cL)
YKHO.volume.attach_volume(YKHO.context, Z5cL, None, 'fake_host', v2CM, 'rw')
qjHC = NCls.volume_ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qYwE(YKHO):\n OaeV = QpfX.RequestContext('admin', 'fake', True)\n akib = NCls.volume_create(OaeV, {'status': 'available', 'host': 'test', 'provider_location': '', 'size': 1})\n SQvy = {'initiator': 'iqn.2012-07.org.fake:01'}\n TJdH = YKHO.start_service('volume', host='test')\n YKHO.volume_api.re... | [
"0.72361445",
"0.72115284",
"0.7068647",
"0.7065694",
"0.69410527",
"0.6907494",
"0.68707985",
"0.68702865",
"0.68617684",
"0.6828059",
"0.6768601",
"0.67613393",
"0.6720251",
"0.66191185",
"0.65946394",
"0.6594243",
"0.6573493",
"0.6573493",
"0.6561133",
"0.65549314",
"0.654... | 0.7740107 | 0 |
Test function of create_volume_from_image. Test cases call this function to create a volume from image, caller can choose whether to fake out copy_image_to_volume and conle_image, after calling this, test cases should check status of the volume. | def BWQm(YKHO, Zexh=False, IGoi=False):
def orGN(akib):
return a7Fb
def p1Mu(QpfX, akib, gZz_, r8m5):
pass
def KKrF(OaeV, gZz_, r8m5, pmON, cgAf, zNig=None):
pass
def g5BU(C6of, ylwd, r8m5, lhCo):
return ({'provider_location': None}, True)
SWzn, a7Fb = gbPf.mkstem... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eRqr(YKHO):\n try:\n Z5cL = None\n BvRn = IaY_.volume.api.API(image_service=QfRN())\n akib = BvRn.create(YKHO.context, 2, 'name', 'description', image_id=1)\n Z5cL = akib['id']\n YKHO.assertEqual(akib['status'], 'creating')\n finally:\n NCls.volume_destroy(YKHO.c... | [
"0.7891747",
"0.78692424",
"0.78382003",
"0.7773603",
"0.7749249",
"0.77219164",
"0.757685",
"0.754816",
"0.7456152",
"0.7441376",
"0.73629487",
"0.73232543",
"0.7318325",
"0.72824395",
"0.7252683",
"0.72315437",
"0.7173529",
"0.71173745",
"0.7083246",
"0.70465267",
"0.692379... | 0.787993 | 1 |
Test create volume from image via cloning. Verify that after cloning image to volume, it is in available state and is bootable. | def Vcqv(YKHO):
akib = YKHO._create_volume_from_image()
YKHO.assertEqual(akib['status'], 'available')
YKHO.assertEqual(akib['bootable'], True)
YKHO.volume.delete_volume(YKHO.context, akib['id']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mpzG(YKHO):\n akib = YKHO._create_volume_from_image(fakeout_clone_image=True)\n YKHO.assertEqual(akib['status'], 'available')\n YKHO.assertEqual(akib['bootable'], True)\n YKHO.volume.delete_volume(YKHO.context, akib['id'])",
"def ScRr(YKHO):\n\n def G4hN(akib, ylwd, r8m5, lhCo):\n retur... | [
"0.83496964",
"0.792946",
"0.780408",
"0.7773238",
"0.7709338",
"0.76392335",
"0.7638711",
"0.7509829",
"0.74592656",
"0.74553376",
"0.7423898",
"0.74172276",
"0.73866194",
"0.73627865",
"0.7360876",
"0.73359233",
"0.731136",
"0.730207",
"0.72963035",
"0.7250198",
"0.7244609"... | 0.82293063 | 1 |
Test create volume from image via full copy. Verify that after copying image to volume, it is in available state and is bootable. | def mpzG(YKHO):
akib = YKHO._create_volume_from_image(fakeout_clone_image=True)
YKHO.assertEqual(akib['status'], 'available')
YKHO.assertEqual(akib['bootable'], True)
YKHO.volume.delete_volume(YKHO.context, akib['id']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vcqv(YKHO):\n akib = YKHO._create_volume_from_image()\n YKHO.assertEqual(akib['status'], 'available')\n YKHO.assertEqual(akib['bootable'], True)\n YKHO.volume.delete_volume(YKHO.context, akib['id'])",
"def t7_p(YKHO):\n P8hV = YKHO._driver\n akib = YKHO._simple_volume()\n LYvN = '%s/volu... | [
"0.80261993",
"0.8009502",
"0.7926245",
"0.78662974",
"0.7839064",
"0.78339285",
"0.78324264",
"0.7773209",
"0.7738461",
"0.7539902",
"0.7494583",
"0.7460413",
"0.74085456",
"0.73808277",
"0.7375899",
"0.733449",
"0.72471464",
"0.724051",
"0.72097564",
"0.72097564",
"0.713431... | 0.7928872 | 2 |
Verify create volume from image will cause an error. | def CjOY(YKHO):
class _ModifiedFakeImageService(QfRN):
def nUHY(YKHO, QpfX, r8m5):
return {'size': 2 * rYO3.GiB, 'disk_format': 'raw', 'container_format': 'bare', 'min_disk': 5, 'status': 'deleted'}
BvRn = IaY_.volume.api.API(image_service=V3cm())
YKHO.assertRaises(AJ5d.InvalidInput, B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L_dw(YKHO):\n SWzn, a7Fb = gbPf.mkstemp()\n Hy7s.close(SWzn)\n YKHO.stubs.Set(YKHO.volume.driver, 'local_path', lambda WKvO: a7Fb)\n Z5cL = 1\n NCls.volume_create(YKHO.context, {'id': Z5cL, 'updated_at': qcWV.datetime(1, 1, 1, 1, 1, 1), 'display_description': 'Test Desc', 'size': 20, 'status': '... | [
"0.8317003",
"0.8066694",
"0.80303085",
"0.8006265",
"0.786494",
"0.7759295",
"0.7709177",
"0.7558251",
"0.7524009",
"0.7434241",
"0.741585",
"0.7399481",
"0.7387078",
"0.7369725",
"0.7315998",
"0.7312021",
"0.7300953",
"0.71672153",
"0.71483755",
"0.71452326",
"0.707787",
... | 0.71712905 | 17 |
Test volume can be created from a source volume. | def u9RG(YKHO):
def PWB8(akib, kef8):
pass
YKHO.stubs.Set(YKHO.volume.driver, 'create_cloned_volume', PWB8)
gExY = q7mr.create_volume(YKHO.context, **YKHO.volume_params)
YKHO.volume.create_volume(YKHO.context, gExY['id'])
a4rQ = q7mr.create_volume(YKHO.context, source_volid=gExY['id'], **YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojQ0(YKHO):\n YKHO.driver.create_volume(YKHO.volume)",
"def eP_E(YKHO):\n\n def PWB8(akib, kef8):\n pass\n YKHO.stubs.Set(YKHO.volume.driver, 'create_cloned_volume', PWB8)\n gExY = YKHO._create_volume_from_image()\n YKHO.volume.create_volume(YKHO.context, gExY['id'])\n a4rQ = q7mr.cr... | [
"0.7251893",
"0.7224352",
"0.7216837",
"0.7180117",
"0.7173829",
"0.7113469",
"0.7102513",
"0.70967704",
"0.7058916",
"0.70469",
"0.69417953",
"0.6938116",
"0.6929851",
"0.69129384",
"0.690744",
"0.6896526",
"0.6850853",
"0.68449545",
"0.68398947",
"0.6783723",
"0.67777574",
... | 0.8300131 | 0 |
Test different wrong detachment scenarios. | def AFqJ(YKHO):
IcXM = {'name': 'test_volume_01', 'size': 1, 'id': 101}
rE91 = {'name': 'test_volume_02', 'size': 1, 'id': 102}
Q9r_ = {'name': 'test_volume_03', 'size': 1, 'id': 103}
KCeX = dict(initiator='test_iqn.1')
axjB = dict(initiator='test_iqn.2')
Wose = dict(initiator='test_iqn.3')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def miV2(YKHO):\n try:\n UBKX = 'iqn.2015-12.com.oracleiaas:' + qxeD.uuid4().hex\n KxEe('Volume ocid', [UBKX])\n with YKHO.assertRaises(Exception) as tTpl:\n xEPi = Yn3K.check_output([YKHO.iscsi_config_path, 'detach', '--iqns', UBKX]).decode('utf-8').splitlines()\n XObx = ... | [
"0.7005505",
"0.6901211",
"0.6747249",
"0.6717455",
"0.6695064",
"0.6673656",
"0.66652745",
"0.66371554",
"0.65379494",
"0.65364325",
"0.65254754",
"0.65247816",
"0.6489639",
"0.6437284",
"0.6263742",
"0.6249099",
"0.6176837",
"0.61047256",
"0.6056339",
"0.59928954",
"0.59784... | 0.7313805 | 0 |
Coverage test for nongood HTTP response. | def ZMxt(YKHO):
E_Rg['status'] = 400
akib = {'name': 'test_volume_01', 'size': 1}
YKHO.assertRaises(AJ5d.BadHTTPResponseStatus, YKHO.driver.create_volume, akib) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kKne(YKHO):\n bD7m = 'https://httpstat.us/200'\n Aofo = y7BL(bD7m)\n YKHO.assertEqual(Aofo, 200)",
"def PloK(YKHO):\n bD7m = 'https://httpstat.us/503'\n Aofo = y7BL(bD7m)\n YKHO.assertTrue(Aofo != 200)",
"def WTeR(YKHO):\n geh0 = YKHO.client.get('/the_app/api/results/')\n YKHO.asser... | [
"0.69965714",
"0.6992362",
"0.6939254",
"0.68249565",
"0.6813591",
"0.68006086",
"0.6758734",
"0.6722635",
"0.6649917",
"0.6644914",
"0.66275936",
"0.6617877",
"0.6617877",
"0.6617877",
"0.66083866",
"0.6595708",
"0.6595708",
"0.6595708",
"0.6595708",
"0.6595708",
"0.65893084... | 0.0 | -1 |
Get a random hex string of the specified length. | def bcVV(YKHO, u54L):
Kq2p = ''
tuKI.seed(qcWV.datetime.now().microsecond)
while len(Kq2p) < u54L:
Kq2p += HBct.sha224(str(tuKI.random())).hexdigest()
return Kq2p[0:u54L] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcbv(u54L=32):\n return nPFT('hex')(rU7A(u54L // 2))[0].decode('utf-8')",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def s3r6(u54L=8):\n assert u54L >= 0\n wa4D = (u54L >> 1) + u54L % 2\n return Hy7s.urandom(wa4D).encode('hex')[:u54L]",
"def wZgW(mgq9):\n return jry... | [
"0.9002748",
"0.8858259",
"0.86335313",
"0.82325184",
"0.81924343",
"0.813126",
"0.8059382",
"0.8057406",
"0.8003808",
"0.7949572",
"0.7948823",
"0.79265696",
"0.7916549",
"0.7893613",
"0.7860093",
"0.7830054",
"0.78056544",
"0.7800828",
"0.77860564",
"0.7780607",
"0.7780607"... | 0.8058162 | 7 |
Generate a random hash based on the salt and the auth key. | def jpoI(YKHO, NTfD, XxjF):
return W7gX.new(str(NTfD), str(XxjF), HBct.sha1).hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vost():\n return WR89.b64encode(Hy7s.urandom(32)).decode('utf-8')",
"def Vost(cW_1=16):\n return Hy7s.urandom(cW_1)",
"def Btz_(YKHO, H5ew):\n NTfD = Hy7s.urandom(32)\n ifT8 = Hy7s.urandom(32)\n J4pZ = HBct.pbkdf2_hmac('sha256', H5ew.encode('utf-8'), NTfD, 200000)\n return (J4pZ.hex(), NT... | [
"0.7165715",
"0.7137117",
"0.7131475",
"0.71089613",
"0.7093308",
"0.70586467",
"0.70515716",
"0.70467794",
"0.6996456",
"0.6938058",
"0.68901205",
"0.6865774",
"0.6847686",
"0.68374854",
"0.6791553",
"0.67913896",
"0.67759675",
"0.67124426",
"0.6685038",
"0.6681621",
"0.6680... | 0.7482275 | 0 |
Check if the provided string is a valid bool string or not. | def WX_0(wEf2):
wEf2 = str(wEf2).lower()
return wEf2 == 'true' or wEf2 == 'false' or wEf2 == 'yes' or (wEf2 == 'no') or (wEf2 == 'y') or (wEf2 == 'n') or (wEf2 == '1') or (wEf2 == '0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b4Kz(KCHu):\n if KCHu not in {'False', 'True'}:\n raise ValueError('Not a valid boolean string')\n return KCHu == 'True'",
"def M0mR(YKHO, str):\n try:\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n return False\n else:\n ... | [
"0.8436111",
"0.83126146",
"0.83005095",
"0.82914436",
"0.8287481",
"0.82435375",
"0.81783867",
"0.81745464",
"0.8150734",
"0.8146198",
"0.8139873",
"0.813699",
"0.81352097",
"0.81292725",
"0.80900615",
"0.80892956",
"0.8086663",
"0.8063107",
"0.80378944",
"0.801099",
"0.7990... | 0.84389216 | 0 |
Walk class hierarchy, yielding most derived classes first. | def KVRU(mBOY, Sfqs=None):
if not Sfqs:
Sfqs = []
for dm7U in mBOY.__subclasses__():
if dm7U not in Sfqs:
Sfqs.append(dm7U)
for xJIZ in KVRU(dm7U, Sfqs):
yield xJIZ
yield dm7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVRU(mBOY, Sfqs=None):\n if not Sfqs:\n Sfqs = []\n for dm7U in mBOY.__subclasses__():\n if dm7U not in Sfqs:\n Sfqs.append(dm7U)\n for xJIZ in KVRU(dm7U, Sfqs):\n yield xJIZ\n yield dm7U",
"def KVRU(mBOY, Sfqs=None):\n if not Sfqs:\n ... | [
"0.77189523",
"0.77189523",
"0.77189523",
"0.7364275",
"0.7305735",
"0.7303568",
"0.7280967",
"0.72589755",
"0.7250127",
"0.7238971",
"0.7041804",
"0.70301265",
"0.69800115",
"0.69678175",
"0.6907283",
"0.68948865",
"0.6893693",
"0.6823843",
"0.68012303",
"0.6782535",
"0.6767... | 0.77607733 | 0 |
Get the current version of this driver. | def kaPv(YKHO):
return YKHO.VERSION | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n return YKHO.version",
"def kaPv(YKHO):\n return YKHO.version",
"def cVMG(YKHO):\n return YKHO.version",
"def LTV6(YKHO):\n return YKHO.get_version()",
"def kaPv(YKHO):\n return YKHO.__version",
"def BrQL(YKHO):\n return YKHO.get('driverversion')",
"def kaPv(YKHO):\n ... | [
"0.83042806",
"0.83042806",
"0.8232505",
"0.81986135",
"0.8152061",
"0.81192845",
"0.8118287",
"0.8114949",
"0.8114949",
"0.81028825",
"0.81000185",
"0.81000185",
"0.81000185",
"0.81000185",
"0.81000185",
"0.81000185",
"0.81000185",
"0.81000185",
"0.81000185",
"0.81000185",
"... | 0.8194977 | 4 |
Removes an export for a volume. | def qlOm(YKHO, QpfX, akib):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(... | [
"0.851697",
"0.8417659",
"0.8408359",
"0.8389512",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8373263",
"0.8368717",
"0.8368717",
"0.82873803",
"0.8249998",
"0.8245871",
"0.8245871",
"0.8245871",
"... | 0.8269486 | 17 |
Return size of volume to be managed by manage_existing. When calculating the size, round up to the next GB. | def EsfM(YKHO, akib, iKlc):
tO9_ = bGrB('Manage existing volume not implemented.')
raise NotImplementedError(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EsfM(YKHO, akib, iKlc):\n qjHC = YKHO._get_existing_vol_with_manage_ref(iKlc)\n return int(epAf.ceil(float(qjHC['capacity']) / rYO3.Gi))",
"def KeYI(YKHO, OdvI, akib):\n yu8V = rYO3.GiB / 512\n if int(akib['size']) != 0:\n yu8V = int(akib['size']) * rYO3.GiB / 512\n return yu8V",
"def... | [
"0.8193536",
"0.8163983",
"0.81185925",
"0.81167394",
"0.78140444",
"0.77220374",
"0.77220374",
"0.77220374",
"0.77115977",
"0.7709612",
"0.75658506",
"0.75584203",
"0.7487177",
"0.74847996",
"0.7473384",
"0.74436104",
"0.7420984",
"0.7420984",
"0.7420984",
"0.7420071",
"0.74... | 0.7237363 | 41 |
Removes an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(... | [
"0.851697",
"0.8417659",
"0.8408359",
"0.8389512",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8380404",
"0.8373263",
"0.8368717",
"0.8368717",
"0.82873803",
"0.8269486",
"0.8249998",
"0.82260776",
"0.8129472",
... | 0.8245871 | 26 |
Initializes the connection and returns connection info. The driver returns a driver_volume_type of 'fibre_channel'. The target_wwn can be a single entry or a list of wwns that correspond to the list of remote wwn(s) that will export the volume. | def UlAc(YKHO, akib, SQvy):
tO9_ = bGrB('Driver must implement initialize_connection')
raise NotImplementedError(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlAc(YKHO, akib, SQvy):\n na1r.debug(bGrB('initialize_connection: volume name: %(vol)s, host: %(host)s, initiator: %(wwn)s') % {'vol': akib['name'], 'host': SQvy['host'], 'wwn': SQvy['wwpns']})\n YKHO.common._update_login_info()\n XldB = YKHO.common.add_host(SQvy['host'], SQvy['ip'])\n J6Ug = SQvy[... | [
"0.65544516",
"0.6455993",
"0.64332587",
"0.6374886",
"0.63078403",
"0.57759494",
"0.572694",
"0.5601129",
"0.5580821",
"0.55790585",
"0.55622965",
"0.5498516",
"0.54982585",
"0.5429177",
"0.5404746",
"0.5400165",
"0.5333313",
"0.53327554",
"0.5286294",
"0.52645594",
"0.52603... | 0.47927257 | 71 |
Set effective group. Use groups_map returned from _login method. | def EpJF(YKHO, _Xp4, uOe2):
try:
hE03 = _Xp4[uOe2]
except KeyError:
raise AJ5d.CoraidESMBadGroup(group_name=uOe2)
Xwfn = {'op': 'setRbacGroup', 'groupId': hE03}
Amyp = YKHO._rest_client.rpc('admin', Xwfn, 'Group')
if Amyp['state'] != 'adminSucceed':
raise AJ5d.CoraidESMBadCre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QYWb(YKHO):\n YKHO.AUX('set_group,group=' + YKHO.group)",
"def aNPh(YKHO, *qIxc, **B2fa):\n pass",
"def scR9(YKHO, uOe2):\n YKHO.ipcon.send_request(YKHO, Xg1t.FUNCTION_SET_GROUP, (uOe2,), '4c', '')",
"def k8EC(Gkaz, uOe2):\n for bTKY in Gkaz:\n if bTKY[0] == uOe2:\n Hy7s.set... | [
"0.71568626",
"0.70246035",
"0.70131725",
"0.6916123",
"0.68051815",
"0.67707634",
"0.66762644",
"0.6562821",
"0.65518194",
"0.63616514",
"0.6356772",
"0.63566923",
"0.63426846",
"0.6298665",
"0.6291893",
"0.6247101",
"0.6247101",
"0.6247101",
"0.6247101",
"0.6247101",
"0.624... | 0.8264624 | 0 |
Driver entry point to remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO,... | [
"0.8614724",
"0.85980046",
"0.8557854",
"0.8525541",
"0.85181594",
"0.85181594",
"0.85181594",
"0.85181594",
"0.85181594",
"0.85181594",
"0.85181594",
"0.85181594",
"0.85181594",
"0.85043883",
"0.85043883",
"0.8481713",
"0.8421968",
"0.83864504",
"0.831613",
"0.7992762",
"0.7... | 0.8484045 | 20 |
Maps a volume to the host. | def pK84(YKHO, akib, SQvy):
KqY0 = akib['name']
na1r.info(bGrB('Map volume: %(volume)s') % {'volume': KqY0})
SmTP = YKHO._find_lun(akib)
oUo9 = SmTP['SystemName']
TcM7 = YKHO._find_controller_configuration_service(oUo9)
if TcM7 is None:
BuEc = bGrB('Cannot find Controller Configuration S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GB6k(YKHO, qjHC, ALmv):\n KcEq = YKHO._get_or_create_host(ALmv)\n bfDR = YKHO._get_host_mapping_for_vol_frm_array(qjHC)\n for k_bl in bfDR:\n if k_bl.get('mapRef') == KcEq['hostRef']:\n return k_bl\n else:\n YKHO._client.delete_volume_mapping(k_bl['lunMappingRef'])\... | [
"0.7986911",
"0.7979532",
"0.72371614",
"0.7193495",
"0.716793",
"0.6843169",
"0.68206006",
"0.66729337",
"0.665798",
"0.6621204",
"0.6462767",
"0.64080304",
"0.6217738",
"0.6213201",
"0.6208685",
"0.61712486",
"0.6151365",
"0.6139041",
"0.6090596",
"0.60843426",
"0.60573506"... | 0.69477963 | 5 |
Driver entry point to remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO,... | [
"0.86129856",
"0.8596074",
"0.8555899",
"0.8523632",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.85033816",
"0.85033816",
"0.8480527",
"0.8419926",
"0.83849573",
"0.83152974",
"0.7992403",
"0.78223795",
"0.7... | 0.84820974 | 25 |
Initializes the connection and returns connection info. Assign any created volume to a compute node/host so that it can be used from that host. The driver returns a driver_volume_type of 'fibre_channel'. The target_wwn can be a single entry or a list of wwns that correspond to the list of remote wwn(s) that will export... | def UlAc(YKHO, akib, SQvy):
GWuV = YKHO.common.initialize_connection(akib, SQvy)
U32q = GWuV['hostlunid']
oUo9 = GWuV['storagesystem']
_gxM, bNn_ = YKHO._build_initiator_target_map(oUo9, SQvy)
nPrm = {'driver_volume_type': 'fibre_channel', 'data': {'target_lun': U32q, 'target_discovered': True, 'tar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlAc(YKHO, akib, SQvy):\n na1r.debug(bGrB('initialize_connection: volume name: %(vol)s, host: %(host)s, initiator: %(wwn)s') % {'vol': akib['name'], 'host': SQvy['host'], 'wwn': SQvy['wwpns']})\n YKHO.common._update_login_info()\n XldB = YKHO.common.add_host(SQvy['host'], SQvy['ip'])\n J6Ug = SQvy[... | [
"0.70127225",
"0.68785167",
"0.68181765",
"0.6380345",
"0.62536275",
"0.61549884",
"0.5971342",
"0.5895733",
"0.58787763",
"0.5851586",
"0.580304",
"0.579915",
"0.5791539",
"0.57501173",
"0.57428014",
"0.57313275",
"0.57177806",
"0.57083166",
"0.5695437",
"0.5695437",
"0.5687... | 0.6455052 | 3 |
Driver entry point to remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO,... | [
"0.86129856",
"0.8596074",
"0.8555899",
"0.8523632",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.851643",
"0.85033816",
"0.85033816",
"0.8480527",
"0.8419926",
"0.83849573",
"0.83152974",
"0.7992403",
"0.78223795",
"0.7... | 0.84820974 | 30 |
Remove an export of a volume. Driver has nothing to do here for the volume has been exported already by the SAN, right after it's creation. Nothing to remove since there's nothing exported. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n na1r.debug('remove_export(%s)', akib['name_id'])\n u80I = Y... | [
"0.7976538",
"0.79390746",
"0.78775024",
"0.78394264",
"0.78253776",
"0.77765864",
"0.77765864",
"0.77765864",
"0.77765864",
"0.77765864",
"0.77765864",
"0.77765864",
"0.77765864",
"0.77765864",
"0.7739359",
"0.770009",
"0.770009",
"0.76939857",
"0.76929885",
"0.76550514",
"0... | 0.765805 | 20 |
Returns list of dicts containing backingchain information. Includes 'filename', and 'backingfilename' for each applicable entry. Consider converting this to use backingchain and output=json when environment supports qemuimg 1.5.0. | def fLlO(YKHO, akib, pmON):
hlel = []
U34r = YKHO._qemu_img_info(pmON)
auSm = {}
auSm['filename'] = Hy7s.path.basename(pmON)
auSm['backing-filename'] = U34r.backing_file
hlel.append(auSm)
while auSm['backing-filename']:
Ux0P = auSm['backing-filename']
pmON = Hy7s.path.join(YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fLlO(YKHO, akib, pmON):\n hlel = []\n U34r = YKHO._qemu_img_info(pmON)\n auSm = {}\n auSm['filename'] = Hy7s.path.basename(pmON)\n auSm['backing-filename'] = U34r.backing_file\n hlel.append(auSm)\n while auSm['backing-filename']:\n Ux0P = auSm['backing-filename']\n pmON = Hy7... | [
"0.71163386",
"0.5725703",
"0.5666824",
"0.5620884",
"0.5581062",
"0.55447745",
"0.5531256",
"0.5508423",
"0.5496792",
"0.53634036",
"0.531386",
"0.53087807",
"0.52529204",
"0.52505434",
"0.5216154",
"0.521233",
"0.51714516",
"0.5083935",
"0.50762445",
"0.50701654",
"0.506850... | 0.7113241 | 1 |
Removes an export for a logical volume. | def qlOm(YKHO, OaeV, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.83141536",
"0.82693523",
"0.82648456",
"0.82648456",
"0.82306707",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.8186046",
"0.81801444",
"0.8143536",
"0.81063044",
"0.8106198",
"0.80989194",
... | 0.8222493 | 5 |
Remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def ql... | [
"0.8597097",
"0.85319835",
"0.84862417",
"0.84862417",
"0.84800273",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8472723",
"0.84395516",
"0.8380627",
"0.8371724",
"0.83349544",
"0.82818645",
"0.822305... | 0.8334475 | 30 |
Remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def ql... | [
"0.8597097",
"0.85319835",
"0.84862417",
"0.84862417",
"0.84800273",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8472723",
"0.84395516",
"0.8380627",
"0.8371724",
"0.83349544",
"0.82818645",
"0.822305... | 0.8334475 | 34 |
Remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def ql... | [
"0.8597097",
"0.85319835",
"0.84862417",
"0.84862417",
"0.84800273",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8472723",
"0.84395516",
"0.8380627",
"0.8371724",
"0.83349544",
"0.82818645",
"0.822305... | 0.8334475 | 29 |
Remove an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def ql... | [
"0.8597097",
"0.85319835",
"0.84862417",
"0.84862417",
"0.84800273",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8476888",
"0.8472723",
"0.84395516",
"0.8380627",
"0.8371724",
"0.83349544",
"0.82818645",
"0.822305... | 0.8334475 | 28 |
Calculate the volume size. We should divide the given volume size by 512 for the HVS system calculates volume size with sectors, which is 512 bytes. | def KeYI(YKHO, OdvI, akib):
yu8V = rYO3.GiB / 512
if int(akib['size']) != 0:
yu8V = int(akib['size']) * rYO3.GiB / 512
return yu8V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KeYI(YKHO, OdvI, akib):\n yu8V = rYO3.Gi / 512\n if int(akib['size']) != 0:\n yu8V = int(akib['size']) * rYO3.Gi / 512\n return yu8V",
"def yu8V(YKHO) -> int:\n return qe4Y.get(YKHO, 'volume_size')",
"def yu8V(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'volume_size')",
"def ... | [
"0.8237599",
"0.81095",
"0.8014552",
"0.7897664",
"0.76188266",
"0.76188266",
"0.76188266",
"0.75196034",
"0.75196034",
"0.75196034",
"0.7496688",
"0.7496688",
"0.72755635",
"0.7256432",
"0.7208024",
"0.71866983",
"0.7180585",
"0.7178471",
"0.715936",
"0.69656616",
"0.6956273... | 0.8236504 | 1 |
Return filesystem for specified path. | def wgln(YKHO, pmON):
try:
yvT9, XObx = YKHO._execute('df', pmON, run_as_root=True)
Nqlg = yvT9.splitlines()
gTBr = Nqlg[1].split()[0]
return gTBr
except Ut1L.ProcessExecutionError as exc:
na1r.error(bGrB('Failed to issue df command for path %(path)s, error: %(error)s.') ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YTPN(pmON, eLpg=False, **B2fa):\n if pmON.startswith('s3://'):\n return T4p1(pmON, *B2fa)\n return Vb5F.open_fs(pmON, create=eLpg, **B2fa)",
"def nXE7(pmON):\n return mu4q.opendir(pmON)",
"def zBpA(pmON):\n while pmON != '/':\n if K3BW._is_sfs_root(pmON):\n S9_d = K3BW(... | [
"0.76533514",
"0.7266383",
"0.726156",
"0.7160764",
"0.6729046",
"0.6715086",
"0.6655246",
"0.66229373",
"0.66126466",
"0.66126466",
"0.66126466",
"0.65493566",
"0.65295315",
"0.6521619",
"0.6498809",
"0.6395105",
"0.6359192",
"0.6340733",
"0.63255066",
"0.6278515",
"0.622261... | 0.8093999 | 0 |
Removes an export for a logical volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.83160657",
"0.82702",
"0.8266814",
"0.8266814",
"0.8233667",
"0.82246363",
"0.8221979",
"0.8221979",
"0.8221979",
"0.8221979",
"0.8221979",
"0.8221979",
"0.8221979",
"0.8221979",
"0.8221979",
"0.8188197",
"0.8182314",
"0.81462735",
"0.8108812",
"0.81063396",
"0.8027837",
... | 0.81016344 | 34 |
Return whether or not compression is enabled for this system. | def piQX(YKHO):
_hkX = YKHO.ssh.lslicense()
sjXb = ['license_compression_enclosures', 'license_compression_capacity']
for H5ew in sjXb:
if _hkX.get(H5ew, '0') != '0':
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def McUZ(YKHO):\n return YKHO.iscompressionenabled",
"def zSwn(YKHO):\n return YKHO._is_compression_enabled",
"def Rrsh(YKHO):\n return YKHO.__actual_compression or 'no'",
"def x2nr(YKHO):\n return YKHO._compression is not None",
"def McUZ(YKHO, BWXx):\n YKHO.iscompressionenabled = BWXx",
... | [
"0.8892983",
"0.8862561",
"0.7749626",
"0.75282824",
"0.7438004",
"0.74259144",
"0.7303615",
"0.7266129",
"0.7262703",
"0.7262703",
"0.7118029",
"0.70383114",
"0.6913382",
"0.6801501",
"0.6781075",
"0.677822",
"0.6745278",
"0.6686622",
"0.6663878",
"0.66630584",
"0.66630584",... | 0.8023288 | 2 |
Return attributes for the specified pool. | def Kn2Q(YKHO, dBuj):
return YKHO.ssh.lsmdiskgrp(dBuj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t9Vb(YKHO, hkS8, F3PV):\n if F3PV is not None:\n for dBuj in YKHO.data['pools']:\n if dBuj['id'] == F3PV:\n return dBuj.get(hkS8)\n else:\n Aofo = []\n for dBuj in YKHO.data['pools']:\n if hkS8 in dBuj:\n if isinstance(dBuj[hkS8], l... | [
"0.66726714",
"0.63784117",
"0.62191105",
"0.6147454",
"0.60744005",
"0.60541105",
"0.602955",
"0.6026581",
"0.60049343",
"0.60019016",
"0.59791493",
"0.5961695",
"0.58565336",
"0.58549803",
"0.5851435",
"0.58382",
"0.58382",
"0.5818163",
"0.5804562",
"0.57951015",
"0.578448"... | 0.7092781 | 0 |
Get the transport type protocol. | def RIHx(YKHO):
return YKHO._protocol | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mo8Z(YKHO):\n try:\n return YKHO._transportprotocol\n except Exception as e:\n raise tTpl",
"def q8zs(YKHO) -> int:\n return YKHO._protocol_type",
"def q8zs(YKHO) -> int:\n return YKHO._protocol_type",
"def iquo(YKHO):\n return YKHO._info.type",
"def DFCV(YKHO):\n return... | [
"0.84920114",
"0.8062517",
"0.8025541",
"0.7945983",
"0.7828802",
"0.7828802",
"0.780984",
"0.77768254",
"0.7750169",
"0.7749938",
"0.7732794",
"0.770441",
"0.770441",
"0.770441",
"0.770441",
"0.76900434",
"0.767479",
"0.7653275",
"0.7591843",
"0.7587051",
"0.7587051",
"0.7... | 0.8842993 | 0 |
Get the authorization style for communicating with the server. | def TeUs(YKHO):
return YKHO._auth_style | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QKS2(QePW):\n MkeE = (QePW.META.get('HTTP_AUTHORIZATION') or '').lower()\n if MkeE.startswith('basic '):\n return 'basic'\n elif MkeE.startswith('digest '):\n return 'digest'\n return 'digest'",
"def cbLk(YKHO):\n raise NotImplementedError('Not Implemented')",
"def IbdN(YKHO):\... | [
"0.5986001",
"0.59487957",
"0.593113",
"0.5924042",
"0.58916026",
"0.58916026",
"0.5808821",
"0.5805682",
"0.5796337",
"0.5753961",
"0.57006073",
"0.5676122",
"0.5674346",
"0.56446445",
"0.5643507",
"0.5626998",
"0.5626998",
"0.5626998",
"0.5626998",
"0.5626998",
"0.5626998",... | 0.7886977 | 0 |
Get the vfiler to use in tunneling. | def CBZI(YKHO):
return YKHO._vfiler | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZtNO(YKHO):\n return YKHO.__tunnel_vif_index",
"def Z9O1(YKHO):\n return YKHO._vserver",
"def xjh5(YKHO):\n return YKHO._vserver",
"def xjh5(YKHO):\n return YKHO._vserver",
"def xjh5(YKHO):\n return YKHO._vserver",
"def xjh5(YKHO):\n return YKHO._vserver",
"def xjh5(YKHO):\n re... | [
"0.66148794",
"0.6302708",
"0.61944556",
"0.61944556",
"0.61944556",
"0.61944556",
"0.61944556",
"0.61944556",
"0.61944556",
"0.61944556",
"0.61944556",
"0.61944556",
"0.613911",
"0.5960857",
"0.58850664",
"0.5825806",
"0.5825806",
"0.5806512",
"0.5692416",
"0.5634288",
"0.55... | 0.69588596 | 0 |
Set the password for authentication. | def G3s8(YKHO, jTXt):
YKHO._password = jTXt
YKHO._refresh_conn = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def G3s8(YKHO, j... | [
"0.8859914",
"0.8718151",
"0.87104785",
"0.8708106",
"0.8704256",
"0.86950666",
"0.8641799",
"0.85515124",
"0.85422784",
"0.85004365",
"0.84627885",
"0.83949834",
"0.83949834",
"0.8384824",
"0.8384824",
"0.8384824",
"0.8384824",
"0.8384824",
"0.8384824",
"0.8384824",
"0.83848... | 0.8308532 | 35 |
Creates end point url for the service. | def T7LU(YKHO, ht58, KcEq, bIwZ, gA5I):
RYr6 = '%s:%s' % (KcEq, bIwZ)
YKHO._endpoint = KVWQ.urlunparse((ht58, RYr6, gA5I, None, None, None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BoQL(YKHO, IatV=None):\n if YKHO._service == 'users':\n bD7m = Hy7s.getenv('USERS_SERVICE_URL')\n elif YKHO._service == 'documents':\n bD7m = Hy7s.getenv('DOCUMENTS_SERVICE_URL')\n if IatV is not None:\n return bD7m + YKHO._endpoint.format(**IatV)\n return bD7m + YKHO._endpoint... | [
"0.7743618",
"0.7497729",
"0.72411996",
"0.72052234",
"0.7174455",
"0.7164814",
"0.71064544",
"0.7089923",
"0.70336616",
"0.6996074",
"0.6983135",
"0.69821066",
"0.6963709",
"0.6934873",
"0.6902582",
"0.68988633",
"0.68671674",
"0.6850621",
"0.6833826",
"0.68066376",
"0.67935... | 0.6990339 | 10 |
Removes an export for a volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(... | [
"0.85173047",
"0.8418328",
"0.8408498",
"0.8389533",
"0.8380761",
"0.8380761",
"0.8380761",
"0.8380761",
"0.8380761",
"0.8380761",
"0.8380761",
"0.8380761",
"0.8380761",
"0.8373454",
"0.83689475",
"0.83689475",
"0.82875466",
"0.8269615",
"0.82501817",
"0.82264006",
"0.8129271... | 0.82460934 | 19 |
Gets supported host type if available on storage system. | def hsCs(YKHO, auGu='linux'):
CbPH = YKHO._client.list_host_types()
for ZsLl in CbPH:
if ZsLl.get('name', 'unknown').lower() == auGu.lower():
return ZsLl
raise AJ5d.NotFound(bGrB('Host type %s not supported.') % auGu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2HW():\n if bmGA._supported_host_types is None:\n auGu = None\n wvEv = kwpV.RawConfigParser()\n wvEv.read('/etc/nova/nova.conf')\n if wvEv.has_option('DEFAULT', 'powervm_mgr_type'):\n auGu = wvEv.get('DEFAULT', 'powervm_mgr_type')\n bmGA._supported_host_types =... | [
"0.7525149",
"0.712663",
"0.6881118",
"0.6751515",
"0.67151153",
"0.6641058",
"0.6628048",
"0.6413658",
"0.6177704",
"0.606415",
"0.6059805",
"0.6034281",
"0.60241306",
"0.59488046",
"0.5941506",
"0.59339887",
"0.59293514",
"0.59075314",
"0.58679354",
"0.58655345",
"0.5851462... | 0.7209917 | 1 |
Gets cached volume mapping for given host. | def HTnT(YKHO, akib, KcEq):
AvyM = akib.get('listOfMappings') or []
for J8oL in AvyM:
if J8oL.get('mapRef') == KcEq['hostRef']:
return J8oL
tO9_ = bGrB('Mapping not found for %(vol)s to host %(ht)s.')
raise AJ5d.NotFound(tO9_ % {'vol': akib['volumeRef'], 'ht': KcEq['hostRef']}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GB6k(YKHO, qjHC, ALmv):\n KcEq = YKHO._get_or_create_host(ALmv)\n bfDR = YKHO._get_host_mapping_for_vol_frm_array(qjHC)\n for k_bl in bfDR:\n if k_bl.get('mapRef') == KcEq['hostRef']:\n return k_bl\n else:\n YKHO._client.delete_volume_mapping(k_bl['lunMappingRef'])\... | [
"0.6666302",
"0.6456257",
"0.64452946",
"0.6287716",
"0.6215911",
"0.60477495",
"0.60410655",
"0.6017434",
"0.5956836",
"0.58598566",
"0.5672331",
"0.5600885",
"0.55852026",
"0.55670726",
"0.5527723",
"0.5429396",
"0.54278654",
"0.536328",
"0.5336215",
"0.53291214",
"0.531843... | 0.8002231 | 0 |
Driver entry point to remove an export for a volume. Since exporting is idempotent in this driver, we have nothing to do for unexporting. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n pass",
"def qlOm(YK... | [
"0.83916885",
"0.8334251",
"0.83006614",
"0.83006614",
"0.8289491",
"0.8279555",
"0.8279555",
"0.8279555",
"0.8279555",
"0.8279555",
"0.8279555",
"0.8279555",
"0.8279555",
"0.8279555",
"0.82345533",
"0.81928366",
"0.81928366",
"0.81928366",
"0.81928366",
"0.81928366",
"0.8192... | 0.8233662 | 15 |
Gets the target portal details. | def LqtV(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LqtV(YKHO):\n uRom = P8GY('iscsi-portal-list-info')\n Aofo = YKHO.client.invoke_successfully(uRom, True)\n csCE = []\n hwB2 = Aofo.get_child_by_name('iscsi-portal-list-entries')\n if hwB2:\n ti6n = hwB2.get_children()\n for nGuC in ti6n:\n Csk6 = dict()\n Csk6... | [
"0.7212111",
"0.6782621",
"0.66130173",
"0.64996076",
"0.64718884",
"0.6232872",
"0.62150717",
"0.62024057",
"0.61537784",
"0.6070229",
"0.60499156",
"0.6047788",
"0.6039792",
"0.59951186",
"0.597764",
"0.5975317",
"0.59234303",
"0.588827",
"0.58820647",
"0.58271384",
"0.5820... | 0.6422903 | 5 |
Gets the target portal details. | def LqtV(YKHO):
uRom = P8GY('iscsi-interface-get-iter')
Aofo = YKHO.client.invoke_successfully(uRom, True)
csCE = []
if Aofo.get_child_content('num-records') and int(Aofo.get_child_content('num-records')) >= 1:
a5Jp = Aofo.get_child_by_name('attributes-list')
yPix = a5Jp.get_children()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LqtV(YKHO):\n uRom = P8GY('iscsi-portal-list-info')\n Aofo = YKHO.client.invoke_successfully(uRom, True)\n csCE = []\n hwB2 = Aofo.get_child_by_name('iscsi-portal-list-entries')\n if hwB2:\n ti6n = hwB2.get_children()\n for nGuC in ti6n:\n Csk6 = dict()\n Csk6... | [
"0.7212111",
"0.6782621",
"0.66130173",
"0.64996076",
"0.64718884",
"0.6422903",
"0.6232872",
"0.62150717",
"0.62024057",
"0.61537784",
"0.6070229",
"0.60499156",
"0.6047788",
"0.6039792",
"0.59951186",
"0.597764",
"0.5975317",
"0.59234303",
"0.588827",
"0.58820647",
"0.58271... | 0.0 | -1 |
Gets the target portal details. | def LqtV(YKHO):
uRom = P8GY('iscsi-portal-list-info')
Aofo = YKHO.client.invoke_successfully(uRom, True)
csCE = []
hwB2 = Aofo.get_child_by_name('iscsi-portal-list-entries')
if hwB2:
ti6n = hwB2.get_children()
for nGuC in ti6n:
Csk6 = dict()
Csk6['address'] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3uD(YKHO):\n uRom = Y9eQ.NaElement('iscsi-portal-list-info')\n Aofo = YKHO.connection.invoke_successfully(uRom, True)\n csCE = []\n hwB2 = Aofo.get_child_by_name('iscsi-portal-list-entries')\n if hwB2:\n ti6n = hwB2.get_children()\n for nGuC in ti6n:\n Csk6 = dict()\n ... | [
"0.6782331",
"0.6614504",
"0.6500059",
"0.64727473",
"0.64222455",
"0.6235196",
"0.6214466",
"0.6201278",
"0.61544234",
"0.60710186",
"0.6049659",
"0.6047237",
"0.60406363",
"0.5995854",
"0.5978137",
"0.5976461",
"0.59246016",
"0.5890704",
"0.58831614",
"0.5827847",
"0.582012... | 0.7212172 | 0 |
Checks backend ssc api permissions for the user. | def RE84(JuLa):
a_9C = {'storage-disk-get-iter': ['netapp:disk_type'], 'snapmirror-get-iter': ['netapp_mirrored', 'netapp_unmirrored'], 'sis-get-iter': ['netapp_dedup', 'netapp_nodedup', 'netapp_compression', 'netapp_nocompression'], 'aggr-options-list-info': ['netapp:raid_type'], 'volume-get-iter': []}
vvsA = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjN5(YKHO):\n pass",
"async def __call__(YKHO, QePW: Request, CBIr: typing.Optional[User]=JHvC(W84Y)):\n for Uvf2 in YKHO.permissions:\n qHTF, aeup = await Uvf2.has_permission(QePW, CBIr)\n if not qHTF:\n raise pgG1(status_code=jGRS.HTTP_403_FORBIDDEN, detail=aeup)",
"def ZCv... | [
"0.68909264",
"0.64774686",
"0.6434892",
"0.6412942",
"0.6332035",
"0.63226205",
"0.6316513",
"0.63136137",
"0.63085324",
"0.62974936",
"0.6295273",
"0.628798",
"0.62730247",
"0.62588364",
"0.6256634",
"0.6253078",
"0.6253078",
"0.62383395",
"0.6215862",
"0.6203682",
"0.62036... | 0.6560382 | 1 |
Checks if a driver is instantiated other than by the unified driver. Helps check direct instantiation of netapp drivers. Call this function in every netapp block driver constructor. | def CbNL(**B2fa):
if B2fa and B2fa.get('netapp_mode') == 'proxy':
return
na1r.warn(bGrB('It is not the recommended way to use drivers by NetApp. Please use NetAppDriver to achieve the functionality.')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dkmc(YKHO):\n if YKHO.driver:\n return True\n else:\n return False",
"def Pro4(E_qD):\n if not E_qD.initialized:\n g7QD = E_qD.__class__.__name__\n na1r.error('Volume driver %s not initialized', g7QD)\n raise AJ5d.DriverNotInitialized()\n else:\n Cyfr(E_q... | [
"0.6426403",
"0.6183278",
"0.61389375",
"0.60764796",
"0.6073689",
"0.6008028",
"0.5970974",
"0.5842874",
"0.57668096",
"0.56994385",
"0.56251174",
"0.56140745",
"0.56120765",
"0.55978495",
"0.55795616",
"0.55795616",
"0.55795616",
"0.55795616",
"0.55795616",
"0.5577454",
"0.... | 0.67669004 | 0 |
Creates a NetApp api request. | def FAWM(s32t, xDcj=None, N8aH=None, aod4=None, s_0d=False, oOtn=50, TZ9E=None):
QgIr = P8GY(s32t)
if xDcj:
YkNH = P8GY('query')
YkNH.translate_struct(xDcj)
QgIr.add_child_elem(YkNH)
if N8aH:
kInI = P8GY('desired-attributes')
kInI.translate_struct(N8aH)
QgIr.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I0hu(YKHO, bD7m, NKcE='JSON', nPrm=None, Zc6P=False):\n MOPg = {'Authorization': 'Bearer ' + YKHO._authtoken}\n if NKcE == 'GET':\n qv1X = G4JS.request('GET', bD7m, headers=MOPg)\n elif NKcE == 'JSON':\n if not type(nPrm) is dict:\n nPrm = {}\n nPrm['v'] = 1\n qv... | [
"0.72958475",
"0.7215936",
"0.7191822",
"0.70148844",
"0.69161606",
"0.6889636",
"0.68274075",
"0.682666",
"0.6703677",
"0.66778964",
"0.65741974",
"0.65590173",
"0.6548444",
"0.6480617",
"0.64683706",
"0.6426854",
"0.6425423",
"0.62835705",
"0.627808",
"0.6264873",
"0.623841... | 0.6032691 | 35 |
Encodes hex to base32 bit as per RFC4648. | def dRfl(X9sb):
K8ya = MRxC.unhexlify(X9sb)
return WR89.b32encode(K8ya) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uINT(RQar):\n K8ya = WR89.b32decode(RQar)\n return MRxC.hexlify(K8ya)",
"def _blQ(BWXx):\n return BbPK(BWXx, 32)",
"def zIsy(WKvO):\n GoUf = hex(WKvO)[2:].rjust(64, '0')\n if len(GoUf) != 64:\n raise ValueError('Input does not fit in 32 bytes')\n return GoUf",
"def PwRl(okR6, nPr... | [
"0.7350172",
"0.73150826",
"0.69921166",
"0.6842901",
"0.67002225",
"0.64762336",
"0.6468399",
"0.64073265",
"0.6395085",
"0.63508785",
"0.63142276",
"0.62887084",
"0.6271897",
"0.62449354",
"0.622756",
"0.622756",
"0.621055",
"0.6091693",
"0.6088094",
"0.6028757",
"0.6011662... | 0.7991026 | 0 |
Return Nexenta iSCSI target group name for volume. | def PdOZ(YKHO, FNha):
return '%s%s' % (YKHO.configuration.nexenta_target_group_prefix, FNha) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZDN(YKHO, FNha):\n return '%s%s' % (YKHO.configuration.nexenta_target_prefix, FNha)",
"def NLa0(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_group_name')",
"def MA0e(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_group_full_name')",
"def mWFP(YKHO):\n return YKHO._inventory_group... | [
"0.7126507",
"0.6919036",
"0.6723246",
"0.63646996",
"0.61272466",
"0.6123631",
"0.6096073",
"0.60059184",
"0.5971064",
"0.5971064",
"0.5970552",
"0.5887901",
"0.58685064",
"0.5860514",
"0.5837348",
"0.5837348",
"0.5837348",
"0.5837348",
"0.5837348",
"0.5837348",
"0.58327246"... | 0.84115225 | 0 |
Return name for snapshot that will be used to migrate the volume. | def mDyO(akib):
return 'cinder-migrate-snapshot-%(id)s' % akib | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IzcX(YKHO) -> str:\n return qe4Y.get(YKHO, 'snapshot_name')",
"def _vAY(akib):\n return 'cinder-clone-snapshot-%(id)s' % akib",
"def _vAY(YKHO, akib):\n return 'cinder-clone-snapshot-%(id)s' % akib",
"def IzcX(NCls, sEAN):\n vn8R = NCls + sEAN['snapshot_suffix']\n return vn8R",
"def IzcX... | [
"0.81413215",
"0.7696375",
"0.76705474",
"0.7525648",
"0.7249958",
"0.7233614",
"0.67856824",
"0.6692273",
"0.66715366",
"0.6654476",
"0.66504955",
"0.6454762",
"0.64495856",
"0.64131385",
"0.6409042",
"0.6397362",
"0.6358647",
"0.6358647",
"0.6358647",
"0.6358647",
"0.635864... | 0.8677472 | 0 |
Removes an export for a logical volume. | def qlOm(YKHO, OaeV, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.83141536",
"0.82693523",
"0.82648456",
"0.82648456",
"0.82306707",
"0.8222493",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.81801444",
"0.8143536",
"0.81063044",
"0.8106198",
"0.80989194",
... | 0.8186046 | 15 |
If volume is a clone, return its parent info. Returns a tuple of (pool, parent, snap). A snapshot may optionally be provided for the case where a cloned volume has been flattened but it's snapshot still depends on the parent. | def f63O(YKHO, akib, FNha, vZa6=None):
try:
vZa6 and akib.set_snap(vZa6)
dBuj, _AKB, QC0e = tuple(akib.parent_info())
vZa6 and akib.set_snap(None)
if FNha.endswith('.deleted'):
FNha = FNha[:-len('.deleted')]
if QC0e == '%s.clone_snap' % FNha:
return (d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO):\n if YKHO.parent is None:\n return None\n return mRnW(YKHO.parent)",
"def _vAY(YKHO, akib):\n return 'cinder-clone-snapshot-%(id)s' % akib",
"def _vAY(akib):\n return 'cinder-clone-snapshot-%(id)s' % akib",
"def EsMw(YKHO):\n return YKHO._parent_snapshot_name",
"def Xz... | [
"0.6317819",
"0.61931187",
"0.61628264",
"0.6069218",
"0.6019955",
"0.600794",
"0.59088165",
"0.58533144",
"0.5838624",
"0.5831944",
"0.5831944",
"0.58173096",
"0.5706148",
"0.5648415",
"0.5591434",
"0.5519364",
"0.54875094",
"0.54868585",
"0.54865944",
"0.54848886",
"0.54848... | 0.8190253 | 0 |
Removes an export for a logical volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.83141536",
"0.82693523",
"0.82648456",
"0.82648456",
"0.82306707",
"0.8222493",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.8186046",
"0.81801444",
"0.8143536",
"0.81063044",
"0.8106198",
... | 0.80989194 | 35 |
Assigns the volume to a server. Assign any created volume to a compute node/host so that it can be used from that host. The driver returns a driver_volume_type of 'fibre_channel'. The target_wwn can be a single entry or a list of wwns that correspond to the list of remote wwn(s) that will export the volume. | def UlAc(YKHO, akib, SQvy):
YKHO.common.client_login()
try:
KcEq = YKHO._create_host(akib, SQvy)
b1TH = YKHO.common.create_vlun(akib, KcEq)
_gxM, bNn_ = YKHO._build_initiator_target_map(SQvy)
U34r = {'driver_volume_type': 'fibre_channel', 'data': {'target_lun': b1TH['lun'], 'targ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LPnz(gtI8, qIxc):\n gtI8.volumes.create_server_volume(rfwr(gtI8, qIxc.server).id, qIxc.volume, qIxc.device)",
"def xG0u(YKHO, N5z6, akib, myFQ):\n if not N5z6:\n raise TvYj('Attach a volume identified by the volume ID to the given server ID cannot be None')\n if not akib:\n raise TvYj(... | [
"0.5949177",
"0.5900054",
"0.55932313",
"0.55241317",
"0.55174994",
"0.5491359",
"0.5373236",
"0.52990705",
"0.52955866",
"0.5242846",
"0.5188693",
"0.51866025",
"0.5175142",
"0.51528746",
"0.5150084",
"0.51314664",
"0.5117999",
"0.50928843",
"0.5055366",
"0.5038553",
"0.5024... | 0.0 | -1 |
Removes an export for a logical volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.83172077",
"0.82719415",
"0.82670647",
"0.82670647",
"0.82337034",
"0.8225634",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8189194",
"0.8182499",
"0.8146781",
"0.8109475",
"0.8108221",
"0.8029555"... | 0.81021696 | 24 |
Removes an export for a logical volume. | def qlOm(YKHO, QpfX, akib):
FGMI = YKHO._get_luid(akib)
nYYa = YKHO._build_iscsi_target_name(akib)
NLa0 = 'tg-%s' % akib['name']
if YKHO._view_exists(FGMI):
YKHO._execute('/usr/sbin/stmfadm', 'remove-view', '-l', FGMI, '-a')
if YKHO._iscsi_target_exists(nYYa):
YKHO._execute('/usr/sbi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.83172077",
"0.82719415",
"0.82670647",
"0.82670647",
"0.82337034",
"0.8225634",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8222651",
"0.8189194",
"0.8182499",
"0.8146781",
"0.8109475",
"0.8108221",
"0.81021696... | 0.7629058 | 40 |
Removes an export for a logical volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.83141536",
"0.82693523",
"0.82648456",
"0.82648456",
"0.82306707",
"0.8222493",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.82195055",
"0.8186046",
"0.81801444",
"0.8143536",
"0.81063044",
"0.8106198",
... | 0.80989194 | 23 |
Remove an export for a logical volume. | def qlOm(YKHO, QpfX, akib):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlOm(YKHO, OaeV, akib):\n pass",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n raise NotImplementedError()",
"def qlOm(YKHO, QpfX, akib):\n return YKHO.xiv_ds8k_proxy.remove_export(QpfX, akib)",
"def qlOm(YKHO, QpfX, Z5cL):\n pass",
"def ql... | [
"0.8394415",
"0.83688486",
"0.83688486",
"0.83516294",
"0.8344593",
"0.8313148",
"0.8313148",
"0.8313148",
"0.8313148",
"0.8313148",
"0.8313148",
"0.8313148",
"0.8313148",
"0.8313148",
"0.82910043",
"0.8281244",
"0.8256107",
"0.82295763",
"0.81899476",
"0.81456125",
"0.811776... | 0.8188506 | 30 |
Generates random_string to use for CHAP password. | def YzjY(YKHO, u54L):
zZas = vIwR.ascii_uppercase + vIwR.digits
return ''.join(tuKI.sample(zZas, u54L)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))",
"def BSw2():\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(8)))",
"def Ywt8():\n return GLL2(tuKI.randint(8, 16), 1, 1, 1)",
"def ikbr(Emd4):\n ZSrM = vIwR.ascii_letters\n Yl... | [
"0.84321785",
"0.82549006",
"0.82056135",
"0.81809",
"0.79092777",
"0.790644",
"0.7896831",
"0.7892837",
"0.7891022",
"0.7876156",
"0.7859045",
"0.7853985",
"0.78022456",
"0.77960175",
"0.77673775",
"0.776054",
"0.7721926",
"0.7718189",
"0.7702884",
"0.77025235",
"0.76567453"... | 0.727755 | 61 |