Project

General

Profile

Actions

Bug #26555

closed

Host edit fails with error : ActionView::Template::Error (undefined method `account_type' for #<Fog::Compute::AzureRM::DataDisk:0x007f6411b64eb0>):

Added by Vijay Singh about 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Host edit fails with error ActionView::Template::Error (undefined method `account_type' for #<Fog::Compute::AzureRM::DataDisk:0x007f6411b64eb0>):

Reproducer steps:

- Create a VM with by adding additional disk.
- Once VM successfully created try to edit it:
Hosts => All hosts => Click on VM name => Click on Edit

Related traceback:


06:44:00 rails.1 | 2019-04-08T06:44:00 [I|app|33347f00] Completed 500 Internal Server Error in 17154ms (ActiveRecord: 10.9ms)
06:44:00 rails.1 | |
06:44:00 rails.1 | |
06:44:00 rails.1 | 2019-04-08T06:44:00 [F|app|33347f00]
06:44:00 rails.1 | 2019-04-08T06:44:00 [F|app|33347f00] ActionView::Template::Error (undefined method `account_type' for #<Fog::Compute::AzureRM::DataDisk:0x007f6411b64eb0>):
06:44:00 rails.1 | 2019-04-08T06:44:00 [F|app|33347f00] 6: }
06:44:00 rails.1 | | 7: >
06:44:00 rails.1 | | 8:
06:44:00 rails.1 | | 9: <
= checkbox_f f, :account_type, {
06:44:00 rails.1 | | 10: :label => ("Premium Disk"), :label_size => "col-md-2"},
06:44:00 rails.1 | | 11: 'true',
06:44:00 rails.1 | | 12: 'false'
06:44:00 rails.1 | 2019-04-08T06:44:00 [F|app|33347f00]
06:44:00 rails.1 | 2019-04-08T06:44:00 [F|app|33347f00] app/helpers/form_helper.rb:46:in `block in checkbox_f'
06:44:00 rails.1 | | app/helpers/form_helper.rb:399:in `block (3 levels) in field'
06:44:00 rails.1 | | app/helpers/form_helper.rb:395:in `block (2 levels) in field'
06:44:00 rails.1 | | app/helpers/form_helper.rb:393:in `block in field'
06:44:00 rails.1 | | app/helpers/form_helper.rb:392:in `field'
06:44:00 rails.1 | | app/helpers/form_helper.rb:44:in `checkbox_f'
06:44:00 rails.1 | | /home/rootazure/foreman_azure_rm/app/views/compute_resources_vms/form/azurerm/_volume.html.erb:9:in `
_home_rootazure_foreman_azure_rm_app_views_compute_resources_vms_form_azurerm__volume_html_erb___1791700891296840597_70034042927460'
06:44:00 rails.1 | | app/views/compute_resources_vms/form/_volumes.html.erb:13:in `block (2 levels) in app_views_compute_resources_vms_form_volumes_html_erb__3760404529919738748_70034042970920'
06:44:00 rails.1 | | app/views/compute_resources_vms/form/_volumes.html.erb:12:in `block in app_views_compute_resources_vms_form_volumes_html_erb__3760404529919738748_70034042970920'
06:44:00 rails.1 | | app/views/compute_resources_vms/form/_volumes.html.erb:3:in `_app_views_compute_resources_vms_form__volumes_html_erb__3760404529919738748_70034042970920'
06:44:00 rails.1 | | app/views/hosts/_compute_detail.html.erb:16:in `_app_views_hosts__compute_detail_html_erb___668650865424986761_70033951738580'
06:44:00 rails.1 | | app/views/hosts/_compute.html.erb:8:in `block in app_views_hosts_compute_html_erb___2501569756418497459_70034122423040'
06:44:00 rails.1 | | app/views/hosts/_compute.html.erb:1:in `_app_views_hosts__compute_html_erb___2501569756418497459_70034122423040'
06:44:00 rails.1 | | app/views/hosts/_unattended.html.erb:2:in `_app_views_hosts__unattended_html_erb___2574200271982742239_70034122602780'
06:44:00 rails.1 | | app/views/hosts/_form.html.erb:105:in `block (2 levels) in app_views_hosts_form_html_erb___1656210650740226069_70034031398840'
06:44:00 rails.1 | | app/helpers/form_helper.rb:301:in `form_for'
06:44:00 rails.1 | | app/views/hosts/_form.html.erb:8:in `block in app_views_hosts_form_html_erb___1656210650740226069_70034031398840'
06:44:00 rails.1 | | app/models/taxonomy.rb:78:in `block (2 levels) in as_taxonomy'
06:44:00 rails.1 | | app/models/concerns/foreman/thread_session.rb:179:in `as_location'
06:44:00 rails.1 | | app/models/taxonomy.rb:77:in `block in as_taxonomy'
06:44:00 rails.1 | | app/models/concerns/foreman/thread_session.rb:142:in `as_org'
06:44:00 rails.1 | | app/models/taxonomy.rb:76:in `as_taxonomy'
06:44:00 rails.1 | | app/views/hosts/_form.html.erb:6:in `_app_views_hosts__form_html_erb___1656210650740226069_70034031398840'
06:44:00 rails.1 | | app/views/hosts/edit.html.erb:16:in `_app_views_hosts_edit_html_erb___3520372926675652522_70034123016840'
06:44:00 rails.1 | | app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
06:44:00 rails.1 | | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
06:44:00 rails.1 | | app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
06:44:00 rails.1 | | lib/foreman/middleware/telemetry.rb:10:in `call'
06:44:00 rails.1 | | lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
06:44:00 rails.1 | | lib/foreman/middleware/logging_context_session.rb:22:in `call'
06:44:00 rails.1 | | lib/foreman/middleware/logging_context_request.rb:11:in `call

Actions #1

Updated by Aditi Puntambekar about 4 years ago

  • Status changed from New to Closed

Volume capability is no longer present in current release. Hence, it is not a bug now. Closing.

Actions

Also available in: Atom PDF