OpenStack Database As A Service (Trove)
Go to file
Hirotaka Wakabayashi 2f7f2c743b Fixes the following syntax error of etc/apache2/trove apache conf
$ apache2ctl configtest
AH00526: Syntax error on line 16 of /etc/apache2/sites-enabled/trove-api.conf:
Invalid command 'through', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

I refere the manual to configure my trove env.
https://docs.openstack.org/trove/latest/install/apache-mod-wsgi.html

Here are three steps to reproduce the error.

Step1. Install apache2 and mod_wsgi
-----------------------------------
$ sudo apt-get install apache2 libapache2-mod-wsgi-py3

Step2. Git clone and Configure apache
-------------------------------------
$ git clone https://opendev.org/openstack/trove.git; cd trove
$ sudo cp etc/apache2/trove /etc/apache2/sites-available/trove-api.conf
$ sudo a2ensite trove
ERROR: Site trove does not exist!

I files this in https://bugs.launchpad.net/trove/+bug/1867811

$ sudo a2ensite trove-api
Enabling site trove-api.
To activate the new configuration, you need to run:
  systemctl reload apache2

Step3. Syntax error happens
----------------------------
Before starting apache2, Add "stack" user and mkdir "/var/log/httpd" directory.
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
$ sudo mkdir -p /var/log/httpd

$ apache2ctl configtest
AH00526: Syntax error on line 16 of /etc/apache2/sites-enabled/trove-api.conf:
Invalid command 'through', perhaps misspelled or defined by a module not included in the server configuration
pAction 'configtest' failed.
The Apache error log may have more information.

$ apache2ctl configtest
AH00526: Syntax error on line 16 of /etc/apache2/sites-enabled/trove-api.conf:
Invalid command 'through', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

$ sudo vi /etc/apache2/sites-enabled/trove-api.conf
$ diff  /etc/apache2/sites-enabled/trove-api.conf /etc/apache2/sites-enabled/trove-api.conf.orig
16c16
< # through mod_wsgi
---
> through mod_wsgi

$ apache2ctl configtest
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK

I have tested on Ubuntu 18.04.4 LTS.

$ uname -a
Linux ubuntu-bionic 4.15.0-76-generic #86-Ubuntu SMP Fri Jan 17 17:24:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Signed-off-by: Hirotaka Wakabayashi <hiwkby@yahoo.com>
Change-Id: Ia010941fd9fde2036672f6e6ae8ac488d63c1d4a
2020-03-19 00:50:15 +00:00
api-ref/source Cleanup docs building 2020-02-22 19:11:19 +01:00
contrib Support python3 in guest agent 2019-08-27 15:03:45 +12:00
devstack Support to test non-dev guest image in CI 2020-03-16 11:10:05 +13:00
doc/source Merge "Cleanup docs building" 2020-03-09 10:03:25 +00:00
etc Fixes the following syntax error of etc/apache2/trove apache conf 2020-03-19 00:50:15 +00:00
integration Add python-troveclient in requirements.txt 2020-03-15 20:57:39 +13:00
playbooks Remove some unrelated code 2019-12-15 23:16:26 +13:00
releasenotes Config admin clients as default 2020-01-19 16:11:41 +13:00
roles/trove-devstack Improve the function tests 2020-01-28 14:27:52 +13:00
tools Use dedicated service credential config 2019-10-10 11:49:04 +13:00
trove Delete error volumes when deleting instance 2020-03-17 14:20:52 +13:00
.coveragerc Update some information 2016-10-24 04:12:55 +00:00
.gitignore Generate policy sample file automatically. 2018-02-12 18:11:22 +08:00
.gitreview OpenDev Migration Patch 2019-04-19 19:26:15 +00:00
.stestr.conf Fix guestagent.test_operating_system for Python3 2018-03-01 10:52:26 +08:00
.zuul.yaml Support to test non-dev guest image in CI 2020-03-16 11:10:05 +13:00
CONTRIBUTING.rst fix bug report url 2019-09-03 03:03:27 +00:00
HACKING.rst Remove log translations 2018-01-24 17:21:26 +00:00
LICENSE Add Apache 2.0 LICENSE file. 2013-04-29 18:01:12 -04:00
README.rst fix bug report url 2019-09-03 03:03:27 +00:00
babel.cfg Setup trove for translation 2014-03-19 15:06:23 +01:00
bindep.txt Fix Trove CI jobs 2019-08-14 21:20:34 +12:00
generate_examples.py Fixes hacking rules 2015-05-29 07:27:59 +00:00
lower-constraints.txt Cleanup docs building 2020-02-22 19:11:19 +01:00
pylintrc initial chkin of pylint 2016-09-14 13:56:24 -04:00
requirements.txt Add python-troveclient in requirements.txt 2020-03-15 20:57:39 +13:00
run_tests.py Improve the function tests 2020-01-28 14:27:52 +13:00
setup.cfg Small cleanups 2020-03-10 10:08:52 +13:00
setup.py Updated from global requirements 2017-03-02 11:57:16 +00:00
test-requirements.txt Cleanup docs building 2020-02-22 19:11:19 +01:00
tox.ini Add python-troveclient in requirements.txt 2020-03-15 20:57:39 +13:00

README.rst

Trove

image

Trove is Database as a Service for OpenStack.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://opendev.org/openstack/trove

For information on how to contribute to trove, please see CONTRIBUTING.rst and HACKING.rst

You can raise bugs here: Bug Tracker

The plan for trove can be found at Trove Specs

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/trove

Python client

Python-troveclient is a client for Trove.

Dashboard plugin

Trove-dashboard is OpenStack dashbaord plugin for Trove.

References