Code Monkey home page Code Monkey logo

Comments (10)

szajac01 avatar szajac01 commented on August 17, 2024 1

Thanks, @agrare , just a little typo in the documentation : for a disk resize, option is better with disk_resize than disk_remove.

from manageiq-api.

szajac01 avatar szajac01 commented on August 17, 2024

mention it's on tested on kasparov1 and kasparov2

from manageiq-api.

agrare avatar agrare commented on August 17, 2024

Thanks for the bug report @szajac01, is provider was this VM on? Can you tell from the logs if the request ran at all? If so did it fail?

from manageiq-api.

szajac01 avatar szajac01 commented on August 17, 2024

Hi @agrare , provider is VMware.
From the API response, the request run and finish in successful state .
"request_type": "vm_reconfigure", "request_state": "finished", "message": "VM Reconfigure complete", "status": "Ok",

from automation.log, also no error, i can share with you logs if needed

from manageiq-api.

agrare avatar agrare commented on August 17, 2024

Thanks @szajac01, I'll try to reproduce this locally and if I can't I might ask for some additional logs.

from manageiq-api.

szajac01 avatar szajac01 commented on August 17, 2024

Hi guys, any news on the subject ?
did you reproduce issue ? Is there any workaround ?

from manageiq-api.

agrare avatar agrare commented on August 17, 2024

Hey @szajac01 sorry for the delay I am investigating this issues now. When I used the payload that you provided, specifically "vm_fields":[ { "vm_memory": "8192" } ] I ended up with a reconfig spec that was empty.

It appears that the correct payload would be:
{ "action":"create", "options":{ "src_ids":[ "2" ], "request_type":"vm_reconfigure", "vm_memory": "8192" }, "auto_approve":true }

That would be the same for the CPU options as well ("cores_per_socket" and "number_of_cpus")

from manageiq-api.

agrare avatar agrare commented on August 17, 2024

Where did you see the "vm_fields" style? I want to make sure to correct any documentation that is inaccurate. I also don't see any API examples in the docs of reconfigure so I'll add one

from manageiq-api.

agrare avatar agrare commented on August 17, 2024

I see vm_fields comes from the miq_provision request, this isn't the same for reconfigure.

@szajac01 See https://www.manageiq.org/docs/reference/latest/api/examples/reconfigure_vm.html for examples of VM reconfigure requests

from manageiq-api.

agrare avatar agrare commented on August 17, 2024

Nice catch @szajac01 do you want to contribute a fix? If not I can do it. File in question is in https://github.com/ManageIQ/manageiq-documentation/blob/master/api/examples/reconfigure_vm.md

from manageiq-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.