"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/cmd/cli.py" between
keystone-16.0.1.tar.gz and keystone-17.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Ussuri" series (latest release).

cli.py  (keystone-16.0.1):cli.py  (keystone-17.0.0)
skipping to change at line 114 skipping to change at line 114
metavar='OS_BOOTSTRAP_INTERNAL_URL', metavar='OS_BOOTSTRAP_INTERNAL_URL',
help=('The initial identity internal url created ' help=('The initial identity internal url created '
'during the keystone bootstrap process. ' 'during the keystone bootstrap process. '
'e.g. http://127.0.0.1:5000/v3')) 'e.g. http://127.0.0.1:5000/v3'))
parser.add_argument('--bootstrap-region-id', parser.add_argument('--bootstrap-region-id',
metavar='OS_BOOTSTRAP_REGION_ID', metavar='OS_BOOTSTRAP_REGION_ID',
help=('The initial region_id endpoints will be ' help=('The initial region_id endpoints will be '
'placed in during the keystone bootstrap ' 'placed in during the keystone bootstrap '
'process.')) 'process.'))
parser.add_argument('--immutable-roles', parser.add_argument('--immutable-roles',
default=True,
action='store_true',
help=('Whether default roles (admin, member, and '
'reader) should be immutable. This is the '
'default.'))
parser.add_argument('--no-immutable-roles',
default=False, default=False,
action='store_true', action='store_true',
help=('Whether default roles (admin, member, and ' help=('Whether default roles (admin, member, and '
'reader) should be immutable. Immutable ' 'reader) should be immutable. Immutable '
'default roles is currently an opt-in ' 'default roles is the default, use this '
'behavior, but will become the default in ' 'flag to opt out of immutable default '
'future releases.')) 'roles.'))
return parser return parser
def do_bootstrap(self): def do_bootstrap(self):
"""Perform the bootstrap actions. """Perform the bootstrap actions.
Create bootstrap user, project, and role so that CMS, humans, or Create bootstrap user, project, and role so that CMS, humans, or
scripts can continue to perform initial setup (domains, projects, scripts can continue to perform initial setup (domains, projects,
services, endpoints, etc) of Keystone when standing up a new services, endpoints, etc) of Keystone when standing up a new
deployment. deployment.
""" """
skipping to change at line 176 skipping to change at line 182
self.bootstrapper.admin_password = self.password self.bootstrapper.admin_password = self.password
self.bootstrapper.admin_username = self.username self.bootstrapper.admin_username = self.username
self.bootstrapper.project_name = self.project_name self.bootstrapper.project_name = self.project_name
self.bootstrapper.admin_role_name = self.role_name self.bootstrapper.admin_role_name = self.role_name
self.bootstrapper.service_name = self.service_name self.bootstrapper.service_name = self.service_name
self.bootstrapper.service_id = self.service_id self.bootstrapper.service_id = self.service_id
self.bootstrapper.admin_url = self.admin_url self.bootstrapper.admin_url = self.admin_url
self.bootstrapper.public_url = self.public_url self.bootstrapper.public_url = self.public_url
self.bootstrapper.internal_url = self.internal_url self.bootstrapper.internal_url = self.internal_url
self.bootstrapper.region_id = self.region_id self.bootstrapper.region_id = self.region_id
self.bootstrapper.immutable_roles = CONF.command.immutable_roles if CONF.command.no_immutable_roles:
self.bootstrapper.immutable_roles = False
else:
self.bootstrapper.immutable_roles = True
self.bootstrapper.bootstrap() self.bootstrapper.bootstrap()
self.reader_role_id = self.bootstrapper.reader_role_id self.reader_role_id = self.bootstrapper.reader_role_id
self.member_role_id = self.bootstrapper.member_role_id self.member_role_id = self.bootstrapper.member_role_id
self.role_id = self.bootstrapper.admin_role_id self.role_id = self.bootstrapper.admin_role_id
self.project_id = self.bootstrapper.project_id self.project_id = self.bootstrapper.project_id
@classmethod @classmethod
def main(cls): def main(cls):
klass = cls() klass = cls()
 End of changes. 3 change blocks. 
4 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)