Commit Graph

4866 Commits

Author SHA1 Message Date
Zuul e19a7d4e50 Merge "Add Datastore Version Registry Extension" 2024-03-28 17:44:36 +00:00
Zuul 3863b81a18 Merge "db: add commit action after querying" 2024-03-28 07:00:14 +00:00
wu.chunyang c59d54c427 db: add commit action after querying
Change-Id: Ibe39a9b999680cc1fba4eccd9fa2ed0fa41ccb00
2024-03-28 09:06:27 +08:00
Bo Tran Van b127068c20 Add Datastore Version Registry Extension
Current, users can config default datastore registry for managers not by
verions. This make you can flexible when have some experimental
datastore.

With this patch, users with the administrator role can configure the
datastore registry external for each datastore version using a command,
without editing configuration files.

Story: #2010860
Task: #48534
Change-Id: I910a1ba4a9216ab29faeed03198113b4acb2cb81
2024-03-27 05:56:09 +00:00
Sean Mooney 3367c25e77 stop using passlib
passlib is unmaintained and has not had a release since 2020
a recent bcrypt release just broke passlib
see https://github.com/pyca/bcrypt/issues/684

trove's use of passlib is pretty tirval so this change
just removes it as a depency and delegate the random password
generation in trove.common.utils to the generate_random_key
function in the trove.common.crypto_utils module

Change-Id: I6b6c64147c627025d5f89db6032d1c54445df94f
2024-03-26 14:46:55 +00:00
Zuul 83a525067d Merge "Retire TripleO: remove the TripleO jobs/ref" 2024-03-25 04:28:10 +00:00
Zuul 110b8c3e32 Merge "Establish consistency on db_info.addresses between taskmanager and instance" 2024-03-21 04:32:32 +00:00
Zuul 89e4601e1a Merge "Imported Translations from Zanata" 2024-03-21 03:48:25 +00:00
OpenStack Proposal Bot cb0cd5b4a3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I832247fa5eaefc7daec33b58d5ae0122bdcbc0bb
2024-03-21 03:07:19 +00:00
OpenStack Release Bot c5adc4fb4e Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: I6067b04332b5cef3a853910cac319ab52b86d458
2024-03-20 13:42:49 +00:00
Andrew Bogott 86a870cc50 Establish consistency on db_info.addresses between taskmanager and instance
We had two different workflows here using the same variable but expecting
it to have a totally different format. The taskmanager dns code
was populating that variable with nova api output; the database
list code populated it manually with a custom-format structure.

This seems to have survived a long time because these are both edge
cases: the dns workflow was only traversed with dns integration
is switched on (unusual) and the database list only relied on IP
addresses when hostnames weren't present.

This patch picks a winner (the custom structure used by the database
listing code) and modifies the dns workflow to live with that same format.

This is spackle over a whole lot of bitrot, but should get
both use cases working properly.

Story: #2010077
Task: #45568
Change-Id: I5832733dd312db24d2d8047658fdd1af9f4e700a
2024-03-20 08:24:38 +00:00
Ghanshyam Mann a2447137d9 Retire TripleO: remove the TripleO jobs/ref
TripleO is retired so removing its jobs/ref

- https://review.opendev.org/q/topic:%22retire-tripleo%22

Change-Id: Id6fc86b570627bc6863dde330877966da3126fe6
2024-03-20 08:23:44 +00:00
Zuul 6822a76ad9 Merge "reno: Update master for unmaintained/xena" 2024-03-20 06:32:50 +00:00
Zuul 93bd69017f Merge "reno: Update master for unmaintained/wallaby" 2024-03-20 06:32:49 +00:00
Zuul c5e59efd45 Merge "db: Remove use of autocommit" 2024-03-20 06:18:33 +00:00
wu.chunyang ab83ad7c85 db: Remove use of autocommit
Change-Id: I3f0d384f353069f1eb186bbfa2aa3d8afa969e05
2024-03-19 22:03:56 +08:00
OpenStack Release Bot e359e76e14 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I6781ce54ed6d7a29b652e1e358deba3823e57caa
2024-03-12 10:56:21 +00:00
OpenStack Release Bot 5acdf96222 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I7a80f7984939c2812e49ed25f3b79d616c822238
2024-03-12 10:55:40 +00:00
OpenStack Release Bot f0cd3e4f42 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ide1deface9cf3d69fe02b24e8c0e406c1d64c53b
2024-03-12 10:55:00 +00:00
Zuul 860772e1b0 Merge "Enable healthcheck middleware" 2024-02-27 06:11:49 +00:00
Zuul 3380fbc4ff Merge "Fix missing oslo.db options" 2024-02-26 02:29:47 +00:00
Takashi Kajinami 1298374998 Fix missing oslo.db options
This ensures that the options from the oslo.db library are picked up
by oslo-config-generator.

