keystone/keystone/cmd
Lance Bragstad 0cbf809a11 Ensure bootstrap handles multiple roles with the same name
The bootstrap logic doesn't take into consideration multiple roles
with the same name. If bootstrap is unable to determine which role to
use and accidentally uses a domain-specific role with the same name
as a default role, bootstrap will fail in unexpected ways.

This change deviates slightly from the upstream patches in that the
stable/queens test_cli.py module doesn't have a `self.bootstrap`
attribute. Instead, we just test with `bootstrap` in the test itself.
Otherwise, the test is functionally the same.

Conflicts:
      keystone/cmd/bootstrap.py

      Bootstrap code used to live in keystone/cmd/cli.py before it was
      refactored into its own module, keystone/cmd/bootstrap.py. This
      caused a conflict during backport where the file patched in later
      releases because the file didn't exist. Instead, a functionally
      equivalent change was proposed to keystone/cmd/cli.py.

Closes-Bug: 1856881
Change-Id: Iddc364d8c934b6e54d1e8c75b8b159faadbf865d
(cherry picked from commit 25cf359e5f)
(cherry picked from commit 51ff7be731)
(cherry picked from commit 1ba238e491)
(cherry picked from commit 2e4055e49b)
2020-03-06 19:11:53 +00:00
..
doctor Rename fernet_utils to token_utils 2017-12-12 16:38:42 -06:00
__init__.py Entrypoints for commands 2015-03-27 02:16:02 +00:00
cli.py Ensure bootstrap handles multiple roles with the same name 2020-03-06 19:11:53 +00:00
manage.py Code cleanup 2016-10-17 09:05:34 +08:00