16013 Commits

Author SHA1 Message Date
Brian Rosmaita
b58ac2894b Drop cinder v2 API support
Cinder v2 API is deprecated since pike release. Along with the removal
of cinder v2 API support in cinderclient (change I335db5c1799e drops
v2 support), this commit drops cinder v2 support in horizon.

The next release of python-cinderclient drops v2 support,
so horizon needs to use v3 classes.

Includes a workaround in unit tests for two cinderclient.v3 classes
that are missing in the cinderclient releases prior to 8.0.0.  The
workaround can be removed once cinderclient change I335db5c1799edb2
is merged and released.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Iab0f097fab6696462572dc6ea53767c91e5411b1
2021-07-19 08:00:58 -04:00
OpenStack Proposal Bot
310a24d054 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibb8047bfcda147859eacd7fe6246c62a4cf0342d
2021-06-25 06:49:16 +00:00
OpenStack Proposal Bot
647c2b7530 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1bfec4179f147e94663fdcf0145280a43acc4029
2021-06-09 06:48:43 +00:00
OpenStack Proposal Bot
09e57d6ebb Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I03a5b8345ce41d4f61ac46314e0b7744da6954cb
2021-06-06 06:49:05 +00:00
Zuul
2b1507faa3 Merge "Default role checker should be case-insensitive." 2021-06-04 18:45:49 +00:00
Zuul
459d87b2d2 Merge "Imported Translations from Zanata" 2021-06-04 10:40:41 +00:00
Zuul
e3cd98d0f1 Merge "integration tests: Relax router interface status check" 2021-06-04 10:40:31 +00:00
Akihiro Motoki
866a170379 integration tests: Relax router interface status check
Previously the router interface test in the integration tests
checked the status of an added router interface, but the initial
status varies depending on a network backend used in neutron.
In case of neutron L3 agent, a new router interface has "Down" status,
but in case of OVN a new router interface has "Active" status.
This caused the integration test failure after DevStack switched
the default network backend from ML2/OVS to ML2/OVN.

The initial status of a new router interface depends on a network
backend and the neutron API does not define the initial status,
so it is too strict for the horizon integration tests to check
the status. This commit drops the status check.
It is sufficient to check the existence of a new router interface.

Change-Id: Idfd4a9206e85558ba17e476a47b38ee9c1f566fa
Closes-Bug: #1930405
2021-06-04 16:18:56 +09:00
OpenStack Proposal Bot
547049bb1a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I51138459d308c7367ec1256507025c0225dfbd52
2021-06-04 06:51:26 +00:00
OpenStack Proposal Bot
8ba5dd7c55 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I878250316e9754a4b52dceb0bdd8f7e092510c9c
2021-06-03 06:53:30 +00:00
Akihiro Motoki
cdb08a1ad6 doc: Update our IRC server to OFTC
Change-Id: I985ea0b19a96e5e3160b824efda20659d855c2dc
2021-06-01 15:31:31 +09:00
OpenStack Proposal Bot
ebec26abe9 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I738011900c9da27479ab680c125c1ef5ef40c13d
2021-05-31 06:44:37 +00:00
Mitya_Eremeev
3aaeadf895 Default role checker should be case-insensitive.
Keystone role names are case-insensistive and
Horizon should handle role names in a case-insensitive manner.
For example, when keystone bootstraps default roles,
it creates “admin”, “member”, and “reader”.
If another role, “Member” (note the upper case ‘M’) is created,
keystone will return a 409 Conflict since it considers the name “Member” equivalent to “member”.
Note that case is preserved in this event.
https://docs.openstack.org/keystone/latest/admin/case-insensitive.html#roles
Also whatever is written in defaults can be overridden in settings by the operator -
especially these days when actually the default should be 'member'
(one of the default roles created by Keystone during the bootstrap),
not _member_ which is there for legacy reasons I presume.

