15475 Commits

Author SHA1 Message Date
Zuul
1a2605bddf Merge "Fix navigation hang issue" 2019-09-26 06:48:38 +00:00
Akihiro Motoki
ec970fd6e8 Handle partial dict setting
In Train cycle, we moved the definition of default values
to openstack_dashboard/defaults.py. The current code accesses
a dict member using []. It requires operators to define a dict
setting with a full member.

This commit allows to use dict-type settings with partial members.

A new function is introduced to retrieve a dict-type setting
considering default values defined in
{openstack_dashboard,horizon,openstack_auth}/defaults.py

Change-Id: I7ff0ad4bca698aef9c0eba370b0570200a14367a
Closes-Bug: #1843104
2019-09-26 14:31:17 +09:00
Zuul
fd08f3672f Merge "Don't display expiration warning for expiration date in the past" 2019-09-25 22:42:04 +00:00
Ivan Kolodyazhny
8051a2ca67 Wrong list of attached vms are shown in manage volume attachments
When user tries to attach a volume(multi-attach-volume) to
multiple instances "Manage Attachments" table shows wrong data.
This patch fix the issue.

Closes-Bug: #1700034

Part of blueprint multi-attach-volume

Co-Authored-By: Vishal Manchanda <manchandavishal143@gmail.com>
Change-Id: Ic84e3089c2c15e13dbdf89a38f867e3ddfed86d5
2019-09-25 16:21:15 +00:00
Shilpa Devharakar
87b57dfe71 Add Allowed Address Pair/Delete buttons are only visible to admin
Initially In Queens, when logging into Horizon in context
of a _member_ in any project, the "Add Allowed Address Pair"
and "Delete" buttons in "Network" -> "Networks" ->
<select a network> -> "Ports" -> <select a port> ->
"Allowed Address Pairs" are not visible.

When accessing the same panel in context of a project where the user
has the admin role, the "Add" and "Delete" button is visible and
functional.

This patch fixes the above issue by updating the policy_target.

Change-Id: Ia7db6c2881c72580a156eb97b11bb51f295cfbce
Closes-Bug: #1794421
2019-09-25 18:37:58 +05:30
OpenStack Proposal Bot
33d0bb8c54 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9a37d8033b2588a7b5eb4afc961f789327357d88
2019-09-25 08:02:30 +00:00
Zuul
b3aebb9254 Merge "Define zuul project-template for django22 job" 2019-09-24 11:15:07 +00:00
Akihiro Motoki
97267ff10b doc: Update local.conf example
* Remove sample devstack configuration from local.conf.
  DevStack document provides the full set of configuration.
  There is no need to have sample configurations and descriptions
  in horizon.
* Change default passwords to match passwords used in the OpenStck CI.
  It helps developers reproduce CI configurations in local envs.
  If these passwords are different, we need to (re)configured
  passwords for MySQL, RabbitMQ and so on.

Change-Id: I9540df7a1390aa0411713ea80d711e8cfc09292d
2019-09-24 18:29:48 +09:00
OpenStack Proposal Bot
81200b7043 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I32bcf509dab5c4a754b8124014ed25cd59780ea9
2019-09-24 07:54:46 +00:00
Marek
a11aa7ff62 Forwards LOGOUT_URL to templates.
Uses the openstack context preprocessor to pass
the LOGOUT_URL from settings to templates and
changes the 'Sign out' menu entry to redirect to it
instead of the logout view directly.

closes-bug: #1747149
Change-Id: Id17ffca6b5e24779433c3f19d009bb2a77f7b901
2019-09-20 11:51:48 +02:00
OpenStack Proposal Bot
6ca6f215a4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I34e7b965b8de54ecf796862baf8d00395c1c1dff
2019-09-20 09:43:18 +00:00
pengyuesheng
4a504c571e Add the unit test for images
Change-Id: Id2139f4870781a9c06db87cacc75ec98475fe698
2019-09-20 15:30:52 +08:00
pengyuesheng
59f4c68f83 Add the unit test for trunks
Change-Id: I8eef0d53020ca500df49d46603f7e246ace149c3
2019-09-20 15:06:49 +08:00
pengyuesheng
a27c55c7cf Add the unit test for domains
Change-Id: I4f64bfa9d019544a2ae41b2be7fc23ab12c843bf
2019-09-20 14:20:16 +08:00
Zuul
bcdff69221 Merge "Documentation and release notes for changing expired passwords" 2019-09-19 14:34:24 +00:00
Zuul
34d122d44d Merge "Automatically redirect to the password change when it's expired" 2019-09-19 14:12:55 +00:00
pengyuesheng
55878ae4b2 Add required mark on Create and Update image form
Minimum Disk and Minimum RAM are required but do not have a required mark

This patch Add required mark

Change-Id: I9430e0cf970490597019a1087390a08e6eecde64
2019-09-18 15:31:51 +08:00
Radomir Dopieralski
7c3a9dd8d0 Documentation and release notes for changing expired passwords
Change-Id: I723f45e7ffe1f61bed244642c49eba24dafd7427
Part of blueprint: allow-users-change-expired-password
2019-09-18 07:25:26 +00:00
白子玉
ba75bafc69 Specify proper container_format for 'vhd' disk_format
When editing an image, if the disk_fomrat is 'vhd',
the container_format was wrongly set to 'bare' before.
'ovf' is the correct container_format for 'vhd' disk images.

