13608 Commits

Author SHA1 Message Date
Qian Min Chen
b5fdf50235 Upload the latest screenshots
Some openstack dashboard screenshots are out of date,
this patch upload the  latest horizon screenshots.

Change-Id: I35ff03cc18db39b29001254e95b1602620cf20bc
Closes-Bug: #1741420
2018-01-07 23:00:54 +08:00
Zuul
e612283ec1 Merge "tox: run doc8 in pep8" 2018-01-07 13:51:58 +00:00
Qian Min Chen
6572af2a19 Remove the redundant codes
DeleteInstance action inherits from tables.DeleteAction.
The parent class has the attribute 'name = "delete"' so
we can remove the unused codes.

Change-Id: I9f312ceafbf84a79b7b7941f255a16632931d5d0
2018-01-07 05:45:18 +00:00
Zuul
fc89dc7394 Merge "Disable flavor ModifyAccess action while the flavor is public" 2018-01-06 16:26:14 +00:00
Akihiro Motoki
262f099d04 tox: run doc8 in pep8
The gate doc/releasenotes jobs do not use tox targets and
call sphinx directly, so doc8 check is not asserted in the gate.
Considering this, this commit adds doc8 check to pep8 job
to ensure doc8 check is applied.

Change-Id: I9df403199264de36b1d0997871e32b29a6988c00
2018-01-07 00:29:15 +09:00
Zuul
1b3e43d2a8 Merge "Reorganize the content of horizon project tab" 2018-01-06 12:06:47 +00:00
OpenStack Proposal Bot
d6790e5184 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If2ea0267607185f9ef6025656441500d7700d81a
2018-01-06 06:49:18 +00:00
Zuul
7115655026 Merge "Fix the network subnets check in create instance form" 2018-01-05 23:40:53 +00:00
Akihiro Motoki
6baf8c9fa0 Handle float('inf') in tenant_quota_usages properly
tenant_absolute_limits API wrapper converts -1 (unlimited)
to float('inf'), but tenant_quota_usages() cannot handle this
properly. This is a regression during the quota refactoring work.
This commit changes QuotaUsage.add_quota() to accept float('inf')
as one of unlimited quota value.

Closes-Bug: #1741493
Part of blueprint make-quotas-great-again
Change-Id: Ic6ed00761381d52ee04a15a43ee4fe2a30b9a106
2018-01-06 03:54:30 +09:00
Qian Min Chen
4d7f5e213b Reorganize the content of horizon project tab
The volume was removed form 'compute' tab, and the floating ip
is in network tab, and so on. So this patch reorganize the content
of the project tab.

Change-Id: Ifb35910f21f2593b9e6f30ac50092118a6f0bac6
2018-01-05 17:59:14 +08:00
Ivan Kolodyazhny
0d1d22c85e Switch Glance-related tests (dashboards.project.images) to mock
Some duplicated test scenarios were deleted. This patch also doesn't
change Selenium tests because it's out of scope of unit tests.

This patch changes mox to mock for the following test module:
* openstack_dashboard/dashboards/project/images/tests.py
* openstack_dashboard/dashboards/project/images/images/tests.py
* openstack_dashboard/dashboards/project/images/tests.py

Change-Id: I951c2e5ee1c133faa2106e1e1fdba5c72d6f63b7
Partially-Implements: blueprint mock-framework-in-unit-tests
2018-01-04 16:37:52 +02:00
Zuul
efb6dea20d Merge "Imported Translations from Zanata" 2018-01-04 09:22:43 +00:00
Zuul
453ef78003 Merge "Fix displayed type for instance snapshots" 2018-01-04 07:40:20 +00:00
OpenStack Proposal Bot
758ba27c78 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2ebf9a590fa203c97dee25abc2abba15def66b8e
2018-01-04 06:10:15 +00:00
Zuul
203e455d7d Merge "Make enabled filenames consistent" 2018-01-03 23:35:27 +00:00
Zuul
e646964a9b Merge "Tools to check policy differences" 2018-01-03 23:32:58 +00:00
Zuul
edf72bd30c Merge "Fix incorrect volume type value in ng images create volume form" 2018-01-03 21:15:21 +00:00
OpenStack Proposal Bot
8f1d426e63 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia640e05dd0669140668704770802e07041e94867
2018-01-01 06:17:02 +00:00
Zuul
dc2fd615b5 Merge "Avoid Unhashable warning in api.rest.nova" 2017-12-31 12:48:20 +00:00
Akihiro Motoki
8373701bdf Avoid Unhashable warning in api.rest.nova
A list object is not hashable. We need to pass a tuple object
which is hashable.

