Skip to content

serviceofferingid autocomplete in deploy virtualmachine api cmd doesn't list the offering ids, instead picks some integer id #148

Open
@sureshanaparti

Description

@sureshanaparti

serviceofferingid autocomplete in deploy virtualmachine api cmd doesn't list the offering ids, instead picks some integer id.
Maybe, parsing issue in the API response.

Noticed this issue in cmk 6.3.0 / 6.4.0 RC1.

(cmk) 🐱 > deploy virtualmachine serviceofferingid=[debug] Possible related noun for the arg: serviceofferings and type: uuid
[debug] Autocomplete: API found using heuristics: listServiceOfferings
[debug] NewAPIRequest API request URL:http://10.0.33.31:8080/client/api?apiKey=LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q&command=listServiceOfferings&listall=true&response=json&signature=e9sFQuJdyq2gz75ckAM6Yz6CKuA%3D ⣟ 😺 fetching options, please wait... [debug] NewAPIRequest response status code:200
[debug] NewAPIRequest response body:{"listserviceofferingsresponse":{"count":2,"serviceoffering":[{"id":"6e9f3119-2040-4390-89a6-c18c0688eb9a","name":"Small Instance","displaytext":"Small Instance","cpunumber":1,"cpuspeed":500,"memory":512,"created":"2024-02-21T14:23:19+0000","storagetype":"shared","provisioningtype":"thin","offerha":false,"limitcpuuse":false,"isvolatile":false,"issystem":false,"defaultuse":false,"iscustomized":false,"rootdisksize":0,"dynamicscalingenabled":true,"diskofferingstrictness":false,"encryptroot":false,"hasannotations":false},{"id":"6d4414ad-cafb-419a-b48d-a84cb74dff7f","name":"Medium Instance","displaytext":"Medium Instance","cpunumber":1,"cpuspeed":1000,"memory":1024,"created":"2024-02-21T14:23:19+0000","storagetype":"shared","provisioningtype":"thin","offerha":false,"limitcpuuse":false,"isvolatile":false,"issystem":false,"defaultuse":false,"iscustomized":false,"rootdisksize":0,"dynamicscalingenabled":true,"diskofferingstrictness":false,"encryptroot":false,"hasannotations":false}]}}
(cmk) 🐱 > deploy virtualmachine serviceofferingid=6

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