Skip to content
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

MGC version 29 does not list machine types. #1228

Open
JN513 opened this issue Nov 1, 2024 · 3 comments
Open

MGC version 29 does not list machine types. #1228

JN513 opened this issue Nov 1, 2024 · 3 comments

Comments

@JN513
Copy link

JN513 commented Nov 1, 2024

MGC does not list machine types in version 29; it works correctly in version 28.

screenshot-2024-11-01-00:55:23

@rodcoffani
Copy link

Here seems to be working fine, any tips on how to reproduce this behaviour?

image

@fczuardi
Copy link
Collaborator

fczuardi commented Nov 1, 2024

I experienced this empty list at some machines during the hackathon UFSCar as well

@luizcavalcanti
Copy link
Collaborator

Can confirm something odd on this in main code (f461922):

🦑 ./mgc vm machine-types list -o table
WARN	magalu.cloud/cli/cmd	result validation failed	
{"error": "Error at \"/machine_types/0\": doesn't match any schema from \"anyOf\"
Schema:
  {
    \"anyOf\": [
      {
        \"$ref\": \"#/components/schemas/InstanceTypesV1PortalResponse\"
      },
      {
        \"$ref\": \"#/components/schemas/InstanceTypesV1Response\"
      }
    ]
  }

Value:
  {
    \"availability_zones\": [
      \"br-se1-a\"
    ],
    \"disk\": 20,
    \"gpu\": 0,
    \"id\": \"58c59988-a9f9-4116-acf4-1c4b4be49407\",
    \"name\": \"BV1-4-20\",
    \"ram\": 4096,
    \"status\": \"active\",
    \"vcpus\": 1
  }
...
# Repeats for all entries of "Value"

It wields results after that warning, but only if you specify output or have a defaultOutput config set. If you have not set this setting and speficy no -o option on mgc vm machine-types list, it will return an empty table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants