Commit Graph

920 Commits

Author SHA1 Message Date
Zuul 49dd1e5ac4 Merge "Use explicit boolean rather than string representation" 2024-04-17 16:36:58 +00:00
Zuul a47980f00e Merge "Require valid type for available_themses" 2024-04-17 09:18:00 +00:00
Takashi Kajinami bc3c1e0d09 Use explicit boolean rather than string representation
... so that we can enforce Boolean input in the future.

Change-Id: I83422b3545a80cd6c76e1317771e3aad44dd978c
2024-04-17 10:52:03 +09:00
Takashi Kajinami 767b076e90 Prepare 2024.1 release
Change-Id: Ia734af9dcabeded01d955e5314ef42c532a9f0ae
2024-04-15 22:27:21 +09:00
Zuul 209d3a08a1 Merge "Bump upper version of puppetlabs-apache" 2024-04-15 12:13:48 +00:00
Zuul 52f6a9a111 Merge "reno: Update master for unmaintained/xena" 2024-04-12 13:01:19 +00:00
OpenStack Release Bot 2eb2dace63 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I6ddb01c62978451ce9b3d3c9ff8b8998b69536a3
2024-04-12 12:31:48 +00:00
OpenStack Release Bot 51abdedaa5 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I735dc9e5c73993ad00a7b847db748c41645089a3
2024-04-12 12:23:43 +00:00
Takashi Kajinami a7674b9344 Bump upper version of puppetlabs-apache
Currently 12.1.0 is used in CI and is proven to work.

Change-Id: I11f4e206863ff4565211d409d45f8d401958ee9e
2024-04-12 00:43:14 +09:00
OpenStack Release Bot bf9c9353cb reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I9244bd0222dc50a9605dd5bcfa56b6a8a3906159
2024-02-21 16:45:44 +00:00
Zuul 94fa2b3ec6 Merge "Restart httpd after config change" 2024-01-12 17:53:04 +00:00
Takashi Kajinami 5a3245f9d4 Require valid type for available_themses
Currently, if a users gives invalid input type for available_themses,
the logic ignores the input and reflect nothing in the config file,
which can cause unexpected results. This ensures the given input is
a hash value.

This also adds validations to ensure only required values are included
by the hash.

Change-Id: I61aefe65e6218a79dce7a0633cb0ceb13b0021b4
2024-01-10 15:42:02 +00:00
Takashi Kajinami d8098793ea Restart httpd after config change
This fixes the missing notifications so that the httpd service is
properly restarted after config files are updated.

This also realigns package resources for separate dasobhards to
the global install phase because these packages should be installed
before config phase.

Related-Bug: #2048037
Change-Id: I8331c6c528391401c57b450be6bf75829179a9f8
2024-01-10 01:52:26 +09:00
Takashi Kajinami 748e615c78 Support COMPRESS_ENABLED
The COMPRESS_ENABLED option controls whether the compression should be
enabled. This adds support for this option.

Change-Id: Ie3e48afc50770b121daacb90d8c70cf241efd330
2023-12-14 11:36:39 +09:00
Takashi Kajinami 32c2099414 Bump supported Debian version to 12 (Bookworm)
Debian 12 was released in June 2023. Recent versions of OpenStack
(actually, 2023.1 and later) no longer support Debian 11.

Change-Id: Ifc2b63e6e6e068daacccbe30478cccdd7a6447c3
2023-11-18 09:15:42 +00:00
Zuul 035a17b444 Merge "Deprecate support of MemcachedCache backend" 2023-11-17 18:55:18 +00:00
Zuul 0f0f095de9 Merge "Enable scenario 002 job" 2023-11-16 19:31:11 +00:00
Zuul 678f359196 Merge "Support purging local_settings.d" 2023-11-16 05:11:35 +00:00
Takashi Kajinami 567d97e1da Deprecate support of MemcachedCache backend
This backend was deprecated in django 3.2 and was removed in 4.1.

At the time of writing, all of the supported distributions provide
django 3.2 which contains the deprecation, so we can deprecate its
support now.

Change-Id: Ic0781aa5cd2100ded69ec262cffd834b0de86495
2023-11-16 03:24:15 +09:00
Takashi Kajinami 96ceaa1c77 Enable scenario 002 job
... because horizon is now enabled in this scenario to test
installation of ironic-ui.

