Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ubuntu 16.04.1 OpenStack Newton keystone installation problem

Hello,

As a learning exercise I am trying to install OpenStack Newton on Ubuntu 16.0.4.1 LTS. I am following the documentation located here: http://docs.openstack.org/newton/install-guide-ubuntu/overview.html

Unfortunately I am stuck early in the process, at the first service to be installed, keystone. Specifically, verifying its installation. All steps before that went without error. However, at this page of the doc- http://docs.openstack.org/newton/install-guide-ubuntu/keystone-users.html - I am getting errors when trying to execute the OpenStack create commands on this page. For example:

   openstack project create --domain default   --description "Service Project" service

Results in

Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.

Internal Server Error (HTTP 500)

These errors are in the /var/log/apache2/keystone.log:

2016-11-07 01:47:36.726880 2016-11-07 01:47:36.726 2616 WARNING keystone.assignment.core [-] Deprecated: Use of the identity driver config to automatically configure the same assignment driver has been deprecated, in the "O" release, the assignment driver will need to be expicitly configured if different than the default (SQL).
2016-11-07 01:47:37.133785 mod_wsgi (pid=2616): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-11-07 01:47:37.133814 mod_wsgi (pid=2616): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-11-07 01:47:37.133833 Traceback (most recent call last):
2016-11-07 01:47:37.133852   File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-11-07 01:47:37.133879     application = initialize_admin_application()
2016-11-07 01:47:37.133889   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-11-07 01:47:37.133906     config_files=_get_config_files())
2016-11-07 01:47:37.133912   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 69, in initialize_application
2016-11-07 01:47:37.133924     startup_application_fn=loadapp)
2016-11-07 01:47:37.133932   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 50, in setup_backends
2016-11-07 01:47:37.133945     res = startup_application_fn()
2016-11-07 01:47:37.133952   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 66, in loadapp
2016-11-07 01:47:37.133962     'config:%s' % find_paste_config(), name)
2016-11-07 01:47:37.133970   File "/usr/lib/python2.7/dist-packages/keystone/version/service.py", line 53, in loadapp
2016-11-07 01:47:37.134039     controllers.latest_app = deploy.loadapp(conf, name=name)
2016-11-07 01:47:37.134048   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2016-11-07 01:47:37.134223     return loadobj(APP, uri, name=name, **kw)
2016-11-07 01:47:37.134230   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2016-11-07 01:47:37.134241     return context.create()
2016-11-07 01:47:37.134249   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2016-11-07 01:47:37.134260     return self.object_type.invoke(self)
2016-11-07 01:47:37.134267   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2016-11-07 01:47:37.134277     **context.local_conf)
2016-11-07 01:47:37.134283   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2016-11-07 01:47:37.134320     val = callable(*args, **kw)
2016-11-07 01:47:37.134327   File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 28, in urlmap_factory
2016-11-07 01:47:37.134454     app = loader.get_app(app_name, global_conf=global_conf)
2016-11-07 01:47:37.134464   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2016-11-07 01:47:37.134477     name=name, global_conf=global_conf).create()
2016-11-07 01:47:37.134483   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 362, in app_context
2016-11-07 01:47:37.134494     APP, name=name, global_conf=global_conf)
2016-11-07 01:47:37.134500   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
2016-11-07 01:47:37.134510     global_additions=global_additions)
2016-11-07 01:47:37.134516   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
2016-11-07 01:47:37.134536     for name in pipeline[:-1]]
2016-11-07 01:47:37.134542   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
2016-11-07 01:47:37.134552     object_type, name=name)
2016-11-07 01:47:37.134558   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
2016-11-07 01:47:37.134568     self.filename))
2016-11-07 01:47:37.134585 LookupError: No section 'auth' (prefixed by 'filter') found in config /etc/keystone/keystone-paste.ini
2016-11-07 01:47:42.502401 mod_wsgi (pid=2615): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-11-07 01:47:42.502428 mod_wsgi (pid=2615): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-11-07 01:47:42.502448 Traceback (most recent call last):
2016-11-07 01:47:42.502467   File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-11-07 01:47:42.502492     application = initialize_admin_application()
2016-11-07 01:47:42.502500   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-11-07 01:47:42.502513     config_files=_get_config_files())
2016-11-07 01:47:42.502520   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 56, in initialize_application
2016-11-07 01:47:42.502530     common.configure(config_files=config_files)
2016-11-07 01:47:42.502536   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 30, in configure
2016-11-07 01:47:42.502547     keystone.conf.configure()
2016-11-07 01:47:42.502553   File "/usr/lib/python2.7/dist-packages/keystone/conf/__init__.py", line 128, in configure
2016-11-07 01:47:42.502565     help='Do not monkey-patch threading system modules.'))
2016-11-07 01:47:42.502571   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2189, in __inner
2016-11-07 01:47:42.502583     result = f(self, *args, **kwargs)
2016-11-07 01:47:42.502589   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2374, in register_cli_opt
2016-11-07 01:47:42.502599     raise ArgsAlreadyParsedError("cannot register CLI option")
2016-11-07 01:47:42.502616 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
2016-11-07 01:47:42.506102 mod_wsgi (pid=2614): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-11-07 01:47:42.506119 mod_wsgi (pid=2614): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-11-07 01:47:42.506135 Traceback (most recent call last):
2016-11-07 01:47:42.506254   File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-11-07 01:47:42.506304     application = initialize_admin_application()
2016-11-07 01:47:42.506313   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-11-07 01:47:42.506327     config_files=_get_config_files())
2016-11-07 01:47:42.506376   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 56, in initialize_application
2016-11-07 01:47:42.506389     common.configure(config_files=config_files)
2016-11-07 01:47:42.506397   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 30, in configure
2016-11-07 01:47:42.506407     keystone.conf.configure()
2016-11-07 01:47:42.506414   File "/usr/lib/python2.7/dist-packages/keystone/conf/__init__.py", line 128, in configure
2016-11-07 01:47:42.506424     help='Do not monkey-patch threading system modules.'))
2016-11-07 01:47:42.506431   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2189, in __inner
2016-11-07 01:47:42.506442     result = f(self, *args, **kwargs)
2016-11-07 01:47:42.506449   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2374, in register_cli_opt
2016-11-07 01:47:42.506459     raise ArgsAlreadyParsedError("cannot register CLI option")
2016-11-07 01:47:42.506482 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option

It seems as if it is having the issue with /usr/bin/keystone-wsgi-admin. In /usr/bin here are the relevant file timestamps and sizes

/usr/bin# ls -l | grep wsgi
-rwxr-xr-x 1 root     root         1806 Oct  8 15:46 keystone-wsgi-admin
-rwxr-xr-x 1 keystone keystone     1811 Oct  8 15:46 keystone-wsgi-public

the /var/log/keystone-wsgi-admin.log has this repeating message:

2016-11-07 01:47:36.726 2616 WARNING keystone.assignment.core [-] Deprecated: Use of the identity driver config to automatically configure the same assignment driver has been deprecated, in the "O" release, the assignment driver will need to be explicitly configured if different than the default (SQL).

Any suggestions or guidance on determining what might be calling this is welcome. This is a install on a clean newly created virtual machine. There were no errors running the various apt-get commands to download and install the components. I have restarted the sever several times but still have the problem. I have googled for a similar errors but the ones I found seem to be happening MUCH further down in the process than I have gotten, and with other components.

Ubuntu 16.04.1 OpenStack Newton keystone installation problem

Hello,

As a learning exercise I am trying to install OpenStack Newton on Ubuntu 16.0.4.1 LTS. I am following the documentation located here: http://docs.openstack.org/newton/install-guide-ubuntu/overview.html

Unfortunately I am stuck early in the process, at the first service to be installed, keystone. Specifically, verifying its installation. All steps before that went without error. However, at this page of the doc- http://docs.openstack.org/newton/install-guide-ubuntu/keystone-users.html - I am getting errors when trying to execute the OpenStack create commands on this page. For example:

   openstack project create --domain default   --description "Service Project" service

Results in

Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.

Internal Server Error (HTTP 500)

These errors are in the /var/log/apache2/keystone.log:

2016-11-07 01:47:36.726880 2016-11-07 01:47:36.726 2616 WARNING keystone.assignment.core [-] Deprecated: Use of the identity driver config to automatically configure the same assignment driver has been deprecated, in the "O" release, the assignment driver will need to be expicitly configured if different than the default (SQL).
2016-11-07 01:47:37.133785 mod_wsgi (pid=2616): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-11-07 01:47:37.133814 mod_wsgi (pid=2616): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-11-07 01:47:37.133833 Traceback (most recent call last):
2016-11-07 01:47:37.133852   File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-11-07 01:47:37.133879     application = initialize_admin_application()
2016-11-07 01:47:37.133889   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-11-07 01:47:37.133906     config_files=_get_config_files())
2016-11-07 01:47:37.133912   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 69, in initialize_application
2016-11-07 01:47:37.133924     startup_application_fn=loadapp)
2016-11-07 01:47:37.133932   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 50, in setup_backends
2016-11-07 01:47:37.133945     res = startup_application_fn()
2016-11-07 01:47:37.133952   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 66, in loadapp
2016-11-07 01:47:37.133962     'config:%s' % find_paste_config(), name)
2016-11-07 01:47:37.133970   File "/usr/lib/python2.7/dist-packages/keystone/version/service.py", line 53, in loadapp
2016-11-07 01:47:37.134039     controllers.latest_app = deploy.loadapp(conf, name=name)
2016-11-07 01:47:37.134048   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2016-11-07 01:47:37.134223     return loadobj(APP, uri, name=name, **kw)
2016-11-07 01:47:37.134230   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2016-11-07 01:47:37.134241     return context.create()
2016-11-07 01:47:37.134249   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2016-11-07 01:47:37.134260     return self.object_type.invoke(self)
2016-11-07 01:47:37.134267   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2016-11-07 01:47:37.134277     **context.local_conf)
2016-11-07 01:47:37.134283   File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2016-11-07 01:47:37.134320     val = callable(*args, **kw)
2016-11-07 01:47:37.134327   File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 28, in urlmap_factory
2016-11-07 01:47:37.134454     app = loader.get_app(app_name, global_conf=global_conf)
2016-11-07 01:47:37.134464   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2016-11-07 01:47:37.134477     name=name, global_conf=global_conf).create()
2016-11-07 01:47:37.134483   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 362, in app_context
2016-11-07 01:47:37.134494     APP, name=name, global_conf=global_conf)
2016-11-07 01:47:37.134500   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
2016-11-07 01:47:37.134510     global_additions=global_additions)
2016-11-07 01:47:37.134516   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
2016-11-07 01:47:37.134536     for name in pipeline[:-1]]
2016-11-07 01:47:37.134542   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
2016-11-07 01:47:37.134552     object_type, name=name)
2016-11-07 01:47:37.134558   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
2016-11-07 01:47:37.134568     self.filename))
2016-11-07 01:47:37.134585 LookupError: No section 'auth' (prefixed by 'filter') found in config /etc/keystone/keystone-paste.ini
2016-11-07 01:47:42.502401 mod_wsgi (pid=2615): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-11-07 01:47:42.502428 mod_wsgi (pid=2615): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-11-07 01:47:42.502448 Traceback (most recent call last):
2016-11-07 01:47:42.502467   File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-11-07 01:47:42.502492     application = initialize_admin_application()
2016-11-07 01:47:42.502500   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-11-07 01:47:42.502513     config_files=_get_config_files())
2016-11-07 01:47:42.502520   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 56, in initialize_application
2016-11-07 01:47:42.502530     common.configure(config_files=config_files)
2016-11-07 01:47:42.502536   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 30, in configure
2016-11-07 01:47:42.502547     keystone.conf.configure()
2016-11-07 01:47:42.502553   File "/usr/lib/python2.7/dist-packages/keystone/conf/__init__.py", line 128, in configure
2016-11-07 01:47:42.502565     help='Do not monkey-patch threading system modules.'))
2016-11-07 01:47:42.502571   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2189, in __inner
2016-11-07 01:47:42.502583     result = f(self, *args, **kwargs)
2016-11-07 01:47:42.502589   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2374, in register_cli_opt
2016-11-07 01:47:42.502599     raise ArgsAlreadyParsedError("cannot register CLI option")
2016-11-07 01:47:42.502616 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
2016-11-07 01:47:42.506102 mod_wsgi (pid=2614): Target WSGI script '/usr/bin/keystone-wsgi-admin' cannot be loaded as Python module.
2016-11-07 01:47:42.506119 mod_wsgi (pid=2614): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-admin'.
2016-11-07 01:47:42.506135 Traceback (most recent call last):
2016-11-07 01:47:42.506254   File "/usr/bin/keystone-wsgi-admin", line 51, in <module>
2016-11-07 01:47:42.506304     application = initialize_admin_application()
2016-11-07 01:47:42.506313   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 132, in initialize_admin_application
2016-11-07 01:47:42.506327     config_files=_get_config_files())
2016-11-07 01:47:42.506376   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 56, in initialize_application
2016-11-07 01:47:42.506389     common.configure(config_files=config_files)
2016-11-07 01:47:42.506397   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 30, in configure
2016-11-07 01:47:42.506407     keystone.conf.configure()
2016-11-07 01:47:42.506414   File "/usr/lib/python2.7/dist-packages/keystone/conf/__init__.py", line 128, in configure
2016-11-07 01:47:42.506424     help='Do not monkey-patch threading system modules.'))
2016-11-07 01:47:42.506431   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2189, in __inner
2016-11-07 01:47:42.506442     result = f(self, *args, **kwargs)
2016-11-07 01:47:42.506449   File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2374, in register_cli_opt
2016-11-07 01:47:42.506459     raise ArgsAlreadyParsedError("cannot register CLI option")
2016-11-07 01:47:42.506482 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option

It seems as if it is having the issue with /usr/bin/keystone-wsgi-admin. In /usr/bin here are the relevant file timestamps and sizes

/usr/bin# ls -l | grep wsgi
-rwxr-xr-x 1 root     root         1806 Oct  8 15:46 keystone-wsgi-admin
-rwxr-xr-x 1 keystone keystone     1811 Oct  8 15:46 keystone-wsgi-public

the /var/log/keystone-wsgi-admin.log has this repeating message:

2016-11-07 01:47:36.726 2616 WARNING keystone.assignment.core [-] Deprecated: Use of the identity driver config to automatically configure the same assignment driver has been deprecated, in the "O" release, the assignment driver will need to be explicitly configured if different than the default (SQL).

Any suggestions or guidance on determining what might be calling this is welcome. This is a install on a clean newly created virtual machine. There were no errors running the various apt-get commands to download and install the components. I have restarted the sever several times but still have the problem. I have googled for a similar errors but the ones I found seem to be happening MUCH further down in the process than I have gotten, and with other components.