manageiq icon indicating copy to clipboard operation
manageiq copied to clipboard

Failed when click "provision virtual machine" button

Open cnsunfocus opened this issue 1 year ago • 11 comments

Hi, There is an error when I click the "provision" button under workload menu The error message and log detail are in the screenshot. The hypervisor provider is vcenter 6.5, and the miq version is oparin-1.1 , installed by docker. Resource sync is ok, but I can not create new vm instance. Thanks.

image 1680500467063

cnsunfocus avatar Apr 03 '23 05:04 cnsunfocus

And the "lifecycle " button under the [Compute] [Infrastructure][Virtual Machines] is disabled image

cnsunfocus avatar Apr 03 '23 05:04 cnsunfocus

Error appears to be in the UI, @jeffibm can you take a look?

@cnsunfocus could you grab the text of the error so it is easier to see / format?

agrare avatar Apr 04 '23 16:04 agrare

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Jul 10 '23 00:07 miq-bot

cc @jeffibm :point_up: https://github.com/ManageIQ/manageiq/issues/22440#issuecomment-1496288946

agrare avatar Jul 10 '23 18:07 agrare

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Oct 16 '23 00:10 miq-bot

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar Jan 22 '24 00:01 miq-bot

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar Apr 29 '24 00:04 miq-bot

Hey @agrare , @Fryguy ,

I was testing this issue in local env and below are my findings-

https://github.com/ManageIQ/manageiq/assets/87487049/a88ac9ed-7caf-4cc9-8ac6-436d0e5a2271

Params - When we click on the Lifecycle / Provision button,

[----] I, [2024-04-29T12:43:56.162302 #52119:61fe4]  INFO -- : Started POST "/vm_or_template/x_button?pressed=vm_miq_request_new" for ::1 at 2024-04-29 12:43:56 +0530
[----] I, [2024-04-29T12:43:56.296685 #52119:61fe4]  INFO -- : Processing by VmOrTemplateController#x_button as JS
[----] I, [2024-04-29T12:43:56.296796 #52119:61fe4]  INFO -- :   Parameters: {"pressed"=>"vm_miq_request_new"}

The error appeared to be coming in from - miq_request_methods.rb#L193

the method provisioning_report returns nil as it does not satisfy the conditions in miq_request_methods.rb#L1097

both methods provisioning_is_cloud? and provisioning_is_infra? returns false from here - miq_request_methods.rb#L175

I noticed that the controller name vm_or_template is not specified in the above two methods. I am not so sure if this is the problem.

Logs below

[----] F, [2024-04-29T12:43:56.474344 #52119:61fe4] FATAL -- : Error caught: [TypeError] no implicit conversion of nil into String
/Users/jeffreybonson/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/pathname.rb:413:in `initialize'
/Users/jeffreybonson/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/pathname.rb:413:in `new'
/Users/jeffreybonson/.rvm/rubies/ruby-3.0.5/lib/ruby/3.0.0/pathname.rb:413:in `join'
/Users/jeffreybonson/Workspace/manageiq-ui-classic/app/controllers/application_controller/miq_request_methods.rb:193:in `set_pre_prov_vars'
/Users/jeffreybonson/Workspace/manageiq-ui-classic/app/controllers/application_controller/miq_request_methods.rb:154:in `pre_prov'
/Users/jeffreybonson/Workspace/manageiq-ui-classic/app/controllers/application_controller.rb:1554:in `prov_redirect'
/Users/jeffreybonson/Workspace/manageiq-ui-classic/app/controllers/application_controller/explorer.rb:105:in `x_button'

jeffibm avatar Apr 29 '24 07:04 jeffibm

So does that mean that we are not properly determining if this is an infra or cloud provision? Is there another type?

kbrock avatar Apr 29 '24 17:04 kbrock

So does that mean that we are not properly determining if this is an infra or cloud provision? Is there another type?

Hi @kbrock , I couldn't find any other type.

jeffibm avatar Apr 30 '24 04:04 jeffibm

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar Aug 05 '24 00:08 miq-bot