Depends-on: https://review.opendev.org/900804
Change-Id: Ib1c0a6bc09428aa2cba8cc329bffd7a0dbbe0075
2023-11-16 02:11:07 +09:00
Zuul 2467a38063 Merge "Create dedicated class for ironic-ui" 2023-11-15 17:06:26 +00:00
Takashi Kajinami e1e446e689 Support purging local_settings.d
In Debian, some files are installed into local_settings.d by their
packages and these conflict with the options added to local_settings.
This introduces an option to purge the directory.

Change-Id: I7e074f78b15ab22d86d6a6a10f573cfc4052023a
2023-11-14 08:25:48 +00:00
Takashi Kajinami cfe50237b6 Debian: Fix wrong wsgi script path
The horizon package in Debian installs the wsgi.py file at a path
different from the other distros.

Closes-Bug: #2043371
Change-Id: Idb8550dd534cd2a1bb442cd2e2256f1a8fc8d89e
2023-11-14 17:25:25 +09:00
Takashi Kajinami 1219aab898 Create dedicated class for ironic-ui
The package name of ironic-ui in Ubnutu/Debian does not follow
the general naming rule and the existing horizon::dashboard can't be
used.

Closes-Bug: #2033929
Change-Id: I7703550897c6b31f2b45ffce75f0ab2bae7a4157
2023-11-14 00:09:12 +09:00
Thomas Goirand d94647073a Add TOTP support
Horizon recently introduced TOTP support. This introduces a few new
parameters to allow users to enable the feature.

Depends-on: https://review.opendev.org/c/openstack/horizon/+/885570
Change-Id: I0b8d86c292715ffbb6d75dadcda7b51b1c190641
2023-10-22 14:40:48 +00:00
Zuul 0eebd89391 Merge "Bump upper version of puppetlabs-apache" 2023-10-17 14:41:50 +00:00
Takashi Kajinami 8f6a37359d Bump upper version of puppetlabs-apache
... because now we are using v11.x.x in CI.

Change-Id: I37db6768fa9aa24354681b92269c313ccb5b2975
2023-10-17 13:54:41 +09:00
OpenStack Release Bot a831925a00 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: Id088549b140d5ae0c2c38811251d6de5a52aa69e
2023-10-16 15:16:48 +00:00
Takashi Kajinami 3a15e126e2 Remove usage of deleted manifest_dir
Recent update in rspec-puppet removed some of the config interfaces for
old puppet versions[1]. This drops usage of these interfaces to resolve
the following error in unit tests.

```
An error occurred while loading ./spec/unit/provider/manila_spec.rb.
Failure/Error: c.manifest_dir = File.join(fixture_path, 'manifests')

NoMethodError:
  undefined method `manifest_dir='...
