15475 Commits

Author SHA1 Message Date
Ivan Kolodyazhny
7f17dcb4dd Remove Python 2.7 jobs
Ussuri release won't support Python 2.7 officially [1] so we can
drop CI jobs to test with Python 2.7.

[1] https://governance.openstack.org/tc/reference/runtimes/ussuri.html

Depends-On: https://review.opendev.org/688997
Change-Id: I650ca71c5a7c922a73f20cdf5ceb02caae464d02
2019-10-24 21:44:39 +00:00
Matt Riedemann
b148c92075 Remove dependency on novaclient list_extensions API
The novaclient list_extensions API binding was removed in the
16.0.0 release [1]. The ability to enable/disable extensions
in nova has been deprecated since Liberty [2] and was removed
in Newton [3].

For horizon this only matters for the OPENSTACK_NOVA_EXTENSIONS_BLACKLIST
config setting and some javascript code used to compile panels based on
enabled extensions. In order to work with novaclient 16.0.0+, this
change removes the list_extensions usage since all extensions
are enabled in nova and thus for horizon a nova extension is only
not supported if it's in the configured blacklist. To continue supporting
the javascript code which uses the getExtensions function, the extension
names are hard-coded. Note that the method meant to test that code,
_test_extension_list, was wrong but never ran because of the underscore
prefix on the method name. That is fixed here.

[1] https://review.opendev.org/686516/
[2] https://review.opendev.org/214592/
[3] https://review.opendev.org/351362/

Change-Id: Iebb1e78c718b931d632445e4de6d7a29ccb92be2
Closes-Bug: #1847959
2019-10-24 15:24:39 -04:00
Keith Berger
85a1dddf12 Fix aes-xts key length in Horizon Admin Guide / Manage Volumes
When using aes-xts-plain64, a 512 bit key produces an error as this
is not a supported barbican key length for aes-xts-plain64. This patch
updates the horzion admin doc to remove the reference of a 512 bit key.

Change-Id: Ie36e05a1e59eb88b779c9f3249a714c20b5f5fe0
Closes-Bug: #1708505
Closes-Bug: #1849196
2019-10-21 16:41:46 -04:00
OpenStack Proposal Bot
ab12da098c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If2f100904bdb20233b4b40e1952d0a18c0c20cd4
2019-10-21 08:05:44 +00: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
78132a40c9 Merge "Assume features from N-4 release instead of N-3" 2019-10-16 06:20:09 +00:00
Zuul
c8bfcf32a9 Merge "Use quoting for CSV Writing" 2019-10-15 11:46:06 +00:00
Pallav Gupta
6190c50184 Fix users integration test
The aim of this PS is to fix existing skipped
test_users integration test.

This PS also resolves Partial-Bug: #1774697

Change-Id: I8da7c09d712a12369d2ab757e22f44e1bb5f0960
2019-10-15 01:12:59 -05:00
Akihiro Motoki
882b5f0582 Assume features from N-4 release instead of N-3
Curretnly, features from N-3 release are assumed as a baseline
in the horizon development policy document.
LTS of Ubuntu Cloud Archive supports upgrade from N-4 to N.
If we assume a case where horizon is upgraded first, N release of
horizon needs to be able to run with N-4 release of back-end services.
The difference of N-3 and N-4 would be small, so it sounds reasonable
to assume features from N-4 release.

N-4 is chosen considering LTS support in the major OpenStack distributions:
* Red Hat OpenStack Platform (RHOSP): X -> X+3
  https://access.redhat.com/support/policy/updates/openstack/platform/
* SuSE OpenStack Cloud (SOC): X -> X+2
  https://www.suse.com/releasenotes/x86_64/SUSE-OPENSTACK-CLOUD/8/#Upgrade
* Ubuntu Cloud Archive: X -> X+4
  https://www.ubuntu.com/about/release-cycle

Change-Id: If7007e9d5b912b48d6bf3e4fac5decc53cd8388b
2019-10-15 15:11:47 +09:00
Zuul
28b99af277 Merge "Switch to official Ussuri jobs" 2019-10-14 07:51:08 +00:00
Hongbin Lu
ea2212ebe5 Send binary frame in websocket client
Websockify 0.9.0 rejected receiving text frame:
8eb5cb0cdc
We have to switch to binary frame instead.