Change-Id: Iaccd527da65218e46ff8cad8963fd336d0138c25
Closes-Bug: #1738537
2017-12-31 06:40:31 +00:00
wei.ying
3aee4cbac6 Fix incorrect volume type value in ng images create volume form
The value of the 'volume_type' is determined by the 'volumeType'
object [1]. The value of the 'volume_type' changes only the
'volumeType' object changes. However, the current value of the
'volume_type' is changed according to the volume object change [2].

It will cause a phenomenon, when the page is initialized, the value
of 'volume_type' is empty, when we switch volume types drop-down box,
its value is also empty, only change the name, description, size and
availability zone, the value of 'volume_type' is the page selection.

[1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.html#L45
[2] https://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.controller.js#L140

Change-Id: If754d0c2ced844414c35829d4cefa1fb861522d5
Closes-Bug:#1737900
2017-12-30 16:01:45 +08:00
Zuul
9cb603c2bd Merge "Remove unnecessary module injection" 2017-12-30 07:43:03 +00:00
Zuul
becafec7d0 Merge "Handle binding__host_id conditionally" 2017-12-29 19:12:53 +00:00
Abdallah Banishamsa
687d224485 Fix displayed type for instance snapshots
Fix displayed type for instance snapshots in image list

Change-Id: I780e6a8aecca421e6273c0e1ad39fbbaefaba956
Closes-bug: #1650373
2017-12-29 18:20:04 +00:00
Zuul
44714c17f3 Merge "Updating default keystone API verson to 3" 2017-12-29 18:04:49 +00:00
OpenStack Proposal Bot
a18c49c0df Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4e03832f835f8d6be0eb6d44eda4cc14c0dcfdd3
2017-12-29 06:14:56 +00:00
Zuul
40b31c82db Merge "Add more actions to admin." 2017-12-28 16:46:30 +00:00
OpenStack Proposal Bot
7396d476ff Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I587ec00d613e58ca6699b1aed84a8783dff0a43e
2017-12-28 06:10:34 +00:00
Akihiro Motoki
6c45c47e4b Drop unnecessary executable flags
This patch also adds checks for executable files in
pep8 job.

nose ignores executable files by default, so it is important
to ensure executable flag is not set for test files [1].
openstack_dashboard/test/test_plugins/panel_tests.py was not
tested actually and it was broken. This commit fixes it too.
[1] http://nose.readthedocs.io/en/latest/usage.html#cmdoption-exe

Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
Change-Id: I3a124fa2f9f0676b2b43a094e32e3d8b18fa6005
2017-12-27 21:32:48 +00:00
Zuul
0b11ccb98f Merge "Switch Glance-related tests (dashboards.admin.images) to mock" 2017-12-27 17:57:01 +00:00
Zuul
29553889ab Merge "Switch Glance API tests to mock" 2017-12-27 17:54:39 +00:00
Ivan Kolodyazhny
3c872e5586 Switch Glance-related tests (dashboards.admin.images) to mock
This patch changes mox to mock for the following test module:
* openstack_dashboard/dashboards/admin/images/tests.py

Change-Id: Ib91a862658777c22fbd540a62c70c4385366afd0
Partially-Implements: blueprint mock-framework-in-unit-tests
2017-12-27 15:01:01 +00:00
Ivan Kolodyazhny
ec0b29f996 Switch Glance API tests to mock
This patch changes mox to mock for the following test modules:
* openstack_dashboard/test/api_tests/glance_tests.py

Change-Id: I282bc6a8ceca851b9755c9637790da055e6b4780
Partially-Implements: blueprint mock-framework-in-unit-tests
2017-12-27 16:59:02 +02:00
Akihiro Motoki
8ae967ac92 Make enabled filenames consistent
Previously _2150_admin_flavor_panel.py used double underscores,
but there is no reason to use double underscores.
This commit makes the enabled filenames consistent.

Change-Id: I9c2de7075c715c1c41798c098e97560c14a554be
2017-12-27 10:13:32 +00:00
Akihiro Motoki
5d40431206 Handle binding__host_id conditionally
binding__host_id (binding:host_id in the Neutron API) only exists
when portbinding neutron extension is available. This extension is
available in almost all cases as Nova depends on the extension,
but it is better to check the availability in horizon side as
we do so in other places in horizon.

Change-Id: Id7fa8ebcdde09547fd64892a787834bc4c543acf
Closes-Bug: #1498352
2017-12-27 10:13:14 +00:00
Zuul
98d0714939 Merge "quota: Use network quota field names consistently" 2017-12-26 21:40:34 +00:00
Zuul
135a279246 Merge "quota: Use neutron quota_details API to retrieve usage" 2017-12-26 21:20:18 +00:00
Zuul
24cc9c75fb Merge "quota: retrieve quota (limit) and usage at once" 2017-12-26 21:19:50 +00:00
OpenStack Proposal Bot
e4a8dcd24e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie18e04d4519aa32e62b81687b8b96113e7d94e4a
2017-12-26 06:10:02 +00:00
OpenStack Proposal Bot
fb9699f34c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I587b004be20add43db287c3c0da51d63958fcf0c
2017-12-25 06:27:12 +00:00
Zuul
abfcecea06 Merge "Update Ubuntu horizon installation instruction" 2017-12-24 20:22:07 +00:00
Zuul
511c30763e Merge "quota: Disable nova-network quotas completely" 2017-12-23 11:58:03 +00:00
OpenStack Proposal Bot
f8701149a2 Updated from global requirements
Change-Id: Ief450d07147f54be2561cce1226864e97167faad
2017-12-22 02:53:28 +00:00
jing.liuqing
589c6decc4 Remove unnecessary module injection
Change-Id: Ib82aae09a74c024323719c5b1184defeae0674c8
2017-12-21 23:41:35 +08:00
Ahmed Zaid
7d7de3b37f Add more actions to admin.
Admin can Rebulid and Shut off instance from instances in admin panel
for all project-member.

Change-Id: Ieab146b49a92f3527e34aacb0a9077a704151e3e
Closes-Bug: 1704833
2017-12-21 06:52:04 +00:00
jing.liuqing
337ef4daab Disable flavor ModifyAccess action while the flavor is public
see more info: https://developer.openstack.org/api-ref/compute/#flavors-access-flavors-os-flavor-access

Closes-bug: #1739533

Change-Id: I31245edc5931c4e5f4deb88ad66c5f971fa55451
2017-12-21 05:25:06 +00:00
Akihiro Motoki
cd49510878 Updating default keystone API verson to 3
The keystone API version 3 has become the default API version
for a long time and our CI already uses keystone v3 API only.

In addition, our documentation recommended to use the cached session,
so switching the default API version to 3 does not hit the limitation
on the maximum size of session data when using the cookie-based
sessions.

This is based on django_opensatck_auth review
https://review.openstack.org/#/c/158384/

Implements blueprint: default-keystone-api-3
Change-Id: I79e9fbd3567cc69468694dbf043fecf422347c7e
2017-12-21 03:24:07 +09:00
Zuul
7c087f0cad Merge "Drop flavor name validation in horizon side." 2017-12-20 17:31:57 +00:00
Ahmed Zaid
154ddab1d4 Drop flavor name validation in horizon side.
This patch drop name validation in horizon and
let nova check if the is name is valid or not.
Instead of using pattern in the flavors form,
pattern will be checked in the nova. Also I
added limation for the name size with tests to
check the max size since the min size has it's unit
test.

Closes-Bug: 1738328
Change-Id: Ib4f6f9b87560df43819d992254603e55ea8ff6a3
2017-12-21 01:13:53 +09:00
Akihiro Motoki
69aff8b8ac Tools to check policy differences
Change-Id: I3c6a43f4d31ce517950bd93474e88317367fa8b0
2017-12-20 00:28:23 +09:00