Skip to content

DefaultMetadataServiceVersion needs to be updated (--vpc-cri is broken) #327

@l2fprod

Description

@l2fprod

with latest CLI

IBMCLOUD_TRACE=true ibmcloud login --vpc-cri -r us-south
API endpoint: https://cloud.ibm.com/
Authenticating...

REQUEST: [2022-06-30T14:28:30Z]
PUT /instance_identity/v1/token?version=2021-09-30 HTTP/1.1
Host: 169.254.169.254
Accept: application/json
Accept-Language: en-US
Accept-Language: en
Content-Type: application/json
Metadata-Flavor: ibm
User-Agent: IBM Cloud CLI 2.8.0 / linux

{"expires_in": 300}

RESPONSE: [2022-06-30T14:28:30Z] Elapsed: 38ms
HTTP/1.1 400 Bad Request
Content-Length: 205
Content-Type: application/json; charset=utf-8
Date: Thu, 30 Jun 2022 14:28:30 GMT
X-Request-Id: 182e21b1-9ce1-406b-bf1f-e29a61d7b898

{"errors":[{"code":"invalid_version_range","message":"The `version` value cannot be before `2022-03-01`.","target":{"name":"2021-09-30","type":"parameter"}}],"trace":"182e21b1-9ce1-406b-bf1f-e29a61d7b898"}
Error response from server. Status code: 400; message: {"errors":[{"code":"invalid_version_range","message":"The `version` value cannot be before `2022-03-01`.","target":{"name":"2021-09-30","type":"parameter"}}],"trace":"182e21b1-9ce1-406b-bf1f-e29a61d7b898"}

API endpoint:   https://cloud.ibm.com/
Region:
Not logged in.
FAILED
Unable to authenticate.

Version should be updated in

DefaultMetadataServiceVersion = "2021-09-30"
following https://cloud.ibm.com/apidocs/vpc-metadata#versioning

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions