14296 Commits

Author SHA1 Message Date
Zuul
7c5cabacec Merge "Workflow: Make steps pluggable via horizon plugin config" 2018-04-25 10:25:54 +00:00
Radomir Dopieralski
93bb571888 Replace all mentions of get_identity_providers with get_identity_provider
There was a typo in keystone's policy files, and it has been fixed in
Keystone already, we should also fix it to match.

Change-Id: I41e4381765f3bfc5988ca235e6cbeb6d1ba62fc2
Closes-bug: #1703369
2018-04-25 11:37:05 +02:00
Akihiro Motoki
52550be987 Convert identity.roles tests into mock
blueprint mock-framework-in-unit-tests

Change-Id: I460f323a8d45014153604a7dc7cf2b3f51358c24
2018-04-25 13:52:14 +09:00
Akihiro Motoki
a61bbecc72 Convert identity.mappings tests into mock
blueprint mock-framework-in-unit-tests

Change-Id: Id7d0a2e676ce0110b22238a5bc5713e7f12183fd
2018-04-25 13:51:54 +09:00
Akihiro Motoki
794b101a00 Convert identity.identity_providers tests into mock
blueprint mock-framework-in-unit-tests

Change-Id: I289488f6ccded28ea0d0f4098c615f0b76e73085
2018-04-25 13:51:34 +09:00
Akihiro Motoki
5d46738ed5 Convert identity.domains tests into mock
blueprint mock-framework-in-unit-tests

Change-Id: I7c4a3b1432fa5e2bd4b9f6929f03747e826b0498
2018-04-25 13:51:15 +09:00
Akihiro Motoki
0a149af36b Convert identity.groups tests into mock
In addition, domain_get() call checks previously succeeded somehow
with mox test, but they now fails after mock migration.
api.keystone.get_effective_domain_id() is now mocked instead of
api.keystone.domain_get(). There is no need to test the internal of
api.keystone, so get_effective_domain_id() is the right place to mock.

blueprint mock-framework-in-unit-tests
Change-Id: I567168a8001875efb3e768aa732ceb562b1dd99f
2018-04-25 13:50:45 +09:00
Zuul
db350910e4 Merge "Imported Translations from Zanata" 2018-04-24 09:54:27 +00:00
Zuul
dc3b803caa Merge "Fix E402 warnings" 2018-04-24 09:49:35 +00:00
Zuul
3e0da5b91c Merge "Fix W503 warnings" 2018-04-24 09:48:08 +00:00
OpenStack Proposal Bot
1bb050a979 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie68cce60de41c777bfd9b1ae0250e96439d3da25
2018-04-24 07:40:20 +00:00
Zuul
75b84d3c65 Merge "Add identity API version discovery" 2018-04-23 22:20:30 +00:00
Zuul
b93de7f4aa Merge "Allow OVA upload for images" 2018-04-23 22:19:39 +00:00
Akihiro Motoki
70b9d258bd Drop Flavor Edit completely
After dropping the flavor edit feature was dropped in Rocky-1,
we still allow to edit flavor in the "Modify Access" form.
This commit drops the remaining flavor edit forms.

Duplicated API calls (flavor_get and flavor_access_list)
in the UpdateFlavorAccess form are refactored into one API
call per request.

Change-Id: I009fe285d2263fd9b9f07ed1c3f4c96df261b535
Closes-Bug: #1766053
2018-04-24 01:18:55 +09:00
Zuul
354db87a47 Merge "Disable mox usage by default in test helper" 2018-04-23 10:37:15 +00:00
Jacky Hu
d175d33037 Watch field item changes
To allow fields in hz-resource-property-list to be refreshed upon
action.

Change-Id: I8f2dffad0fb28bd5b8d0a019ed28268fb8cbcd60
Closes-Bug: #1616251
2018-04-22 08:21:10 +08:00
Akihiro Motoki
3adff90a37 Add "Edit Port Security Groups" action
This commit adds a new action "Edit Port Security Groups"
which jumps the interfaces tab of the instance detail page.

In addition, a warning message is added to the "Edit Security Groups"
form because if a user change security groups as an instance level
the change will be applied to all interfaces of the instance, so
it would be nice if we can provide a good navigation to a page
of editting security groups per port.

Previously, UpdateMembersStep does not support help_text_template option.
To use a bold tag in the added help message, we need to use a template
instead of help_text, so _workflow_step_update_members.html is updated.

Closes-Bug: #1750147
Change-Id: I71437a376b94cab90df0e423aa7e1d2d0d8387ee
2018-04-22 07:44:20 +09:00
Akihiro Motoki
ff5b622da5 Add instance interfaces tab for easy security group edit
There is no easy way to edit security groups of ports attached
to an instance. This commit adds a table of ports attached to
an insntace to the instance detail. Users now can access attached
ports easily and edit their security groups.

Partial-Bug: #1750147
Change-Id: Ia2bd19f92251702878be3b12d0ea2a5c6618c65e
2018-04-22 07:40:52 +09:00
OpenStack Proposal Bot
eea762663b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If68ea850dc2f7fe815e0ad2a4f800f406a133ae5
2018-04-21 07:34:45 +00:00
Zuul
400674643a Merge "usage: Add network resources to Limit Summary" 2018-04-20 09:55:11 +00:00
Zuul
031f6ec560 Merge "usage: move field-specific logic from template to code" 2018-04-20 09:55:08 +00:00
Zuul
3905c6e4de Merge "usage: Use tenant_quota_usages() for Limit Summary" 2018-04-20 09:45:24 +00:00
Akihiro Motoki
58019a7411 Disable mox usage by default in test helper
- Add use_mox = True to tests which still depend on mox
- Remove use_mox = False from all tests converted into mock
- Update the warning messages
- Replace 'S'-release with 'Stein'

Part of blueprint mock-framework-in-unit-tests
Change-Id: I208185e97b2de346304a09643a9cb3f1425a7683
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
2018-04-20 03:34:51 +00:00
Zuul
41ef5a120c Merge "Imported Translations from Zanata" 2018-04-19 21:07:31 +00:00
Akihiro Motoki
06ca3c811b quota: Move targets argument to get_disabled_quotas
In addition, unnecessary API calls determined by 'targets'
are now removed.

blueprint make-quotas-great-again
Change-Id: I77b1335c25f2e2f3952e0d3c59f8c89a2bad3195
2018-04-19 20:37:46 +00:00
Akihiro Motoki
f897837444 usage: Categorize Limit Summary by service
blueprint make-quotas-great-again
Change-Id: Ia030defa851d8ce3e9a5e225dbf9c360b2b0c09a
2018-04-20 05:34:33 +09:00
Akihiro Motoki
b5671a22ee usage: Add network resources to Limit Summary
blueprint make-quotas-great-again
Change-Id: I5594b594e5f5d7ca5341fb479b48efac6578c5c8
2018-04-20 05:29:58 +09:00
Akihiro Motoki
b0dc533527 usage: move field-specific logic from template to code
_limit_summary.html has field-specific logic in the template,
but it is better to have such logic in python code so that
we can make the limit summary more pluggable in future.

In addition, filters for ram and volume gigabytes are applied
only when quota is not unlimited. This commit also fixes it.

blueprint make-quotas-great-again
Change-Id: I4c9584431c2526ebecf6d1438c1bf0e44f70a493
2018-04-20 05:29:57 +09:00
Akihiro Motoki
7fabda7ef1 usage: Use tenant_quota_usages() for Limit Summary
Previously we have almost duplicated logic for the limit summary
and quota usages. This commit shares the logic.

blueprint make-quotas-great-again
Change-Id: Ie5d7e51c9424701fdbcbfbcb1032c0b833a69371
2018-04-20 05:29:53 +09:00
Zuul
0e0db28969 Merge "Support simple FIP disassociation (with FIP release)" 2018-04-19 11:56:31 +00:00
Zuul
eba5b0f88d Merge "Only display the bootable volume snapshots when creating instance" 2018-04-19 11:51:14 +00:00
Zuul
c9df9dcf6b Merge "Move common SG workflow classes into separate module" 2018-04-19 08:21:17 +00:00
OpenStack Proposal Bot
0a0fa4c3ba Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib44043bd88501d803881f97ff81c54cdbb265420
2018-04-18 07:46:35 +00:00
Colleen Murphy
656490fee2 Add identity API version discovery
This patch adds a utility to the keystone API manager to retrieve the
identity endpoint's version data and retrieve the current version as a
tuple. As part of this work, this patch converts the deprecated usage of
keystoneclient alone to using keystoneclient in combination with a
keystoneauth session.

