Advertisement
Guest User

CLI dump while fixing Keystone

a guest
Aug 25th, 2014
630
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@controller:~# apt-get install keystone
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. keystone is already the newest version.
  6. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  7. 1 not fully installed or removed.
  8. After this operation, 0 B of additional disk space will be used.
  9. Do you want to continue [Y/n]? Y
  10. Setting up keystone (1:2013.2.3-0ubuntu1~cloud0) ...
  11. Traceback (most recent call last):
  12. File "/usr/bin/keystone-manage", line 51, in <module>
  13. cli.main(argv=sys.argv, config_files=config_files)
  14. File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 217, in main
  15. default_config_files=config_files)
  16. File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1632, in __call__
  17. else sys.argv[1:])
  18. File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2133, in _parse_cli_opts
  19. return self._parse_config_files()
  20. File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2147, in _parse_config_files
  21. ConfigParser._parse_file(config_file, namespace)
  22. File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1252, in _parse_file
  23. raise ConfigFileParseError(pe.filename, str(pe))
  24. oslo.config.cfg.ConfigFileParseError: Failed to parse /etc/keystone/keystone.conf: at /etc/keystone/keystone.conf:3, Unexpected continuation line: ' admin_token = 123456'
  25. dpkg: error processing keystone (--configure):
  26. subprocess installed post-installation script returned error exit status 1
  27. Errors were encountered while processing:
  28. keystone
  29. E: Sub-process /usr/bin/dpkg returned an error code (1)
  30. root@controller:~# vim /etc/keystone/keystone.conf
  31. root@controller:~# apt-get install keystone
  32. Reading package lists... Done
  33. Building dependency tree
  34. Reading state information... Done
  35. keystone is already the newest version.
  36. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  37. 1 not fully installed or removed.
  38. After this operation, 0 B of additional disk space will be used.
  39. Do you want to continue [Y/n]? Y
  40. Setting up keystone (1:2013.2.3-0ubuntu1~cloud0) ...
  41. keystone start/running, process 1490
  42. root@controller:~# vim /etc/keystone/keystone.conf
  43. root@controller:~# export SERVICE_ENDPOINT=http://controller:35357/v2.0
  44. root@controller:~# export SERVICE_TOKEN=123456
  45. root@controller:~# service keystone status
  46. keystone start/running, process 1490
  47. root@controller:~# keystone tenant-create --name=admin --description="Admin Tenant"
  48. Invalid OpenStack Identity credentials.
  49. root@controller:~# service keystone stop
  50. keystone stop/waiting
  51. root@controller:~# service keystone start
  52. keystone start/running, process 1516
  53. root@controller:~# keystone tenant-create --name=admin --description="Admin Tenant"
  54. +-------------+----------------------------------+
  55. | Property | Value |
  56. +-------------+----------------------------------+
  57. | description | Admin Tenant |
  58. | enabled | True |
  59. | id | 6f0a2e25312448959faae2170a49c145 |
  60. | name | admin |
  61. +-------------+----------------------------------+
Advertisement
RAW Paste Data Copied
Advertisement