Closed hikhvar closed 2 years ago
Hi @hikhvar, thank you for opening this issue. We wanted to let you know that we are currently investigating this behavior and we'll get back to you with updates on the issue.
Hello,
I am not able to replicate this bug locally. See attachments:
Can you please (re)confirm that you are still facing this issue locally? I am asking this since there might have been some temporary issues with the API response on get requests, independently of the cli, which takes the response and prints it out.
Thank you, Ana
Still can produce it locally. I tried to call the API directly via curl. I get the same result there:
curl -s --request GET --user "$IONOS_USERNAME:$IONOS_PASSWORD" --url "https://api.ionos.com/cloudapi/v6/images?pretty=true&depth=3" | jq -r '.items[].properties.cloudInit' | sort | uniq -c
305 NONE
Every image has the property cloudInit
set to NONE. I heard the cloud init feature is a beta feature? I can start and provision VMs with cloud init. Maybe there is a bug with the API?
Yeah. It is different. It seems to be a bug with the API.
curl -s --request GET --user "$IONOS_USERNAME:$IONOS_PASSWORD" --url "https://api.ionos.com/cloudapi/v6/images?pretty=true&depth=3" | jq -r '.items[].properties.cloudInit' | sort | uniq -c
263 NONE
42 V1
This should go/be reported to Provisioning Platform team or VDC team. CC: @omungureanu
Hello,
Just a note: with the latest version of ionosctl
v6 and v5, you can filter the result for the image list
command.
Example:
ionosctl image list --filters location=es/vit,cloudInit=V1,name=Debian-10-cloud-init.qcow2
Hello,
This was fixed from the VDC team. Can you please recheck and confirm if this is still an issue?
Thank you, Ana
This is fixed. Will close this. Thank you for resolving this!
Description
The output of
ionosctl image list
is inconsistent with the output ofionosctl image get
. I wanted to find images with cloud init enabled. All images returned byionosctl image list
returnNONE
for cloud init. However, the image with the idac995711-e319-11eb-a927-824af8c35c96
reports cloud initV1
when issuing aionosctl image get
.Example:
Expected behavior
ionosctl image list
andionosctl image get
report consistent data.Environment
Go Version:
Ionosctl version:
OS:
Shell:
Configuration Files
How to Reproduce
Error and Debug Output
Additional Notes
References