Ask Your Question

Is it possible to deploy Stein on Ubuntu 18.04?

asked 2019-07-18 12:08:04 -0500

pavera-b gravatar image

updated 2019-07-18 12:08:37 -0500

I'm attempting to deploy Stein on Ubuntu 18.04 and it appears there are at least a few complete incompatibilities.

1) Upon deployment of the new placement service it is not possible to run $ placement-status upgrade check as the placement-status script has a clear sqlalchemy bug, this code has never been run once in testing apparently? I have a patch but have never contributed to openstack and it appears to be a 3 week process to get approved to submit a pull request...

2) Upon attempting to install the osc-placement plugin via pip it is not possible to install because it requires a newer version of simplejson than glance requires and so attempting to resolve the dependencies is going to uninstall glance.

Has Stein ever been successfully installed on Ubuntu 18.04? Is this a supported deployment option or should I move to ubuntu 19.04?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2019-07-18 14:48:13 -0500

josh.wilson gravatar image

updated 2019-07-18 22:20:39 -0500

I'm actively running Stein on an Ubuntu 18.04 environment. Controller node is running Ubuntu Desktop, and my nodes are running Ubuntu Server. Though I haven't really messed with Placement since I installed it and I haven't worked with that plugin in particular.

Is this what you're seeing with that placement command?

stackadmin@stack-controller:~$ placement-status upgrade check
Traceback (most recent call last):
  File "/usr/bin/placement-status", line 10, in <module>
  File "/usr/lib/python3/dist-packages/placement/cmd/", line 131, in main
    config(args=sys.argv[1:], project='placement')
  File "/usr/lib/python3/dist-packages/oslo_config/", line 2127, in __call__
  File "/usr/lib/python3/dist-packages/oslo_config/", line 2865, in _check_required_opts
    raise RequiredOptError(, group)
oslo_config.cfg.RequiredOptError: value required for option connection in group [placement_database]
edit flag offensive delete link more


I don't know if op is still interested in this, but I am! @josh.wilson: I have the exactly the error message you pasted. Could you let us know what you did to solve it?


gsa gravatar imagegsa ( 2019-08-06 04:17:17 -0500 )edit

So for me, the fault was in the connection string in my placement.conf. But it was dependent on my [keystone_authtoken] and [api] sections being correct.

[placement_database] connection = sqlite:////var/lib/placement/placement.sqlite

josh.wilson gravatar imagejosh.wilson ( 2019-08-16 09:23:41 -0500 )edit

Hello I'm having trouble in that part too, i'm deploying op using the guide for train and i got the same error when doing the upgrade check for placement, can you tell me if you changed anything else than the post ( says, thank you

joserick1532 gravatar imagejoserick1532 ( 2020-05-06 01:07:32 -0500 )edit

How to fix "openstack --os-placement-api-version 1.2 resource class list --sort-column name is not an openstack command" error?

Ninad_Jadhav gravatar imageNinad_Jadhav ( 2020-08-19 15:34:05 -0500 )edit

answered 2019-08-29 16:03:12 -0500

I received the same message...

I. part

value required for option connection in group [placement_database]

For some reason openstack cannot open for reading file /etc/keystone/keystone.conf even it's permissions 644. My work around was to create a new temporary directory and copy all files from /etc/keystone and rename that directory back to keystone:

sudo mk dir /etc/keystone_temp
sudo cp /etc/keystone/* /etc/keystone_temp
sudo mv /etc/keystone_temp /etc/keystone
sudo chown keystone:keystone /etc/keystone -R

then the command previously completed from root (or with sudo), now could give proper result running from my openstack user:

$ placement-status upgrade check

It could pass without that big error message.

II. part

work around with pip - uninstall that simplejson with:

sudo apt remove python3-simplejson

yes, it uninstalled keystone and glance, previously installed - I just installed them back. *conf files stayed untouched then installed pip, then with pip, then run all the packages, which were removed when simplejson was unninstalled:

pip install osc-placement
sudo apt install python3-openstackclient
sudo apt install keystone
sudo apt install glance
sudo apt install placement-api

now it worked:

$ . adminrc 
$ openstack --os-placement-api-version 1.2 resource class list --sort-column name
| name                       |
| DISK_GB                    | 
| IPV4_ADDRESS               | 
| MEMORY_MB                  | 
| NUMA_CORE                  | 
| NUMA_MEMORY_MB             | 
| NUMA_SOCKET                | 
| NUMA_THREAD                | 
| PCI_DEVICE                 | 
| PCPU                       | 
| SRIOV_NET_VF               | 
| VCPU                       | 
| VGPU                       | 
| VGPU_DISPLAY_HEAD          |
edit flag offensive delete link more


in part 2 : I followed documents and above-mentioned steps still, I am getting "openstack --os-placement-api-version 1.2 resource class list --sort-column name is not an openstack command" error How to fix this?

Ninad_Jadhav gravatar imageNinad_Jadhav ( 2020-08-19 15:33:24 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2019-07-18 12:08:04 -0500

Seen: 642 times

Last updated: Aug 29 '19