Also, update .gitignore so that the sample config file is ignored by
git.

Change-Id: I6ab051fd1c8034d9697b1caab9c1fda64a3275c3
2024-02-26 01:45:01 +09:00
Takashi Kajinami ebe15a1ba5 Enable healthcheck middleware
The healthcheck middleware from oslo.middleware library is now commonly
enabled in OpenStack services, for service healthcheck (often used by
load balancers such as haproxy). This enables the middleware so that
operators can use the healthcheck endpoint more easily. This also
replaces the oslo.middleware config entry point by more specific sub
entry points, to avoid rendering options from unused middlewares such
as sizelimit.

Change-Id: If3296e651e7f20a3f5314c085cc99ce4b004c065
2024-02-26 01:41:31 +09:00
Zuul fef0c13cdd Merge "Imported Translations from Zanata" 2024-02-23 13:24:05 +00:00
Zuul 27e5a710ce Merge "Change postgresql socket path to a persistent path" 2024-02-23 13:23:59 +00:00
OpenStack Proposal Bot 57aa13a0bd Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I01c3e2f2ad989a0c9f9d4a456c31bcb3208d584f
2024-02-23 03:37:52 +00:00
wu.chunyang 65bcf6d6e2 Set swift_api_insecure to false in trove-guest
As the devstack uses the self-signed certificate , we should
set swift_api_insecure to false by default to access the
swift service.

Change-Id: Idc2b8127dcfd589d48eb26d7624709a9fdc64029
2024-02-23 10:37:57 +08:00
Zuul 4060334cb9 Merge "reno: Update master for unmaintained/yoga" 2024-02-22 13:26:42 +00:00
Zuul f68959290a Merge "Clean up requirements for backup script" 2024-02-22 02:56:45 +00:00
OpenStack Release Bot 5e7a09f953 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I8ad86d635802c367712b20d20476c72d4e6cb56f
2024-02-19 09:19:27 +00:00
Zuul fd10a99377 Merge "Fixes the DIB script" 2024-01-30 06:29:43 +00:00
Takashi Kajinami 235bd9acd7 Remove global default_password_length
This option was deprecated multiple cycles ago[1] in favor of
the datastore specific options.

[1] f4cbaf6ccd

Change-Id: I1b40fb528d5df52f132a1d8cf027a42d8b65d544
2024-01-30 03:09:33 +00:00
wu.chunyang f151fd91d9 Change postgresql socket path to a persistent path
This patch changes the default socket patch on the host from
"/var/run/postgresql" to "/var/lib/postgresql-socket".
ensuring that the  database container starts properly after
a Nova instance is restarted.

Story: 2010599
Task: 47471

Change-Id: I54a53cc802bbd20bb9e2c6508919e4c8dda38f2a
2024-01-30 03:08:55 +00:00
Hirotaka Wakabayashi ab3563d621 Fixes the DIB script
This PR adds the "-y" option to the "add-apt-repository" script to
prevent from asking the yes/no question while installing openstack
automatically.

Change-Id: Ic6c86b95da28c4a3f2ab0a4c918e291a7e1b9bb3
2024-01-30 03:06:44 +00:00
Takashi Kajinami 3731d21c8f Clean up requirements for backup script
We can remove the version marked because now only python 3.x is
supported.

