← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1734871] Re: overcloud deployment fails on mistral action DeployStackAction

 

Reviewed:  https://review.openstack.org/523415
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=f97df5cb6ff1b3fc0a1c18967c4eefff9e7670ce
Submitter: Zuul
Branch:    master

commit f97df5cb6ff1b3fc0a1c18967c4eefff9e7670ce
Author: Colleen Murphy <colleen.murphy@xxxxxxxx>
Date:   Tue Nov 28 14:33:04 2017 +0100

    Fix role schema in trust object
    
    Previously, we weren't doing any validation on the roles attribute of a
    trust except to validate that it was an array. A hasty glance, however,
    would lead you to believe that it was validating an array of
    parameter_types.id_string[1] and so we translated that to the new role
    object validation. However, id_string doesn't include some valid role
    names like _member_. This patch updates the role name schema to match
    parameter_types.name, which is the same as the schema for the main role
    object.
    
    [1] http://git.openstack.org/cgit/openstack/keystone/tree/keystone/trust/schema.py?id=62f9e57cd81dc98c5816da9fa483d385b4c1a66c#n41
    
    Change-Id: I83aafc7a96e81a9b6b1056b39cd8c5d23676c014
    Closes-bug: #1734871


** Changed in: keystone
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1734871

Title:
  overcloud deployment fails on mistral action DeployStackAction

Status in OpenStack Identity (keystone):
  Fix Released

Bug description:
  When deploying tripleo from master repo, overcloud deploy fails with
  following error in stdout[1]:

  2017-11-28 09:58:09 |                           u'version': u'2.0'},
  2017-11-28 09:58:09 |                 u'updated_at': u'2017-11-28 09:57:36'},
  2017-11-28 09:58:09 |  u'message': u"Failed to run action [action_ex_id=3f5e4daa-d266-4f61-9c1c-ff3f226a604b, action_cls='<class 'mistral.actions.action_factory.DeployStackAction'>', attributes='{}', params='{u'skip_deploy_identifier': False, u'container': u'overcloud', u'timeout': 140}']\n ERROR: Internal Error",
  2017-11-28 09:58:09 |  u'status': u'FAILED'}

  Looking at heat logs [2] i found following error:

  2017-11-28 09:58:08.490 29964 ERROR heat.common.wsgi [req-
  0a6cefb5-beb2-4b61-b293-a50ffe375699 admin admin - default default]
  Unexpected error occurred serving API: Remote error: BadRequest
  Invalid input for field 'roles/1/name': u'_member_' does not match
  '^[a-zA-Z0-9-]+$'

  Failed validating 'pattern' in schema['properties']['roles']['items']['properties']['name']:
      {'maxLength': 64,
       'minLength': 1,
       'pattern': '^[a-zA-Z0-9-]+$',
       'type': 'string'}

  
  [1] https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset002-master-upload/5c3aa6c/undercloud/home/jenkins/overcloud_deploy.log.txt.gz
  [2] https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset002-master-upload/5c3aa6c/undercloud/var/log/heat/heat_api.log.txt.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1734871/+subscriptions