summaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Rename app.wsgi to app_wsgi.pywu.chunyang2022-08-251-1/+1
| | | | | | | | | | 1. app.wsgi is a python script and should be end with py extension. 2. Generate trove-wsgi script which is needed by kolla to support https and ipv6. 3. Ignore build directory in git 4. update docs Change-Id: Ibbd6ecb8db25aa3a443d3f526f4cf6d418eb26f3
* [goal] Deprecate the JSON formatted policy fileGhanshyam Mann2020-12-261-1/+1
| | | | | | | | | | | | | | | | | | As per the community goal of migrating the policy file the format from JSON to YAML[1], we need to do two things: 1. Change the default value of '[oslo_policy] policy_file'' config option from 'policy.json' to 'policy.yaml' with upgrade checks. 2. Deprecate the JSON formatted policy file on the project side via warning in doc and releasenotes. Also replace policy.json to policy.yaml ref from doc and tests. [1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html Change-Id: I790409da69df8479ad2fe152b15c32ba45067c23
* Datastore containerizationLingxian Kong2020-05-276-504/+0
| | | | | | | | | | | | | Significant changes: * Using docker image to install datastore. * Datastore image is common to different datastores. * Using backup docker image to do backup and restore. * Support MariaDB replication * Set most of the functional jobs as non-voting as nested virtualization is not supported in CI. Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834
* Support ip address type for instancesLingxian Kong2020-04-262-8/+0
| | | | | | | | | | | | | | Include address type in getting instance response. * Deprecate confip option network_label_regex as we don't reply on Nova to get addresses, network names don't make any sense. * Add 'addresses' in instance API response, keep 'ip' as is but mark it deprecated in API doc, python-troveclient shouldn't break. Story: 2007562 Task: 39445 Change-Id: Ia0458b5ddae8959ce29c17e444e1a51a026283cd
* Fixes the following syntax error of etc/apache2/trove apache confHirotaka Wakabayashi2020-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 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
* Improve the function testsLingxian Kong2020-01-281-2/+0
| | | | | | | | | | | | | | | - Execute test groups in serial to make sure no more than 2 database instance are created at the same time. - Remove some unneccesary tests - Remove unneeded datastore, e.g. 'Test_Datastore_1' - Remove unsupported trovestack subcommands - Move unsupported DIB elements to the 'deprecated-elements' folder - Decrease default value of 'agent_call_high_timeout' to 5min - Add initial_deplay for pooling task - Use socket file to connect with database instead of using localhost IP Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
* Support to create public trove instanceLingxian Kong2019-09-112-6/+3
| | | | | | | | | | | | | | | | | | | | - The users need to specify the network to create Trove instance, but trove-taskmanager will create port in that network for Nova instance creation. Using port gives Trove more capabilities to define how the database service is exposed. - Deprecate ICMP protocol for the instance. - Restrict 'nics' parameter for creating instance. - Add 'access' parameter for creating instance. - Add 'public_network_id' option in order to create floating IP for the instance. - Do not create records for security groups, but Trove can still delete existing instances for backward compatibility. - Delete unreasonable Host, Account, Storage API. Story: 2006500 Task: 36468 Task: 36466 Change-Id: I80827e1ad5e6b130cbf94c2bb7a909c44d5cf1e5
* Support keypair in devstackLingxian Kong2019-08-292-306/+0
| | | | | | | | | | | | | Since Trove already supports to specify a Nova keypair when creating instance for management convenience, devstack needs to be changed to create the management keypair and add to Trove config file. One extra change in this patch is to use a single config file for Trove API, task-manager and conductor. Change-Id: I1e6c4f4305104815bdf89b31776a4955de61bc89 Story: 2005429 Task: 30463
* Deprecate the config option default_neutron_networksLingxian Kong2019-03-262-2/+2
| | | | | | | | Use `management_networks` instead. `management_networks`will be used as admin networks which will be attached to Trove instance automatically. Change-Id: I5c6004b568c3a428bc0f0a8b0e36665d3c5b3087
* Be compilance with latest oslo.messagingMarcin Piwowarczyk2018-10-135-123/+1
| | | | | | | | | | | | | | | | | | | | | | Support for the [oslo_messaging_rabbit] section has been removed in oslo.messaging==9.0.0 package [1]. That's why integration tests failures on build devstack step. This is the moment where we need to use the transport_url directive in the [DEFAULT] section instead. Moreover rpc_backend property (which was used in trove to enable fake RPC backend) has been removed from DEFAULT section and API tests fails on TIME_OUT as they starts on rabbit RPC backend. Fake RPC can be now configured as described here [2]: transport_url = 'fake:/' [1] https://docs.openstack.org/releasenotes/oslo.messaging/unreleased.html [2] https://docs.openstack.org/oslo.messaging/latest/configuration/conffixture.html Change-Id: Id6c5a9198d5a213cb085407a1d8b534e7c755f69 Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
* Update auth_uri option to www_authenticate_uricaoyuan2018-04-112-2/+2
| | | | | | | | | Option auth_uri from group keystone_authtoken is deprecated[1]. Use option www_authenticate_uri from group keystone_authtoken. [1]https://review.openstack.org/#/c/508522/ Change-Id: I46bb0acaf1dec9bb4b91d4a2180b3e7ed66741c2
* fix a typo in documentationmelissaml2018-03-231-1/+1
| | | | Change-Id: Ic53adfb74c628c8ca85b2fa2107999c1ae816833
* Merge "Add functionality to define different Message and Notification ↵Zuul2018-03-194-0/+112
|\ | | | | | | destination"
| * Add functionality to define different Message and Notification destinationwangjun2018-01-054-0/+112
| | | | | | | | | | | | | | | | | | Sometime,huge notification messages will effect the rabbitMQ cluster's performance.This commit adds functionality do define different Message and Notification destination. Closes-Bug: #1734823 Change-Id: I2ef4d008c9ca91a03d8c7e1380e0188bf6792595
* | Generate policy sample file automatically.Zhao Chao2018-02-122-243/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A new entrypoint in setup.cfg and a config file are added for using olso.policy helper script to generate the sample file. A new tox target also is added to simplify the environment setting up. Now policy sample file can be generated automatically, so the in-repo sample file is no longer needed. Co-Authored-By: Andrew Laski <andrew@lascii.com> Partial-Implements: blueprint policy-in-code Change-Id: Ic336fa154ccc05b5e9db3a8e751a484b1cc5aa9c Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Remove support of creating volume from Nova.Zhao Chao2018-02-092-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Current Nova server volume support is broken. Nova also declared the 'os-volumes_boot' will be deprecated in the future. As creating volumes by cinderclient has been supoorted for a long time, we could just drop support of Nova server volume. This patch also migrate to the new block_device_mapping_v2 parameter of Nova servers creating API. Closes-Bug: #1673408 Change-Id: I74d86241a5a0d0b1804b959313432168f68faf89 Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
* | Remove the heat related documentsZhongShengping2018-01-172-8/+4
| | | | | | | | | | | | | | | | This patch[1] removed heat related support. [1]https://review.openstack.org/#/c/385513/ Change-Id: Ib1b6f9f36097ae043d92fef3b32cf1f0ebac9672
* | Remove policy.json fileDai Dang Van2017-12-072-97/+243
|/ | | | | | | | | | | We already had default rule in code, so we should not still define all of them again in policy file. Besides, we should you yaml format for now instead json. Another thing, we don't need to config policy file in Devstack enviroment. Change-Id: I783ba51695271d358764557899fe91e84620556d
* Merge "Comment out the option oslo_messaging_rabbit.rabbit_password"Zuul2017-11-245-5/+5
|\
| * Comment out the option oslo_messaging_rabbit.rabbit_passwordStephen Ma2017-08-215-5/+5
| | | | | | | | | | | | | | | | The option oslo_messaging_rabblt.rabbit_password has been deprecated. Therefore the option is commented out in the sample config files etc/trove/ directory. Change-Id: I613087217c88b8a5dbf8dfc3f51e48b8fe4c84c8
* | Merge "Open the volume_support of redis"Zuul2017-11-092-6/+5
|\ \
| * | Open the volume_support of redisjiansong2017-11-032-6/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | In the past, we support volume_support when we support redis-cluster[1], but we did not update to conf[2]. we are making the sample conf files match the default configuration in code. [1]:https://review.openstack.org/#/c/203702/ [2]:https://review.openstack.org/#/c/107117/ Closes-Bug: #1701469 Change-Id: I428e274fdb85621b21453780e90a8a0ab401ffd9
* | Merge "Remove exists_notification_ticks from sample conf"Zuul2017-10-231-1/+0
|\ \
| * | Remove exists_notification_ticks from sample confSamuel Matzek2017-07-261-1/+0
| |/ | | | | | | | | | | | | | | The exists_notification_ticks conf option was removed under commit 08dc866fb241f535cce0609b02a34853882538f5 but was not removed from the sample configuration file. Change-Id: I3608929bd1ce4cd6ec767665b6f60fd5d86127b4
* | Remove inexistent option in install guide.Fan Zhang2017-08-071-10/+0
|/ | | | | | | | | Remove notifier_queue_* because the options are no longer needed and should be removed. Closes-bug: #1706528 Change-Id: Idfd205473f1756a69d0d9607e9f8c1dd9780553c
* Merge "Wrong comment symbol in configuration file"Jenkins2017-06-161-1/+1
|\
| * Wrong comment symbol in configuration fileLiuYang2017-02-241-1/+1
| | | | | | | | Change-Id: Icf6fa8296ae3bfa05a8e4f07c38ede1fb951d18d
* | Add port 16379 to conf.samplejiansong2017-04-262-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a point that is easily hidden. In the case of not open port 16379, redis cluster can still be deployed successfully, but this success is a false success, there is no data communication between the various nodes. This is because 16379 is the port for data port[1]. We set the default value in cfg, but in the case of conf,it is easy to be covered. Adding 16379 to conf.sample helps the user to reduce some problem caused by the redis configuration. [1]:https://redis.io/topics/cluster-tutorial Change-Id: If517072c1c875df68106af14dac1802bb959d17e
* | enable trove-api behind mod-wsgiAmrith Kumar2017-04-251-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables behind mod-wsgi as part of the community pike goal goal-deploy-api-in-wsgi. The change includes: - the wsgi script files to run trove api under apache - updates to the devstack plugin - a basic deploy doc which explains this change Change-Id: Icdd39b47a1be426e87a5d09f9e9d567af1974a9c Depends-On: I3d6f6649430ee40879de15fee0b215dc32e8b666 Closes-Bug: #1681478
* | fix-gate: change trove auth URL's to reflect new URL settingsAmrith Kumar2017-04-235-8/+8
| | | | | | | | | | | | | | | | | | | | | | Trove's code was setup to use :5000 and :35357 for keystone's auth end points. Change that to reflect the new settings that are /identity/ and /identity_admin/. See also [1] [1] https://review.openstack.org/#/c/456344/ Change-Id: I3d6f6649430ee40879de15fee0b215dc32e8b666 Related: I46294fb24e3c23fa19fcfd7d6c9ee8a932354702
* | Add support for module-reapply commandPeter Stachowski2017-02-271-1/+2
|/ | | | | | | | | | | | | | | | | | | | Server side support for the new 'reapply' command. This reapplies a given module to all instances that it had previously been applied to. Originally, a module designated live-update would automatically be re-applied whenever it was updated. Adding a specific command however, allows operators/users more control over how the new payload would be distributed. Old 'modules' could be left if desired, or updated with the new command. Scenario tests were updated to test the new command. DocImpact: update documentation to reflect module-reapply command Change-Id: I4aea674ebe873a96ed22b5714263d0eea532a4ca Depends-On: Ic4cc9e9085cb40f1afbec05caeb04886137027a4 Closes-Bug: #1554903
* Add support for Oslo Policies to TrovePetr Malik2016-12-061-0/+96
| | | | | | | | | | | | | | | | | | The Oslo Policy library provides support for RBAC policy enforcement across all OpenStack services. Update the devstack plugin to copy the default policy file over to /etc/trove in the gate environments. Note: Not adding a rule for 'reset-password' instance action as that API was discontinued years ago and is now just waiting for removal (Bug: 1645866). DocImpact Co-Authored-By: Ali Adil <aadil@tesora.com> Change-Id: Ic443a4c663301840406cad537159eab7b0b5ed1c Implements: blueprint trove-policy
* Merge "Use http_proxy_to_wsgi middleware"Jenkins2016-11-213-3/+19
|\
| * Use http_proxy_to_wsgi middlewareMasaki Matsushita2016-08-033-3/+19
| | | | | | | | | | | | | | | | This commit enables to handle HTTP_X_FORWARDED_PROTO by using http_proxy_to_wsgi middleware of oslo.middleware. Change-Id: I6a11c8470205ca78bdb027fa9a06fec3acda33ad Closes-Bug: #1590608
* | Implement full online backups for DB2Mariam John2016-09-131-1/+1
| | | | | | | | | | | | | | | | | | Currently Trove supports full offline backups for DB2. In this implementation, we have added support for full online backups for DB2 using archival logging. Change-Id: I30b5b0b85120fd105cc3db57983b062fad5fab5a Implements: blueprint db2-online-backup
* | Merge "Trove workbook for scheduled backups"Jenkins2016-09-091-0/+19
|\ \
| * | Trove workbook for scheduled backupsMorgan Jones2016-08-251-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | A Mistral workbook adding a workflow for creating a backup. This is used by the "trove schedule-create" command to schedule a backup. Change-Id: I68d997abf4ec7c32044dd18cf2a70e687c0fed9f Implements: blueprint schedule-backups
* | | Merge "Add trove-guestagnet.conf sample for log rotation"Jenkins2016-08-232-0/+40
|\ \ \
| * | | Add trove-guestagnet.conf sample for log rotationMasaki Matsushita2016-08-092-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a configuration sample of guestagent to use log rotation. Change-Id: I2f2fb0d42f2f9d674daf3adff8725a365cc1a5b3 Closes-Bug: #1269615
* | | | Adds the api-ref migrated RST + YAML filesAmrith Kumar2016-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this email[0], you must migrate API reference docs into RST. The conf.py and the tox environment are also cribbed from nova. Still need to retain the install_command in tox.ini, otherwise the api-ref job fails. [0] http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html Co-Authored-By: Anne Gentle <agentle@cisco.com> Co-Authored-By: Amrith Kumar <amrith@tesora.com> Change-Id: I3315261aa18729fa7a6aa79d4a1d6c24de1e2c6b
* | | | guest_id missing err, switch config_drive defaultGreg Retkowski2016-08-061-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the default setting for use_nova_server_config_drive from False to True. By default, nova does not use a config drive for launched instances. Therefore trove must implicitly request the config drive be used so that it can inject guest_info.conf into the guest VM. This commit also adds an error to guestagent when guest_id is missing. If the guest_id configuration parameter is not set at guestagent startup it will throw a RuntimeError. This case typically occurs because guest_info.conf was not injected into the guest, or was not included in the set of configs that guestagent reads at startup. And finally, this commit adds a section in the 'building guest images' documentation describing how configuration is injected into the guest agent. Change-Id: I084c841472183893a63ca7b70d560f44a2f08901 Partial-Bug: 1609915
* | | Introduce "icmp" option for security group ruleMasaki Matsushita2016-08-041-0/+2
| |/ |/| | | | | | | | | | | | | | | | | | | This change introduces new datastore option "icmp" to configure whether to permit ICMP. It helps users to check DB instance health in different way from access DB ports. DocImpact Closes-Bug: #1485884 Change-Id: I61edeb38ded5543b7976a01363108a7b5b4fc5b5
* | Switch from MySQL-python to PyMySQLJeremy Stanley2016-06-304-5/+5
|/ | | | | | | | | | | | | | | | | | | | | As discussed in the Liberty Design Summit "Moving apps to Python 3" cross-project workshop, the way forward in the near future is to switch to the pure-python PyMySQL library as a default. https://etherpad.openstack.org/p/liberty-cross-project-python3 BaseMySqlRootAccess.enable_root(): catch also InternalError because the PyMySQL error is not wrapped into a SQLAlchemy OperationalError, but a generic SQLAlchemy InternalError. Similar change is made in 026_datastore_versions_unique_fix.py. This change requires a trove integration change to add the PyMySQL to the guest image: Id4d013d174ba40a453819f900aaa316a93e59b48. Partially implements: blueprint trove-python3 Co-Authored-By: Victor Stinner <vstinner@redhat.com> Depends-On: Id4d013d174ba40a453819f900aaa316a93e59b48 Change-Id: I65e8a8d5dc251a8b00529cdfb1a6ada3d5720f68
* Switch test config file to use os_region_nameMatt Fischer2016-06-051-1/+1
| | | | | | The old value of nova_region_name has not been used in some time. Change-Id: I8fdd6d8ae4f0982b37cff7b5583429ccb6bd4aaf
* remove verbose option in Trove config filesAmrith Kumar2016-05-264-10/+0
| | | | | | | | | | This option is now deprecated and will be removed in Newton. The default is True, time to get rid of it in Trove. Partial-Bug: 1586066 Change-Id: I63e3a2832d0862254548be36fea77d5d4fa381b3 related: https://review.openstack.org/#/c/314573/ ref: http://lists.openstack.org/pipermail/openstack-dev/2016-May/095166.html
* Merge "Add MongoDB config server port to cfg"Jenkins2016-03-181-1/+1
|\
| * Add MongoDB config server port to cfgMatt Van Dijk2016-03-091-1/+1
| | | | | | | | | | | | | | | | | | The configuration server port 27019 was missing from the Trove config files. Add it, and replace the hardcoded version in the guestagent with a ref to the conf. Change-Id: Ibca4cbed7669a0fde82af4e3c402f80d24bd9fad Closes-bug: #1555180
* | Implement Backup and Restore for CouchDBMariam John2016-03-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recommended method for doing full backups in CouchDB has been a simple filesystem copy of the data files. This is because CouchDB stores data in wholly contained append only files. For example, when a user creates a database, a corresponding <database-name>.couch file is created in the database directory. The backup functionality has been implemented by compressing the database directory and then encrypting it and sending it over to store in Swift. Similarly, the restore functionality has been implemented by fetching the files from Swift and uncompressing them into the database directory. After this, the ownership of the directory needs to be updated. To test the changes, follow the steps: - Create a CouchDB instance - Access the admin console called Futon using the following url: http://10.0.0.5:5984/_utils/ - Create a database from there and create one or more documents - Create a backup of this CouchDB instance - Create another CouchDB instance from the backup created above - Access the admin console for this new instance and verify that the database created above is there couchdb client library for the integration tests has been added to global-requirements: https://review.openstack.org/#/c/285191/ Change-Id: Iad6d69bf60ace73825819081964a43ad53d6c6fc Implements: blueprint couchdb-backup-restore
* | Merge "Addition of DB2 backup & restore functionality"Jenkins2016-03-151-0/+6
|\ \
| * | Addition of DB2 backup & restore functionalityIshita Mandhan2016-03-151-0/+6
| |/ | | | | | | | | | | | | | | | | Implementation of backup and restore functionality for db2 databases. Backup occurs on instance and then it is compressed and streamed to Swift. Restore works backwards. Change-Id: I78dd67369a1670ca72a89cc111cae40ed091fe47 Implements: blueprint db2-backup-restore