Closes-Bug: #1539722
Change-Id: Ic6b0c66af0d5c8db2d802d6eea2b97721d92b7eb
2019-09-18 06:20:54 +00:00
Radomir Dopieralski
3ba5da30d3 Don't display expiration warning for expiration date in the past
If the expiration date of a password is in the past, don't display the
expiration warning, as it's not helpful and confuses the user.

This can happen after a user whose password was set to be changed on the
first login changes it, but probably also in other situations, depending
on how many more bugs in Keystone there are around expiring passwords.

Change-Id: Ib79f6ef354c456bbdc2d7c1d4371ae15e825b557
2019-09-17 20:55:34 +02:00
OpenStack Proposal Bot
437e32d18e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4c5b77c21ffe1f6669c02d3b203838b3f41c2cd8
2019-09-17 09:37:40 +00:00
Radomir Dopieralski
9d98a0c24d Automatically redirect to the password change when it's expired
Unfortunately the only way we can know the user_id at this point is
by parsing the error message.

I also refactored the exceptions in openstack_auth to make them use
different classes (but one common superclass).

Partially implements blueprint: allow-users-change-expired-password

Change-Id: Ieceee09db21040b96577db19bd195dc3799e3892
2019-09-16 12:45:23 +02:00
OpenStack Proposal Bot
fa804370b1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0ae103cf4ecbb7d16da1b05eae888f19aa8d0152
2019-09-16 09:23:35 +00:00
Akihiro Motoki
cd1009bd2f Restore horizon.utils.functions.get_page_size()
Commit 7c897b677cc4e7eb11d90fce448160c2b90d1ef4 moved get_page_size
function from horizon.utils.functions to openstack_dashboard.utils.settings
(as it is referred by the OpenStack API wrapper).

However, it turns out that many horizon plugins calls the function
and the above commit breaks horizon plugins.

Considering we are in the last stage of Train development cycle,
this commit restores horizon.utils.functions.get_page_size()
to recover horizon plugins.

Change-Id: I61be648b04ab0320a8c03b769e28ed74bbd242a1
Closes-Bug: #1843871
2019-09-13 17:38:00 +09:00
Akihiro Motoki
02898d1bac Define zuul project-template for django22 job
This commit introduces a new zuul project-template which support
django22 in horizon plugins. By using the project-template,
we can add/change/drop some jobs related to Django versions
without changing all horizon plugin repos.
One possible example is the change of the primary
Django version in upper-constraints.txt.

My plan is to switch the current job defintions in horizon plugins
to the new template when supportnig Django 2.2.

Change-Id: Id0a7b57a19f46c3f1ed87d71ccbb17e0e4301755
2019-09-13 15:15:10 +09:00
Zuul
1208919617 Merge "Drop deprecated Keystone V2 API support" 2019-09-12 19:26:59 +00:00
Zuul
f152ebedd9 Merge "Add a view for changing user password while not logged in" 2019-09-12 17:54:04 +00:00
Zuul
8b7a28677c Merge "Downloadable Kubernetes configuration file" 2019-09-12 17:54:02 +00:00
Ivan Kolodyazhny
f33e5fd8ac Drop deprecated Keystone V2 API support
Keystone V2 API was deprecated in Stein release in Horizon and
removed from Keystone in Queens release.

Change-Id: I917e273d3174adf0874e516b3d635ccb8ba58a27
2019-09-12 17:15:07 +00:00
Radomir Dopieralski
ceb221f6ac Add a view for changing user password while not logged in
Keystone's API for changing the user password doesn't require
authentication, so we can have a page that doesn't require it too.
In order to change the password, the user has to provide their old
password. This is needed for when the password is expired or when
it has to be changed on first use.

The next step will be adding a redirect to this page when a password
is expired or required to be changed.

Part of blueprint: allow-users-change-expired-password
Change-Id: I3b207ef6c5a3095022a2acb64d3988e127f0f49a
2019-09-13 00:03:08 +09:00
Claudio Pisa
f381f4dd3c Downloadable Kubernetes configuration file
Kubernetes can use OpenStack application credentials for authentication.
Generate a kubeconfig file and make it available to download along with the
openrc and clouds.yaml files.

blueprint kubernetes-config-gen

Change-Id: I298370e7abf4f0d480bd5199060f24bab6d6daaa
2019-09-12 14:03:04 +03:00
Akihiro Motoki
02d9a05eea Define remaining openstack_dashboard settings
Part of blueprint ini-based-configuration
Change-Id: I20f5b1d347d227f0facbddc8cf91b57ffa8f164d
2019-09-12 15:05:56 +09:00
Akihiro Motoki
7e95e1601f Move default values defined in settings.py to defaults.py
Some remaining default values of openstack_dashboard are still defined
in settings.py. This commit moves them to openstack_dashboard/defaults.py.
If the default values are same as those defined in horizon,
they are just dropped.

