Install and configure in keystone

Bug #1936423 reported by Dalton Cézane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Expired
Undecided
Unassigned

Bug Description

When running the command to populate the keystone database, I got the following error:

su -s /bin/sh -c "keystone-manage db_sync" keystone

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 1604, in _parse_file
    parser.parse()
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 1559, in parse
    return super(ConfigParser, self).parse(f.readlines())
  File "/usr/lib/python3/dist-packages/oslo_config/iniparser.py", line 85, in parse
    section = self._get_section(line)
  File "/usr/lib/python3/dist-packages/oslo_config/iniparser.py", line 36, in _get_section
    return self.error_no_section_end_bracket(line)
  File "/usr/lib/python3/dist-packages/oslo_config/iniparser.py", line 123, in error_no_section_end_bracket
    raise self.parse_exc('Invalid section (must end with ])',
oslo_config.cfg.ParseError: at /etc/keystone/keystone.conf:2275, Invalid section (must end with ]): '[token]/revocation_cache_time'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/keystone/cmd/manage.py", line 41, in main
    cli.main(argv=sys.argv, developer_config_file=developer_config)
  File "/usr/lib/python3/dist-packages/keystone/cmd/cli.py", line 1367, in main
    CONF(args=argv[1:],
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2131, in __call__
    self._namespace = self._parse_cli_opts(args if args is not None
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2902, in _parse_cli_opts
    return self._parse_config_files()
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2919, in _parse_config_files
    ConfigParser._parse_file(config_file, namespace)
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 1606, in _parse_file
    raise ConfigFileParseError(pe.filename, str(pe))
oslo_config.cfg.ConfigFileParseError: Failed to parse /etc/keystone/keystone.conf: at /etc/keystone/keystone.conf:2275, Invalid section (must end with ]): '[token]/revocation_cache_time'

This way, I had to comment the line [token]/revocation_cache_time.

This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:

- [X] This doc is inaccurate in this way: it should recommend commenting the '[token]/revocation_cache_time'' line.
- [ ] This is a doc addition request.
- [ ] I have a fix to the document that I can paste below including example: input and output.

If you have a troubleshooting or support issue, use the following resources:

 - The mailing list: https://lists.openstack.org
 - IRC: 'openstack' channel on Freenode

-----------------------------------
Release: 19.0.1.dev1 on 2019-09-18 18:54:05
SHA: f510c806de3e20cdedd55291cd58dafa59398bec
Source: https://opendev.org/openstack/keystone/src/doc/source/install/keystone-install-ubuntu.rst
URL: https://docs.openstack.org/keystone/wallaby/install/keystone-install-ubuntu.html

Revision history for this message
Gage Hugo (gagehugo) wrote :

I don't think revocation_cache_time exists in keystone.conf anymore, I believe it gets used for keystonemiddleware.

Was this done during an upgrade of OpenStack with pre-existing values?

Changed in keystone:
status: New → Incomplete
Revision history for this message
Dalton Cézane (daltoncezane) wrote :

No. In a fresh machine with Ubuntu 20.04, following the guide to install the Openstack Wallaby.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Identity (keystone) because there has been no activity for 60 days.]

Changed in keystone:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.