Skip to content

Commit

Permalink
v2.2.1 Updates to JSON files used to patch StorageGroups since parame…
Browse files Browse the repository at this point in the history
…ter AccessCapabilities is now AccessCapability
  • Loading branch information
jskazinski committed Nov 16, 2021
1 parent ed2e26a commit 7f70ee9
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 40 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [2.2.1] - 2021-11-15
- Updates to JSON files used to patch StorageGroups since parameter AccessCapabilities is now AccessCapability

## [2.2.0] - 2021-10-28
- New `version` command to display the version of this tool
- Renamed example configuration `redfishAPI.json` file to `redfishAPI.cfg`
Expand Down Expand Up @@ -194,4 +197,4 @@
* **show sessions** - Display all active sessions, requires an active session
* **show storagegroups** - Display all created storage groups
* **show thermal** - Display all temperature data from the system
* **show volumes** - Display all configured volumes
* **show volumes** - Display all configured volumes
15 changes: 8 additions & 7 deletions json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## Introduction

This folder is used to store example JSON data files that can be used for various HTTP operations.
This folder is used to store example JSON data files that can be used for various HTTP operations. Most examples
must be updated to match your storage appliance.

* credentials.json - An example JSON file that can be used to create a session. MUST be modified.
* create_diskgroup.json - An example JSON file that can be used to create a disk group. MAY have to be modified.
Expand All @@ -12,15 +13,15 @@ This folder is used to store example JSON data files that can be used for variou

## Examples

* (redfish) http post /redfish/v1/SessionService/Sessions json\credentials.json
* (redfish) http post /redfish/v1/SessionService/Sessions json/credentials.json
* (redfish) save session <id> <key>

* (redfish) http post /redfish/v1/SessionService/Sessions { "UserName": "username", "Password": "password" }
* (redfish) save session <id> <key>

* (redfish) http post /redfish/v1/StorageServices/S1/StoragePools json\create_diskgroup.json
* (redfish) http post /redfish/v1/StorageServices/S1/Volumes json\create_volume.json
* (redfish) http post /redfish/v1/StorageServices/S1/StorageGroups/ json\create_storagegroup.json
* (redfish) http post /redfish/v1/Storage/controller_a/StoragePools json/create_diskgroup.json
* (redfish) http post /redfish/v1/Storage/controller_a/Volumes json/create_volume.json
* (redfish) http post /redfish/v1/Storage/controller_a/StorageGroups/ json/create_storagegroup.json

* (redfish) http patch /redfish/v1/StorageServices/S1/Volumes/00c0ff5112490000d08ccf5e01000000 json\patch_volume.json
* (redfish) http patch /redfish/v1/StorageServices/S1/Volumes/00c0ff5112490000d08ccf5e01000000 { "Name": "NewAVolume01" }
* (redfish) http patch /redfish/v1/Storage/controller_a/Volumes/00c0ff5112490000d08ccf5e01000000 json/patch_volume.json
* (redfish) http patch /redfish/v1/Storage/controller_a/Volumes/00c0ff5112490000d08ccf5e01000000 { "Name": "NewAVolume01" }
17 changes: 7 additions & 10 deletions json/create_storagegroup.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
{
"ServerEndpointGroups": [
{
"@odata.id": "/redfish/v1/StorageServices/S1/EndpointGroups/A0"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/A0"
},
{
"@odata.id": "/redfish/v1/StorageServices/S1/EndpointGroups/A1"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/A1"
},
{
"@odata.id": "/redfish/v1/StorageServices/S1/EndpointGroups/B0"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/B0"
},
{
"@odata.id": "/redfish/v1/StorageServices/S1/EndpointGroups/B1"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/B1"
}
],
"ClientEndpointGroups": [
{
"@odata.id": "/redfish/v1/StorageServices/S1/Endpoints/500605b00db9a070"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/500605b00db9a070"
}
],
"AccessCapabilities": [
"Read",
"Write"
],
"MappedVolumes": [
{
"AccessCapability": "ReadWrite",
"LogicalUnitNumber": "1",
"Volume": {
"@odata.id": "/redfish/v1/StorageServices/S1/Volumes/AVolume01"
"@odata.id": "/redfish/v1/Storage/controller_a/Volumes/AVolume01"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion json/create_volume.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"CapacityBytes": 100000000000,
"CapacitySources": [
{
"@odata.id": "/redfish/v1/StorageServices/S1/StoragePools/A"
"@odata.id": "/redfish/v1/Storage/controller_a/StoragePools/A"
}
]
}
4 changes: 1 addition & 3 deletions json/patch_sg_access_readonly_1.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"AccessCapabilities": [
"Read"
],
"MappedVolumes": [
{
"AccessCapability": "Read",
"LogicalUnitNumber": "1"
}
]
Expand Down
6 changes: 2 additions & 4 deletions json/patch_sg_access_readonly_2.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"AccessCapabilities": [
"Read"
],
"ClientEndpointGroups": [
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/500605b00db9a070"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/500605b00db9a070"
}
],
"MappedVolumes": [
{
"AccessCapability": "Read",
"LogicalUnitNumber": "1"
}
]
Expand Down
7 changes: 2 additions & 5 deletions json/patch_sg_access_readwrite.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"AccessCapabilities": [
"Read",
"Write"
],
"ClientEndpointGroups": [
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/500605b00db9a070"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/500605b00db9a070"
}
],
"MappedVolumes": [
{
"AccessCapability": "ReadWrite",
"LogicalUnitNumber": "1"
}
]
Expand Down
2 changes: 1 addition & 1 deletion json/patch_sg_lun_1b.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ClientEndpointGroups": [
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/500605b00db9a070"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/500605b00db9a070"
}
],
"MappedVolumes": [
Expand Down
2 changes: 1 addition & 1 deletion json/patch_sg_lun_2b.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ClientEndpointGroups": [
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/500605b00db9a070"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/500605b00db9a070"
}
],
"MappedVolumes": [
Expand Down
4 changes: 2 additions & 2 deletions json/patch_sg_ports_A0-B0.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"ServerEndpointGroups": [
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/A0"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/A0"
},
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/B0"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/B0"
}
],
"MappedVolumes": [
Expand Down
8 changes: 4 additions & 4 deletions json/patch_sg_ports_all.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"ServerEndpointGroups": [
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/A0"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/A0"
},
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/B0"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/B0"
},
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/A1"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/A1"
},
{
"@odata.id": "/redfish/v1/Systems/DHSIFTJ-1852437ED5/Storage/controller_a/EndpointGroups/B1"
"@odata.id": "/redfish/v1/Storage/controller_a/EndpointGroups/B1"
}
],
"MappedVolumes": [
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# ******************************************************************************************
#

__version__ = '2.2.0'
__version__ = '2.2.1'

0 comments on commit 7f70ee9

Please sign in to comment.