b3ea1035ff9a8760f4a2a37dee457e5b14dbdb0c
Commit Graph

31 Commits

Author SHA1 Message Date
Jonathan Rosser
951924ab51 Use keystone catalog and fix looking up and storing admin tenant id
Trove is now able to properly use the service catalog [1].
We have another[2] patch that this patch depends-on, which
causes us to have a circular dependency. As the change is minimal,
should be ok to squash them together to be able to fix that role.
The paragraph bellow contains the commit message of the patch that is
being squashed.
The 'Get admin tenant id' task was passing invalid arguments to the
os_project_facts module, and the 'Store admin tenant id' task was not
using the correct variable to retrieve the project id.
[1] https://review.opendev.org/#/c/574254/
[2] https://review.opendev.org/#/c/665458/
Change-Id: I779ba715d20d83b1efe4f07226a5eadd7e0a1870
2019年06月25日 19:00:52 +00:00
Kevin Carter
b58811d7da Correct notification driver
The notification driver setup was resulting in the driver and connection string
on the same line. This is caused by the case statement and how jinja formats
the template when a case statement is present. This change modifies how the
driver string is created using a ternary, which will eliminate the case
statement and render the value of the diver correctly.
Change-Id: Iefcec440db0e61adf8c6ce3a8b8ae9a4125a802d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019年02月07日 22:39:33 +00:00
ZhijunWei
3bbc52b399 Update messaging notification configuration
This patch add the conditional inclusion of the notification
section of the service configuration. This ensures that oslo.messaging
notifications use the correct transport for deployments that have
separate rpc and notify messaging backends. For example, if the
transport_url is not provided in the notification section of the
service configuration, the transport_url specified in the default
section will be used instead.
This patch conditionally selects the notifier driver. The noop
driver will be selected when notification publishing is disabled.
The messagingv2 driver is selected when notification publishing is
enabled.
Change-Id: Ie967b281e15127bbf611aca557e99ac6b3d1cd4b
Closes-Bug: #1794320 
2018年09月27日 02:16:53 +00:00
Andrew Smith
3c4f4127b4 Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and are used to generate the messaging
transport_url for the service. The association of the messaging
backend server to the oslo.messaging services will then be transparent
to the trove service.
This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Update transport_url generation (add for notification)
* Add oslo.messaging to tests inventory
* Update tests
* Update docs
* Update extras
* Add release note
Change-Id: Ia01317343ae6fbc790d64b5ba282c8c069750d45
2018年07月03日 12:43:55 -04:00
Zuul
f7d32b5099 Merge "Convert role to use a common systemd service role" 2018年05月10日 16:48:37 +00:00
ZhongShengping
7a283a632e Deprecate auth_uri option
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: I9b21be85a00bf6c4fdeec139a340fecc946d1f87
Implements: blueprint deprecate-auth-uri-option
2018年04月03日 14:16:53 +08:00
Kevin Carter
51fa0eb892 Convert role to use a common systemd service role
This removes the systemd service templates and tasks from this role and
leverages a common systemd service role instead. This change removes a
lot of code duplication across all roles all without sacrificing features
or functionality. The intention of this change is to ensure uniformity and
reduce the maintenance burden on the community when sweeping changes are
needed. The exterior role is built to be OSA compatible and may be pulled
into tree should we deem it necessary.
Change-Id: Id833d4ecf9d17bb74c1c0702c00ace241ac48873
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018年03月30日 23:06:06 -05:00
ZhongShengping
aea2785d88 Remove Trove's support for Heat
This patch[1] removed heat related support.
[1]https://review.openstack.org/#/c/385513/
Change-Id: I4e715cfe5e3077b2cb3baebfbff93a96b9c90d09
Closes-Bug: #1743717 
2018年02月07日 19:41:17 +00:00
Samuel Matzek
0157445c7b Fix notification configuration
Remove the exists_notification_ticks conf setting that was removed from
Trove 2 years ago.
Remove the exists_notification_transformer setting which enables an optional
function which has been broken since Ocata per bug 1700586.
Change-Id: If9fd396d14907d4f88065ac34f671b3370a1ffa7
Related-Bug: #1700586 
2017年07月26日 11:46:56 -05:00
ZhongShengping
4d3ae78c02 Deprecate rpc_backend option
Option "rpc_backend" from group "DEFAULT" is deprecated for removal
(Replaced by [DEFAULT]/transport_url). Its value may be silently
ignored in the future.
Change-Id: Ia0c175746a5bdd0f8c722ab214719e77160a0e12
Implements: blueprint deprecate-rpc-backend
2017年06月01日 15:46:28 +08:00
ZhongShengping
10ff5cb3c1 Deprecate rabbit_use_ssl option
Option "rabbit_use_ssl" from group "oslo_messaging_rabbit" is deprecated.
Use option "ssl" from group "oslo_messaging_rabbit".
Change-Id: Ibbd06cb3e65bf9970b0b3de62c9e12ce5fa4f678
Implements: blueprint deprecate-rabbit-use-ssl
2017年05月23日 10:39:09 +08:00
Jesse Pretorius
4d82413ff7 Reduce init restart/kill times
The systemd unit 'TimeoutSec' value which controls the time
between sending a SIGTERM signal and a SIGKILL signal when
stopping or restarting the service has been reduced from 300
seconds to 120 seconds. This provides 2 minutes for long-lived
sessions to drain while preventing new ones from starting
before a restart or a stop.
The 'RestartSec' value which controls the time between the
service stop and start when restarting has been reduced from
150 seconds to 2 seconds to make the restart happen faster.
These values can be adjusted by using the *_init_config_overrides
variables which use the config_template task to change template
defaults.
Change-Id: I7f23a74fd644aa0d631e9b0f7d96083b645bc032
2017年04月26日 13:05:26 +00:00
Kyle L. Henderson
ad42e4df35 Add redis cluster port
The redis cluster port was missing from the trove sample
config files. A fix to trove is proposed here [1].
[1] https://review.openstack.org/#/c/455889
Change-Id: I15268af320dc1734c51a8c17f19335105cd95e8d
2017年04月23日 02:16:26 +00:00
Kyle L. Henderson
9d8a9347c4 Implement trove networking
To operate properly the trove guest agent needs access to
rabbitmq and also the neutron network for trove to use must
be created and defined in the trove.conf file.
This changeset adds documentation, tasks and
configuration defaults to setup the networking for
trove.
Change-Id: Idcf87c2eef0af475c02412f03433d22d7b08643f
2017年04月14日 14:46:26 -05:00
Kyle L. Henderson
086bd308de Add taskmanager encryption key to api
Testing revealed that the trove api service needs the task
manager's encryption key.
Change-Id: I4d34b7e68b69ce30ee1fb08e7495cd22fa157495
2017年04月11日 10:32:55 -05:00
Kyle L. Henderson
b948402c76 Add RPC encryption key support
In the Ocata release, trove added support for encrypting the rpc
communication between the guest instances and the control plane.
These settings allow the user to specify installation specific
keys versus using the default keys.
Change-Id: Ie42d754d58e983a15b553ad8a399813c9a700344
2017年03月31日 13:41:06 -05:00
Jenkins
83adc96f1b Merge "Deprecate auth_plugin option" 2017年03月30日 21:49:53 +00:00
Kevin Carter
b6efe327aa Ensure the components are isolated from the system
This creates a specific slice which all OpenStack services will operate
from. By creating an independent slice these components will be governed
away from the system slice allowing us to better optimise resource
consumption.
See the following for more information on slices:
* https://www.freedesktop.org/software/systemd/man/systemd.slice.html
See for following for more information on resource controls:
* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
Tools like ``systemd-cgtop`` and ``systemd-cgls`` will now give us
insight into specific processes, process groups, and resouce consumption
in ways that we've not had access to before. To enable some of this reporting
the accounting options have been added to the [Service] section of the unit
file.
Change-Id: I6dccb6eeabceea30922cbcf3a60e32e841612fd0
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017年03月30日 15:08:28 +00:00
ZhongShengping
6a55fccd31 Deprecate auth_plugin option
Option "auth_plugin" is deprecated, use option "auth_type" instead.
Change-Id: I77f5757a4d12c8320702bcf3685c5de7417ceda6
Implements: blueprint deprecate-auth-plugin
2017年03月25日 12:26:08 +08:00
Andy McCrae
de0a9999fb Update paste, policy and rootwrap configurations 2017年03月03日
Change-Id: I5b9b14fe41f49106c8b1833e8b4c59ecae8ec181
2017年03月03日 11:34:19 +00:00
Ravi Gummadi
fdd59ffe60 Configure trove_conductor_workers in os_trove
Configure trove_conductor_workers by calculating the default value.
Similar to other services worker threads, the default value for
trove_conductor_workers is half the number of vcpus on the machine.
Also added capping of worker threads for trove.
Change-Id: If853b0e1e45b7137572df8a1123273539343c83e
Closes-Bug: #1664639 
2017年02月17日 05:59:51 -05:00
Chhavi Agarwal
17ce2cd1fe Adding the trove-guestagent.conf
Updating the trove-post-install to generate the
trove-guestagent.conf during the os_trove deployment.
Closes-Bug: #1658694
Change-Id: I4d8ac1b40d36b188718a02b89a1ea70fb89e7111
2017年01月31日 02:10:45 -06:00
ZhongShengping
11b18da984 Remove pki support
Change-Id: I75dc369a21fd7fe32bf89baa1b927b755254003e
Implements: blueprint remove-pki
2016年12月29日 13:51:31 +08:00
Andy McCrae
bfdbbf6065 Remove Trusty support from os_trove role
Change-Id: I5f9d920cc99bcc62859663434b2615c317d8fbdc
Implements: blueprint trusty-removal
2016年12月15日 15:10:27 +00:00
Andy McCrae
8b8cfcea78 Update paste, policy and rootwrap configurations 2016年12月10日
Change-Id: I2586f36e23d5decec524babf8ef8de2cb6be6468
2016年12月10日 13:19:06 +00:00
Andy McCrae
6d14488b9e Update paste, policy and rootwrap configurations 2016年12月02日
Change-Id: I119a44520bb5eabd6930f7be6936dd31b982f4d4
2016年12月02日 10:02:54 +00:00
Jesse Pretorius
fdbb980a18 Update paste, policy and rootwrap configurations 2016年10月06日
Change-Id: I06ae08392e66229b9120c41309f1ba5e7301b217
2016年10月06日 14:40:33 +01:00
Kyle L. Henderson
a90e7afc5c Update role with fixes for AIO testing
While doing some preliminary testing using a prototype AIO, the
following issues where observed and fixed.
The trove CLI is expecting the service name to be 'database' in
keystone. Update from 'dbaas' to 'database'.
Add the tenant id to the trove service URLs, they are needed.
Ignore failures when restarting services since all trove services
are attempted to be restarted in all trove containers, which
produces invalid combinations.
When calling the trove-manage CLI to create the DB, provide the
trove conductor conf file so the CLI has the DB connection
information.
Add a blank line after the transport_url specification, otherwise
the following line is added to the URL and forms an invalid value.
Add Nova and Keystone configuration values to the trove api conf
file since they are needed by the trove api service.
Add Nova configuration values for the trove task manager service.
Default to using the internal URL to for nova client.
Change-Id: If70077ea5d66151999b8965c218e4cb853e6f81a
2016年09月15日 12:41:14 -05:00
Donovan Francesco
3455ec7579 Deploy Openstack-Trove (DBaaS)
This commit allows the deployer to create 3 containers to run
Trove-API, Trove-Conductor and Trove-Taskmanager.
Change-Id: If93330d48f53745d45af351b9de9a4a733af943a
2016年09月01日 15:17:08 +02:00
Donovan Francesco (IS)
28f3145e6b Update 2016年08月25日 14:56:41 +02:00
Donovan Francesco
4b80fd260d Initial Commit 2016年08月25日 14:54:34 +02:00