14228 Commits

Author SHA1 Message Date
Ivan Kolodyazhny
ee95bf15d9 Fix selenuim-headless tests
This patch leave selenuim-headless non-voting since it was broken for a
while so we should be sure that it's stable enough.

Related blueprint: improve-horizon-testing
Change-Id: Ic2a877a4eefc2f10fb25e64c387b81fc18302a2a
2018-06-08 12:22:10 +00:00
Ivan Kolodyazhny
1f80d94459 Use default Django test runner instead of nose
Nose has been in maintenance mode for the past several years. It has
issue with exit code [1] which leads to false positive results for our
seleniun-headless job.

This patch changes test runner for Horizon tests and does the following
things:

* Django test runner  executes test in a different order than Nose does.
  That's why we've got an issue with side-effect in
  horizon.tests.unit.tables.test_tables.MyToggleAction class. This patch
  adds workaround to it.
* Rename filename of test files to names starting with 'test_'
  so that the django test runner can find tests expectedly.
* '--with-html-output' option is temporary dropped and will be added in
  a following patch.
* Integraion tests is marked via django.test.tag mechanism which is
  introduced in Django 1.10
* 'selenium-headless' is broken now because we don't have geckodriver on
  gates, this patch makes it non-voting.
* 'tox -e cover' is fixed
* Remove @memorized decorator from
  dashboards.project.images.images.tables.filter_tenant_ids function.

[1] https://github.com/nose-devs/nose/issues/984

Depends-On: https://review.openstack.org/572095
Depends-On: https://review.openstack.org/572124
Depends-On: https://review.openstack.org/572390
Depends-On: https://review.openstack.org/572391

Related blueprint: improve-horizon-testing
Change-Id: I7fb2fd7dd40f301ea822154b9809a9a07610c507
2018-06-08 15:21:12 +03:00
Zuul
e18bda05d0 Merge "Add python3 django 1.11 job instead of django 2.0 job" 2018-06-08 10:25:29 +00:00
Zuul
b1ec09e691 Merge "fix tox python3 overrides" 2018-06-08 09:37:44 +00:00
Akihiro Motoki
0bc2f1b015 Add python3 django 1.11 job instead of django 2.0 job
Django 2.0 is now used in tox py35 job, so there is no need for
py35dj20 job. Instead, Django 1.11 with python3 is not covered.

- py35dj20 job is dropped from tox.ini.
- python3-django111 is added to tox.ini.
  python3 is specified to basepython to avoid a specific python version.
- Zuul job to consume python3-django111 is added.

Note that horizon-openstack-tox-py35dj20 cannot be dropped
because this job is used by horizon plugins.

Change-Id: Ic3b5e06d591a6f1d667993d19dcddfaf40882dee
2018-06-08 14:30:05 +09:00
Zuul
b118c2f043 Merge "Remove Cinder API v1 compatibility" 2018-06-07 11:43:23 +00:00
Doug Hellmann
a59b2e1af9 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Iceeaad2d6e31f3afeba5879ba3825caba437940d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:06:00 -04:00
Ivan Kolodyazhny
b3690124c4 Sync Django version with global requirements
Change-Id: I34e193725da4d860cee223e274301fc04f3b2954
2018-06-05 18:16:42 +03:00
Ivan Kolodyazhny
8ce6b37e5c Remove Cinder API v1 compatibility
Since Cinder API v1 is removed in I03bf2db5bd7e2fdfb4f6032758ccaf2b348a82ba
we don't need _replace_v2_parameters function anymore.

Change-Id: I18c2787241f1dcbe4c0afc14a76630d9bfb1162a
2018-06-05 18:11:42 +03:00
Zuul
94aea2fedd Merge "Show WEBSSO disclaimer only when it is needed" 2018-06-04 16:19:30 +00:00
vmarkov
61a79a9b7a Show WEBSSO disclaimer only when it is needed
Horizon can support several auth mechanisms, i.e. Keystone creds and
OpenID. User allowed to choose proper way of auth and disclaimer is
shown. But it is possible to allow choose from the only variant, and in
this case disclaimer also shown, which is confusing. Proposed patch fix
disclaimer display and makes it reasonable

Closes-bug: #1774623
Change-Id: Ib039c6fdf1e4cd21b5ebe426fe2a15355a37353c
2018-06-04 15:49:54 +03:00
Zuul
e8af344c1b Merge "Image panel: check instance create policy for 'Launch' button" 2018-06-04 10:06:48 +00:00
Zuul
26277a3715 Merge "Add reserved status key word to horizon" 2018-06-04 07:45:38 +00:00
Zuul
1770eda114 Merge "Update attach_volume and detach_volume policy rules" 2018-06-04 07:41:39 +00:00
Zuul
edbb0143c8 Merge "Fix issue with uploading image to glance on Python3" 2018-06-04 07:30:24 +00:00
andrewbogott
e98d7e6890 Image panel: check instance create policy for 'Launch' button
Closes-Bug: #1771851
Change-Id: If77746cbbe73540218b90c516e5f8802c002854f
2018-06-04 07:17:24 +00:00
Zuul
ca49cc15c0 Merge "Imported Translations from Zanata" 2018-06-01 02:20:56 +00:00
Zuul
78b7c2eaf4 Merge "Get flavor list sorted when launching instance" 2018-05-31 22:58:29 +00:00
OpenStack Proposal Bot
54cfaf0e0b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie7f04e4ea1fc726999f996940487a650c05252e2
2018-05-31 06:32:19 +00:00
Zuul
151878ce14 Merge "Sort image list by name when launch instance" 2018-05-31 02:02:59 +00:00
Feilong Wang
cf06d278af Get flavor list sorted when launching instance
Currently, the flavor list is random on the panel of booting
instance, which is not a good experience for end user. This
patch fixes it and adds test accordingly.

Closes-Bug: #1715042

Change-Id: Id5369ab75487d214a3395ba507b4394d4497903e
2018-05-30 22:54:31 +00:00
Michal Arbet
b84da5e84e Fix issue with uploading image to glance on Python3
It was unable to upload image when horizon was running on python3,
there was a problem with closed file in new thread. This commit is
fixing this issue with added if clause whether horizon running on
python2 or python3 and correctly call close_called on file when
running on python3.

Change-Id: Ice178f6269ac527ba62b26d86976b5336987c922
Closes-Bug: #1773935
2018-05-30 10:56:47 +00:00
OpenStack Proposal Bot
6517caf810 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I943a6386977886265374b124d082980c42e63b8e
2018-05-30 06:32:04 +00:00
Feilong Wang
71c4880429 Sort image list by name when launch instance
Just like the flavor sort issue, this is another regression issue
when we shift from the legacy launch instance wizard. By default,
the image list should be ordered by name.

Change-Id: Id619ad531f7e91326694ee90c112d6a7db0d14ad
2018-05-25 15:57:54 +12:00
Zuul
3c6e8d196a Merge "Imported Translations from Zanata" 2018-05-24 17:32:18 +00:00
OpenStack Proposal Bot
af4811b75f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8e5e6fc1609c8bc38647e38282d8e7c26546b842
2018-05-24 06:32:55 +00:00
chenxing
b1d575869e Heat projects have been migrated to Storyboard
Because Heat projects have been migrated to Storyboard,
the reference should be updated correctly.

Change-Id: I4f5eea84fe50ecb495dcd0167e521950387a4810
2018-05-24 10:56:12 +08:00
jmoffitt
b9a1c445d9 Update attach_volume and detach_volume policy rules
The prior commit for this was functional but not quite
correct. The policy rules currently in Horizon for
attach and detach of volumes don't exist in Nova and
are missing from the local copy of nova_policy.json and
from Nova generated policy files. The fix to use the
create instance copy of the rule only worked for attach
and not detach ( https://review.openstack.org/#/c/570071/ )

This commit updates detach as well, and should be correct
going forward based on the Nova policy rules at:
https://git.openstack.org/cgit/openstack/nova/tree/nova/policies/volumes_attachments.py

Change-Id: I07fccd6f12149cd88a049c46aa113dfd2b60bbaa
Closes-bug: 1772759
2018-05-23 15:19:28 -07:00
Zuul
3ca4a5deb8 Merge "Fix mismatched attach_volume rule" 2018-05-23 05:06:43 +00:00
jmoffitt
8e3903902d Fix mismatched attach_volume rule
The attach_volume rule on the Compute Instances and Volume pages
does not match the rule in the nova_policy.json file, or what is
generated from an oslo policy generation on Nova. Update the rule
to match what is used in the default policy file, and what Nova
uses in its unit tests.

While looking at this, discovered that the detach_volume has a
similar problem, with no rule that matches at all. It may make sense
to have detach volume use similar permissions to attach

Change-Id: I40c709c7bb0c8538b56624dbfff1faea2eba9ee6
Closes-bug: 1772759
2018-05-22 15:49:54 -07:00
Ian Y. Choi
a3cc0625a6 [trivial] Fixes a typo
auto_alloocated_network -> auto_allocated_network

TrivialFix

Change-Id: I6b2158f80826a23611bd6ae15285a8acedeb0925
2018-05-19 17:22:42 -07:00
Larry GUO
4776428cb6 Add reserved status key word to horizon
Horizon don't have related change which align with the
change in https://review.openstack.org/#/c/330285.
With this fix, horizon can work as expected

Change-Id: I5940c662a0bec2beaf4863e07f7244311ba51212
Closes-Bug: #1770326
Signed-off-by: GUO Larry <guo1017138@163.com>
2018-05-17 13:00:56 +00:00
Zuul
e5fbf73411 Merge "Convert identity.domains tests into mock" 2018-05-17 12:31:33 +00:00
Zuul
ef437f86cd Merge "Convert admin.networks tests into mock" 2018-05-17 10:16:39 +00:00
Zuul
05c0878e9f Merge "Convert admin.networks.ports tests into mock" 2018-05-17 10:12:40 +00:00
Zuul
61b07c19ef Merge "Create new wsgi.py file and deprecate old file" 2018-05-17 10:12:38 +00:00
OpenStack Proposal Bot
2a1159b776 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia10b70620c5e83c61ead17822c8988618fb2f5cc
2018-05-17 06:31:33 +00:00
Zuul
033b57ce13 Merge "quota: Move targets argument to get_disabled_quotas" 2018-05-16 16:59:31 +00:00
Zuul
63ac162658 Merge "quota: Merge tenant_limit_usages into tenant_quota_usages" 2018-05-16 16:52:55 +00:00
Adrian Turjak
0ca736e5da Create new wsgi.py file and deprecate old file
Django 1.4 stopped creating django.wsgi files and the common
practice now for a while has been a wsgi.py since it is actually
python code, and should actually be importable.

Right now someone has to copy and rename the existing file if they
want to use it with a server like gunicorn.

This patch adds a new file in location that is importable via python
and adds a deprecation log to the old one.

This also updates the wsgi generation commands to instead  create
'horizon_wsgi.py' and have the apache conf generation also use that
or the default wsgi file.

Change-Id: I0f8bd16c8973ad23bcd8f73b54584dc69e5aed0c
Closes-Bug: #1763204
2018-05-15 01:41:01 +00:00
Akihiro Motoki
3190a5ebc3 Convert admin.networks.ports tests into mock
blueprint mock-framework-in-unit-tests

Change-Id: I9e01edb594ba5272b4f516a327f65b83c96e5896
2018-05-15 01:26:22 +09:00
Zuul
0080405eb5 Merge "doc: Fix doc build failure due to dropped UpdateAction" 2018-05-14 13:29:18 +00:00
Zuul
ce5f459c49 Merge "Convert identity.groups tests into mock" 2018-05-14 04:07:28 +00:00
Zuul
04af5ebd5d Merge "Convert identity.identity_providers tests into mock" 2018-05-14 04:07:26 +00:00
Zuul
c4cfc8d1fc Merge "Add a link to the documentation into the README.rst" 2018-05-14 02:58:54 +00:00
Akihiro Motoki
5e012b45fc Convert admin.networks tests into mock
blueprint mock-framework-in-unit-tests

Change-Id: Id9b40bf44c5ab46e7af6c5fa1dea96663c38f3dd
2018-05-14 11:28:31 +09:00
Ivan Kolodyazhny
518621f930 Add a link to the documentation into the README.rst
Also this patch removes unnecessary index.html references.

Change-Id: I382c1c08a3a406cabf7b519521cf8a215c7d62b4
2018-05-13 19:28:22 +03:00
OpenStack Proposal Bot
26fb8f259f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7fb51cc1757b11db41e8c66d430f12dbcdf650e5
2018-05-13 06:29:03 +00:00
Zuul
17ce74e4f0 Merge "usage: Categorize Limit Summary by service" 2018-05-08 08:23:47 +00:00
Akihiro Motoki
8230f2cf7a doc: Fix doc build failure due to dropped UpdateAction
Change-Id: Iae027ff58a4924fb3cfea1f9eaf07f357c861de8
Closes-Bug: #1769777
2018-05-08 09:36:11 +09:00