```

[1] 316d95923c

Change-Id: Ic74097dd92e23c6575284cbe61a605deac4f646c
2023-10-11 12:00:46 +09:00
Zuul f1cdbd5e11 Merge "Prepare 2023.2 release" 2023-10-03 17:18:11 +00:00
Takashi Kajinami 3b063e7653 Prepare 2023.2 release
Change-Id: I48229f0ce93ff5e7ae3df473bb4333759f2c803d
2023-10-03 17:07:31 +09:00
Takashi Kajinami 737c647e11 Bump upper version of stdlib
... because we are currently using v9.0.0 in CI. Lower version may be
bumped after 2023.2 release.

Change-Id: Ib296cd47fc5347c1cd5a10621640c21e68987272
2023-10-03 13:09:53 +09:00
Zuul 8a4d294a8e Merge "Remove unused LOCAL_PATH" 2023-09-25 09:41:24 +00:00
Takashi Kajinami 793d25460e Ensure boolean values at horizon::wsgi::apache
We already added these validations to the horizon class, but having
the same in the underlying implementation allows us to ensure
the supported types are passed down.

Change-Id: I591f7ee273030f16184d8b53768b3594efc22e35
2023-09-20 01:24:45 +00:00
Zuul ba53673ea1 Merge "Simplify setting of urls" 2023-09-18 21:16:08 +00:00
Zuul c4af4b3d35 Merge "CentOS: Skip redundant compress/cache clear" 2023-09-15 14:06:14 +00:00
Takashi Kajinami d967012a7a CentOS: Skip redundant compress/cache clear
The horizon package in RDO provides the systemd drop-in[1] to execute
these commands before starting the httpd service, so we don't have to
execute these explicitly.

[1] https://github.com/rdo-packages/horizon-distgit/blob/rpm-master/python-django-horizon-systemd.conf

Change-Id: Ifb5cb45ce848345a8ca865443040830325686043
2023-09-12 16:36:32 +09:00
Takashi Kajinami 173cd6b8c5 Align default SESSION_TIMEOUT with horizon's default
The SESSION_TIMEOUT parameter in horizon defaults to 3600. This updates
the default in our module to use the consistent default.

Change-Id: Icb609fad8ce95f867fe467064995e665e42f253c
2023-09-12 13:47:13 +09:00
Takashi Kajinami b9780547a9 Add support for TOKEN_TIMEOUT_MARGIN
Change-Id: Ia0ceb69a45680a29e7311da94676d026978c2caa
2023-09-12 13:46:06 +09:00
Takashi Kajinami dd1c1e99b4 Remove unused LOCAL_PATH
This variable is not actually used thus can be removed from the file.

Also the os module is not really used in the file and we don't have to
import it now.

Change-Id: Ibefbb147404e22684bc5d9ae0870b706929e4009
2023-09-12 04:38:53 +00:00
Takashi Kajinami 5bc9978891 Simplify setting of urls
Since [1] was merged, all the URL options are set according to
the WEBROOT option. Also the trailing slash is added automatically.

[1] 2a772d64800070689478a49b6aa26a5893b2067b

Change-Id: Ic13cd2e541f21d07ed1b2b1337eeae042dbe2daa
2023-09-12 01:50:09 +09:00
Takashi Kajinami 1ebf203d64 Do not restart services after policy file changes
The oslo.policy library has implementations to detect change in policy
rules and reload the new rules without service restart.

Change-Id: I87f25b0b760f326671caf9874bff806261139956
2023-09-11 12:37:38 +09:00
Zuul 632fb29a84 Merge "Fix wrong default value of use_simple_tenant_usage" 2023-09-05 15:54:58 +00:00
Zuul 816ef63a83 Merge "Verify each line separately in fragment" 2023-09-05 15:53:59 +00:00
Zuul cbae371699 Merge "Drop unused openstack_dashboard.exceptions" 2023-09-05 15:53:58 +00:00
Zuul d85cc4230d Merge "Stop replacing a dict value" 2023-09-05 15:46:57 +00:00
Takashi Kajinami b9ddda15f4 Fix wrong default value of use_simple_tenant_usage
The actual option in horizon was set to True by default before [1] was
merged. This restores the old default value.

[1] 54a31c91fd

Change-Id: Iaa64ba9d475b0dbfcbd53af8b777ef94cae85c0b
2023-08-31 22:13:48 +09:00
Takashi Kajinami 9554a40a63 Verify each line separately in fragment
Currently when any of the expected lines do not appear in the concat
fragment, the verify fails but shows only the truncated contents. This
makes it difficult to find out which line is wrong.

This split the evaluation to every single line so that more specific
error is shown.

Change-Id: I1f6233bd1fa7ec3557e622942397fe58e583e4c9
2023-08-31 15:13:15 +09:00
Takashi Kajinami 19db7a0d2f Stop replacing a dict value
Currently we completely replace some dict values in local_settings but
this causes a few problems.

 - Some keys(eg OPENSTACK_HYPERVISOR_FEATURES['enable_quotas']) are
   missing from the default dict value, which overrides its default
   value (True) in Horizon

 - We have to maintain the default values defined in our manifest
   according to any update in Horizon side.

This updates the logic to override keys only when requested, so that
the configuration basically leverage the defaults defined in Horizon.

Change-Id: I0fa105e595ff053d389e75004638af5856dbb734
2023-08-31 15:13:12 +09:00
Takashi Kajinami fd20f5a039 Drop unused openstack_dashboard.exceptions
The module is no longer used in our local_settings template since [1]
was merged.

[1] 08acafc46b

Change-Id: Ib62a2638e4735ce8f45a4abba9a4e670f35283ee
2023-08-30 21:17:57 +09:00