Bug #17199
closedUnable to create a new host deployed on XenServer
Description
Hello,
I have problem with creates a new host deployed on xenserver. When I look to Virtual Machine bookmark I see error (doesn´t matter which Compute profile is choose):
Failure: undefined method `memory_options' for #<#:0x00000003eca920>
Same issue is in the Compute profiles if I click to any xenserver.
Foreman log:
2016-11-03 11:14:09 fc30251d [app] [W] Action failed
| NoMethodError: undefined method `memory_options' for #<#<Class:0x0000000788ef58>:0x007fe52fa974c0>
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.4.0/app/views/compute_resources_vms/form/xenserver/_base.html.erb:29:in `__opt_theforeman_tfm_root_usr_share_gems_gems_foreman_xen_______app_views_compute_resources_vms_form_xenserver__base_html_erb___3975886372376049017_70311260347420'
Thanks,
Zbynek
Updated by Anonymous about 8 years ago
- Status changed from New to Assigned
- Priority changed from Normal to High
- Assignee set to Anonymous
Updated by Anonymous about 8 years ago
- Related to Bug #2314: Smaller grains for VM memory/RAM choice needed added
Updated by Marek Hulán about 8 years ago
Sorry, I haven't realized this method could be used by plugins. I suppose the fix should be quite simple, you should be able apply similar patch like this https://github.com/theforeman/foreman/pull/3774/files#diff-51e61c2454ccdab23f8b20efd5a657d7 to start using new field. Let me know if you need help.
Updated by Anonymous about 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman-xen/pull/47 added
Updated by Anonymous about 8 years ago
Zbyněk, could you test the patch in the pull request?
Updated by Zbynek Nemas about 8 years ago
Michael, now I am able edit Compute profiles. However I still cannot create virtual host correctly, but it´s not related with this bug. I will create new task later.
Thanks
Updated by Anonymous about 8 years ago
Yes, please open a new issue for the other bug. As I'm not using XenServer myself the only way to know new bugs are user reports.
Updated by Anonymous about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman-xen|1a93412cf138b111dc8cc3deb2f60508e7ee0815.