Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1227211 - Foreman - unable to add a tag during provisioning
Foreman - unable to add a tag during provisioning
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning (Show other bugs)
5.4.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.5.0
Assigned To: Keenan Brock
Taras Lehinevych
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-02 03:39 EDT by Jan Krocil
Modified: 2016-08-02 21:32 EDT (History)
5 users (show)

See Also:
Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-12-08 08:15:01 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 12:58:09 EST

  None (edit)
Description Jan Krocil 2015-06-02 03:39:02 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.
Comment 2 Greg McCullough 2015-06-02 10:29:20 EDT
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.
Comment 6 CFME Bot 2015-06-23 17:34:38 EDT
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(-)
Comment 7 CFME Bot 2015-06-23 17:34:42 EDT
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(+)
Comment 8 CFME Bot 2015-06-23 17:34:46 EDT
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(-)
Comment 9 Keenan Brock 2015-06-24 11:37:52 EDT
Thanks for all the help Jan
Comment 10 Taras Lehinevych 2015-10-10 11:34:17 EDT
Verified fixed in version 5.5.0.3

The bug doesn't reproduce, after provisioning the tags were assigned.
Comment 12 errata-xmlrpc 2015-12-08 08:15:01 EST
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

Note You need to log in before you can comment on or make changes to this bug.