-
Notifications
You must be signed in to change notification settings - Fork 1.5k
pscloud: Release stable version 1.0.0 with CLI improvements #9488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2416285
52e36c7
eb168dc
933c624
aba11ba
bf0f502
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,10 @@ | |
| Release History | ||
| =============== | ||
|
|
||
| 1.0.0 | ||
| +++++ | ||
| * Stable release. | ||
|
|
||
| 1.0.0b1 | ||
| ++++++ | ||
| * Initial release. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,6 @@ | |
|
|
||
| @register_command( | ||
| "pscloud show", | ||
| is_preview=True, | ||
| ) | ||
| class Show(AAZCommand): | ||
| """Get a reservation | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,4 +16,3 @@ | |
| from ._list import * | ||
| from ._show import * | ||
| from ._update import * | ||
| from ._wait import * | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,13 +13,12 @@ | |||||
|
|
||||||
| @register_command( | ||||||
| "pscloud pool create", | ||||||
| is_preview=True, | ||||||
| ) | ||||||
| class Create(AAZCommand): | ||||||
| """Create a storage pool | ||||||
|
|
||||||
| :example: StoragePools_Create | ||||||
| az pscloud pool create --resource-group rgpurestorage --storage-pool-name storagePoolname --availability-zone vknyl --vnet-injection "{subnet-id:tnlctolrxdvnkjiphlrdxq,vnet-id:zbumtytyqwewjcyckwqchiypshv}" --provisioned-bandwidth 17 --reservation-id xiowoxnbtcotutcmmrofvgdi --type None --user-assigned-identities "{key4211:{}}" --tags "{key7593:vsyiygyurvwlfaezpuqu}" --location lonlc | ||||||
| az pscloud pool create --resource-group rgpurestorage --storage-pool-name storagePoolname --zone 1 --subnet-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} --vnet-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName} --provisioned-bandwidth 100 --reservation-id /subscriptions/{subscriptionId}/providers/PureStorage.Block/reservations/{reservationName} --location eastus | ||||||
|
||||||
| az pscloud pool create --resource-group rgpurestorage --storage-pool-name storagePoolname --zone 1 --subnet-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} --vnet-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName} --provisioned-bandwidth 100 --reservation-id /subscriptions/{subscriptionId}/providers/PureStorage.Block/reservations/{reservationName} --location eastus | |
| az pscloud pool create --resource-group rgpurestorage --name storagePoolname --zone 1 --subnet-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} --vnet-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName} --provisioned-bandwidth 100 --reservation-id /subscriptions/{subscriptionId}/providers/PureStorage.Block/reservations/{reservationName} --location eastus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No changes made in create, changes regarding storage pool name have only been made in get-avs-status and get-health status.
Copilot
AI
Dec 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter option names are misleading and inconsistent with the help text and actual values expected. The parameter options are named --subnet-name and --vnet-name, but the help text describes them as accepting "Azure resource ID" values, and the internal variable names are subnet_id and vnet_id.
The documentation in lines 90-91 and 102-103 of README.md also shows conflicting information - they suggest these should be simple names like "mySubnet" and "myVnet", but line 11 and 19 mention --subnet-id and --vnet-id, and the help text says these should be full Azure resource IDs.
Either:
- Change the option names to
--subnet-idand--vnet-idto match the help text and internal variable names, OR - Change the help text and documentation to clarify these are names (not IDs) and update the internal variable names accordingly
Based on the PR description mentioning "Network parameter simplification: Use --subnet-name and --vnet-name instead of complex JSON objects", it appears the intention is to use names, but the help text needs to be corrected.
Copilot
AI
Dec 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second parameter "." in the vnetInjection set_prop call is likely incorrect. Following the pattern used elsewhere in the codebase (e.g., line 228 for "properties", and similar patterns in other files), when setting an object type that is composed of multiple sub-fields rather than mapping to a single argument, the second parameter should be omitted entirely.
The vnetInjection object is built from subnet_id and vnet_id fields (lines 240-241), so this should probably be:
properties.set_prop("vnetInjection", AAZObjectType, typ_kwargs={"flags": {"required": True}})
Using "." as the second parameter would attempt to use the entire args context as the value, which doesn't make sense given that the actual values are set on lines 240-241.
| properties.set_prop("vnetInjection", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) | |
| properties.set_prop("vnetInjection", AAZObjectType, typ_kwargs={"flags": {"required": True}}) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,7 +13,6 @@ | |||||
|
|
||||||
| @register_command( | ||||||
| "pscloud pool get-avs-status", | ||||||
| is_preview=True, | ||||||
| ) | ||||||
| class GetAvsStatus(AAZCommand): | ||||||
| """Returns the status of the storage pool connection to AVS | ||||||
|
|
@@ -49,7 +48,7 @@ def _build_arguments_schema(cls, *args, **kwargs): | |||||
| required=True, | ||||||
| ) | ||||||
| _args_schema.storage_pool_name = AAZStrArg( | ||||||
| options=["--storage-pool-name"], | ||||||
| options=["-n", "--name"], | ||||||
|
||||||
| options=["-n", "--name"], | |
| options=["-n", "--name", "--storage-pool-name"], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,7 +13,6 @@ | |||||
|
|
||||||
| @register_command( | ||||||
| "pscloud pool get-health-status", | ||||||
| is_preview=True, | ||||||
| ) | ||||||
| class GetHealthStatus(AAZCommand): | ||||||
| """Retrieve health metrics of a storage pool | ||||||
|
|
@@ -49,7 +48,7 @@ def _build_arguments_schema(cls, *args, **kwargs): | |||||
| required=True, | ||||||
| ) | ||||||
| _args_schema.storage_pool_name = AAZStrArg( | ||||||
| options=["--storage-pool-name"], | ||||||
| options=["-n", "--name"], | ||||||
|
||||||
| options=["-n", "--name"], | |
| options=["-n", "--name", "--storage-pool-name"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example uses the old parameter name
--storage-pool-nameinstead of the standardized--nameparameter. For consistency with the PR's goal of parameter standardization and the documented improvements on lines 12 and 154, this should be changed to use--nameor-n.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No changes made in create, changes regarding storage pool name have only been made in get-avs-status and get-health status.