Biser Milanov | 0dbc8b6 | 2025-01-24 17:38:42 +0200 | [diff] [blame^] | 1 | From 5f5a8f7563e7ee1f6fc9d8b828a360d5c7c0c1b3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Biser Milanov <biser.milanov@storpool.com> |
| 3 | Date: Wed, 22 Jan 2025 11:45:05 +0200 |
| 4 | Subject: [PATCH] StorPool: Add the iSCSI configuration API |
| 5 | |
| 6 | Change-Id: Idfe59f024232c0ba1f4e41611c975eb5ce0d03bb |
| 7 | --- |
| 8 | os_brick/initiator/storpool_utils.py | 6 ++++++ |
| 9 | releasenotes/notes/notice-37378e268b52ed89.yaml | 9 +++++++++ |
| 10 | 2 files changed, 15 insertions(+) |
| 11 | create mode 100644 releasenotes/notes/notice-37378e268b52ed89.yaml |
| 12 | |
| 13 | diff --git a/os_brick/initiator/storpool_utils.py b/os_brick/initiator/storpool_utils.py |
| 14 | index eec4bd5..a492d39 100644 |
| 15 | --- a/os_brick/initiator/storpool_utils.py |
| 16 | +++ b/os_brick/initiator/storpool_utils.py |
| 17 | @@ -211,3 +211,9 @@ class StorPoolAPI: |
| 18 | def snapshot_delete(self, snapshot): |
| 19 | self._api_call( |
| 20 | 'POST', f'/ctrl/1.0/MultiCluster/SnapshotDelete/{snapshot}') |
| 21 | + |
| 22 | + def get_iscsi_config(self): |
| 23 | + return self._api_call('GET', '/ctrl/1.0/iSCSIConfig') |
| 24 | + |
| 25 | + def post_iscsi_config(self, data): |
| 26 | + return self._api_call('POST', '/ctrl/1.0/iSCSIConfig', data) |
| 27 | diff --git a/releasenotes/notes/notice-37378e268b52ed89.yaml b/releasenotes/notes/notice-37378e268b52ed89.yaml |
| 28 | new file mode 100644 |
| 29 | index 0000000..f5c4142 |
| 30 | --- /dev/null |
| 31 | +++ b/releasenotes/notes/notice-37378e268b52ed89.yaml |
| 32 | @@ -0,0 +1,9 @@ |
| 33 | +--- |
| 34 | +features: |
| 35 | + - | |
| 36 | + Extend the StorPool API client to support the StorPool iSCSI |
| 37 | + configuration API functionality. |
| 38 | +upgrade: |
| 39 | + - | |
| 40 | + Upgrading to this release is not required; it is an interim version |
| 41 | + affecting only the StorPool connector. |
| 42 | -- |
| 43 | 2.43.0 |
| 44 | |