Bug 1669269
Summary: | Tags that are changed disappear from the UI but are still present in rails | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> |
Component: | Appliance | Assignee: | Keenan Brock <kbrock> |
Status: | CLOSED ERRATA | QA Contact: | Angelina Vasileva <anikifor> |
Severity: | high | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
Priority: | high | ||
Version: | 5.9.6 | CC: | abellott, anikifor, obarenbo, smallamp, yrudman |
Target Milestone: | GA | Keywords: | ZStream |
Target Release: | 5.10.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.10.1.1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1666887 | Environment: | |
Last Closed: | 2019-03-06 09:50:42 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | CFME Core | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1666887 | ||
Bug Blocks: |
Comment 2
Keenan Brock
2019-02-05 18:36:35 UTC
Hammer backport: https://github.com/ManageIQ/manageiq/pull/18436 5.10.1.1.20190212171432_83eb777 not verified 1. I added a tag and I'm able to find it in rails irb(main):015:0> Tag.find_by(name: "/managed/location/test") => #<Tag id: 150, name: "/managed/location/test"> 2. Then I tagged RHV VM with this tag and it's shown correctly in the UI Smart Management Location: test 3. Then I check rails and I don't see this tag irb(main):019:0* Vm.find_by(:name=>"VM_NAME").ext_management_system.tags(:location) => #<ActiveRecord::Associations::CollectionProxy []> Please correct me if I'm doing anything wrong here Issue we fixed in this PR: when editing tag name system was creating new record in tags table instead of editing "name" attribute of existed one test steps: 1 create tag under location with name "test" and value "test_value" 2 assign tag to some vm, observe "Location: test_value" in Smart Management section of vm 3. change name of tag from "test" to "test_new" 4. in Rails console: BEFORE fix: Tag.find_by(name: "/managed/location/test") > <Tag id: 213, name: "/managed/location/test"> Tag.find_by(name: "/managed/location/test_new") > <Tag id: 214, name: "/managed/location/test_new"> on VM screen: assigned tag disappeared AFTER fix: Tag.find_by(name: "/managed/location/test") > nil Tag.find_by(name: "/managed/location/test_new") > <Tag id: 213, name: "/managed/location/test_new"> on VM screen: still the same tag "Location: test_value" in Smart Management section of vm Angelina, could you re-test @Yuri Thanks! Fixed and verified in 5.10.1.1.20190212171432_83eb777 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/RHBA-2019:0453 |