Commit Graph

281 Commits

Author SHA1 Message Date
OpenStack Release Bot f26c271042 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: I43293d05c9411a5b08bd661b4d2ee4a561952737
2024-04-18 10:49:02 +00:00
OpenStack Release Bot f1f455b71e reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I6747cd495f404b87b0dbfe48cbc229a7f628de16
2024-02-21 16:49:44 +00:00
Zuul d812d88134 Merge "Drop unnecessary modification of Gemfile" 2023-12-21 17:14:44 +00:00
Takashi Kajinami 53f04e42c3 Drop unnecessary modification of Gemfile
The modification is no longer required since [1] was merged.

[1] ce0ca3e42b0bc30ace835d5e9e98491a1fdca105

Change-Id: Ic1ec1a36fc8195a37204107cdf2dc707ec31e013
2023-12-19 19:10:53 +09:00
Takashi Kajinami cb49c62fca Unpin bundler
The bundler library has been pinned to 2.2.11 but this is quite old.
This attempts to remove that pin and use the latest version instead.

Change-Id: I1bdbfed38941c26ea17d2c595b6d8b1968b8c376
2023-12-19 07:56:39 +00:00
Zuul 7d60ef33c6 Merge "Debian: Switch to Debian 12 (Bookworm)" 2023-11-09 16:56:15 +00:00
Takashi Kajinami 8ac57eccbd Debian: Switch to Debian 12 (Bookworm)
Debian 12 was released in June 2023 and supports OpenStack releases
since Zed.

Change-Id: Ie853000095dad9000fdc5db8f6ce83586c9f2c01
2023-11-09 03:44:55 +00:00
OpenStack Release Bot 20fede0d40 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: Iecde2eaf4454928f1622df3a377d6d3a8a1447dc
2023-10-16 15:19:00 +00:00
Takashi Kajinami 56cf30b7e2 Disable check_unsafe_interpolations
The latest release puppet-lint contained the fix in the logic to parse
interpolations in strings, which triggered the following lint warnings
in multiple modules.

WARNING: unsafe interpolation of variable 'foo' in exec command

This disables the lint check as a short-term fix in master as well as
stable branches. The check will be restored once the error is addressed
in master.

Change-Id: I7c4fea1d1f5ca1132f922d560c04daa4ac50e3db
2023-08-28 09:53:30 +09:00
Zuul 33031bfa8a Merge "Bump default puppet version from 6 to 7" 2023-05-22 14:56:40 +00:00
Takashi Kajinami ac91c1127f Bump default puppet version from 6 to 7
... because puppet 6 already reached its EOL.

Change-Id: Ide378181561297b1263792cc1bbe5085e2910f9b
2023-05-22 13:24:02 +09:00
Takashi Kajinami 00f315dc2d Do not pin rspec-puppet by default
Change-Id: I8068d59b1d9d3cdbe37351809152ba77f34c97ed
2023-05-18 13:13:53 +09:00
Takashi Kajinami ac9dd70534 Stop using deprecated --without argument
We've seen the following warning in CI jobs.

```
[DEPRECATED] The `--without` flag is deprecated because it relies on
being remembered across bundler invocations, which bundler will no
longer do in future versions. Instead please use `bundle config set
--local without 'system_tests'`, and stop using this flag
```

This updates the usage accordingly.

Change-Id: I7fe6fe62d1ab6b7d365cc730ce3cacfb7c5b2536
2023-04-06 12:14:29 +00:00
OpenStack Release Bot d87a8ccdc4 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: Iccf41f9f1526606d1fec4b2eca38f7fde1685b87
2023-04-06 08:05:44 +00:00
Takashi Kajinami 4467c16745 Inject concat_basedir fact
This fact has been injected in mutliple spec files. Let's inject it in
a single place so reduce logics in individual spec files.

Depends-on: https://review.opendev.org/c/openstack/puppet-nova/+/876011
Change-Id: Ice931156dfd38b03699c022fe53e3d4898eeb19c
2023-03-02 15:01:28 +09:00
Zuul a581f39635 Merge "Unpin puppet-lint" 2023-02-06 17:04:04 +00:00
Zuul 05061a09aa Merge "Stop pinning pathspec" 2023-02-06 16:57:34 +00:00
Takashi Kajinami ce7218500f Unpin puppet-lint
... to adapt to the latest version.

Note this also bumps puppetlabs_spec_helper to 5.x which now uses
rspec-mocks instead of mocha by default.

Change-Id: I48a160a5171397f8446909df1cbb0d6766c906b1
2023-02-01 11:45:53 +09:00
Zuul 4a530ab15e Merge "Stop pinning concurrent-ruby" 2023-02-01 01:59:38 +00:00
Takashi Kajinami 5c7f5d0388 Stop pinning pathspec
The library was pinned due to Ruby 2.6 in CentOS 8[1], but we no longer
use this os version in our tests.