Change-Id: Ibfb80a47a8aaed8f33e4e1dcfb428e70c829f0dd
2021-05-21 21:03:09 +03:00
OpenStack Proposal Bot
6071b622b2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I51c5abc80a62916fda8336ffff78a3de719a0872
2021-05-16 06:48:00 +00:00
Zuul
d862623c27 Merge "Change with_data=False for swift_get_container" 2021-05-11 12:45:49 +00:00
Pedro Kostelec
ae7896cea5 Consisent abbreviation of size units
Most units (KB, MB, GB, TB, PB) are shown in an abbreviated format.
The exception were bytes, which where shown as "Bytes". This commit
resolves this inconsistency by showing "B" for byte units.

Change-Id: Ied94c777a70bf8955f5a328ffcb63d98a7a2befd
Closes-Bug: 1411595
Signed-off-by: Iago Estrela <hiagoestrelas@gmail.com>
2021-05-04 11:50:17 -03:00
Zuul
a9d83dda1c Merge "Setup project-template for nodejs14 jobs" 2021-04-29 07:19:19 +00:00
YuehuiLei
00c5825ca7 setup.cfg: Replace dashes with underscores
Resolves warnings like the following:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

Change-Id: I6c40c36603b3d173adcc5c941b5654102778a058
2021-04-27 14:10:15 +08:00
OpenStack Proposal Bot
be505aefaa Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I437e716fbaae5b4713a71790ad644b8494c11637
2021-04-22 06:57:03 +00:00
OpenStack Proposal Bot
b815cbfc7e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I13a8353fa86aab362bc699217927769a571f35d3
2021-04-21 06:54:41 +00:00
OpenStack Proposal Bot
cdb0f013c1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8caa83c1c0d804db734bb14e2c9b17f131277735
2021-04-20 06:49:30 +00:00
OpenStack Proposal Bot
2bb6d60709 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id731b510c18e2ec16714f17687a12a09867257aa
2021-04-15 06:49:49 +00:00
manchandavishal
3f2adabf16 Setup project-template for nodejs14 jobs
Nodejs10 is going to EOL by April 2021 [1].
So this patch defines a template for nodejs14 jobs
which is next LTS vesrion of nodejs. Once we migrate
to nodejs14 version we can drop nodejs10 support.

[1] https://nodejs.org/en/about/releases/

Change-Id: I423e8bbec21ab1d52a0a840d779723aa92678735
2021-04-12 18:44:39 +05:30
OpenStack Proposal Bot
473290f137 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1de39e43d6efecf3e5f0ae179b6c5f8c3b5a1264
2021-04-09 06:49:35 +00:00
Zuul
5eafe66d40 Merge "Fix minor points in the policy doc" 2021-04-07 18:51:08 +00:00
Zuul
e6b43a5af2 Merge "Sync default policy rules" 2021-04-07 18:51:01 +00:00
Tobias Urdin
c87f0e7a90 Change with_data=False for swift_get_container
This function is only used in the Container get
method which retrieves details about a container.

It's not used for listing data in the container
even though with_data was True doing a GET instead
of a HEAD on the container.

This indirectly also fixes the Ceph bug [1] in the
Swift API implementation that doesn't expose metadata
correctly for a GET but does for a HEAD.

[1] https://tracker.ceph.com/issues/47861

Change-Id: Iba4215b2e3a414d1794faa05be31bf69e0e48bec
2021-04-07 16:26:37 +02:00
Akihiro Motoki
4e195570e5 Sync default policy rules
Update default policy-in-code rules in horizon based on
nova/neutron/cinder/glance RC deliverables.
More precisely, they are based on the top of stable/wallaby
branch of these projects as of Apr 7 14UTC.