Change-Id: I2677b8879ccb27def22126811c347d5c08f5aada
Closes-Bug: #1847889
2019-10-13 02:54:14 +00:00
Pallav Gupta
7b7cabd071 Fix volumes and volume_snapshots integration tests
The aim of this PS is to fix existing skipped integration
tests related to volumes and volume_snapshots listed below:
  - TestAdminVolumes.test_volume_create_edit_delete
  - TestVolumesActions.test_volume_extend
  - TestVolumesBasic.test_volume_create_edit_delete
  - TestAdminVolumes.test_volumes_pagination
  - TestVolumesBasic.test_volumes_pagination
  - TestVolumeSnapshotsAdmin.test_create_edit_delete_volume_snapshot
  - TestVolumeSnapshotsBasic.test_create_edit_delete_volume_snapshot
  - TestVolumeSnapshotsAdmin.test_volume_snapshots_pagination
  - TestVolumeSnapshotsAdvanced.test_create_volume_from_snapshot
  - TestVolumeSnapshotsBasic.test_volume_snapshots_pagination

This PS also resolves Partial-Bug: #1792028

Change-Id: I31a8d681f87d22ce8486de38ba6c01be9c9cc469
2019-10-12 13:42:51 -05:00
OpenStack Proposal Bot
fa5f7b8996 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9a4da50f970e787d6e9772f0132b9f5fba072f20
2019-10-12 07:00:33 +00:00
Adam Harwell
70629916fe Use quoting for CSV Writing
An attacker could create an instance with a malicious name beginning
with an equals sign (=) or at sign (‘@’).
These are both recognized in Excel as metacharacters for a formula. The
attacker can create an instance name that includes a payload that will
execute code such as:
=cmd|' /C calc'!A0
This payload opens the calculator program when the resulting CSV is
opened on a Windows machine with Microsoft Excel. An attacker could
easily substitute this payload with another that runs any arbitrary
shell commands.

Quote the CSV output so this is no longer a possibility.

Closes-Bug: #1842749
Change-Id: I937fa2a14bb483d87f057b3e8be219ecdc9363eb
2019-10-11 19:52:08 +00:00
manchandavishal
3012b875af Switch to official Ussuri jobs
Change-Id: I0d823c6f55179bd79e1e15ff50b044dc269b71e7
2019-10-10 16:09:39 +00:00
Pallav Gupta
f77656cd43 Fix add member integration test
The aim of this PS is to fix skipping add_member
integration test and fixes bugs listed below:
  - Related-Bug: #1777359
  - Partial-Bug: #1774697

Change-Id: I225f9934383c368b03aad00e59d2c7545e144d1e
2019-10-10 10:24:59 -05:00
Zuul
1d072dbe69 Merge "Add the unit test for trunks" 2019-10-10 07:40:03 +00: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
OpenStack Proposal Bot
868ec0e24b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9350a6d375edbbc8a47ce9cdeecf1c729b9993c0
2019-10-07 08:52:58 +00:00
OpenStack Proposal Bot
5c3a402b7b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I09ecb6d29bd1b70221b47f1b45de32b823a7b3ac
2019-10-06 08:31:37 +00:00
Zuul
6a8dabece6 Merge "Fix router integration tests" 2019-10-05 19:03:11 +00:00
OpenStack Proposal Bot
d8aca9f7f1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3b81bf59fec9bfa48d55ae99f6ed8bc5df3317a8
2019-10-04 07:18:07 +00:00
Pallav Gupta
558f6701ab Fix router integration tests
The aim of this PS is to fix skipped router integration tests
listed below:
  - test_router_add_delete_interface (Partial-Bug: #1792028)
  - test_router_delete_interface_by_row (Partial-Bug: #1792028)
  - test_router_overview_data (Partial-Bug: #1792028)
  - test_router_create_admin (Partial-Bug: #1792028)

Change-Id: I82b15d347831762808b17fbda8c944a1ee5de564
2019-10-04 06:00:57 +00:00
Zuul
d74d91e5a9 Merge "Relnote: default values are moved to openstack_dashboard/defaults.py" 2019-10-03 11:12:43 +00:00
Zuul
6362142f02 Merge "Update How to run the tests section" 2019-10-03 09:52:40 +00:00
Zuul
d977772140 Merge "Imported Translations from Zanata" 2019-10-03 09:52:38 +00:00
Ivan Kolodyazhny
4a9a50f2bf Update How to run the tests section
Added note how to run integration tests and updated supported
Django versions.

Change-Id: I0edff1da161b27e060b13dda2ef3f98ad5ee58e1
2019-10-03 08:42:10 +00: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
Zuul
5b776b0e64 Merge "Update the list of required packages for Development Environment" 2019-10-03 08:35:50 +00:00
Zuul
548dc64551 Merge "Add the unit test for images" 2019-10-03 08:25:45 +00:00
OpenStack Proposal Bot
a035ea6aff Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5f3c4c4c72847f52b5e23d5ffa52262fd8a998a6
2019-10-03 07:28:50 +00:00
Akihiro Motoki
205ebe0f47 tox: Move doc8 to docs related envs
Previously doc8 is run as part of pep8 tox env. This leads to some tricky
'deps' in pep8 which installs the docs dependencies. This can be fixed by
moving doc8 to the docs related tox envs (docs and releasenotes).

This also helps developers using devstack avoid hitting an error in
"manage.py compilemessages" in stack.sh. The error is caused by sphinx
installed under .tox directory (as compilemessages tries to compile all
message catalogs even under dot directories like .tox).
Developers sometimes change the horizon code under /opt/stack/horizon
and it is not surprising to run "tox -e pep8".
(I think it is more common compared to a chance to run "tox -e docs".)
Thus I believe it is reasonable to move doc8 to the docs env.

Change-Id: I6345ebbcd24afc358555e9be4b2ca700c4b33861
2019-10-02 09:28:11 +09:00
Ivan Kolodyazhny
13c7a4916a Update the list of required packages for Development Environment
This list was tested on a fresh Ubuntu 18.04 and CentOS 8
environments without Devstack.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Ib009e036d9fcebdad8faeb5d30ed14c525fabf10
2019-10-01 16:57:10 +03:00
Zuul
cf904d1194 Merge "Imported Translations from Zanata" 2019-10-01 11:24:42 +00:00
OpenStack Proposal Bot
f9b2be40f6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0645a2807d1e6dcf3c66fce081ca0829d40e96b2
2019-10-01 08:56:00 +00:00
Zuul
4722477b9d Merge "Remove the check which causes plugin's quotas update failure" 2019-10-01 06:57:27 +00:00
OpenStack Proposal Bot
4783feea79 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I06d7c964fd76a5c1a0f51afea5833f06a8e3678d
2019-09-28 08:07:11 +00:00
Akihiro Motoki
e75a036cda doc: Move DevStack local.conf to "Topics" section
contributor/ref/ directory contains the module reference and
local.conf was the only exception. "Topics" section looks
more appropriate place to have a guide to configure DevStack
for horizon.

Change-Id: Ibfafe7c608753633e0b78765073afa2924602551
2019-09-27 18:53:03 +09:00
2e138dadf7 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

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

Change-Id: I9e2aab9cb3b886a8315f49cce5ea86126f5a8572
Sem-Ver: feature
2019-09-27 08:58:05 +00:00
Zuul
ab429363ba Merge "Handle partial dict setting" 2019-09-26 19:46:39 +00:00
Zuul
e1d2a8dfb3 Merge "Handle Permission Denied for policy files" 2019-09-26 18:39:54 +00:00
Ivan Kolodyazhny
f57b6ead57 Handle Permission Denied for policy files
oslo.policy doesn't handle Permission Denied error during file
parsing. This patch just ignores IOError exceptions to fallback to
the default behaviour.

Closes-Bug: #1845523
Change-Id: I87c2862e6e3a3f42d231552b00dc02364d6fa14f
2019-09-26 18:46:03 +03:00
Zuul
d5bddba437 Merge "Updated max-width to be dynamic for .member class" 2019-09-26 14:20:48 +00:00
Zuul
de1b175999 Merge "Imported Translations from Zanata" 2019-09-26 12:07:40 +00:00
Zuul
f48025e0a0 Merge "Wrong list of attached vms are shown in manage volume attachments" 2019-09-26 11:21:29 +00:00
Zuul
f249a6bb16 Merge "Fix skipped integration tests for securitygroup, namespace, usersettings" 2019-09-26 10:49:02 +00:00
OpenStack Proposal Bot
c574ceb0e9 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie792b7473436a56b4aac20280eebcf2ee346e595
2019-09-26 08:46:07 +00:00
Pallav Gupta
a945d41812 Fix skipped integration tests for securitygroup, namespace, usersettings
The aim of this PS is to fix existing skipped integration
tests listed below:
 - test_namespace_create_delete (Partial-Bug: #1774697)
 - test_securitygroup_create_delete (Partial-Bug: #1792028)
 - test_managerules_create_delete_by_table (Partial-Bug: #1792028)
 - test_managerules_create_delete_by_row (Partial-Bug: #1792028)
 - test_password_change (Related-Bug: #1776678)
 - test_show_message_after_logout (Related-Bug: #1776678)

Change-Id: Ifcbab546e81059f90b500337df565c20ac50bbbb
2019-09-26 13:03:06 +05:30