| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
This PS ensure oslo Context.update_store method is called, to
ensure that thread-local context object is updated before
Trove service render log
Story: 2010451
Task: 46951
Change-Id: I5258853aed33cbcd26a5b6d68a5e5a4b9aa1fd48
Signed-off-by: Ha Minh Cong <conghm1@viettel.com.vn>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix the following deprecation warnings.
* DeprecationWarning: Using the 'user' argument is deprecated
in version '2.18' and will be removed in version '3.0',
please use the 'user_id' argument instead
* DeprecationWarning: Property 'user' has moved to 'user_id'
in version '2.6' and will be removed in version '3.0'
Change-Id: I18802ae1e2318eae3c62a26459178b259c728ac4
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
This change checks if the user input is legal.
if illegal, we raise an InvalidValue excepiton.
Story: 2010004
Task: 45128
Change-Id: Ib81646b8f8a01fcbc31d033ec205491b76a7b755
|
|
|
|
|
|
|
|
|
|
|
| |
oslo.db 12.1.0 has changed the default value for the 'autocommit'
parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a
necessary step to ensure compatibility with SQLAlchemy 2.0. However, we
are currently relying on the autocommit behavior and need changes to
explicitly manage sessions. Until that happens, we need to override the
default.
Change-Id: I93ab8e0cce22a71efc08f73bde804d99a63b4a8d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR changes wsgi script filename to app_wsgi.py.
Original problem is that mod_wsgi script not found after devstack
installation. This bug is created by #854356[1].
--
[1]: https://review.opendev.org/c/openstack/trove/+/854356
Story: 2010264
Task: 46163
Change-Id: I22883c8a8bb7e2818679d667b6868587a040a602
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
This PS sets the injected_config_owner to ubuntu and the injected_config_group to root.
Story: 2010231
Task: 46023
Change-Id: I77f9d0332a123594eae434c6e1cc795242e4022d
|
|
|
|
|
|
|
| |
docker_insecure_registries is a StrOpt, but the default
value is '[]' which is true for a string.
Change-Id: I4b8841cc77324f274bc8210d328bc42ddef5d056
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR adds an configuration to use a local docker registry for
development and test purpose. Using this option in development,
* Developers can test images in local docker registry
* Developers don't mind DockerHub's pull ratelimit
* Developers can save bandwidth
* Developers can test database quickly
Story: 2010125
Task: 44793
Change-Id: I762702654bc4430b8432dd96bf869408b2947ff8
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
When list database instances, you can't because
we doing return with wrong self.addresses in db_info
Story: #2010077
Task: #45568
Change-Id: I3275f605e03e6c74b744b29178de380ed2521425
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR uses userdata instead of personality files because of Nova's
deprecates personality files[1] since the the NovaApi-2.57 microversion.
Original problem is guest instance creation failure due to the lack of
guestagent configuration files because of the recent code chage[2].
[1]: https://review.opendev.org/c/openstack/nova/+/522027
[2]: https://review.opendev.org/c/openstack/trove/+/823632
Task: 44821
Story: 2009934
Change-Id: Id6a6aae3de17c12001b1e9946a4c0ce28ff29f73
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR allows load_simple_instance_addresse to get the ipaddr of an
instance from neutron when creating a instance belongs to a cluster by
skipping checking the task_status.
load_simple_instance_addresses, which is a helper function to load ip
addr information to Instance instances, currently checks task_status
before getting the information from neutron. However, this logic is
unnecessary and causes a logic error when instances belong to a
cluster because the task_status of creating a cluster is determined
after initializing a cluster, which happens in the next phase of
load_simple_instance_addresses.
The original reason of this code change is that the task status of a
mariadb cluster hasn't change from BUILDING to NONE even after
successfully creating instances belong to the cluster.
Task: 45110
Story: 2009982
Change-Id: Id3234081fd3114e6536358cbdbf94b8280c8bc41
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR adds configuration options for file owner information of
injected files in GuestVM to trove.conf. File owner information
should not be hardcoded as "trove" because it depends on user
environments.
Original problem is guest instance creation failure due to the lack of
guestagent configuration files because of the recent code chage[1].
That patch was introduced since Yoga.
[1]:https://review.opendev.org/c/openstack/trove/+/823632
Task: 45239
Story: 2010021
Change-Id: Iaccfe84c912025ec6d96e66ffa6ad7a4b9537b6e
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR uses glance to get a valid image_id when creating a cluster.
Clusters API currently checks the "image_id" column in "datastore_versions"
table, which has no valid image_id(NULL) since Victoria due to the
following code and docs change[1].
The original problem of this patch is that nova api throws BadRequest
exception with "Block Device Mapping is Invalid" message when creating
a cluster.
[1]: https://opendev.org/openstack/trove/commit/1d24b65052bbfb8f7dff5744c7bb44a58a2336c6
Task: 45004
Story: 2009982
Change-Id: I2a2932e261f47d9c8ec275bf9bd41b26983230c7
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The instance.addresses value will be a dictionary of
network: [addr_info] key/value pairs. addr_info is not
itself the address but a dict that contains the address
under ['addr'].
The nova api changed quite a while ago so we need to
catch up.
In addition: this function previously returned a list of
dictionaries; users of the function are clearly expecting
a list of simple IPs, so return that instead.
Change-Id: I9f7fed17b93e909f572949037b4e229d527e8fe4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR changes Clusters API validator to validate a request parameter
"network_id" instead of "net-id". When creating a cluster, Clusters
API internally calls Instaces API to create a instance. Instances API
has replaced the request parameter "net-id" with "network_id" by this
commit[1].
The original problem is instance creation error when creating a
instance that belongs to a cluster. Troves's Instances API has
changed a parameter name from "net-id" to "network_id", but Clusters
API and python-troveclient still uses the "net-id" parameter name.
We need to fix it.
[1]: https://opendev.org/openstack/trove/commit/535417240709694080255c064c9d84a5ab1d5372
Task: 44967
Story: 2009958
Change-Id: I7ee128afad80b92bdeabb45f719d19a99badd8a7
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR adds docker daemon config to injected files when
docker_bridge_network_ip option is defined in trove.conf.
Original problem is that Trove developers unable to transfer files
between GuestVMs and Controller host when controller host address
range is same with docker bridge network one.
Task: 44805
Story: 2009928
Change-Id: I6ad7eb7b2a7fb0686604b69d0175ec0d06f60384
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The tenant argument of RequestContext in oslo.context had been
deprecated long time ago and it was finally removed in
oslo.context-4.0.0. We should remove the tenant argument of
TroveContext that derives from RequestContext and we should also
update the requirements.txt in the master branch.
The original problem of this patch is the Configurations API
errors in following cases:
* when getting a configuration.
* when adding a new configuration parameter.
Story: 2009933
Task: 44816
Change-Id: Idbd0507e6c87d6926f93806d0d1eef13f557d805
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This PR stops using the following deprecated functions in std Python lib.
* parser.readfp
We should use parser.read_file(readline_generator(fp))[1].
* importing modules from collections directly.
We should use collections.abc instead of using collections directly.[2]
--
[1]: https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp
[2]: https://github.com/python/cpython/pull/5460
Task: 44767
Story: 2009917
Change-Id: I61bf4299ad2acd8ee26b4aab66875b10287020e1
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The tenant argument of RequestContext in oslo.context had been
deprecated long time ago and it was finally removed in
oslo.context-4.0.0. We should remove the tenant argument of
TroveContext that derives from RequestContext and we should also
update the requirements.txt in the master branch.
Task: 44723
Story: 2009906
Change-Id: I69c7098cc0d61fbbba1dbf2eca87df0dd6fd70ba
|
| |
| |
| |
| |
| |
| | |
Story: #2009770
Task: #44247
Change-Id: I34d47e709a9a7478cb6a85d6e6e37da3f92e40b0
|
| |
| |
| |
| |
| |
| | |
Task: #43152
Story: #2009162
Change-Id: I469ad8b44640118883c903accfef0349e9ecb880
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The project user can query the project's own resource quota.
Story: 2009140
Task: 43082
Change-Id: Iebac740e982a89fcf882a2cfc3e447ac53ee6656
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Only run 'FLUSH PRIVILEGES;' when needed
* Fix SqlClient contextmanager initialization
Story: 2009091
Task: 42921
Change-Id: I05a07402388d214dc95071be709191f63af49411
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
ABCs in collections should be imported from collections.abc and direct
import from collections is deprecated since Python 3.3.
Change-Id: Ic4c1cb4d9ce7595d1e684c26229a5148b5f4befa
|
|/ /
| |
| |
| | |
Change-Id: Ia1e9112ae69e04f8c3e9e9d1b4a0189c743d7448
|
| |
| |
| |
| |
| |
| |
| |
| | |
Block Storage API v2 was deprecated during Pike cycle and is being
removed during Xena cycle, and current v3 API should be used instead.
Change-Id: Iac35c8a580b0e15c397cb5e78bb228fea9730f06
Ref: https://review.opendev.org/c/openstack/requirements/+/801759
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Added a periodic task for postgresql datastore to clean up the
archived WAL files.
* Added a check when creating incremental backups for postgresql.
* A new container image ``openstacktrove/db-backup-postgresql:1.1.2``
is uploaded to docker hub.
Story: 2009066
Task: 42871
Change-Id: I235e2abf8c0405e143ded6fb48017d596b8b41a1
|
| |
| |
| |
| |
| |
| | |
Change-Id: If2d3022a59ba535e1361a3ba9bc9dd983ca25256
Story: 2009051
Task: 42821
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I5e5f0b99f79ba78c82cbb12482b9167ec69e50f7
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Story: 2009043
Task: 42806
Change-Id: I3499956a7ba0a5d0ab4a49f5938ce038446d91b7
|
|\ \ \ \
| |_|/ /
|/| | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Never remove user defined config, changing the function name from
save_configuration to reset_configuration in trove-guestagent.
* Improved some logs
* Do not remove Innodb Log Files after resize which will cause error:
Can't open and lock privilege tables: Table './mysql/user' is marked
as crashed and should be repaired
Story: 2009033
Task: 42773
Change-Id: I9e3165ed9b38b15714542e35456415e65d438497
|
|/ /
| |
| |
| |
| |
| |
| | |
This is for list instance response of admin user, keep consistent with
the behavior of normal user.
Change-Id: I0000b9b0139471064c9589fe5c350b6facdd80dd
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Changed the network mode of database container to "bridge" and exposed
the service ports.
- Use socket file to connect with the database.
- Upgrade the backup container image for postgressql.
Change-Id: Id5b119f8a474befc3a2cd6e061bbffc4ae5f7bb6
|
| |
| |
| |
| |
| |
| | |
Change-Id: Ib35743e1c315bb7fd4d0fbd99eaa409a4bf5c792
Story: 2008996
Task: 42658
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Complement missing float types when loading configuration group parameters
so that parameters of type float can be attached into the trove instance successfully
Story: 2008917
Task: 42508
Change-Id: Iae4d8fc52a50da4fd347270271f6761ce766d5c3
|
| |
| |
| |
| |
| |
| | |
The sqlalchemy 1.4 had introduced some incompatible changes.
Change-Id: I98c9c1d193934c37e77297a04231a24585674306
|