Bug 1412573
Summary: | Refresh of a template without OS configured fails | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Moti Asayag <masayag> |
Component: | Providers | Assignee: | Moti Asayag <masayag> |
Status: | CLOSED ERRATA | QA Contact: | Angelina Vasileva <anikifor> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 5.7.0 | CC: | gblomqui, jfrey, jhardy, masayag, mgoldboi, movciari, obarenbo, oourfali, simaishi |
Target Milestone: | GA | ||
Target Release: | 5.8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | rhev | ||
Fixed In Version: | 5.8.0.2 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-31 14:32:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | RHEVM | Target Upstream Version: | |
Embargoed: |
Description
Moti Asayag
2017-01-12 10:38:11 UTC
PR for ovirt gem: https://github.com/ManageIQ/ovirt/pull/76 New commit detected on ManageIQ/ovirt/master: https://github.com/ManageIQ/ovirt/commit/4f6dd24042ed07771399c4744fe3d06dea010966 commit 4f6dd24042ed07771399c4744fe3d06dea010966 Author: Moti Asayag <masayag> AuthorDate: Thu Jan 12 12:15:16 2017 +0200 Commit: Moti Asayag <masayag> CommitDate: Thu Jan 12 12:40:36 2017 +0200 Support templates without OS In case of a template without OS, the code to parse the OS fails: hash[:os][:boot_order] = boot_order = [] The left part 'hash[:os][:boot_order]' fails since hash[:os] is nil. However, the entire statement ends without an error due to the assignment, but the 'boot_order' is declared without being initialized to [], therefore its value is nil. The parsing eventually fails with nil error when trying to add a value to boot_order using << operator. https://bugzilla.redhat.com/show_bug.cgi?id=1412573 lib/ovirt/template.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Moving back to ON_DEV. Once the new version is released, please move to POST. Thanks! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:1367 |