Bug 1507240
| Summary: | Classification validation errors in seeding keep server from starting | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Ryan Spagnola <rspagnol> | |
| Component: | Appliance | Assignee: | Gregg Tanzillo <gtanzill> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | luke couzens <lcouzens> | |
| Severity: | low | Docs Contact: | ||
| Priority: | low | |||
| Version: | 5.8.0 | CC: | abellott, gmccullo, gtanzill, jhardy, lcouzens, obarenbo, rspagnol, simaishi, smallamp | |
| Target Milestone: | GA | Keywords: | Reopened, TestOnly | |
| Target Release: | 5.10.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | upgrade:black | |||
| Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1519875 1523402 (view as bug list) | Environment: | ||
| Last Closed: | 2018-06-21 20:51:33 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | Bug | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1519875, 1523402 | |||
|
Description
Ryan Spagnola
2017-10-28 15:56:28 UTC
At the moment I think the best work-around is for them to change the Description field of the default "Workload" catalog to "Function" (matching the name "function") and then create their own "Workload" category and tags. This will allow seeding to work since it is doing the lookup by name "function". It will find the proper classification and skip seeding for that category so the description field will not be updated New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/b093edafebe5b8a6ce0312f1f9bf503fd2c2a833 commit b093edafebe5b8a6ce0312f1f9bf503fd2c2a833 Author: Chris Arcand <chris> AuthorDate: Thu Nov 30 09:52:43 2017 -0600 Commit: Chris Arcand <chris> CommitDate: Thu Nov 30 09:52:43 2017 -0600 Skip seeding of categories if their creation is invalid Warning: This is somewhat hacky and definitely an exception in what we've deemed 'standard practice' with our unusual seeding procedure. This change skips seeding of categories in the event that creating them would be invalid - and they would be invalid because people would like to use their own categories with the same name. Because categories here in seeding are looked up via name (delegated to tag), a new category with the same name is attempted to be made, fails silently, and gives a weird error when entries are attempted to be added to an initialized but unpersisted category record. https://bugzilla.redhat.com/show_bug.cgi?id=1507240 app/models/classification.rb | 17 ++++++++++------- spec/models/classification_spec.rb | 12 ++++++++++++ 2 files changed, 22 insertions(+), 7 deletions(-) Verified in 5.10.0.1 |