Change-Id: I37031b67ab2681e81022a75afcb4f41c5700c47b
2018-04-16 23:56:43 +02:00
Guillaume Le Blanc
e362626031 Allow OVA upload for images
Bug #1641383 was not fixed for REST API call.
The two implementation of create_image_metadata are merged
into api/glance.py.

There were minor differences in field naming and handling
(min_ vs minimum_, is_public vs public vs visibility).
This commit normalizes them to simplify the logic.

Closes-Bug: #1757136
Change-Id: I41e9d94345151bc4473d704cdc040ed77870ce45
2018-04-16 16:49:35 +02:00
Zuul
ee97327186 Merge "Remove deprecated table.UpdateAction class" 2018-04-15 19:00:14 +00:00
Zuul
b793473e86 Merge "Delete the deprecated Edit Flavor feature" 2018-04-15 18:55:08 +00:00
OpenStack Proposal Bot
e1ba5fd4d3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I87c480558f6715404d3c846bb7cfe08f655c4c25
2018-04-15 07:33:58 +00:00
Ameed Ashour
e5dae9b353 Network Topology graph "twitches"
the graph is redrawn which causes visual glitching.
Depending on the graph complexity.

my patch resolved this issue so I compare between previous
data and received data, if that changed it will redrawn,
otherwise it keeps running.

Change-Id: I813dfb329f46cda9afacce89c9a8b84eb2827115
Closes-Bug: #1716834
2018-04-15 03:05:27 +00:00
OpenStack Proposal Bot
7f3fc39602 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia943bb61c02c31192cef5fcfea98aac3528bb626
2018-04-14 07:35:15 +00:00
Zuul
fe811563ba Merge "Sort nova availability zones by name" 2018-04-13 14:03:34 +00:00
Akihiro Motoki
500acb47b7 Move common SG workflow classes into separate module
This is a preparation for a fix of bug 1750147
to avoid some import circulation.

Change-Id: I4198c3b137976413ebb704d58162b56dbb321a9b
Related-Bug: #1750147
2018-04-13 22:37:39 +09:00
Zuul
3c4e8a78ff Merge "A description can now be added to a security rule" 2018-04-13 13:33:22 +00:00
Zuul
13b27855c6 Merge "Redirect back if deleting from image details" 2018-04-13 13:23:37 +00:00
Zuul
ff672a67c1 Merge "Add links to trunk parent and subports" 2018-04-13 13:22:05 +00:00
Zuul
2c3ed76cb8 Merge "Fix navigation from admin/trunks" 2018-04-13 13:16:22 +00:00
Akihiro Motoki
e50a69d69f Workflow: Make steps pluggable via horizon plugin config
This commit enhances django workflow implementation to allow horizon
plugins to add workflow steps to a workflow in other repository like
the main horizon repo. New setting "EXTRA_STEPS" is introduced to
the horizon plugin 'enabled' file.
To this aim, the workflow class looks up HORIZON_CONFIG['extra_steps']
with its class full name and loads them as extra steps if any.
HORIZON_CONFIG['extra_steps'] are populated via horizon plugin settings.

This commit completes the blueprint.

blueprint horizon-plugin-tab-for-info-and-quotas

Change-Id: I347d113f47587932e4f583d3152e781ad1a4849f
2018-04-13 12:57:46 +00:00
Akihiro Motoki
196ce77141 Cinder REST API test: Make list_extensions test work properly
Previously cinder list_extensions test was disabled (by starting
the test name with an underscore) and REST API for cinder extensions
did not work properly.

This commit fixes the REST API and corresponding unit test.
To make it easy to write the test, test data for list_extensions
response of cinder v2 API is also added.

Related-Bug: #1752917
Change-Id: I5ac014d62462529e186e9dde3842c6a8a629f1c4
2018-04-13 12:53:56 +00:00
Ivan Kolodyazhny
377422b33e Delete the deprecated Edit Flavor feature
Historically, Horizon has provided the ability to edit Flavors by
deleting and creating a new one with the same information. This is not
supported in the Nova API and causes unexpected issues and breakages.

Change-Id: I796259c66e01be088a50ab6ba63f515de9590c9b
Closes-Bug: #1751354
2018-04-13 15:49:54 +03:00
Ivan Kolodyazhny
f6f39d86da Remove deprecated table.UpdateAction class
UpdateAction is deprecated in Newton and is used in unit-tests only

Change-Id: I7952cb77b168cc39f8fc37c3b7ffe0c830d4e0d4
2018-04-12 17:34:17 +03:00