Open shri-astro opened 7 months ago
Also for the description field or anyfield where the value is "", the error message is issued saying the key isn't found.
shrividyahegde@Hegde ~ % astro deployment inspect --deployment-name 1 -k configuration.description
Error: requested key configuration.description not found in deployment
I think in the first one you have to do:
astro deployment inspect --deployment-name 1 -k worker_queues[0].name
and for the second it will produce that error if the field is blank
On the latest version, for the worker queue inspect issue the following commands were tried and the error message was seen
shrividyahegde@Hegde ~ % astro deployment inspect --deployment-name nest
deployment:
configuration:
name: nest
description: ""
runtime_version: 11.4.0
dag_deploy_enabled: true
ci_cd_enforcement: false
scheduler_size: SMALL
is_high_availability: false
is_development_mode: false
executor: CELERY
scheduler_count: 1
workspace_name: Test ws
deployment_type: STANDARD
cloud_provider: AWS
region: us-east-1
default_task_pod_cpu: "0.25"
default_task_pod_memory: 0.5Gi
resource_quota_cpu: "10"
resource_quota_memory: 20Gi
workload_identity: ""
worker_queues:
- name: default
max_worker_count: 10
min_worker_count: 0
worker_concurrency: 5
worker_type: A5
- name: something
max_worker_count: 10
min_worker_count: 0
worker_concurrency: 5
worker_type: A5
metadata:
deployment_id: clwszytzq00u201mtqoe05vn7
workspace_id: cltmwnl4902of01ji1p7b8bji
cluster_id: N/A
release_name: N/A
airflow_version: 2.9.1
current_tag: 11.4.0
status: HEALTHY
created_at: 2024-05-30T08:32:25.68Z
updated_at: 2024-05-30T08:41:27.882Z
deployment_url: cloud.astronomer-dev.io/cltmwnl4902of01ji1p7b8bji/deployments/clwszytzq00u201mtqoe05vn7/overview
webserver_url: cltmwmi0202no01jiijl6bn6q.astronomer-dev.run/doe05vn7?orgId=org_Mn8ZCdWsv9wyexSl
airflow_api_url: cltmwmi0202no01jiijl6bn6q.astronomer-dev.run/doe05vn7/api/v1
alert_emails:
- shrividya.hegde@astronomer.io
shrividyahegde@Hegde ~ % astro deployment inspect --deployment-name nest -k worker_queues[1].name
zsh: no matches found: worker_queues[1].name
shrividyahegde@Hegde ~ % astro deployment inspect --deployment-name nest -k deployment.worker_queues[1].name
zsh: no matches found: deployment.worker_queues[1].name
Hey @shri-astro Try enclosing your key expression into single quotes '', currently zsh tries to interpret it.
The following command history indicates that on passing worker_queues.name to inspect the worker_queue name, the panic error is issued whereas for configuration and metadata sections the output seems to be as expected. This issue is seen in the latest version of CLI 1.24.1
What CLI Version did you experience this bug? 1.24.1
This CLI bug is related to which Astronomer Platform? Astro