Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error pops up when editing tags in Compute / Infra / Virtual Machines / VMs #15846

Closed
mfalesni opened this issue Aug 17, 2017 · 4 comments · Fixed by ManageIQ/manageiq-ui-classic#1957
Assignees
Labels

Comments

@mfalesni
Copy link
Contributor

Upstream build from Aug 10th.

  1. Add a VMware infra provider
  2. Go to Compute / Infra / Virtual Machines
  3. Go to the VMs accordion
  4. Select a vm, open its details
  5. Click on Policy / Edit tags

Upon opening the edit tags form an error pops up:
image

If you close the message, you can edit the tags and the edits will be saved.

@mfalesni mfalesni changed the title Error pops up when editing tags in Compute / Infra / Virtual Machines / VMs An error pops up when editing tags in Compute / Infra / Virtual Machines / VMs Aug 17, 2017
@himdel
Copy link
Contributor

himdel commented Aug 18, 2017

The failing request is..

POST http://localhost:3000/vm_infra/report_data

{
  "model": "manageiq/providers/infra_manager/vms",
  "active_tree": "vms_filter_tree",
  "explorer": true,
  "records[]": [10000000001250]
}

Server log..

Error caught: [TypeError] no implicit conversion of nil into String
/home/himdel/.rbenv/versions/2.3.3/lib/ruby/2.3.0/psych.rb:474:in `initialize'
/home/himdel/.rbenv/versions/2.3.3/lib/ruby/2.3.0/psych.rb:474:in `open'
/home/himdel/.rbenv/versions/2.3.3/lib/ruby/2.3.0/psych.rb:474:in `load_file'
/home/himdel/manageiq/app/models/miq_report/import_export.rb:80:in `load_from_view_options'
/home/himdel/manageiq-ui-classic/app/controllers/application_controller.rb:1656:in `get_db_view'
/home/himdel/manageiq-ui-classic/app/controllers/application_controller.rb:1531:in `get_view'
/home/himdel/manageiq-ui-classic/app/controllers/application_controller.rb:513:in `report_data'

@himdel
Copy link
Contributor

himdel commented Aug 18, 2017

The problem is that MiqReport.view_yaml_filename won't find anything and returns nil..

db = ManageIQ_Providers_InfraManager_Vm
suffix = -all_vms_and_templates

...

Only ManageIQ_Providers_InfraManager_Vm.yaml exists, so the suffix should not be there.

@himdel
Copy link
Contributor

himdel commented Aug 18, 2017

Looks like this got already fixed for templates - in ManageIQ/manageiq-ui-classic#1290.

(Which makes this related to ManageIQ/manageiq-ui-classic#1270.)

Doing a similar fix for vms => ManageIQ/manageiq-ui-classic#1957

@himdel
Copy link
Contributor

himdel commented Aug 21, 2017

@miq-bot close_issue

@miq-bot miq-bot closed this as completed Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants