387 Commits

Author SHA1 Message Date
Zuul
b62c49acf5 Merge "Add support for multiple swift storage policies" 2020-04-17 10:06:59 +00:00
Simon Merrick
2735f2c08d Add support for multiple swift storage policies
+ Adds endpoint for listing available policies
+ Support to select a storage policy for new containers
+ Display container storage polcy on dashboard.

Change-Id: I588452fd5d6417859f5dd19ccedcb18f420ab646
2020-04-16 22:18:06 +12:00
vmarkov
7f849239ea Support for Keystone password_lock option
This feature was added in Keystone V3 API. Proposed patch adds support
to Horizon

Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
Closes-bug: #1766485
Change-Id: Ic20a58c76826d703b43fa6a2d77ae5f77dcda1f4
2020-04-10 13:22:53 +03:00
Akihiro Motoki
6ce40aee83 Deprecate legacy way to retrieve neutron usage
neutron 'quota_details' extension was added in Pike to provide
a convenient way to retrieve resource usage in neutron without listing
individual resources. It was added in Pike release and we will have
six releases since then once Ussuri release is shipped. Enough time has
passed to migrate it to the new mechanism, so it is time to deprecate
the legacy way for future cleanup.

Change-Id: Ie0b4613bf9fdcd96481b3bb1139b4fb153bfef83
2020-03-23 14:21:04 +00:00
Ivan Kolodyazhny
3e7bc83c4b Allow to set default instance boot source
This introduces a new config option `DEFAULT_BOOT_SOURCE` to allow
operators to configure a default instance boot source.

Change-Id: Ia9b0d1d24ae69958b6606b9a645bd54f70b3aacc
Implements: blueprint default-instance-boot-source
2020-02-18 11:46:39 +02:00
Zuul
767bd569a0 Merge "Deprecate OPENSTACK_NOVA_EXTENSIONS_BLACKLIST" 2020-01-06 15:22:12 +00:00
Akihiro Motoki
a2a3e8b6c3 Drop Django 1.11 support
Django 1.11 support was dropped. Django 1.11 ends its extended support
in April 2020 which is before Ussuri release. Considering this,
horizon dropped Django 1.11 support.

Unnecessary Django version checks in the code are also dropped.

Change-Id: I2c58934f2b026745fbc97a58212b91d149db3657
2019-12-29 06:20:37 +09:00
Akihiro Motoki
3e54ba096f Complete "Drop Python 2.7 Support" goal
The goal definition in the TC repo [1] defines the completion criteria.
We have already completed 1, 2, 3 and partially 4 in [1].
This commit completes 4 (requirements.txt etc) and 5 (release note).

Python dependency in the installation guide is updated.
Django support plan in Ussuri is updated as well.
References to python 2.7 in the document are updated as well.

[1] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I0383920e32e053e1611519be774fab8dec124ccc
2019-12-29 01:42:54 +09:00
Dmitriy Rabotyagov
04a3535e18 Add support to get disk_formats from glance
This patch allows administrators to set disk_formats only for glance,
while horizon will retrieve list of supported formats from glance API.
IMAGE_BACKEND_SETTINGS still may be used to redefine display name
of the format or additionally limit list of availble ones.

Change-Id: Ia4ea513023895f4ad2a87f91e3d2837c7668d9ae
Closes-Bug: 1853822
2019-12-17 14:56:44 +02:00
Akihiro Motoki
523fbce3de Deprecate OPENSTACK_NOVA_EXTENSIONS_BLACKLIST
All of the nova API extensions have been mainlined several releases ago
and there is no potential performance issue in the nova API.
This option is used only to toggle features in horizon and
there seems no performance issues controlled by the option in horizon.
Considering this situation, this option is deprecated now.

Change-Id: If8e58e8324bad919ea45d0ccb10e21371d97f470
2019-12-17 15:26:44 +09:00
白子玉
3f7fc68085 Changed default identity url to horizon
The keystone doesn't use 5000 port anymore from Newton version. And all
 the references should be changed together.