[1] 58526da21b

Change-Id: If0c76ea2772dccecdaca25414d00a5b438faab8a
2023-02-01 10:19:34 +09:00
Takashi Kajinami 088cebfd82 Bump default rspec-puppet version
We need rspec-puppet ~> 2.10.0 to run it with Ruby 3. We now explicitly
disable strict variable check[1] so no need to pin it to that old
version.

[1] 091457724459f8047411d0dbafc4cf434081dafb

Change-Id: I182c327e54317984217cdb4b4397a51a3fedfd74
2023-01-27 17:07:30 +09:00
Takashi Kajinami cc071d0926 Stop pinning concurrent-ruby
The new puppet 7.22.0 was released and this is compatible with
the latest concurrent-ruby. As we bumped the puppet version in master
CI, we no longer need this pin in master.

Related-Bug: #2003761
Depends-on: https://review.opendev.org/871957
Change-Id: Iadd6bc25bda4e537891c551d33071e31e8e0f1fb
2023-01-27 15:54:26 +09:00
Takashi Kajinami 3ec05090bb Re-enable puppet jobs
The library litmus jobs are now fixed and can be enabled.

Depends-on: https://review.opendev.org/871445/
Change-Id: Ia043588a52e7bb6cd2903938fabea0de51efa5a4
2023-01-24 10:53:29 +09:00
Takashi Kajinami b4633e6f1d Pin concurrent-ruby
concurrent-ruby 1.2.0 dropped the implementation which puppet still
relies on. Let's pin it to the older version to fix the broken tests
with old and current puppet versions.

This temporally disables library tests, mainly because the library
litmus jobs are currently failing with the following error. We later
enables these tests after we fix the missing variable.
~~~
The task includes an option with an undefined variable. The error was:
'ceph' is undefined
~~~

Closes-Bug: #2003761
Change-Id: Id47cd5cc12a301d19bf0941c8a9dbabd13fab568
2023-01-24 10:52:19 +09:00
Zuul a01d635c48 Merge "Ubuntu: Use 22.04 (jammy) instead of 20.04 (focal)" 2022-11-25 14:29:32 +00:00
OpenStack Release Bot 9bfec70202 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: Ic98652b199b0162c0b7e0981f9a8619f148abb56
2022-10-20 11:09:48 +00:00
Takashi Kajinami cce6ff5fc2 Remove etcdv3 library
The library was introduced so that we can add etcd support to
openstacklib[1] but the feature has never been implemented actually.

This removes the library because it has not really used and having more
libraries is likely to cause additional compatibility issue in stable
branches.

[1] bcd38a6543

Change-Id: I462c3c4227bd464b5ba57113b9d7da03dd829616
2022-09-28 09:56:29 +09:00
Takashi Kajinami b1eafc75f0 Ubuntu: Use 22.04 (jammy) instead of 20.04 (focal)
... because the Zed release is supposed to be available for only 22.04.

Change-Id: I195165dd2e4d0e7806ad56d6e417d34f458f09dd
2022-08-17 02:06:54 +00:00
Takashi Kajinami c71da351fb Stop setting @default_fact
All unit test implementations have been updated and @default_fact is no
longer directly used.

Change-Id: Ic3fcada2601a7c9ba4089e2e8f1978768f1b6f08
2022-07-22 14:05:22 +09:00
Takashi Kajinami dd267853f3 Revert "Disable litmus when Ruby 3"
This reverts commit 57e6de9985.

Reason for revert:
The new bolt 3.23.0, which is compatible with Ruby 3,  was released.

Change-Id: I306110131000cc29b58e0c2a8f17037286b8004b
2022-06-07 23:46:32 +09:00
Takashi Kajinami b803e2484a Disable CentOS 8 Stream in unit tests
... because RDO no longer supports CentOS 8 Stream since Zed. OpenStack
is globally removing support for Python 3.6 and 3.7 and no longer works
with CentOS 8 Stream which has Python 3.6.

Depends-on: https://review.opendev.org/836947
Change-Id: If0aa0a754e2cceac97454dcef0bf81d0d0bcce35
2022-05-27 02:06:17 +09:00
Zuul 62e5f6fdf5 Merge "Disable litmus when Ruby 3" 2022-04-21 15:29:22 +00:00
Takashi Kajinami 57e6de9985 Disable litmus when Ruby 3
The latest version of bolt (3.22.1[1] at the time of writing) does not
support Ruby 3 yet. Ruby 3 is already available in CentOS Stream 9 and
this is currently causing failure during `gem install`.