Change-Id: I2040201b533f1d16f1f629e31be8d7b9130b2e52
2021-04-07 22:58:12 +09:00
Zuul
5e4ca1a9fd Merge "Add Python3 xena unit tests" 2021-04-01 06:57:51 +00:00
Zuul
d2af82f621 Merge "Update master for stable/wallaby" 2021-04-01 06:35:08 +00:00
Akihiro Motoki
e0d348c643 Fix minor points in the policy doc
Change-Id: Idd4635a3ab337959d9b0ad4382eaf7274624ca8b
2021-04-01 13:08:20 +09:00
4310a9541f Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I03701fef6bcc985b59844817c588db5bbf6f881d
2021-03-30 19:02:48 +00:00
a89c27b449 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: I1603bdc53deaa9bc57c1d8f56548226d8b391fc4
2021-03-30 19:02:40 +00:00
OpenStack Proposal Bot
03e848b181 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia1d11165ff2bb8db201a9c6236fa54b4f77b28d1
2021-03-30 06:52:37 +00:00
Zuul
28e3fa5bee Merge "Use policy_rules for user role assignment and group tabs" 2021-03-29 20:51:07 +00:00
OpenStack Proposal Bot
36f1f7e3c0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I444dae1eaea7615965cf7f94e8ec88c1861524fe
2021-03-28 06:49:30 +00:00
Zuul
bbec512f1d Merge "Don't load user role assignment or groups tabs for non-admins" 2021-03-27 20:01:44 +00:00
Mark Goddard
f0736c5174 Use policy_rules for user role assignment and group tabs
The policy_rules feature was added recently, which simplifies making
tabs allowed conditionally based on policy. Use the feature for the User
role assignments and groups tabs.

This is a separate commit to allow the original patch to be backported.

Related-Bug: #1920214
Change-Id: Ic4a16b27c4f2da0daa2ec066d129926c349d1e4b
2021-03-26 13:48:30 +00:00
OpenStack Proposal Bot
5c2afa97bd Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1db1839f182eeaa58482edaf57d0cc78f96673b3
2021-03-26 06:48:42 +00:00
Zuul
021a6e8c10 Merge "Imported Translations from Zanata" 2021-03-23 14:18:28 +00:00
Zuul
5c11c369e9 Merge "Save instace_id inside Associate Floating IP workflow" 2021-03-23 13:06:08 +00:00
Zuul
0b6ac97fcd Merge "handle missing access_rules" 2021-03-23 11:55:49 +00:00
Zuul
cd0c51d89f Merge "Move linters dependencies to tox.ini" 2021-03-23 07:36:07 +00:00
OpenStack Proposal Bot
7426586791 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibdc17486c18e119bd35f78d5f57053325a65398c
2021-03-23 06:50:24 +00:00
Zuul
9ee7099927 Merge "Don't fail integration tests if browser log couldn't be retrieved" 2021-03-22 10:32:39 +00:00
Mark Goddard
60cf320315 Don't load user role assignment or groups tabs for non-admins
As a non admin user, navigate to Identity -> Users. Then click on the
username of your user to go to the detail page.

Only the allowed Overview tab is visible.

The view shows three tabs: Overview, Role assignments, Groups. Click on
either Role assignments or Groups. An error will appear, showing that
the API call is unauthorised, and the table content will fail to load.

This change fixes the issue by conditionally loading the tabs based on
policy.

Closes-Bug: #1920214
Change-Id: Ic8b723e6fd423b96a4f5eff54f9392cee534ed9e
2021-03-19 15:14:04 +00:00
Zuul
7db8cd46ad Merge "Fix _data_table.html weird conditional." 2021-03-19 08:47:04 +00:00
Akihiro Motoki
ffe84dbf9d Move linters dependencies to tox.ini
One of suggestions discussed in the mailling thread [1] is to decouple
linters from test-requirements.txt. We uses specific versions of linters
(hacking, flake8, pylint and bandit) and they are potentially incompatbile
with other libraries in test-requirements.txt.
One example is bandit incompatibility detected by the new pip resolver.
This commit moves linters to tox.ini and introduces a new tox envdir
shared by linter related tox envs.

Note that we have a unit test for a local hacking rule so hacking needs
to be installed as part of the default dependencies. We can have it in
test-requirements.txt but I think it is better to have it in tox.ini
as hacking is a part of linters and other linter dependencies are
declared in tox.ini now.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/thread.html#19362

Change-Id: Ia41c5f665f01bdab187c9256b2319885998d12c3
2021-03-19 11:25:28 +09:00
Zuul
792ffb3cfd Merge "Replace Delete Force Volume Backup with Force Delete Volume Backup" 2021-03-18 16:16:44 +00:00
Zuul
6d1d7f5030 Merge "Get the timezone offset for the current day instead of January 1st." 2021-03-18 13:38:49 +00:00