Change-Id: I3f02686ab5b3abf48f129fde92e90427ca148317
2019-12-06 18:41:38 +08:00
Tin Lam
140c22741e Add policy_rules to flavors dashboard
This patch set adds in os_compute_api:os-flavor-manage policies in the
appropriate dashboards.

Change-Id: I3157aeaa916837b4f6258009dc643ab225e6ee17
Signed-off-by: Tin Lam <tin@irrational.io>
2019-12-02 23:45:07 +00:00
Zuul
f592481cc0 Merge "Add support for keystone access rules" 2019-11-25 09:25:56 +00:00
Tin Lam
e3fc37188d Add policy_rules to aggregates dashboard
This patch set adds in os_compute_api:os-aggregates policies in the
appropriate dashboards.

Change-Id: Id31388e4c7fa3093e31da0479635f5610e378da5
Signed-off-by: Tin Lam <tin@irrational.io>
2019-11-19 09:10:09 -06:00
Colleen Murphy
4d1786c687 Add support for keystone access rules
Keystone implemented the ability to apply fine-grained access control
restrictions to application credentials[1]. This patch adds new fields
to the application credential creation form and detail view so that
horizon users can use this feature.

[1] http://specs.openstack.org/openstack/keystone-specs/specs/keystone/train/capabilities-app-creds.html

Depends-on: https://review.opendev.org/677585

Change-Id: I2d71392eb8569ffb8cb15af29eea76e120a158cc
2019-10-30 14:47:05 +09:00
Akihiro Motoki
3282bf20f7 Enable OPENSTACK_NEUTRON_NETWORK[enable_quotas] by default
neutron supports the qutoas API from long ago and most deployments
are expected to enable the neutron quotas support in horizon.
This commit changes the default value of enable_quotas in
OPENSTACK_NEUTRON_NETWORK to True.

Part of blueprint ini-based-configuration

Change-Id: I5923f08752e6a5ccd4c9cf2fa1deb6c879111f43
2019-10-18 14:27:10 +09:00
Zuul
ab20d461bf Merge "Drop deprecated Glance V1 API support" 2019-10-10 07:07:51 +00:00
Akihiro Motoki
307e884eaa Fix grammar error in a recent release notes
It is pointed out in stable/train backport
https://review.opendev.org/#/c/686384/.

Change-Id: I2261e9e2539148bb08d861a9f27ba29b11181287
2019-10-08 23:47:21 +09:00
Ivan Kolodyazhny
6037a58c6e Drop deprecated Glance V1 API support
Glance V1 API was deprecated in Stein release in Horizon and
deprecated in Glance since Newton release.

Change-Id: I18f6fd03dd3e07fa4f2ccfdccfdc3ca766c91c16
2019-10-08 13:18:22 +03:00
Akihiro Motoki
d8d44de5d3 Relnote: default values are moved to openstack_dashboard/defaults.py
In Train release, we move most settings from local_settings.py.example
to openstack_dashboard/defaults.py. It is worth covered in the Train
release notes so that operators who depend on local_settings.py.example
can be aware of the change.

Also drops settings related to the operation log feature in
local_settings.py.example are as they are defined in
horizon/defaults.py (which is loaded by
openstack_dashboard/defaults.py).

Change-Id: Ib06925aef305ffa1545d10529acd42d04177f5e1
2019-10-03 08:41:12 +00: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
Zuul
1208919617 Merge "Drop deprecated Keystone V2 API support" 2019-09-12 19:26:59 +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
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
c6496c7d05 django22: release note and docs update
Change-Id: I52a9c0319e0b5bd8254b4d4e769fc0497883044d
2019-09-11 16:31:55 +09:00
Akihiro Motoki
cdb191ec83 Fix listing security groups when no rules
When listing security groups in the dashboard and
one or more security groups had no rules it failed
because python throws a KeyError.

This commit changes the neutron API wrapper in horizon
to ensure ensure rule information in SG always exists.

Closes-Bug: #1840465
Co-Authored-By: Tobias Urdin <tobias.urdin@binero.se>
Change-Id: I6e05a7dc6b6655514ee2bff6bd327da86f13900a
2019-08-19 16:38:57 +09:00
Zuul
a87ca08160 Merge "Allow to select multiattach volume that has been attached" 2019-08-08 07:52:16 +00:00
shutingm
86e1960f99 Allow to select multiattach volume that has been attached
When one multiattach enable volume is attached to one instance,
it can be only attached to another instance by cli. This patch
allows users to do so from horizon

Part of blueprint multi-attach-volume

Change-Id: Ic65d84d00a9113b7ee71f06b9c41cd09dcaa1325
Co-Authored-By: Vishal Manchanda <manchandavishal143@gmail.com>
2019-07-30 10:33:26 +00:00
Jesper Schmitz Mouridsen
9fa1cddf09 Enable volume snapshot backups
Make it possible to use horizon for backing
up snapshots.

 * Add snapshot column to backups table
 * Add snapshot information to backup detail
 * Fix wrong template path in create_backup.html
 * Add ChoiceField with snapshots belonging
   to the volume in create backup form
 * Add create backup option in snapshots table
 * Adjust tests and test data

When backing up from snapshots table the snapshot
ChoiceField is preset with the choosen snapshot
as the only option.
Implements: blueprint volume-snapshot-backups

Change-Id: I4b7707d95756501e0622460e3ddc4e3f7624f02e
2019-07-25 19:15:01 +00:00
Zuul
e52d24b39b Merge "Add relnote on cinderclient minver bump to 4.0.1" 2019-05-16 09:57:34 +00:00
Ivan Kolodyazhny
2e52e4a4e0 Remove deprecated SHOW_KEYSTONE_V2_RC config option
SHOW_KEYSTONE_V2_RC is deprecated since Stein release and it's safe
to remove it now.

Keystone v2 support removal will be implemented in a follow up patch.

Change-Id: Ib3098789a3aef47f4f4b84fd56f03376ce2ea96f
2019-05-14 11:55:53 +00:00
Akihiro Motoki
e3c600cbbf Add relnote on cinderclient minver bump to 4.0.1
A fix for bug 1824017 bumped the minimum version requirement of
python-cinderclient to 4.0.0. The fix was backported to stable/stein,
so the minimum version bump should be covered by a release note.

python-cinderclient requirement is bumped to >=4.0.1
as 4.0.0 is blocked by global-requirements.txt [1].

It was suggested by the release team in the review of
horizon stein update release [2].

[1] 1baf07a773/global-requirements.txt (L256)
[2] https://review.opendev.org/#/c/655447/

Change-Id: I2b43e159da7e58980b2810a104ae2418f237d1c7
Related-Bug: #1824017
2019-05-11 10:46:50 +09:00
Zuul
27d7b697ee Merge "Drop cinder consistency group support" 2019-05-08 05:40:51 +00:00
Ivan Kolodyazhny
0e518521c8 Remove ENABLE_FLAVOR_EDIT config option
ENABLE_FLAVOR_EDIT is deprecated since Pike release and is not used
anywhere.

Change-Id: I06d5252c8f7bd955025587393f5d8ff00fe01c3b
2019-05-04 15:36:49 +00:00
Akihiro Motoki
431fd6c16b Drop cinder consistency group support
Cinder consistency group has been replaced by the generic group feature.
Horizon support of the generic group (in the project dashboard) is
available since Rocky release and it covers all existing support
for consistency group in horizon.

The consistency group support is horizon was marked as deprecated
in Stein release [1].

This commit drops the consistency group support.

[1] https://review.openstack.org/#/c/626846/

Change-Id: I11187d2b03b7e0033a6c6ba3f8be25b8b5e4dd74
2019-05-03 18:16:23 +00:00
ZhongShengping
a569f0faf3 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: I7f5506455ed52e4670b8e428548e931db13b13db
2019-04-24 12:25:40 +08:00
Ivan Kolodyazhny
36170ed3cb Sync policy.json files with service projects
Policies are generated using oslopolicy-sample-generator
according to Horizon 'Policy file maintenance' guide [1].

[1]
https://docs.openstack.org/horizon/latest/contributor/topics/policy.html#policy-file-maintenance

Change-Id: If31c072ab14e1746969b7f94e6837722cefa28ea
Closes-Bug: #1821289
2019-04-04 08:58:00 +00:00
Andy Botting
04fe1156bf Support setting more visibility options for edit/create image
The edit and create image pages could only set public or private
visibility for an image. With Glance v2, we have 'shared' and
'community' available to us. This commit adds buttons for those
pages selectively when the policy allows it.
It also only displays 'public' visibility if policy allows.

Closes-Bug: #1792411

Depends-On: https://review.openstack.org/#/c/614688/

Change-Id: I193bc0580e4bf9351ad7f17b148a5062e95313ab
2019-03-13 09:29:47 +11:00
Zuul
287323db45 Merge "Add a upgrade_check management command" 2019-03-06 22:28:31 +00:00
Zuul
8f335a42f6 Merge "Add volume group-specs-list support for admin panel" 2019-03-06 12:19:08 +00:00
Radomir Dopieralski
d7d6c0577c Add a upgrade_check management command
This command checks the configuration for invalid and deprecated
settings, as described in
https://governance.openstack.org/tc/goals/stein/upgrade-checkers.html

There is also a script in tools/find_settings.py that scans all python
files for the potential new settings, which is supposed to make it
easier to update the lists that the checks use.

Change-Id: Ie85cf4be3da1ab446c10883a4580e20ea154b67c
Story: 2003657
Task: 26132
2019-03-01 15:43:13 +01:00
manchandavishal
4b523122b0 Add volume group-specs-list support for admin panel
This commit allow admin to list/show cinder volume group-spec
using horizon dashboard and user can perform the following
table action :
1. group-spec-create
2. group-spec-edit
3. group-spec-delete

Partially-Implements blueprint cinder-generic-volume-groups

Change-Id: I7a24e21bbf86595bc7e1251d29caed7f7ff5dec8
2019-03-01 01:50:32 +09:00
Zuul
c3d3d28853 Merge "Change the default SESSION_ENGINE to use cached sessions" 2019-02-12 21:50:31 +00:00
manchandavishal
6084b329f5 Add volume-group table actions for admin panel
This commit allows admin to perform the following
table action :
1. manage volumes (Add/remove volumes from group),
2. remove all volumes from group
3. delete group

Partially-Implements blueprint cinder-generic-volume-groups

Change-Id: I7fcc0dfa8195ecb7914a883fec85c573caa4ae86
2019-01-31 05:58:39 +00:00
Zuul
4a8d00d463 Merge "Allow to specify custom templates for clouds.yaml and openrc" 2019-01-23 14:32:58 +00:00
Akihiro Motoki
a98468bef6 Change the default SESSION_ENGINE to use cached sessions
This commit changes the default SESSION_ENGINE to the cached
sessions and the default cached backend to memcached.

The cached sessions with memcahced is our current recommendation, but
we do not use it in our default settings and do not test it in our CI
(horizon-dsvm-tempest-plugin). It is better to use the recommended
configurations in our CI.
The previous default SESSION_ENGINE, the signed cookies, has
a limitation on the length o cookies and using keystone3 can hit this
easily. It is not ready for production for most cases.

For a cache backend, considering multi-process web server deployments,
memcahced is recommended rather than a local memory backend.

Note for developers: If you use "tox -e runserver" for developments,
SESSION_ENGINE = 'django.contrib.sessions.backends.cache' might not
work expectedly. From my testing, I was forced to log-in frequently
when moving pages. If you hit this, my suggestion is to configure
SESSION_ENGINE to django.contrib.sessions.backends.signed_cookies.

Change-Id: I1c4578ec5a7f70a59c6348d76ad0c12956a18573
Closes-Bug: #1736021
2019-01-15 08:07:54 +09:00
Zuul
a1ffa9620e Merge "Allow to hide openrc and clouds.yaml download links" 2019-01-13 16:43:53 +00:00
Akihiro Motoki
e832c8549b Allow to specify custom templates for clouds.yaml and openrc
Change-Id: I1ef6899f4d14c660eba50f16e813c280657475fc
Closes-Bug: #1795851
2019-01-13 01:53:18 +09:00
Zuul
c8de4fbe89 Merge "Rework old customization templates and add new blocks" 2019-01-05 15:19:06 +00:00