Revision dc28c4e4
b/doc/design-2.2.rst | ||
---|---|---|
303 | 303 |
instance specification and for the public part of an encryption key |
304 | 304 |
|
305 | 305 |
- Instance information can already be retrieved using an existing API |
306 |
(``OpQueryInstanceData``).
|
|
306 |
(``OpInstanceQueryData``).
|
|
307 | 307 |
- An RSA encryption key and a corresponding self-signed X509 |
308 | 308 |
certificate is generated using the "openssl" command. This key will |
309 | 309 |
be used to encrypt the data sent to the destination cluster. |
b/lib/client/gnt_instance.py | ||
---|---|---|
1142 | 1142 |
return 1 |
1143 | 1143 |
|
1144 | 1144 |
retcode = 0 |
1145 |
op = opcodes.OpQueryInstanceData(instances=args, static=opts.static)
|
|
1145 |
op = opcodes.OpInstanceQueryData(instances=args, static=opts.static)
|
|
1146 | 1146 |
result = SubmitOpCode(op, opts=opts) |
1147 | 1147 |
if not result: |
1148 | 1148 |
ToStdout("No instances.") |
b/lib/cmdlib.py | ||
---|---|---|
872 | 872 |
"""Build a list of nic information tuples. |
873 | 873 |
|
874 | 874 |
This list is suitable to be passed to _BuildInstanceHookEnv or as a return |
875 |
value in LUQueryInstanceData.
|
|
875 |
value in LUInstanceQueryData.
|
|
876 | 876 |
|
877 | 877 |
@type lu: L{LogicalUnit} |
878 | 878 |
@param lu: the logical unit on whose behalf we execute |
... | ... | |
8685 | 8685 |
" sync mode was requested.") |
8686 | 8686 |
|
8687 | 8687 |
|
8688 |
class LUQueryInstanceData(NoHooksLU):
|
|
8688 |
class LUInstanceQueryData(NoHooksLU):
|
|
8689 | 8689 |
"""Query runtime instance data. |
8690 | 8690 |
|
8691 | 8691 |
""" |
b/lib/opcodes.py | ||
---|---|---|
973 | 973 |
] |
974 | 974 |
|
975 | 975 |
|
976 |
class OpQueryInstanceData(OpCode):
|
|
976 |
class OpInstanceQueryData(OpCode):
|
|
977 | 977 |
"""Compute the run-time status of instances.""" |
978 | 978 |
OP_ID = "OP_INSTANCE_QUERY_DATA" |
979 | 979 |
OP_PARAMS = [ |
b/lib/rapi/rlib2.py | ||
---|---|---|
950 | 950 |
instance_name = self.items[0] |
951 | 951 |
static = bool(self._checkIntVariable("static", default=0)) |
952 | 952 |
|
953 |
op = opcodes.OpQueryInstanceData(instances=[instance_name],
|
|
953 |
op = opcodes.OpInstanceQueryData(instances=[instance_name],
|
|
954 | 954 |
static=static) |
955 | 955 |
return baserlib.SubmitJob([op]) |
956 | 956 |
|
Also available in: Unified diff