Change-Id: Id809ea11ad68f1410fcd058aa2cb7f25bd8ac06a
2024-01-30 11:34:57 +09:00
Takashi Kajinami f9fa6a674e bandit: Install baseline extra
Since bandit 1.7.7[1] we have to install the baseline extra to use
bandit-baseline.

[1] 22c75a8306

Change-Id: I6661c86418f6334080de8514f1bb02a8212ec63d
2024-01-29 22:49:25 +09:00
Zuul c179534ba9 Merge "The backup_aes_cbc_key option should be secret" 2024-01-25 08:37:52 +00:00
Zuul 40fdb7b44f Merge "Change mysql socket path to a persistent path." 2024-01-19 04:52:06 +00:00
Zuul cd2f4c2f73 Merge "fix: prepare mariadb after restore" 2024-01-19 01:43:15 +00:00
Zuul 422507ca42 Merge "Fix potential network conflict" 2024-01-16 08:37:12 +00:00
Zuul fa0c776b64 Merge "Updates guest-agent image issues" 2024-01-16 07:45:20 +00:00
Zuul 50aca3d713 Merge "Use py3 as the default runtime for tox" 2024-01-16 02:15:44 +00:00
Takashi Kajinami 56c25337a6 The backup_aes_cbc_key option should be secret
This option takes a plain key data.

Change-Id: Ic8a438632ea93da93807c37374eee3b48d06f2d2
2024-01-13 01:04:11 +09:00
Hirotaka Wakabayashi 67e1389221 Updates guest-agent image issues
TThis PR fixes the default value of docker images and adds docuemtation
fro building docker container images.

The default values of docker image should be something that makes users
change the value before they start using Trove because Trove team
currently does not plan to maintain the following docker images on
https://hub.docker.com/u/openstacktrove

Since Victoria, Trove switched GuestAgent's image from VM to Docker,
however the building guest image docs does not contain how to build
docker container images.

Co-Authored-By: wu.chunyang <wchy1001@gmail.com>

Story: 2010804
Task: 48288
Change-Id: I7047d888c4340f16ca2a1a77b5f9c34ba75b5a30
2024-01-11 04:31:58 +00:00
wu.chunyang a427333e80 [CI] fix coverage name in git ignore
.coverage was generated by tox command, we need to ignore this file.
trivial fix

Change-Id: I7c25e8de4ae8c6dbc5ce737846672596d52e74a7
2024-01-10 14:42:06 +08:00
wu.chunyang 9d31e46f00 Change mysql socket path to a persistent path.
This patch changes the default socket patch on the host from
"/var/run/mysqld" to "/var/lib/mysqld". ensuring that the
database container starts properly after a Nova instance is restarted.

Story: 2010599
Task: 47471

Change-Id: Idb0366ad1d73c85126e18fccd58f1e52176b63de
2024-01-08 18:06:43 +08:00
Phung HoangLong a8d9ee2291 fix: prepare mariadb after restore
This PR perform mariabackup prepare in post_restore.

Story: 2010999
Task: 49342
Change-Id: Ided7a807575c676fd094c78103201e8dee575d59
2024-01-05 16:33:27 +07:00
Ghanshyam Mann ca28382ed9 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I9d0b62e62da38a83217eec68f0b74c6be40aae87
2024-01-04 01:09:56 -08:00
wu.chunyang d9b4c7bd24 Fix potential network conflict
when both the management and business network have a gateway.
The guest vm may generate an unexpected default gateway
which is the businees gateway as opposed to the management one.
In this case, trove guest VM may failed to connect with the
openstack control plane such as swift service while doing the
backup restore action.
In addition, if the mgmt port and the business port have the same
IP address. This also may cause network conflict

This change disable the user defined port once the guest-agent
starts when the network isolation is enabled.

Change-Id: I7a96952f34ce5f4aead837b94daedd83c0a871d8
2023-12-28 10:03:52 +00:00
Zuul f8150f82a3 Merge "Disables shell=True in backup and restore" 2023-12-28 07:09:52 +00:00