Part of blueprint ini-based-configuration
Change-Id: I723a8f9064450972d4510ac9e8b423f3041d1cac
2019-09-12 15:05:56 +09:00
Akihiro Motoki
7c897b677c Move openstack_dashboard specific settings from horizon
Cookie-based settings related to openstack_dashboard are located
under horizon directory,, but they are not related to "horizon".
This commit moves them to "openstack_dashboard" directory.

Part of blueprint ini-based-configuration
Change-Id: Id48ececdbe819a95485e9a91dc5a1a163a5568c3
2019-09-12 15:05:56 +09:00
Akihiro Motoki
5101ebdc28 Remove unused settings in openstack_dashboard
IMAGE_RESERVED_CUSTOM_PROPERTIES has been not used since Juno.
commit 2e3299dc57e8dd90fe34e1621ea5282bda157563 drops the usage of
IMAGE_RESERVED_CUSTOM_PROPERTIES.

OPENSTACK_HEAT_STACK is specific to heat-dashboard and
it was moved to heat-dashboard.

FLAVOR_EXTRA_KEYS deprecation notice has been dropped. No code refers to
it for a long time (at least the recent four releases).

Part of blueprint ini-based-configuration
Change-Id: I1b81f3e437feafb18423225a93900b07ae91cc75
2019-09-12 15:05:56 +09:00
Akihiro Motoki
9b99f17100 Define default settings explicitly (horizon)
test_parse_isotime_filter in test_filters is updated to match
TIME_ZONE=UTC. Previously TIME_ZONE was not set in horizon.test.settings
and the default value America/Chicago was used. Horizon uses UTC as the
default value of TIME_ZONE, so it is better to use UTC for testing too.

horizon settings in openstack_dashboard.settings are moved to
under horizon.

Part of blueprint ini-based-configuration
Change-Id: I9abdbbe0dcefc08ffea61143e3c0a87ed87b2e2a
2019-09-12 15:05:56 +09:00
Akihiro Motoki
e56e076ea8 Define default settings explicitly (openstack_auth)
This commit also moves descriptions of settings defined in openstack_auth
from openstack_dashboard/settings.py and local_settings.py(.example)
to openstack_auth/settings.py.

Note that if openstack_dashboard has different default settings
from openstack_auth defaults, they are now moved to
openstack_dashboard/defaults.py.

Part of blueprint ini-based-configuration
Change-Id: I59eebc388de0bcbd4d1fe35c6138efbd3e04c5b8
2019-09-12 15:05:56 +09:00
Gloria Gu
b635e625f7 Updated max-width to be dynamic for .member class
When member name is longer than $members-list-item-width
(130px) in members list (for example, project group in Edit
Project), current text-overflow will put ... (ellipsis) at
the end of the name and name will be truncated.

Updated the styling of .member class to make max-width
dynamic 80% and wrap the name in case it is really long.

Change-Id: Ic295a9b1e7fd3525c633d51a60054e713da6a657
Closes-bug: #1843480
2019-09-11 16:26:12 -07:00
Zuul
a629d100be Merge "PDF documentation build" 2019-09-11 16:53:48 +00:00
Zuul
29f8ff98e7 Merge "django22: release note and docs update" 2019-09-11 15:27:51 +00:00
Zuul
427263f0cb Merge "Remove unused 'not_list' template argument" 2019-09-11 15:27:48 +00:00
Akihiro Motoki
c6496c7d05 django22: release note and docs update
Change-Id: I52a9c0319e0b5bd8254b4d4e769fc0497883044d
2019-09-11 16:31:55 +09:00
Zuul
43df4e1d2b Merge "Make horizon-openstack-tox-python3-django22 voting" 2019-09-11 07:31:41 +00:00
Zuul
3abaeda160 Merge "trivial: Remove vendored 'is_safe_url' function" 2019-09-11 06:14:00 +00:00
Zuul
4f7b401fee Merge "trivial: Mark inner method as such" 2019-09-11 04:46:56 +00:00
Zuul
afdfaef879 Merge "trivial: Remove dead code" 2019-09-11 04:46:54 +00:00
Zuul
7830a74fe8 Merge "trivial: Remove 'cache_control' decorator" 2019-09-11 04:46:52 +00:00
Zuul
10bb108cb8 Merge "trivial: Add TODOs for remaining function-based views" 2019-09-11 04:40:38 +00:00
Akihiro Motoki
845e35815f Make horizon-openstack-tox-python3-django22 voting
Django 2.2 support patch series lands now.
It is time to make Django 2.2 job voting.

Change-Id: I0cef9af53d178cf87a09eace80affeb047e7ee47
2019-09-11 03:34:05 +00:00
Stephen Finucane
1de8e806e0 trivial: Remove vendored 'is_safe_url' function
This has been present since at least Django 1.6 [1], though the comment
on the removed function suggests it might have been earlier (pre-Git
days, perhaps?).

[1] https://github.com/django/django/commit/a2f2a399566

Change-Id: Ib6978ffa8d3962383fbc0a1c3cfd9da9e162f7dd
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-09-11 03:33:41 +00:00