ImportError: No module named persistence.backends.sql - openstack

I am currently working on setting up OpenStack infrastructure on 3 nodes. I am stuck on starting keystone after I have successfully installed it. The error message I am getting is
ImportError: No module named persistence.backends.sql
The controller node has Ubuntu 12.04 and I am installing OpenStack icehouse version.. Could somebody shed some light on this error?

You would get that error if you used a keystone configuration file edited for the OpenStack Juno release with your Icehouse packages. In Icehouse, the correct value was "keystone.token.backends.sql.Token", only in Juno did it become "keystone.token.persistence.backends.sql.Token". [1]
So, check your keystone.conf, make sure it is written for Icehouse.
[1] http://docs.openstack.org/juno/config-reference/content/keystone-conf-changes-juno.html

If you are running Openstack Juno and the distro. you use is Ubuntu 14.04 just modify this line in /etc/keystone/keystone.conf
[token]
driver = keystone.token.persistence.backends.sql.Token
To
driver = keystone.token.backends.sql.Token

Related

How to know which version of Neutron is included in Openstack 3.18 Stein release?

I have a code snippet which will not work for Kilo version. I know the Openstack version, now I'm willing to know step/s to fetch the neutron version.
3.18 is the version of the openstack command line client, not the version of OpenStack.
There are several possible Neutron versions in Stein, all starting with 14. To obtain the precise version, either check the Python code or run neutron-db-manage version --verbose on a controller (see the documentation for information about this command).
There is no API that gives you the version of the deployed software. You obtain the API version by sending an HTTP GET to the bare Neutron endpoint, e.g. curl http://example.com:9696.
While I can't promise anything (it may be hard to find a Kilo installation for checking), feel free to publish your code here, stating what exactly works and doesn't work in which version.

Installing Python Client for Driverless AI

I'm trying to install the python client for h2o driverless, but get this message when i try to sudo pip install this whl file i got from the PY_CLIENT on the UI. This is the message i get. Does this work only on Linux systems ?
h2oai_client-1.3.1-py3-none-any.whl is not a supported wheel on this platform.
this may be related to your version of pip, please see this other generic question on your error filename.whl is not supported wheel on this platform
DAI does does work on linux systems for a full list of compatible installation platforms please see the user guide: http://docs.h2o.ai/driverless-ai/latest-stable/docs/userguide/installing.html

Missing value auth-url required for auth plugin password

I am trying to install openstack using devstack on ubuntu 16.04.
I followed the following link.
https://docs.openstack.org/developer/devstack/guides/single-machine.html
When I run
sudo openstack service list
, it prompt the following error.
Missing value auth-url required for auth plugin password
Make sure you are logged into horizon and download the rc file (right corner). After that do source admin-openrc.sh
Note that you have to download the rc file of the project you are working on
This should do. keystonerc_admin file is generated at the end of openstack packstack installation
source keystonerc_admin
always run admin-openrc file before running any openstack command
eg.
$source admin-openrc
then run whatever openstack command you want to run
eg.
$openstack --debug server list
Take rocky version of OpenStack Keystone as an example. https://docs.openstack.org/keystone/rocky/install/keystone-openrc-rdo.html#using-the-scripts
You can create an admin-openrc.sh (If you are installing OpenStack Keystone for the first time.) and put environment params. And source this file before you run any "openstack" command. This resolves the issue.
I put the admin-openrc.sh in directory /usr/share/keystone/admin-openrc.sh for a recommend.

When trying to migrate I get the error: 'PDOException'

When trying to migrate I get the error:
'PDOException' with message could not find driver
I'm on an Ubuntu Linux environment. I've configured "sqlite" and if I run sqlite3 from the command line I get to the sqlite shell, so it is correctly installed, but Laravel does not connect to the database!
If you have already installed the php_pdo, but it is not showing on your phpinfo(), you might need to add extension=sqlite.so to your /etc/php5/conf.d/sqlite.ini file.
pdo_slqite is missing. Should be installable via...
sudo apt-get install php5-sqlite

ImportError: No module named ldap (Windows XP)

I have installed Python 2.7.1 and python-ldap-2.4.8.win32-py2.7 module. Whenever I type
import ldap
it gives and error.......
ImportError: No module named ldap
Path is set properly, I have only one version of Python i.e. 2.7.1 I have installed python-ldap module properly.
then also I am facing this problem. why so?
Any help is very much appreciated.
Please provide more information to debug this problem.
Are you sure the python-ldap module was installed successfully? (I realize you said it was but if you tried to install it using pip, the install command completes with errors because it is missing some header files for the build)
The easiest way to install python-ldap on Windows is to download the binary from: http://pypi.python.org/pypi/python-ldap
Make sure you download the python-ldap version that corresponds to your installed python version.

Resources