This change excludes litmus and bolt when Ruby 3 is installed so that
unit tests can be executed in CentOS Stream 9.

[1] https://rubygems.org/gems/bolt/versions/3.22.1

Change-Id: I2ca0b9ae0c4b7c930b9f67b68643d8905bfecab0
2022-04-20 09:58:45 +09:00
Zuul 1483b1d1d5 Merge "Exclude development dependencies" 2022-04-18 21:12:07 +00:00
Takashi Kajinami 0950ca7dad Exclude development dependencies
Change-Id: If00a371cbaf9e18980608dbedc976db97c8c3c41
2022-04-18 21:25:23 +09:00
Takashi Kajinami 6f949bcc69 Bump version to 20.0.0 for Zed
Change-Id: I6857e7012d3b677b3b75f17b8d9b4e6b608efcf7
2022-04-18 11:55:07 +09:00
Takashi Kajinami 2b1b5641e0 Fix pin of pathspec in CentOS 9 Stream
Change-Id: I0957f65f9e20e519fd044c9574407ef2deb25711
2022-04-07 22:51:56 +09:00
OpenStack Release Bot 5ab66cc0fa Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: I5849fb57f7fd5d7d434e886cf9f9f886b3b9112f
2022-04-05 09:13:36 +00:00
Jiri Podivin 35c6633402 setuptools: Disable auto discovery
The latest release of setuptools 61.0 made a breaking change[1] and
because of this change 'pip install' fails with the following error.

~~~
error: Multiple top-level packages discovered in a flat-layout:
['lib', 'spec', 'manifests', 'releasenotes'].
~~~

Users that don't set 'packages', 'py_modules', or configuration'
are still likely to observe the auto-discovery behavior, which may
halt the build if the project contains multiple directories and/or
multiple Python files directly under the project root.

To disable auto discovery, one can do below in setup.py

~~~
setuptools.setup(..,packages=[],..)
~~~

or

~~~
setuptools.setup(..,py_modules=[],..)
~~~

[1] https://github.com/pypa/setuptools/issues/3197

Note setup.py is not used to install puppet modules. However it is used
to generate a release note, thus should be fixed.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ib0705b19a26e76b673c566280b82817660fa1b76
2022-03-29 10:41:08 +02:00
Takashi Kajinami 5aa685a6d3 Inject os_workers_* facts
Recent puppet-openstacklib provides additional workers facts
in addition to the base $::os_worker fact.

This change ensures these facts are included in facts data during unit
tests.

Change-Id: I22d83a900f94d3506356788bf1acba4162356390
2022-03-14 08:53:17 +09:00
Takashi Kajinami 8edfc16d33 remove unicode literal from code
All strings are considered as unicode string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: Ia6c22c13c91cafb7ec58043cb1735168d34c0f1a
Co-Authored-By: LiZekun <2954674728@qq.com>
2022-03-08 09:21:51 +09:00
Takashi Kajinami 58526da21b CentOS 8: Pin pathspec to 1.0.0
The recent version of patspec requires 2.6 but this is not available in
CentOS 8.

Closes-Bug: #1962790
Change-Id: I0c3ba9707e02e163af248233a948eac2614bc277
2022-03-03 08:43:37 +09:00
Takashi Kajinami 140f9d5fe2 Enable unit tests for CentOS 9
Depends-on: https://review.opendev.org/829369
Depends-on: https://review.opendev.org/829373
Change-Id: If4bc149e5a17dda36e59b46797191c9e41749765
2022-02-18 19:25:28 +09:00
OpenStack Release Bot 95fa6826ba Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: I8ace93654cf021e6f2eb6380edd1e41326fd3f02
2021-10-07 08:26:50 +00:00
Zuul baaf87e690 Merge "Use Debian 11.0 (Bullseye) for unit tests" 2021-10-02 12:05:24 +00:00
ZhongShengping bdec5842a9 Add information technology in the setup.cfg
Change-Id: If145f7fb4904a1d93766da51af1ece77e0396cb4
2021-10-01 06:54:49 +08:00
ZhongShengping 7cb1e30d1a Add license information in the setup.cfg
Change-Id: I259a9a118f2f5aa24f48b94933c3f7901b786f67
2021-09-30 16:48:13 +08:00
ZhongShengping 9f64a8ccf4 Delete useless code for setup.py
Change-Id: I7e86e63afe36d1114524a952e5768287f4a13b59
2021-09-30 13:38:33 +08:00
Zuul 09aae81565 Merge "Fix pbr>=2.0.0 for setup.py" 2021-09-29 09:14:42 +00:00
ZhongShengping 19aaa9d085 Fix pbr>=2.0.0 for setup.py
Change-Id: I5a18780c3f8747c4df876102ef026e5ec96471e2
2021-09-29 16:37:10 +08:00