Skip to content

Commit 51c1513

Browse files
alaa-bishbhati-pradeep
authored andcommitted
ADD return
Delete vms in between tests to free up space fix fix fix Doc fixes
1 parent f32ace6 commit 51c1513

File tree

9 files changed

+1478
-4
lines changed

9 files changed

+1478
-4
lines changed

plugins/modules/ntnx_ndb_clones_info.py

+241
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,247 @@
5858
5959
"""
6060
RETURN = r"""
61+
response:
62+
description: response for listing all clones
63+
returned: always
64+
type: list
65+
sample:
66+
[
67+
{
68+
"accessLevel": null,
69+
"category": "DB_GROUP_IMPLICIT",
70+
"clone": true,
71+
"clustered": false,
72+
"databaseClusterType": null,
73+
"databaseGroupStateInfo": null,
74+
"databaseName": "root",
75+
"databaseNodes": [
76+
{
77+
"accessLevel": null,
78+
"databaseId": "3bf23402-67f0-yd87-967d-3a80b1d336f9",
79+
"databaseStatus": "READY",
80+
"dateCreated": "2022-10-17 17:10:46",
81+
"dateModified": "2022-10-17 17:10:46",
82+
"dbserver": null,
83+
"dbserverId": "eafakzef-5e63-4e93-bfa5-bb79967e3f3c",
84+
"description": "",
85+
"id": "e45a4eb7-c32a-4895-a32d-8450fe0b6be3",
86+
"info": {
87+
"info": null,
88+
"secureInfo": null
89+
},
90+
"metadata": null,
91+
"name": "PRAD_POSTGRESS_2022_Oct_17_22_35_49",
92+
"ownerId": "eac70dbf-22fb-462b-9498-965796ca1f73",
93+
"primary": false,
94+
"properties": [],
95+
"protectionDomain": null,
96+
"protectionDomainId": "3e62f008-7739-47a5-b26c-fd6971a110d8",
97+
"softwareInstallationId": "2ac645c8-988b-4cbf-9dc6-b37d19b4464f",
98+
"status": "READY",
99+
"tags": []
100+
}
101+
],
102+
"databaseStatus": "UNKNOWN",
103+
"databases": null,
104+
"dateCreated": "2022-10-17 17:06:12",
105+
"dateModified": "2022-10-19 11:07:11",
106+
"dbserverLogicalClusterId": null,
107+
"dbserverlogicalCluster": null,
108+
"description": "",
109+
"eraCreated": true,
110+
"groupInfo": null,
111+
"id": "3bfe2902-67f0-4d87-967d-3a80b1d361f9",
112+
"info": null,
113+
"internal": false,
114+
"lcmConfig": null,
115+
"linkedDatabases": [
116+
{
117+
"databaseName": "postgres",
118+
"databaseStatus": "READY",
119+
"dateCreated": "2022-10-17 17:10:00",
120+
"dateModified": "2022-10-17 17:10:00",
121+
"description": null,
122+
"id": "255e2610-d78a-42f5-8878-80ca01048651",
123+
"info": {
124+
"info": {
125+
"created_by": "system"
126+
},
127+
"secureInfo": null
128+
},
129+
"metadata": null,
130+
"metric": null,
131+
"name": "postgres",
132+
"ownerId": "eac70dbf-22fb-462b-9218-949796ca1f73",
133+
"parentDatabaseId": "3bfe2902-74f0-4d87-967d-3a80b1d336f9",
134+
"parentLinkedDatabaseId": "7453a712-c770-456a-b217-0a1c74bf0a50",
135+
"snapshotId": null,
136+
"status": "READY",
137+
"timeZone": null
138+
},
139+
{
140+
"databaseName": "root",
141+
"databaseStatus": "READY",
142+
"dateCreated": "2022-10-17 17:10:00",
143+
"dateModified": "2022-10-17 17:10:00",
144+
"description": null,
145+
"id": "b93c2c70-fc6b-4148-8871-9c2912cea041",
146+
"info": {
147+
"info": {
148+
"created_by": "user"
149+
},
150+
"secureInfo": null
151+
},
152+
"metadata": null,
153+
"metric": null,
154+
"name": "root",
155+
"ownerId": "eac70dbf-22fb-462b-9148-949796ca1f73",
156+
"parentDatabaseId": "3bfe2907-47f0-4d87-967d-3a80b1d336f9",
157+
"parentLinkedDatabaseId": "4195a159-0186-4741-8076-bd815269753f",
158+
"snapshotId": null,
159+
"status": "READY",
160+
"timeZone": null
161+
},
162+
{
163+
"databaseName": "template1",
164+
"databaseStatus": "READY",
165+
"dateCreated": "2022-10-17 17:10:00",
166+
"dateModified": "2022-10-17 17:10:00",
167+
"description": null,
168+
"id": "50b6fd43-c5ee-4e85-b1f3-241ce3b16377",
169+
"info": {
170+
"info": {
171+
"created_by": "system"
172+
},
173+
"secureInfo": null
174+
},
175+
"metadata": null,
176+
"metric": null,
177+
"name": "template1",
178+
"ownerId": "eac70dbf-22fb-462b-9498-949796ca1f73",
179+
"parentDatabaseId": "3bfe2902-78f0-4d87-967d-3a80b1d336f9",
180+
"parentLinkedDatabaseId": "4115126e-2913-48a2-b7a6-0a94fbefe16b",
181+
"snapshotId": null,
182+
"status": "READY",
183+
"timeZone": null
184+
},
185+
{
186+
"databaseName": "template0",
187+
"databaseStatus": "READY",
188+
"dateCreated": "2022-10-17 17:10:00",
189+
"dateModified": "2022-10-17 17:10:00",
190+
"description": null,
191+
"id": "eb3b9d14-91bb-4735-9479-2366a45b592b",
192+
"info": {
193+
"info": {
194+
"created_by": "system"
195+
},
196+
"secureInfo": null
197+
},
198+
"metadata": null,
199+
"metric": null,
200+
"name": "template0",
201+
"ownerId": "eac70dbf-22fb-462b-9298-949796ca1f73",
202+
"parentDatabaseId": "3bfe2902-67f0-4d87-9682d-3a80b1d336f9",
203+
"parentLinkedDatabaseId": "56e97fff-4ae2-12d9-9c89-3fe50b3903d3",
204+
"snapshotId": null,
205+
"status": "READY",
206+
"timeZone": null
207+
}
208+
],
209+
"metadata": {
210+
"baseSizeComputed": true,
211+
"capabilityResetTime": null,
212+
"createdDbservers": null,
213+
"deregisterInfo": null,
214+
"deregisteredWithDeleteTimeMachine": false,
215+
"info": null,
216+
"lastLogCatchUpForRestoreOperationId": null,
217+
"lastRefreshTimestamp": "2022-10-17 13:17:48",
218+
"lastRequestedRefreshTimestamp": null,
219+
"logCatchUpForRestoreDispatched": false,
220+
"originalDatabaseName": null,
221+
"pitrBased": false,
222+
"provisionOperationId": null,
223+
"refreshBlockerInfo": null,
224+
"registeredDbservers": null,
225+
"sanitised": false,
226+
"secureInfo": null,
227+
"sourceSnapshotId": "7657037a-c39d-dsada-99cd-d90217b40a9d",
228+
"stateBeforeRefresh": null,
229+
"stateBeforeRestore": null,
230+
"stateBeforeScaling": null,
231+
"tmActivateOperationId": null
232+
},
233+
"metric": null,
234+
"name": "PRAD_POSTGRESS_2022_Oct_17_22_35_49",
235+
"ownerId": "eac70dbf-22fb-462b-9498-9497dasca1f73",
236+
"parentDatabaseId": null,
237+
"parentSourceDatabaseId": null,
238+
"parentTimeMachine": null,
239+
"parentTimeMachineId": "b051e542-1b96-40ba-dsef-52e9feb77003",
240+
"placeholder": false,
241+
"properties": [
242+
{
243+
"description": null,
244+
"name": "version",
245+
"ref_id": "3bfe2902-67f0-4d87-967d-3asdb1d336f9",
246+
"secure": false,
247+
"value": "10.4"
248+
},
249+
{
250+
"description": null,
251+
"name": "vm_ip",
252+
"ref_id": "3bfe2902-67f0-4d87-967d-3asdb1d336f9",
253+
"secure": false,
254+
"value": "000.000.000.000"
255+
},
256+
{
257+
"description": null,
258+
"name": "postgres_software_home",
259+
"ref_id": "3bfe2902-67f0-4d87-967d-3asdb1d336f9",
260+
"secure": false,
261+
"value": "%2Fusr%2Fpgsql-10.4"
262+
},
263+
{
264+
"description": null,
265+
"name": "listener_port",
266+
"ref_id": "3sde2902-67f0-4d87-967d-3a80b1d336f9",
267+
"secure": false,
268+
"value": "5432"
269+
},
270+
{
271+
"description": null,
272+
"name": "db_parameter_profile_id",
273+
"ref_id": "3sae2902-67f0-4d87-967d-3a80b1d336f9",
274+
"secure": false,
275+
"value": "a8auc1fb-8787-4442-8f38-eeb2417a8cbb"
276+
},
277+
{
278+
"description": null,
279+
"name": "BASE_SIZE",
280+
"ref_id": "3gfe2902-67f0-4d87-967d-3a80b1d336f9",
281+
"secure": false,
282+
"value": "{\"clusterStorage\":
283+
{\"d7881b99-5a9d-4da7-8e7d-c938499214de\":
284+
{\"41f39cb1-a5fd-4bc8-bb78-d3fe81a76539\":
285+
{\"size\": 26416896, \"allocatedSize\": 0, \"usedSize\": 0, \"unit\": \"B\"},
286+
\"dcd08c14-20dd-4b27-893c-c65a4c2e1d3b\":
287+
{\"size\": 23134208, \"allocatedSize\": 0,
288+
\"usedSize\": 0, \"unit\": \"B\"}, \"7c695994-a1ff-459c-9174-c93f75b470a4\":
289+
{\"size\": 9189376, \"allocatedSize\": 0, \"usedSize\": 0, \"unit\": \"B\"},
290+
\"c35e56bd-f1b8-4349-b9aa-a86273c473c3\": {\"size\": 5496832, \"allocatedSize\": 0, \"usedSize\": 0, \"unit\": \"B\"}}}}"
291+
}
292+
],
293+
"status": "READY",
294+
"tags": [],
295+
"timeMachine": null,
296+
"timeMachineId": "f5gf5d90-835c-4d37-a922-3a936aaa21da",
297+
"timeZone": "UTC",
298+
"type": "postgres_database"
299+
}
300+
]
301+
61302
"""
62303

63304
from ..module_utils.ndb.base_info_module import NdbBaseInfoModule # noqa: E402

plugins/modules/ntnx_ndb_clusters_info.py

+102
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,108 @@
5959
6060
"""
6161
RETURN = r"""
62+
response:
63+
description: listing all clusters
64+
returned: always
65+
type: list
66+
sample: [
67+
{
68+
"cloudInfo": null,
69+
"cloudType": "NTNX",
70+
"dateCreated": "2022-09-30 11:09:58.232685",
71+
"dateModified": "2022-10-08 05:20:02.513367",
72+
"description": "",
73+
"entityCounts": null,
74+
"fqdns": null,
75+
"healthy": true,
76+
"hypervisorType": "AHV",
77+
"hypervisorVersion": "6.1",
78+
"id": "d7844b99-5a9d-4da7-8e7d-c938499214de",
79+
"ipAddresses": [
80+
"000.000.000.000"
81+
],
82+
"managementServerInfo": null,
83+
"name": "EraCluster",
84+
"nxClusterUUID": "4705e777-bfc7-11e4-3507-ac1f6b60292f",
85+
"ownerId": "eac70dbf-42fb-468b-9498-949796ca1f73",
86+
"password": null,
87+
"properties": [
88+
{
89+
"description": null,
90+
"name": "CLUSTER_ID",
91+
"ref_id": null,
92+
"secure": false,
93+
"value": "0005e777-bf47-11e4-3507-ac1f6b60292f::3821212059792582959"
94+
},
95+
{
96+
"description": null,
97+
"name": "CLUSTER_INCARNATION_ID",
98+
"ref_id": null,
99+
"secure": false,
100+
"value": "1661876478172260"
101+
},
102+
{
103+
"description": null,
104+
"name": "ERA_STORAGE_CONTAINER",
105+
"ref_id": null,
106+
"secure": false,
107+
"value": "default-container-75707403530678"
108+
},
109+
{
110+
"description": null,
111+
"name": "MODEL_NAME",
112+
"ref_id": null,
113+
"secure": false,
114+
"value": "NX-1065-G5"
115+
},
116+
{
117+
"description": null,
118+
"name": "ONDEMAND_REPLICATION_SUPPORTED",
119+
"ref_id": null,
120+
"secure": false,
121+
"value": "true"
122+
},
123+
{
124+
"description": null,
125+
"name": "PRISM_VM_LIST_PAGINATION_LIMIT",
126+
"ref_id": null,
127+
"secure": false,
128+
"value": "500"
129+
},
130+
{
131+
"description": null,
132+
"name": "PRISM_VM_LIST_PAGINATION_SIZE",
133+
"ref_id": null,
134+
"secure": false,
135+
"value": "50"
136+
},
137+
{
138+
"description": null,
139+
"name": "RESOURCE_CONFIG",
140+
"ref_id": null,
141+
"secure": false,
142+
"value": "{\"storageThresholdPercentage\":95.0,\"memoryThresholdPercentage\":95.0}"
143+
},
144+
{
145+
"description": null,
146+
"name": "TIMEZONE",
147+
"ref_id": null,
148+
"secure": false,
149+
"value": "UTC"
150+
}
151+
],
152+
"referenceCount": 0,
153+
"resourceConfig": {
154+
"memoryThresholdPercentage": 95.0,
155+
"storageThresholdPercentage": 95.0
156+
},
157+
"status": "UP",
158+
"uniqueName": "ERACLUSTER",
159+
"username": null,
160+
"version": "v2"
161+
}
162+
]
163+
62164
"""
63165

64166
from ..module_utils.ndb.base_info_module import NdbBaseInfoModule # noqa: E402

0 commit comments

Comments
 (0)