Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1588838 - Unable to add a custom role with a new name in UI.
Unable to add a custom role with a new name in UI.
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common (Show other bugs)
13.0 (Queens)
Unspecified Unspecified
urgent Severity urgent
: rc
: 13.0 (Queens)
Assigned To: Dougal Matthews
Alexander Chuzhoy
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-07 19:36 EDT by Alexander Chuzhoy
Modified: 2018-06-27 09:58 EDT (History)
11 users (show)

See Also:
Fixed In Version: openstack-tripleo-common-8.6.1-20.el7ost
Doc Type: Bug Fix
Doc Text:
The tripleo.plan_management.v1.update_roles workflow did not pass the overcloud plan name (swift container name) or zaqar queue name to the sub-workflow it triggered. This caused incorrect behaviour when using an overcloud plan name other than the default ('overcloud'). This fix correctly passes these parameters and restores the correct behaviour.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-06-27 09:57:12 EDT
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
Launchpad 1775791 None None None 2018-06-08 05:17 EDT
OpenStack gerrit 573637 None master: MERGED tripleo-common: Pass container and queue_name inputs to the list_available_roles workflow (Ie0fccbdbfd97005dbc13ae6d1493... 2018-06-11 13:07 EDT
OpenStack gerrit 574214 None stable/queens: NEW tripleo-common: Pass container and queue_name inputs to the list_available_roles workflow (Ie0fccbdbfd97005dbc13ae6d1493... 2018-06-11 13:07 EDT
Red Hat Product Errata RHEA-2018:2086 None None None 2018-06-27 09:58 EDT

  None (edit)
Description Alexander Chuzhoy 2018-06-07 19:36:21 EDT
Unable to add a custom role with a new name in UI.

Environment:
instack-undercloud-8.4.1-4.el7ost.noarch
openstack-tripleo-heat-templates-8.0.2-31.el7ost.noarch
openstack-tripleo-ui-8.3.1-3.el7ost.noarch


Created a custom role named ControllerNoNetworker and after running:
openstack object create <planname> roles/ControllerNoNetworker.yaml saw it in the list of roles (after clicking on "Manage roles".
When I checked the box next to the new role to have it listed under "Configure Roles and Assign Nodes" , the following error appeared:

Invalid roles requested: ControllerNoNetworker Valid Roles: BlockStorage CephAll CephFile CephObject CephStorage Compute ComputeAlt ComputeDVR ComputeHCI ComputeInstanceHA ComputeLiquidio ComputeOvsDpdk ComputeOvsDpdkRT ComputeRealTime ComputeSriov ComputeSriovRT Controller ControllerAllNovaStandalone ControllerNoCeph ControllerNovaStandalone ControllerOpenstack Controller Database HciCephAll HciCephFile HciCephMon HciCephObject IronicConductor Messaging Networker Novacontrol ObjectStorage Telemetry Undercloud Undercloud
Comment 1 Jiri Tomasek 2018-06-08 04:10:29 EDT
The problem is in tripleo.plan_management.v1.update_roles as the workflow does not pass container and queue_name inputs to list_available_roles subworkflow:

update_roles:
    description: >
      takes data in json format validates its contents and persists them in
      roles_data.yaml, after successful update, templates are regenerated.
    input:
      - container
      - roles
      - roles_data_file: 'roles_data.yaml'
      - replace_all: false
      - queue_name: tripleo
    tags:
      - tripleo-common-managed
    tasks:
      get_available_roles:
        workflow: list_available_roles
        publish:
          available_roles: <% task().result.available_roles %>
        on-success: validate_input
        on-error: notify_zaqar
        publish-on-error:
          status: FAILED
          message: <% task().result %>


when I add input for get_available_roles task and update workbook, selecting custom role works correctly.
input:
  container: <% $.container %>
  queue_name: <% $.queue_name %>

I would consider this a blocker as this bug prevents to enable custom roles on non default ('overcloud') deployment plans. (Same impact as previous bug https://bugzilla.redhat.com/show_bug.cgi?id=1588838
Comment 2 Udi 2018-06-10 02:53:28 EDT
See also bug https://bugzilla.redhat.com/show_bug.cgi?id=1573965 which is probably related. I raised that bug to urgent/blocker.
Comment 6 Alexander Chuzhoy 2018-06-12 16:31:08 EDT
Verified:

Environment:
openstack-tripleo-common-8.6.1-20.el7ost.noarch


The reported issue doesn't reproduce.
Was able to add a new custom role.
Comment 8 errata-xmlrpc 2018-06-27 09:57:12 EDT
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/RHEA-2018:2086

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