-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Unable to create flexible postgres server via CLI in most recent version #27977
Comments
Thank you for opening this issue, we will look into it. |
This error also hit CLI 2.54. But I believe this is not a CLI issue but the backend API has returned invalid capabilities json structure; which result to the Python script loop to invalid condition statement here.
|
I just ran a test using |
just to confirm - |
|
Interesting all of yall had to jump back to 2.53 while just going to 2.54 worked for us. |
Interesting indeed, I confirm that |
Hi, I have a similar issue running this command:
Although running the show argument on the same resource responds fine: Using the older version, 2.53.1, as others suggested did work. Should I open a new issue? |
@Turniper the issue fixed in the latest version 2.56.0 |
Swapping all our pipelines back over to the latest version 2.56, after having one successful run. If they remain stable, will close this ticket. |
Closing as resolved, appears to have been fixed in the normal course of business. |
Describe the bug
With the latest version of the cli (2.55.0), the command:
az postgres flexible-server create
fails with an internal error rather than a message. The exact same command succeeds in azure-cli version 2.54.0, which we are currently using as a fallback.
Related command
Errors
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: list index out of range
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py", line 69, in flexible_server_create
pg_arguments_validator(db_context,
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/rdbms/validators.py", line 305, in pg_arguments_validator
list_location_capability_info = get_postgres_location_capability_info(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/rdbms/_flexible_server_location_capabilities_util.py", line 15, in get_postgres_location_capability_info
return _postgres_parse_list_capability(list_location_capability_result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/rdbms/_flexible_server_location_capabilities_util.py", line 79, in _postgres_parse_list_capability
tier_dict["supported_storageV2_size"] = int(storage_edition.supported_storage_mb[0].storage_size_mb // 1024)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Issue script & Debug output
See related command. If you need the full script I can provide it, but that's the relevant section that's failing.
Expected behavior
Either a successful creation of the flexible postgres server resource or a message about one or more of the parameters being invalid
Environment Summary
azure-cli 2.55.0-1~focal
Additional context
Only included the command itself and not the full script for anonymization reasons but can provide any more context you need.
The text was updated successfully, but these errors were encountered: