Commit Graph

2678 Commits

Author SHA1 Message Date
Stephen Finucane c20dd17088 devstack: Fix version check
mongosh versions 2.2.0 appears to have changed the verbosity of logging.
We are attempting to extract version information from the output, but
looking at it manually shows no such output.

  $ mongosh zaqar --eval 'db.dropDatabase();'
  { ok: 1, dropped: 'zaqar' }

Downgrading the package to the last release before 2.2.0, 2.1.5, reveals
what we had been expecting:

  $ sudo apt install mongodb-mongosh=2.1.5

  $ mongosh zaqar --eval 'db.dropDatabase();'
  Current Mongosh Log ID: 65fd88a57854a39dcce03169
  Connecting to:          mongodb://127.0.0.1:27017/zaqar?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.1.5
  Using MongoDB:          7.0.7
  Using Mongosh:          2.1.5

  For mongosh info see: https://docs.mongodb.com/mongodb-shell/

  To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
  You can opt-out by running the disableTelemetry() command.

  ------
     The server generated these startup warnings when booting
     <snip>
  ------

  { ok: 1, dropped: 'zaqar' }

We *could* increase the verbosity again using the '--verbosity' flag,
but rather than relying on arbitrary logging output, we could just use
the 'db.version()' function to pull our server version. Use that
instead.

Change-Id: I1faa317ebfa9927a4d576bd4da72872fab160560
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-03-22 14:40:12 +00:00
Zuul 4ad3b5695c Merge "Bump hacking" 2024-02-21 00:58:48 +00:00
Takashi Kajinami cdb55499f6 Replace CRLF by LF
... because LF is now commonly used as newline code.

Also some files in the samples directory has 755 permission but x bit
is not needed. This removes the unnecessary bit as well.

Change-Id: I6119e508481c9c0f8a5c1c2c40bb2e3a788abd3c
2024-02-15 02:28:37 +00:00
OpenStack Release Bot f246df12e5 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I3f3c8912006866e595ba3aa67abb0d906418bb5e
2024-02-05 15:53:04 +00:00
Takashi Kajinami 5c900d4ab5 Bump hacking
hacking 3.0.x is too old.

Also remove the note about very old pip's behavior.

Change-Id: I6d2d180a9ec80664efae498f86a4d1f734aacfa5
2024-02-02 12:42:02 +00:00
Takashi Kajinami 2c85927511 Remove integrated-gate-storage
This jobs in this template do not install zaqar, so we don't have to
run these tests in Zaqar's CI.

Change-Id: I882b24b803200ff385b23ae9471dc19e762d4249
2024-01-20 20:23:26 +09:00
Zuul a603cb4df7 Merge "Storage URIs should be secret" 2024-01-11 08:15:49 +00:00
Zuul 87a5874b86 Merge "Update python classifier in setup.cfg" 2024-01-10 14:27:32 +00:00
Zuul 69ca2a7854 Merge "swift: Fix ignored *_domain_name options" 2024-01-09 03:59:49 +00:00
Ghanshyam Mann 7f246fec06 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: Id56128f06aea4914b079e78e9928171a861f5299
2024-01-05 04:40:40 +00:00
Zuul 3865aebd4b Merge "Imported Translations from Zanata" 2024-01-03 19:01:02 +00:00
wanghao 52c06346ef Support asymmetric encryption RSA
Change-Id: I758cf8a1b1260da060c13538c26f2c39d48d12a8
2024-01-02 09:36:18 -08:00
Takashi Kajinami 355e1d8fcc swift: Fix ignored *_domain_name options
The *_domain_name options are always ignored because the *_domain_id
options have the default values. This moves the default definition from
id options to name options so that setting the *_domain_name options
work.

Change-Id: I124a81c8eca2392916bb3ec638bb9ae61d5226a2
2024-01-02 10:00:06 +00:00
OpenStack Proposal Bot 333517e796 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I369a332154775ffa66c0c8aaf6a5cfcd141cbfad
2023-12-29 04:20:18 +00:00
Zuul 24cca93be1 Merge "Remove indirect dependency (python-memcached)" 2023-12-29 01:42:45 +00:00
Takashi Kajinami d14b039182 Remove indirect dependency (python-memcached)
The python-memcached library is not imported directly from this module
and can be dropped.

Change-Id: I32f5e373c18011940ed1bb2ae3c2d2d5e77a4d8c
2023-12-28 03:15:15 +00:00
Takashi Kajinami 389bd83aaf Storage URIs should be secret
... because these can contain password as its element.

Change-Id: Id570941ee3b02e7b60ca3330c36edb8f0f9f56fc
2023-12-28 03:15:03 +00:00
Corey Bryant 7b4c359f92 Switch to MySQLOpportunisticFixture from test_fixtures
MySQLOpportunisticTestCase was removed in oslo.db 13.0.0[1] and the
MySQLOpportunisticFixture should instead be used.

Also fixed bindep so that it works in Debian 12.

[1] a609333c5482228ee69baab91858e1812909cd55

Closes-Bug: #2038473
Change-Id: I56f7e055876204940bc65cc6309c3481b22c1c6c
2023-12-27 10:11:28 -08:00
hwang 51350eabbe Fix ci broken for Debian 12
Change-Id: I82b6fcccb99e01b0790a4037d9c3dff0a5f1c99f
2023-12-20 12:19:50 -08:00
OpenStack Release Bot f5230aa5e3 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: Ia900bd481c74b84b0ebd06884916693143851571
2023-09-15 14:06:30 +00:00
hwang 3c1627dbca Fix devstack plugin to support centos/rhel 9
Since there is no official repo of MongoDB
for Centos-Stream-9 or Rhel-9, we will build
the repo by script.

Change-Id: I1f20eb22d6e922d12e0d88aae5bf47c032db3cb3
2023-08-30 17:13:05 -07:00
Zuul 169d917c3e Merge "Change StrictRedis usage to Redis" 2023-08-21 18:54:14 +00:00
Zuul e7c022e085 Merge "Use processutils to fix TypeError in subprocess" 2023-08-21 17:39:15 +00:00
Zuul 3e6b7dd5ef Merge "Add missing key for bionic-security repository" 2023-08-20 19:10:50 +00:00
Xing Zhang e0937b1f09
Use processutils to fix TypeError in subprocess
Calling processutils.execute() other than subprocess to
fix bytes-like and str issue in python3.

Closes-bug: #2029392
Change-Id: I16436aa19da2cf53951c9ad27bca14033194651a
2023-08-21 00:09:40 +08:00
hwang ef62a26dc4 fix the gateway CI error
Change-Id: I346e829b8c68f2f5444e098c36c7f0c7a32f6fb9
2023-08-16 10:41:25 -07:00
Martin André c8e8a3d029 Add missing key for bionic-security repository
The devstack install on ubuntu jammy (22.04) fails to check the
signature for the bionic-security repo and exits, as seen in
https://github.com/gophercloud/gophercloud/issues/2701.

This commit adds the required key.

Change-Id: Ifab19c36fbca1813dae35d65750deed4fd81b91c
2023-07-27 13:15:10 +09:00
Zuul d27fb63796 Merge "Revert "Refactor Zaqar to satisfy openstack uwsgi goal"" 2023-03-30 10:42:32 +00:00
Erik Olof Gunnar Andersson 4585b84224 Revert "Refactor Zaqar to satisfy openstack uwsgi goal"
This reverts commit 5a7636786e.

Reason for revert: We do not handle href links properly and this breaks other services depending on Zaqar.

Change-Id: I5fb0f2f25c280dd69cfb99d9f9b320df552462dc
2023-03-27 15:54:51 +00:00
Erik Olof Gunnar Andersson c4502d1593 Use bionic package of libssl1.1
Instead of manually downloading the package and having to keep
that url up-to-date. This patch switches to just using the bionic
security repo as a source.

Change-Id: I81383955aea253769b02df682e9712233da77c26
2023-03-21 19:20:16 -07:00
Martin André 54aed6be0f Fix install of mongodb on Ubuntu 22.04
Simplify the version check to make it less error prone, use the right
version of the 22.04 repository from mongodb.org (jammy vs focal) and
stop trying to install libssl package that no longer exists on the
repository.

Change-Id: I49d32e555e6a0df15c0e059e8c4152a969ab3975
2023-03-15 10:26:33 +08:00
Tobias Urdin 928dfc618e Change StrictRedis usage to Redis
The StrictRedis class is only an alias for
Redis in >= 3.0.0

Change-Id: I5136852af5d0b4dc3542948a4114e06f0e4a0060
2023-03-10 21:03:42 +00:00
wander.way 5a7636786e Refactor Zaqar to satisfy openstack uwsgi goal
After this change, Zaqar-wsgi will not be forced to port 8888 by
devstack. Use apache proxy now and the endpoint will be like:
http://IP/messaging by default.

Change-Id: I413cd24a9ef70a8bbada46d63d5dfdff09366b3e
2023-03-10 10:15:16 +08:00
Erik Olof Gunnar Andersson c611c5c6e8 Unblock CI by fixing libssl url
The manually provided libssl package no longer exists.

Change-Id: I5735d203076175cb6acc32ec32145a6cf255a63d
2023-03-03 16:47:22 -08:00
Zuul cacace0da9 Merge "Update deprecated zuul syntax" 2023-01-29 10:54:22 +00:00
Zuul 5940aea746 Merge "Optimize devstack plugin" 2023-01-29 04:26:24 +00:00
wanghao 6b34431779 Optimize devstack plugin
For fixing the issue that mongodb in not in ubuntu 22.04 release, we need
to give a work-around way to install mongodb successfully in 22.04.

Change-Id: I5bb488f33d1c24298bb96e2702d2c98415db6cf4
2023-01-28 14:18:15 +08:00
Zuul 21af2e2223 Merge "Replace abc.abstractproperty with property and abc.abstractmethod" 2023-01-28 03:10:58 +00:00
Kristi Nikolla 56f0110b1e Update deprecated zuul syntax
Queues are now declared at the project level

https: //lists.openstack.org/pipermail/openstack-discuss/2021-November/025797.html
Change-Id: Iae33d7c725274be9de1aa66ad73b2d610c36e061
2023-01-21 20:15:20 +00:00
OpenStack Release Bot 8049697fc9 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I29fcb9afa016b1321b0b4c0118a8d7ffbc00b02e
2023-01-21 09:29:14 +08:00
Zuul 2fbc7937bb Merge "Cleanup py27 support" 2022-09-16 08:44:22 +00:00
Zuul c7ff5ee8cf Merge "remove unicode prefix from code" 2022-09-16 07:51:19 +00:00
OpenStack Release Bot 95852e2d5b Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: I71b02bc7a535678dab6a2808aa8fae4de7782dc1
2022-09-15 15:59:02 +00:00
niuke b2125930e2 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py

Change-Id: I132e2e4f2c71217bc42b28b53a52a1be6d3b19b4
2022-08-15 10:07:06 +08:00
niuke 4a035775a0 remove unicode prefix from code
Change-Id: Ib26f5d6b8415fdf454783b7120434ffd43ed5559
2022-08-15 10:05:54 +08:00
ljhuang c9c8a0e717 Replace abc.abstractproperty with property and abc.abstractmethod
Replace abc.abstractproperty with property and abc.abstractmethod,
as abc.abstractproperty has been deprecated since python3.3[1]

[1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc

Change-Id: If6204796a34031551817191d0ea602011f60de9a
2022-08-03 20:35:27 +08:00
wanghao cdf45da555 Fix API DOC
Now Zaqar's API could be finded on OpenInfra API Ref.
This patch want to fix this.

Change-Id: I1b60ae2c2230724a5a22ec51d5e0c32a5e4a5591
2022-07-06 15:59:54 +08:00
Zuul cdc259acbb Merge "Remove translation sections from setup.cfg" 2022-05-25 07:46:22 +00:00
wanghao 2abee24a02 Add python3.8 requirement
According to the QA's request[1], we should drop the python3.6
support in Zed cycle, and add the requirement to python3.8.

[1]:http://lists.openstack.org/pipermail/openstack-discuss/2022-April/028321.html

Change-Id: I772621f28d723c88e227edd3b540ce133ea3feb2
2022-05-09 09:41:05 +08:00
Takashi Kajinami a37018a3ad Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.

Change-Id: I8dc49f25e1f77f53388a8a048d3f5f7e16c2f808
2022-04-15 04:09:21 +00:00