14296 Commits

Author SHA1 Message Date
Zuul
e071f906ef Merge "Convert admin.flavors tests into mock" 2018-06-12 13:01:54 +00:00
OpenStack Proposal Bot
d257ddb8c0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibe3feb04a329e4767ec126e725c8dfbe23e6d797
2018-06-12 07:39:18 +00:00
tstappae
0796adbd87 Change catch type for workflow unregister
Since _cls_registry is now a list, removing a non-existing
element throws a ValueError instead of a KeyError.
This did not result in the desired NotRegistered exception.

Change-Id: I2ae7381ce65a0c8fa7deed2c08bfc51e1685f09e
Closes-Bug: 1776187
2018-06-11 17:17:18 +02:00
OpenStack Proposal Bot
a98d6d3d89 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0788a377741c86ba84fe0e64647cb2b4d1cbec82
2018-06-11 06:49:32 +00:00
Zuul
6a4ca26a3d Merge "Fixed dropdown menu locator and active class for user & project" 2018-06-10 23:50:24 +00:00
OpenStack Proposal Bot
50efcb2958 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I741881f36b9539144d95012e69097df36db303ed
2018-06-10 06:40:34 +00:00
Zuul
7fce31f8ae Merge "Imported Translations from Zanata" 2018-06-09 06:51:55 +00:00
Akihiro Motoki
32d463a298 Generic volume group support
This commit adds cinder generic group support.
Consistency group support are not shown if the generic group
support is available.

blueprint cinder-generic-volume-groups
Change-Id: I038eeaf2508926f18b6053db0082a8aa3f3e20c6
2018-06-09 06:39:18 +00:00
panneer.smn
0258199be7 Fixed dropdown menu locator and active class for user & project
This patch also fixes:
* integration test test_login
* project selection steps

Change-Id: I1f459be3adc199d04f89e159c691a33bb073bb1f
2018-06-09 04:08:49 +00:00
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
OpenStack Proposal Bot
4a3ed7eba7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I678c8272dcf0f04d0d81d0b031f55f596083fcab
2018-06-07 07:13:27 +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
Akihiro Motoki
69f42aefa1 doc: Update apache configuration for WSGI
It makes more sense to use <Location> directive rather than
<Directory> directive because HTTP requests are handled by
WSGI script and the directory paths are not actually referred.
The proposed approach is already used in DevStack and what we test.

This is a patch to follow up the discussion on the apache
configuration files in https://review.openstack.org/#/c/561802/.

Change-Id: I0c3111ed4d04c55ba31924d02bbf3eb416ec3412
2018-06-05 07:28:11 +09:00
Zuul
94aea2fedd Merge "Show WEBSSO disclaimer only when it is needed" 2018-06-04 16:19:30 +00:00
Dave Hill
edb1aabc87 Allow keypairs to contain a underscore
When manually creating keypairs, underscore are allowed but
when creating keypairs while instanciating an instance, it's
not allowed.  This patch solves this.

Change-Id: I0ad19bd1239b7c9ac18888d84e123e478cf40508
closes-bug: #1775030
2018-06-04 12:07:03 -04: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