Handled by https://github.com/ManageIQ/manageiq/pull/18409
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