14686 Commits

Author SHA1 Message Date
Akihiro Motoki
8cc055157d doc: Use manage.py migrate
`syncdb` subcommand was deprecated in django 1.7 and subsequently
removed in 1.9. We need to use 'manage.py migrate'.

This commit also drops a sample output of 'manage.py migrate'.
I don't think we need to maintain this kind of output and
it can change per Django release.

Closes-Bug: #1777358

Reference: https://docs.djangoproject.com/en/dev/topics/http/sessions/#using-database-backed-sessions

Change-Id: Ib3a7e50584a8deb9bee409335464163b7b1258d1
2019-01-07 23:50:07 +09:00
OpenStack Proposal Bot
d0297a5ed0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id5c2f52b2578628f299e464a521061ee4f18a527
2019-01-06 06:47:58 +00:00
Zuul
c8de4fbe89 Merge "Rework old customization templates and add new blocks" 2019-01-05 15:19:06 +00:00
Zuul
188fd6dc19 Merge "Add RBAC policies feature to horizon dashboard" 2019-01-04 16:27:14 +00:00
Zuul
f97ddbfeaa Merge "Fix folder path in "AngularJS Topic Guide"" 2019-01-04 12:38:03 +00:00
Zuul
097d139997 Merge "Stein deprecation notices on deprecated/remoevd features" 2019-01-03 13:19:45 +00:00
Zuul
cd412a6c0b Merge "Drop TripleO UI from horizon plugin registry" 2019-01-03 13:19:43 +00:00
Zuul
3a7ff423ff Merge "Better support for community images" 2019-01-03 13:19:41 +00:00
Zuul
397a75b911 Merge "Add "prev" link to instance page list pagination" 2019-01-03 13:00:05 +00:00
gaoyl
f41df5a800 Fix folder path in "AngularJS Topic Guide"
Change-Id: I319b12f85bd03b4e12395fbdeff54650a11d7456
2019-01-03 12:23:57 +00:00
Zuul
131a6207eb Merge "Migrate horizon-dsvm-tempest-plugin job to python3" 2019-01-03 12:05:05 +00:00
Zuul
4391453c21 Merge "SHOW_KEYSTONE_V2_RC defaults to False" 2019-01-03 11:47:40 +00:00
Adrian Turjak
e9f8abb659 Rework old customization templates and add new blocks
From Rocky we can now support Django's recursive template
inheritance. Let's move away from all these stand alone
templates for deployers to override and instead direct them
to recursively extend the existing templates and the blocks they
need.

This adds more blocks, docs on how to use them, and an example
theme which can be turned on and used to show how this works.

blueprint: less-customization-templates
Change-Id: I69f1e16ff1b88cec78580df0911fe3c01b7507dd
2019-01-03 17:45:29 +13:00
shutingm
d65ebe2054 Add RBAC policies feature to horizon dashboard
Add RBAC Policies panel to support Role-Based Access Control
functionality.

Implements: blueprint rbac-policies
Change-Id: I883ad629d735dadf49e8bf9c50475050fdfcf797
2019-01-02 17:05:07 +08:00
OpenStack Proposal Bot
3b18a92d4d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I126129ad7fa72778fde561908d31657887d4fde8
2019-01-02 08:17:52 +00:00
OpenStack Proposal Bot
07070c437d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7f23fc512069d8e0c10804a4acd32bc91fddba62
2018-12-30 08:29:34 +00:00
Akihiro Motoki
72eff9c4fd Migrate horizon-dsvm-tempest-plugin job to python3
Python 3 and python 3.6 classifiers are added
so that DevStack recognizes horizon works with python3.

Change-Id: I2ab0a1a9df9292090f8f14b1591b98d691e16bc4
2018-12-30 07:36:21 +00:00
Zuul
49b0d97eae Merge "Do not load openstack_dashboard.settings in unit tests" 2018-12-29 09:42:46 +00:00
Zuul
563dcf968f Merge "Fix a bug that horizon UT failure is ignored" 2018-12-28 21:52:00 +00:00
Zuul
628901d52e Merge "Fix command line of bandit-baseline" 2018-12-28 21:21:37 +00:00
Akihiro Motoki
9feead65cb Fix command line of bandit-baseline
This is due to my mistake in https://review.openstack.org/#/c/596613/.

Change-Id: I185c75f6102979636eacccd0fe546e25ccc00c19
2018-12-28 16:22:41 +00:00
Akihiro Motoki
372b75c222 Do not load openstack_dashboard.settings in unit tests
The previous behavior depends on different values for
SELECTABLE_THEMES and it seems this is the reason that test_themes
imported openstack_dashboard.settings.
If we override a value in django.conf.settings, we can use
override_settings decorator. This commit uses it and
we can now avoid importing openstack_dashboard.settings in UT.

Change-Id: Id1b7b7e431b86e725ad897613ca38f423a67e52d
Closes-Bug: #1809842
2018-12-28 23:06:38 +09:00
Ferenc Cserepkei
4676694179 Add "prev" link to instance page list pagination
Currently there is no link to previous page at paginated instances
table. This patch resolves that issue by re-using the pagination
code for flavors.

It also supports Ying Zuo's scenario:
After I set only 1 item per page and deleted the instance on the first page,
the expected behavior is showing the next instance in the table after one is
deleted.

xxxIndexView uses PagedTableMixin's _get_marker() from now instead of GET()-
ing the markers

Closes-Bug: #1274427
Co-Authored-By: Dmitry Ratushnyy <dratushn@cisco.com>
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Id8eaae6bf1b5d6f42291291655e14b8715c08bc8
Signed-off-by: Ferenc Cserepkei <ferenc.cserepkei@ericsson.com>
2018-12-28 20:46:11 +09:00
OpenStack Proposal Bot
87e2cf67fa Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iaee1f8ba95ee339127133d46d5b15d6869970a9e
2018-12-28 08:20:23 +00:00
Andy Botting
d641e6d105 Better support for community images
This commit updates several places where image information is processed
and extends support for the 'community' image visibility value.

Some support did exist already, which was mostly just the main Images
tab of the dashboard, but this commit also includes support for:
  - image name in the instances list/details
  - 'Community' visibility label in the Images tab
  - Listing of community images in launch instance wizard

Closes-Bug: #1779250

Change-Id: Iedea0b7d20313837a72a2759511251a7bb324869
2018-12-27 09:04:53 +09:00
Zuul
2eea0f15b3 Merge "Instances column is shortened so it fits properly" 2018-12-26 19:09:26 +00:00
Zuul
78941094c5 Merge "Update table header checkbox after searching" 2018-12-26 19:09:24 +00:00
Zuul
3ffd1feca9 Merge "Check if the alert box has a sibling element, delete its parent if it doesn't exist" 2018-12-26 19:09:22 +00:00
Zuul
117004383a Merge "Show password expiration date on user detail" 2018-12-26 19:09:20 +00:00
Zuul
974932b6f5 Merge "Displays role assignment through group in user details" 2018-12-26 19:09:19 +00:00
Zuul
afe78534f5 Merge "Add group tab in user details view." 2018-12-26 19:09:17 +00:00
Zuul
3d73d72599 Merge "Add role assignment tab in the user details view." 2018-12-26 18:50:25 +00:00
Zuul
b83f8986ac Merge "Change session timeout to an idle timeout value" 2018-12-26 10:37:18 +00:00
OpenStack Proposal Bot
206e132e48 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic4d2cab06dd25558feefeec91d7f6d30702c7385
2018-12-24 08:25:50 +00:00
Zuul
3ce17251d8 Merge "Allow to run pep8/docs tox env with horizon plugins" 2018-12-23 11:40:52 +00:00
Adrian Turjak
dc0ffaf2d8 Change session timeout to an idle timeout value
Add a new config SESSION_REFRESH (default True) which
turns SESSION_TIMEOUT into an idle timeout rather than
a hard timeout.

The existing hard timeout is awful UX, and while
SESSION_TIMEOUT could be set to a higher value, it
still makes for a somewhat unpleasant experience.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Icc6942e62c4e8d2fac57988b0a2233a8073b1944
2018-12-23 09:33:49 +09:00
Akihiro Motoki
898997badf Fix a bug that horizon UT failure is ignored
Previously UT succeeds even if horizon UT fails.

Change-Id: Id5a08a3877b50fc582145ee74dc1c88cfb3fbba9
2018-12-23 08:53:24 +09:00
Zuul
400036465d Merge "fix checking if enforcer was loaded" 2018-12-22 21:52:01 +00:00
Akihiro Motoki
d32359e011 SHOW_KEYSTONE_V2_RC defaults to False
In favor of keystone v2 support, SHOW_KEYSTONE_V2_RC now defaults
to False. SHOW_KEYSTONE_V2_RC setting is also deprecated.

Along with this change, "v3" part of "OpenStack RC File (Identity API v3)"
is now unnecessary, so "v3" information is dropped.

Change-Id: If0359e2dc1f2c8fb5f3c87046fd23043f94abc21
2018-12-23 04:02:22 +09:00
Akihiro Motoki
25b6706f50 Allow to run pep8/docs tox env with horizon plugins
As of now, when horizon plugins are configured in the horizon repo,
pep8 and docs tox env cannot run.
This is because openstack_dashboard.settings tries to load horizon plugins
but horizon plugins are not installed in tox env by default and
the jobs will fail as a result.
This commit changes to use openstack_dashboard.test.settings
as DJANGO_SETTINGS_MODULE for these tox environments by default.

Change-Id: I6a9d0c74271cc4addd8a0964b5955d7d3b6d8267
2018-12-23 02:34:38 +09:00
Sumit Jamgade
96912aea91 fix checking if enforcer was loaded
enforcer for policy can be loaded from a single file or from multiple
files (policy_dir). so checking for policy_file is not good enough.

If a policy is loaded it will have some rules, if not loaded then,
oslo_policy rejects all acccess, but it is not saved to the
_ENFORCER object, which is holds the objects used for enforcing
policies. So checking for existance of rules is a better check.

Some refactoring for better logging
added tests: test_nonexisting_policy_file_load

Change-Id: Id1f65058014ef5b14449b502d6741da9d34767b3
Closes-Bug: 1804174
2018-12-22 22:42:54 +09:00
Zuul
06ab7a5047 Merge "Use template for lower-constraints" 2018-12-22 13:21:50 +00:00
OpenStack Proposal Bot
2cfe4bb08a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4956c64829c57dd73915a067902b1f7a49653eb6
2018-12-22 08:18:37 +00:00
Zuul
d3f9ca8373 Merge "Fix images minimum ram and disk default values" 2018-12-21 14:22:23 +00:00
OpenStack Proposal Bot
2c3484690f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7959e0e59ce5ed4f585cf27936e3d24097e00304
2018-12-21 08:34:22 +00:00
Akihiro Motoki
82e8729f12 Stein deprecation notices on deprecated/remoevd features
This commit delares deprecations on featuers which are deprecated
or have been remoevd in back-end services.

Change-Id: Ica4d79d7220352d432f41313b5a0ff495df94b8c
2018-12-21 16:44:38 +09:00
Andreas Jaeger
e8f040d772 Use template for lower-constraints
Small cleanups:

* Use openstack-lower-constraints-jobs template, remove individual
  jobs.
* Sort list of templates

Change-Id: Id9e8f44d7c4d352682ca4df80f9470c7e6144509
Needed-By: https://review.openstack.org/623229
2018-12-20 21:01:04 +01:00
Akihiro Motoki
f2828b9104 Drop TripleO UI from horizon plugin registry
TripleO UI is not a horizon plugin. It does not depend on horizon.

Change-Id: I11b76b180f928ece19532e68c7f84acc6f50bcab
2018-12-21 03:27:59 +09:00
Costeijn Kuhlmann
7b5e232447 Show password expiration date on user detail
Since keystone v3.7 the user responds object returns
the password_expires_at attribute. We can show this on
the detail page of the user.

Change-Id: I28b34644066c5d14201b2592d2e07484dfb31c42
Closes-Bug: #1798380
2018-12-20 15:41:37 +01:00
David Gutman
9d68119452 Displays role assignment through group in user details
In the tab role assignments of the user details view, the role
assignments the user has got through groups are added.

In the column "role" of the table, the text "(through group GROUP_NAME)"
is specified next to the role name.

Change-Id: I6bbf3ef61a7c4e99e0b1ddce90ae1c12a3e18369
Closes-Bug: #1792524
2018-12-20 08:50:43 +00:00