Last active
May 29, 2019 13:32
-
-
Save ybizeul/92598f4adcd934723c7cc45a201161ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@trident trident-installer]# ./tridentctl -n trident version | |
+----------------+----------------+ | |
| SERVER VERSION | CLIENT VERSION | | |
+----------------+----------------+ | |
| 19.04.0 | 19.04.0 | | |
+----------------+----------------+ | |
[root@trident trident-installer]# ./tridentctl get backend -d -n trident | |
Operating mode = tunnel, Trident pod = trident-7cb957fd7-nntwh, Namespace = trident, CLI = kubectl | |
Invoking tunneled command: kubectl exec trident-7cb957fd7-nntwh -n trident -c trident-main -- tridentctl -s 127.0.0.1:8000 --debug get backend | |
Operating mode = direct, Server = 127.0.0.1:8000 | |
Trident URL: http://127.0.0.1:8000/trident/v1 | |
-------------------------------------------------------------------------------- | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/trident/v1/backend | |
Request headers: map[Content-Type:[application/json]] | |
Request body: | |
................................................................................ | |
Response status: 200 OK | |
Response headers: map[Content-Type:[application/json; charset=UTF-8] Date:[Wed, 29 May 2019 12:32:36 GMT] Content-Length:[45]] | |
Response body: {"backends":["ontap-economy","cluster1",""]} | |
================================================================================ | |
-------------------------------------------------------------------------------- | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/trident/v1/backend/ontap-economy | |
Request headers: map[Content-Type:[application/json]] | |
Request body: | |
................................................................................ | |
Response status: 200 OK | |
Response headers: map[Content-Type:[application/json; charset=UTF-8] Date:[Wed, 29 May 2019 12:32:36 GMT] Content-Length:[1156]] | |
Response body: {"backend":{"name":"ontap-economy","protocol":"file","config":{"version":1,"storageDriverName":"ontap-nas-economy","backendName":"ontap-economy","debug":false,"debugTraceFlags":null,"disableDelete":false,"storagePrefix":{},"serialNumbers":null,"limitVolumeSize":"","managementLIF":"10.1.1.200","dataLIF":"10.1.1.200","igroupName":"","svm":"trident-qtree","username":"","password":"","aggregate":"","usageHeartbeat":"","qtreePruneFlexvolsPeriod":"","qtreeQuotaResizePeriod":"","nfsMountOptions":"","limitAggregateUsage":"","defaults":{"spaceReserve":"none","snapshotPolicy":"none","snapshotReserve":"","snapshotDir":"false","unixPermissions":"---rwxrwxrwx","exportPolicy":"default","securityStyle":"unix","splitOnClone":"false","fileSystemType":"ext4","encryption":"false","size":"1G"}},"storage":{"aggr1":{"name":"aggr1","storageClasses":["cluster1-economy"],"storageAttributes":{"backendType":{"offer":["ontap-nas-economy"]},"clones":{"offer":false},"encryption":{"offer":true},"media":{"offer":["hdd"]},"provisioningType":{"offer":["thick","thin"]},"snapshots":{"offer":false}}}},"state":"online","online":true,"volumes":["default-test-economy-2f20e"]}} | |
================================================================================ | |
-------------------------------------------------------------------------------- | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/trident/v1/backend/cluster1 | |
Request headers: map[Content-Type:[application/json]] | |
Request body: | |
................................................................................ | |
Response status: 200 OK | |
Response headers: map[Content-Type:[application/json; charset=UTF-8] Date:[Wed, 29 May 2019 12:32:36 GMT] Content-Length:[1217]] | |
Response body: {"backend":{"name":"cluster1","protocol":"file","config":{"version":1,"storageDriverName":"ontap-nas","backendName":"cluster1","debug":false,"debugTraceFlags":null,"disableDelete":false,"storagePrefix":"rancher","serialNumbers":["4082368-51-1"],"limitVolumeSize":"","managementLIF":"cluster1.lab.tynsoe.org","dataLIF":"10.1.1.100","igroupName":"","svm":"docker","username":"","password":"","aggregate":"","usageHeartbeat":"","qtreePruneFlexvolsPeriod":"","qtreeQuotaResizePeriod":"","nfsMountOptions":"","limitAggregateUsage":"","defaults":{"spaceReserve":"none","snapshotPolicy":"8daily","snapshotReserve":"","snapshotDir":"false","unixPermissions":"---rwxrwxrwx","exportPolicy":"default","securityStyle":"unix","splitOnClone":"false","fileSystemType":"ext4","encryption":"false","size":"1G"}},"storage":{"aggr1":{"name":"aggr1","storageClasses":[],"storageAttributes":{"backendType":{"offer":["ontap-nas"]},"clones":{"offer":true},"encryption":{"offer":true},"media":{"offer":["hdd"]},"provisioningType":{"offer":["thick","thin"]},"snapshots":{"offer":true}}}},"state":"","online":true,"volumes":["monitoring-graphite-storage-graphite-0-ac97c","monitoring-influxdb-lib-7a5df","monitoring-graphite-storage-46860"]}} | |
================================================================================ | |
-------------------------------------------------------------------------------- | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/trident/v1/backend/ | |
Request headers: map[Content-Type:[application/json]] | |
Request body: | |
................................................................................ | |
Response status: 200 OK | |
Response headers: map[Content-Type:[application/json; charset=UTF-8] Date:[Wed, 29 May 2019 12:32:36 GMT] Content-Length:[45]] | |
Response body: {"backends":["cluster1","","ontap-economy"]} | |
================================================================================ | |
+---------------+-------------------+---------+---------+ | |
| NAME | STORAGE DRIVER | STATE | VOLUMES | | |
+---------------+-------------------+---------+---------+ | |
| ontap-economy | ontap-nas-economy | online | 1 | | |
| cluster1 | ontap-nas | unknown | 3 | | |
+---------------+-------------------+---------+---------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment