manageiq
manageiq copied to clipboard
Failed when click "provision virtual machine" button
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.
And the "lifecycle " button under the [Compute] [Infrastructure][Virtual Machines] is disabled
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?
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.
cc @jeffibm :point_up: https://github.com/ManageIQ/manageiq/issues/22440#issuecomment-1496288946
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.
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.
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.
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'
So does that mean that we are not properly determining if this is an infra or cloud provision? Is there another type?
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.
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.