Red Hat Bugzilla – Bug 1227211
Foreman - unable to add a tag during provisioning
Last modified: 2016-08-02 21:32:48 EDT
Description of problem: Unable to set tags during provisioning. Version-Release number of selected component (if applicable): 5.4.0.4 How reproducible: Always Steps to Reproduce: 1. Add a foreman provider 2. Provision a configured system with a tag (e.g. cost center) Actual results: Provisioning is successful but tag is not applied. Expected results: Tag is applied to the configured system during provisioning. Additional info: Workaround: Tags can be applied after provisioning - on the configured system's summary page.
Keenan - Brandon added the apply_tags call to the post_provision state in app/models/miq_provision_task_configured_system_foreman/state_machine.rb. This should be easy to test out if the appliance QE was testing with is available.
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/517ab3c31237afbcf558089127db70151306d3fa commit 517ab3c31237afbcf558089127db70151306d3fa Author: Keenan Brock <kbrock@redhat.com> AuthorDate: Mon Jun 22 21:14:55 2015 -0400 Commit: Keenan Brock <kbrock@redhat.com> CommitDate: Tue Jun 23 16:37:52 2015 -0400 move tag_symbol from MiqRequestMethod to workflows Allow workflow to define how to specify tags. Now default to tag_ids (was vm_tags before) All children of MiqHostProvisionWorkflow will use vm_tags. https://bugzilla.redhat.com/show_bug.cgi?id=1227211 vmdb/app/controllers/application_controller/miq_request_methods.rb | 2 +- vmdb/app/models/miq_provision_virt_workflow.rb | 4 ++++ vmdb/app/models/miq_request_workflow.rb | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/bb4a6544fa1061149e851d94f5eebeb88978595d commit bb4a6544fa1061149e851d94f5eebeb88978595d Author: Keenan Brock <kbrock@redhat.com> AuthorDate: Mon Jun 22 21:15:56 2015 -0400 Commit: Keenan Brock <kbrock@redhat.com> CommitDate: Tue Jun 23 16:37:52 2015 -0400 Display status message for foreman provision_task https://bugzilla.redhat.com/show_bug.cgi?id=1227211 .../models/miq_provision_task_configured_system_foreman/state_machine.rb | 1 + 1 file changed, 1 insertion(+)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/aea3ea0605a3f2264f240a6a8b83659a4efd9765 commit aea3ea0605a3f2264f240a6a8b83659a4efd9765 Author: Keenan Brock <kbrock@redhat.com> AuthorDate: Mon Jun 22 21:22:05 2015 -0400 Commit: Keenan Brock <kbrock@redhat.com> CommitDate: Tue Jun 23 16:37:53 2015 -0400 foreman provisioning dialog now inputs tag_ids https://bugzilla.redhat.com/show_bug.cgi?id=1227211 .../views/miq_request/_prov_configured_system_foreman_dialog.html.haml | 2 +- .../miq_dialogs/miq_provision_configured_system_foreman_dialogs.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Thanks for all the help Jan
Verified fixed in version 5.5.0.3 The bug doesn't reproduce, after provisioning the tags were assigned.
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-2015:2551