Ask Your Question
0

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
0

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                  | 
| NET_BW_EGR_KILOBIT_PER_SEC | 
| NET_BW_IGR_KILOBIT_PER_SEC | 
| 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
0

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>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/placement/cmd/status.py", line 131, in main
    config(args=sys.argv[1:], project='placement')
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2127, in __call__
    self._check_required_opts()
  File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2865, in _check_required_opts
    raise RequiredOptError(opt.name, group)
oslo_config.cfg.RequiredOptError: value required for option connection in group [placement_database]
edit flag offensive delete link more

Comments

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?

Thanks!

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 144 times

Last updated: Aug 29