* Update charm-openstack-dashboard from branch 'master'
to ab66a192f46f375037d951587e9fb8bc03040830
- Added OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED to config options
Starting from Openstack Bobcat (2023.2) Multi Factor Authentication
was added for Horizon. This change introduced a new variable called
OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED, which if set to True will display
a new form requesting for the user's TOTP code for MFA enabled users.
This change provides the missing OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED
config option for the charm, allowing the user to enable from the
charm's configuration. If the value is set to True, the new bobcat
template will render the following values:
OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED = True
AUTHENTICATION_PLUGINS = [
'openstack_auth.plugin.totp.TotpPlugin',
'openstack_auth.plugin.password.PasswordPlugin',
'openstack_auth.plugin.token.TokenPlugin'
]
Closes-Bug: #2058689
Change-Id: Ifedf587356693b58612b1fc4d7404f0f446158ce
* Update charm-openstack-dashboard from branch 'master'
to f433c3fb902f4288d07c490aaf77fe925109ee52
- Merge "Add config for extra regions"
- Add config for extra regions
This is so we can register extra region endpoints in horizon,
in situations where the keystone for the extra regions cannot be
integrated via juju (for example, completely separate deployment).
Closes-Bug: #1714926
Change-Id: I52cecec88437fd2bc5a012653f24471039e6b819
* Update charm-openstack-dashboard from branch 'master'
to 09c587116059319305b2a09cb393a084a52d1fc9
- Adjust haproxy timeout to intended values
Many years ago change Ida7949113594b9b859ab7b4ba8b2bb440bab6e7d
attempted to change the timeouts of haproxy but did not succeed,
as deployments were still using the values from the charm's
templates/haproxy.cfg file, being effectively set to 30 seconds
and causing timeouts (see bug). Additionally, the description
of the config options became inaccurate, stating the default to
be a value that they were really not.
This patch addresses the timeout value discrepancy, adjusting
to the original change's intended values.
Closes-bug: #2045168
Change-Id: I83405727b4a116ec6f47b61211bf8ef3d2d9fbd6
* Update charm-openstack-dashboard from branch 'master'
to 63d0ffc1570dc3de0e95bcc31ac5dd02528db9d8
- Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.
Change-Id: I951e0a2b9e44158dd0d2586554d5380c981f46f6
* Update charm-openstack-dashboard from branch 'master'
to 959752f48c01814086b87533ebbd1e1463a556d8
- Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal. They do NOT lock the charms
down, and don't change the testing branches to stable branches.
Change-Id: Id88fe1d5e3b177099966c659d11b96e6d1fb4c4f
* Update charm-openstack-dashboard from branch 'master'
to 6b93e9dd8713f41fd50242499cc5413c26780714
- Allow configure of OPENSTACK_INSTANCE_RETRIEVE_IP_ADDRESSES
If network calls to retrieve ports and floating IPs take too long,
then the project > instances page cannot be loaded. This config
allows disabling the network calls when loading the page with
minor side-effects, as a workaround to avoid downtime while other
performance optimizations can be done on the side to allow
the page the load so the workaround is no longer needed.
Closes-bug: #2051003
Related-bug: #2045168
Change-Id: Iedad6ef48cbe0b776594f4ad8276d3d713cd360c
* Update charm-openstack-dashboard from branch 'master'
to e5f3cf83954fcb57b7f3be15458d0c4b9225006a
- Merge "Run relation_set() in dashboard_relation_changed() on leader"
- Run relation_set() in dashboard_relation_changed() on leader
The commit 484b7d8260 introduced a new relation that relies on an
application databag to exchange data, although only the leader can write
to it, and the original patch didn't guard the relation_set() call with
a is_leader(), this patch addresses that problem wich produces a hook
failure on follower units when openstack-dashboard is deployed in HA.
Closes-Bug: #2046257
Related-Bug: #2030094
Change-Id: I1930b0b96f65cb627f896db67dddc6370cf6a413
* Update charm-openstack-dashboard from branch 'master'
to 9d9d16c43566424aaba42f6a2fb18b4d9ec58735
- Merge "Add local_settings.py template for Bobcat"
- Add local_settings.py template for Bobcat
This fixes issues found in testing with Django 4 in mantic.
ugettext_lazy was deprecated in Django 3.0 and removed in
Django 4.0. Switch to gettext_lazy.
Switch to PyMemcacheCache backend as the Django MemcachedCache
backend was removed in Django 4.1 in favor of the PyMemcacheCache
or PyLibMCCache backend. This depends on a new openstack-dashboard
package version that will be provided in an SRU for bug #2039225.
Closes-Bug: #2039226
Closes-Bug: #2039225
Change-Id: Ia8e4f6f5f50d58268e4c6fa80c9f9c65a56a26ea
* Update charm-openstack-dashboard from branch 'master'
to 264a95c348ee03b0767545dd88ea000aa3870bef
- Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.
Change-Id: I9c5beab362cbf747eb757645fa3704043a2f14c7
* Update charm-openstack-dashboard from branch 'master'
to c2efb4207fd81e3858cd98890aeeeb3ad6a01c87
- Merge "Add new interface 'dashboard'"
- Add new interface 'dashboard'
openstack-dashboard exposes the hostnames (and IP addresses) that can be
used by users to load Horizon. There are 3 possible sources, they are
juju units ingress-address, os-public-hostname and vip config options
Closes-Bug: #2030094
Change-Id: I5eb524c6258f72980ef43175f2bed21d7ca078be
* Update charm-openstack-dashboard from branch 'master'
to b9b48089b72c2c2d8f2126d84a5f41e57c8a9409
- Merge "Ensure get_requests_for_local_unit doesn't fail on incomplete relation"
- Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation. Fix in charmhelpers is in [1].
[1] https://github.com/juju/charm-helpers/pull/824
Closes-Bug: #2028683
Change-Id: Iea8afd1720bac55321fbcc45aa21bb33f026b68e
* Update charm-openstack-dashboard from branch 'master'
to 5c34112030e8961d67b4718eb563cbe501eeed31
- Support disabling apache wsgi socket rotation
Bug LP 1863232 introduced a new Apache configuration option called
WSGISocketRotation which allows users to disable wsgi socket
rotation. This patch makes this configurable with a new
wsgi-socket-rotation config option that defaults to the Apache
default and can optionally be set to False.
Closes-Bug: #2021550
Change-Id: I671f4b7f655f12cc558fc64116e31f16560dd2e7
* Update charm-openstack-dashboard from branch 'master'
to 21c1ab037e759c8825991a1fd3b731a3742bf8d1
- Fix typo in actions.yaml
There was a typo in actions.yaml for the resume action that was breaking
builds. This change fixes that typo. The charm will build.
Closes-Bug: 2030677
Change-Id: I470c5f340cbc1282d80396af3d19b9016bb10e2f
* Update charm-openstack-dashboard from branch 'master'
to b56c411c488536e53e018a89b9882fad9ffeeb07
- Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/stable
Change-Id: I59aba33be9d8031f437e860200c6e6a1902630dd
* Update charm-openstack-dashboard from branch 'master'
to e8d0ca39a1e02abb075e283e4438464b90223b91
- Make LocalSettingsContext more robust to priority
The relation data for for the LocalSettings context could cause the
priority sorting to break if the priority key wasn't cmpable (e.g. using
<, > or ==). This patch fixes the associated bug, by making the sorting
extra robust and ensuring that un-cmp-able values are 'greater' (e.g.
further down the list) that cmp-able values, and equal to each other.
E.g. a partially ordered set.
Change-Id: I6bbf7e5f81a772ffc6ea859c9ab7c05f2eb9fdc5
Closes-bug: #2023404
* Update charm-openstack-dashboard from branch 'master'
to cbcb084af8274949835b9e92f20d4fa852c09fb5
- Merge "Add package-upgrade action"
- Add package-upgrade action
The package-upgrade action performs package upgrades for the current
OpenStack release.
The code path used is similar to the openstack-upgrade action, with the
difference being that package-upgrade will not execute if an openstack
upgrade is available (based on the openstack-origin setting).
This change includes a charm-helpers sync.
Change-Id: I7a36e0f5f47423ae8601d6ca86aa0fe311ecb735
* Update charm-openstack-dashboard from branch 'master'
to cc904247a2ab14efdb5f5318158025927bf249a1
- Fix placement of vault unit.
Change-Id: I43048928cf319b5ca9a8af68000736ca26ffcf0e
* Update charm-openstack-dashboard from branch 'master'
to 9315fb5e5c033966b453f9662108fbf83900c900
- Enable jammy-antelope voting and drop kinetic-zed tests
* Voting was turned on for jammy-antelope in the
project-template for charm-functional-jobs in zosci-config
* Voting for jammy-antelope bundles with non-standard names
is turned on in individual charms
* Kinetic-zed bundles/tests are removed
Change-Id: I46c1bb4a5c751d12435b6a42a59dd90413937d49
* Update charm-openstack-dashboard from branch 'master'
to 6f3ad3cf92cd6206d164548eed43d153fb70b195
- Merge "[DOC] Add details about custom theme folder structure"
- [DOC] Add details about custom theme folder structure
When using custom themes, some strict structure should be
used in order for it to work correctly.
Closes-bug: #1897805
Change-Id: I535478b06f8789f245b6c9fc523806c02c47a369
* Update charm-openstack-dashboard from branch 'master'
to cca834cb501d3dfade29943b3d0ea219d788070a
- Merge "ALLOWED_HOSTS must be list format for django 4.x"
- ALLOWED_HOSTS must be list format for django 4.x
Closes-Bug: #1982199
Change-Id: I9f4251995481ca5970cb901c2fe27de3c5e31749
* Update charm-openstack-dashboard from branch 'master'
to ee9762367b4c1594b76d3f367680c8a47455bead
- Ensure that kinetic/22.10 is enabled
This patch adds kinetic to the metadata.yaml and ensures
that a run-on base for 22.10 is added in the
charmcraft.yaml
Change-Id: Ib0157b2ab640aac2441eeb08524367129d84db8e
* Update charm-openstack-dashboard from branch 'master'
to 036a3927aa516912eca0c1c77b86fc3f9d3f8b42
- Merge "Add Kinetic and Zed support"
- Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml
Change-Id: I2cb698f719106e54b06009f24ea47259419e9cad
* Update charm-openstack-dashboard from branch 'master'
to 333501d88f7e6e63ee1e16d4f06984416fc4a96c
- Merge "Introduce source IP based rate limiting"
- Introduce source IP based rate limiting
Since we are running haproxy in L4, we are tracking the incoming
byte rate from client IPs and rejecting TCP connections in a
sliding window.
This approach limits the incoming HTTP requests however image uploading
through the horizon web app is unaffected.
Change-Id: Ie40d28acb2dc2983fc9edbbeacfd671b380a8f6d
Closes-Bug: #1836514
Signed-off-by: Mert Kırpıcı <mert.kirpici@canonical.com>
* Update charm-openstack-dashboard from branch 'master'
to 123b8447ed40a9c5339bd181ce707d726d09a565
- Handle JSON data from dashboard plugins
The dashboard-plugin interface sends relation data json encoded but
the charm does not decode the local-settings key. This change decodes
the data. I have not been able to find any classic plugins that
rely on sending raw data but to maintain backwards compatability
just incase the charm will fallback to the old behaviour if the
relation data is not json encoded.
Change-Id: I3f956ae811cb6c46b5e2ab31f1353678a35e623a
Closes-Bug: #1986538
* Update charm-openstack-dashboard from branch 'master'
to af7a57d539183e64109f022260b4b278549c27f6
- Add enable_router config option
This patch adds an option of enabling/disabling router panel view
in the horizon. To hide the router/floatin-ip panel, set the config
option 'enable-router-panel=False'. Default value is True.
Closes-Bug: #1966815
Change-Id: If6fb3b57f05a1ab6342077d2142bd47cfce57948
* Update charm-openstack-dashboard from branch 'master'
to e47ecb935974e12e14dd4fbb194e379debaf15ff
- Merge "Set customization_module in local_settings.py"
- Set customization_module in local_settings.py
The configuration key customization-module is expected to set
HORIZON_CONFIG["customization_module"] in local_settings.py although
this was missing from the template for releases >= newton.
Change-Id: Ia741bf3d8298f66b4f1e2324159d4ab851634efb
Closes-Bug: #1977494
* Update charm-openstack-dashboard from branch 'master'
to f2c485dfabaa9dc7ef74772be53256e4e6fd1783
- Merge "Fix warning messages related to enforce-ssl"
- Fix warning messages related to enforce-ssl
When enforce-ssl is set to false, a warning message comes up saying it is
set to true. This should stop the message from coming up when
enforce-ssl is false.
Related-Bug: #1818636
Change-Id: I6afe116c0cd1e04b5c37413c7daf556a9b05dee4
* Update charm-openstack-dashboard from branch 'master'
to a4ee714eb7335868b97f347afb8472a8810577f6
- Pin tempest for python<3.8
Change-Id: Icafb620026f92017d18b0447a7ad0de3f7763f2c
* Update charm-openstack-dashboard from branch 'master'
to c2c1be30704406e38dbc5f756ddb04bbba458bba
- Merge "Force resolve configs after openstack-upgrade action"
- Force resolve configs after openstack-upgrade action
Force resolve the global configs option after an openstack upgrade
action is run but before the config_changed hook is run. This ensures
that the global CONFIGS values are updated to the appropriate templates
before rendering the update config.
Change-Id: Id8ed2f6d60cf79e1360ca7587aa771ffbe1af9aa
Closes-Bug: 1928853
* Update charm-openstack-dashboard from branch 'master'
to eb913cfb5d85da92b260891aef68b09e6825887e
- Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
target.
- ensure that the openstack-origin is yoga
- Fix mocking on unit tests for install.real hook
Change-Id: I7bf692965341c0cc1c84c7d3c77cce63a6cb6cbc
* Update charm-openstack-dashboard from branch 'master'
to 1887807f8f59a84d24ebc869d1fce1a10003427f
- Merge "Fix ssl_key var name"
- Fix ssl_key var name
Incorrect config key was responsible for bugs when configuring
websso when using SSL.
Closes-bug: #1960854
Change-Id: I241c7492ffcddf11c6b6464391fe986c61895b19
* Update charm-openstack-dashboard from branch 'master'
to c1cbacb9c2242233c263d39acfa83fb6d3412dc3
- Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests. This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.
Change-Id: Ifdf20eb653bf5a828a03e120018fa447310f043c
* Update charm-openstack-dashboard from branch 'master'
to 82897f8f5fde0ef2c639b18a2499d2f033ce37c5
- Streamline the custom theme steps in README.md
"default-theme" is nothing to do with adding the custom theme into
available themes.
Change-Id: I0862a628e8fd93aecb7eb2ac54594b34b028cbe1
* Update charm-openstack-dashboard from branch 'master'
to bd0eed2c849d165755371dcfbb4bbb6dd9a5bfad
- Allow customization of branding
Make the following values configurable:
- SITE_BRANDING
- SITE_BRANDING_LINK
- HORIZON_CONFIG["help_url"]
Closes-Bug: #1959366
Change-Id: I34716bd68cc50b53dd28f6bb7a19409ece355465
* Update charm-openstack-dashboard from branch 'master'
to 9984b7db5187c9ec07053f4de0d5469e5019ef56
- Merge "Add application-dashboard relation"
- Add application-dashboard relation
Homer[1] is static web server and provides one stop shop UI,
which a single URL and be able to click on a link to get to
the LMA stack and other sites (like MAAS, other support portal).
The application is registered to Homer dashboard via application-dashboard
relation.
By adding registration relation in openstack-dashboard charm,
we can register Horizon in Homer dashboard after creating relation
between openstack-dashboard charm and Homer charm
[1]. https://github.com/bastienwirtz/homer
Closes-Bug: 1945725
Change-Id: Ieeacd8f1dda7e88a1f3f7b332163b2b42f1fee41
* Update charm-openstack-dashboard from branch 'master'
to 725d7d4f41871f4a557d21038d37bcf8fa7a64ba
- setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: Ic4d9d75a56d133c9408c460d833234f7f6c81626
* Update charm-openstack-dashboard from branch 'master'
to 9da66b4cc5c2631464f15de72932786f814bbfd8
- Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.
Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I718a003c5f07e390457bc39e69871c7ecb533e7b
* Update charm-openstack-dashboard from branch 'master'
to 4355ea2d6b1cc47dc530c2dc83c0d87db7881bed
- Remove neutron-fwaas-dashboard package for >= V
neutron-fwaas project is retired from Victoria release.
This patch removes installing neutron-fwaas-dashboard package
from Victoria release onwards.
Closes-Bug: 1934129
Change-Id: Id2c8695274bb3438612ee44bb922766a6bddf900
* Update charm-openstack-dashboard from branch 'master'
to dbc4077ba5abeaced91d99f55ef876584f55ed69
- Ease KeepAliveTimeout
Apache2's default value for KeepAliveTimeout is 5 seconds, which is okay
for general web-page serving use cases. However, connections from a web
browser to Horizon application can be terminated unnecessarily during
multiple requests in a session due to the short KeepAliveTimeout.
Let's ease KeepAliveTimeout to 75 seconds, which is fairly standard for
services behind a reverse proxy since it's the default value of nginx.
Closes-Bug: #1947010
Change-Id: Iff9357e5efb7937927a8d0a6de072d4afaa98906
* Update charm-openstack-dashboard from branch 'master'
to 5bfac0a35201743e21a1806a6d86878f1a57a464
- improve unstable unit tests and fix whitespace
The unstable unit tests affected by list order were fixed by comparing the sorted region lists.
Additionally, a whitespace fix was implemented.
Change-Id: I2c67f7405a3f533d25111d7c3920ca31380de35a
* Update charm-openstack-dashboard from branch 'master'
to d94662f3747a7a5b2f13aa4fa7aa39760edf775f
- Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39
Change-Id: Ie287d7462b5e2cfcb1f91f25117eb61d93f59a1f
* Update charm-openstack-dashboard from branch 'master'
to 1b72612b37642d85ddbf5a3dad30e3ab223143d9
- Merge "Disable local overlay for CMR vault bundle."
- Disable local overlay for CMR vault bundle.
When the local overlay is enabled, Zaza ends up deploying
a 0-unit openstack-dashboard into the Vault model, which
breaks the waiting for status as, generally, it is not
desired to have a 0-unit openstack-dashboard. We can
disable this local overlay with a key in the bundle in
question.
Closes-Bug: #1945786
Change-Id: Id11d0d00e45f2d332debdc9119ad4f5150e46a51
* Update charm-openstack-dashboard from branch 'master'
to 18a9ac11713bea0f7b6ebaeb78f7eff71b160cca
- hide-create-volume config added
The configuration option hide-create-volume was added and is passed into the horizon configuration as hide_create_volume.
Closes-Bug: #1939079
Change-Id: I639810d5908cc58f41907f9a3bd66dc78b9517d6