744 Commits

Author SHA1 Message Date
Zuul
44714c17f3 Merge "Updating default keystone API verson to 3" 2017-12-29 18:04:49 +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
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
Akihiro Motoki
8c25bb728f Update Ubuntu horizon installation instruction
openstack-dashboard.conf provided by Ubuntu package does not
contain WSGIApplicationGroup configuration which is required to
make the dashboard work correctly.

Change-Id: I578217571e7a80c174bfc65317d4a1c159ff8692
Closes-Bug: #1738379
2017-12-18 14:57:04 +09:00
Zuul
ad17915e43 Merge "Add create and import key pair actions" 2017-12-15 03:56:26 +00:00
Shu Muto
5424c6306a Add create and import key pair actions
This patch adds create and import keypair actions into
Angularized key pair panel as global action.

Also, to load public key from file, this patch uses
load-edit directive.

To use load-edit directive from angular-schema-form,
i.e. from separated scope, this patch enables to configure
callback function to get content of textarea in load-edit.

Change-Id: Ie38bff8fba90de99095b589d70da45dcb202fa56
Imprements: blueprint ng-keypair
Needed-By: I3d6ae0b513120cf50c89b40234b602b816adfd48
Needed-By: I9200baa585c18095656d0459c649391b61b553a2
2017-12-14 15:44:44 +09:00
Zuul
70866a308c Merge "Optional removal of V2 openrc file" 2017-12-14 02:34:07 +00:00
Zuul
e23048774b Merge "Allow to skip API calls to Neutron in instance tables" 2017-12-12 21:28:20 +00:00
Amelia Cordwell
b0e696cf9a Optional removal of V2 openrc file
* Setting 'SHOW_V2_KEYSTONE_RC' added and will control whether
  or not user's are able to see links for the V2 rc file on both
  the API Access panel and the user menu.

Change-Id: I454fcf578dd8c4d2b9b52c3a9e5426b85e5298b5
2017-12-12 16:40:38 +13:00
Feilong Wang
a42f58de50 Allow to skip API calls to Neutron in instance tables
Now instance panel is sending API calls to Neutron to get the addresses
info about network. It take some time until Nova network info cache is
synced when IP address operation like floating IP association is made
in Neutron. The API calls to Neutron exist from this reason.

However, it retrieves a full list of port, so it can potentially leads
to performance issues in large deployments. This commit adds a setting
flag to control whether API calls to Neutron is used or skipped in
the project instance table.

This commits drops a call of servers_update_addresses() in the admin
instance table. In the admin instance table there is no need to retrieve
IP addresses from neutron because the main purpose of the admin panel is
to see all instances and IP addresses in nova network info cache will be
synced soon.

Closes-Bug: #1722417
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Ie16784eb6352f70ab644dc8b6ea03fc6a881d3f9
2017-12-11 23:19:01 +09:00
Andreas Jaeger
8c5f7196b6 Remove app-catalog from plugin list
The repo is retired, see I52ce13057643d69a0fd87bce20ee460c6b7c2f17.
Remove it from the list of plugins.

Change-Id: I233c3f30e84f8568a2d29683bdefd1f5f40aeccc
2017-12-10 20:45:32 +01:00
Zuul
8bb0d6be83 Merge "Add Heat Dasbhoard to Plugin Registry" 2017-12-09 10:27:45 +00:00
Zuul
b4fccffccc Merge "Drop Heat related code from horizon" 2017-12-09 10:27:43 +00:00
kaz_shinohara
23a6a821b7 Add Heat Dasbhoard to Plugin Registry
Now Heat Dashboard is ready to departure, therefore added github and
launchpad url of Heat Dashboard to Horizn's plugin registry

Change-Id: I3c392c843f48efe63c930775fdaf337ca6a3d4c8
2017-12-08 09:22:53 +09:00
Akihiro Motoki
eac3e7032a Drop Heat related code from horizon
Orchestration tab in the admin info panel needs a discussion.
It seems not to be covered by heat-dashboard yet.

blueprint heat-dashboard-split-out

Change-Id: I56e6edb1f2ac72e2f42d0e9f3291308e67f24cad
2017-12-05 07:38:55 +00:00
Zuul
54e81dd29d Merge "Import django_openstack_auth settings missing in horizon doc" 2017-12-02 04:57:21 +00:00
Zuul
865f793ff8 Merge "Add MKS console support" 2017-11-30 04:39:27 +00:00
yong sheng gong
1f41f29f0b Add MKS console support
Co-Authored-By: jinke <jin.ke@99cloud.net>
Co-Authored-By: yong sheng gong <gong.yongsheng@99cloud.net>

Change-Id: Id8ee4a28a09eb3d7f7598c507c0a4320a97cd01c
implements: bp support-mks-console-type
2017-11-29 21:06:38 -05:00
Akihiro Motoki
39e5ffd0d0 Import django_openstack_auth settings missing in horizon doc
Part of blueprint merge-openstack-auth

Change-Id: I64a471142d8f55d2d92d3659096523c10e19b450
2017-11-22 07:05:57 +00:00
Akihiro Motoki
1b0bd0d045 Move openstack_auth API refernece into a separate place
Part of blueprint merge-openstack-auth

Change-Id: I5c5aec5899a3ba18f90ab5ca8d381aeea86b7a5e
2017-11-16 11:11:02 +00:00
Zuul
5f236835a2 Merge "Add Django OpenStack Auth to Horizon" 2017-11-13 13:31:06 +00:00
Nam Nguyen Hoai
340d4ff981 Doc: Delete pyc in a structure of dashboard.rst file
dashboard.pyc and __init__.pyc are redundant, it is
not useful and should be removed.

Change-Id: Iacb904596413232a22c72832f69dc20eca69b6f6
2017-11-08 13:55:51 +07:00
Vu Cong Tuan
e722055675 doc: Update the URL of noVNC
After being updated to new organization urls [1],
URL of noVNC has been changed from [2] to [3].
This patch set makes sure to use the correct links.

[1] 5911cfd582
[2] https://github.com/kanaka/noVNC
[3] https://github.com/novnc/noVNC

Close-bug: #1727645
Change-Id: Ie8ddb2820eafe226b210e8886da0e89f11274185
2017-10-26 08:31:08 +00:00
Zuul
980cde123a Merge "Set Angular roles panel as the default" 2017-10-19 01:13:05 +00:00
Zuul
5f21bd56af Merge "Add permissions explanation to quickstart doc" 2017-10-16 17:16:37 +00:00
Jenkins
d4b93486bd Merge "Adds extensible header functionality" 2017-10-13 16:25:35 +00:00
Ying Zuo
16afe25d8a Set Angular roles panel as the default
The actions in Django roles panel have been implemented in the Angular
version so setting the Angular version as the default.

Change-Id: I1e01b2e93090255d82ef92e51b943b0a715d2e7e
Partially-Implements: blueprint ng-roles
2017-10-11 22:12:25 -07:00
zhurong
872ea43d65 Adding identity ng-groups panel
This patch adds angular groups table.

To be added in subsequent patches:
 - Actions
 - filterFacets
 - Integration to Searchlight

To Test
 - set 'groups_panel': True in settings.py
 - local_settings.py v3 enabled

Co-Authored-By: Cindy Lu <clu@us.ibm.com>
Co-Authored-By: Kenji Ishii <ken-ishii@sx.jp.nec.com>
Co-Authored-By: Shu Muto <shu-mutou@rf.jp.nec.com>

Change-Id: Ifcb3353762ae9d65b73981a4a8d6241273afd16a
Implements: blueprint ng-groups
2017-10-10 13:35:09 +09:00
Tyler Smith
2e7dce8268 Adds extensible header functionality
This change is to introduce a flexible mechanism for projects to
add content to horizon's navbar.
- Introduces a new plugin file variable called ADD_HEADER_SECTIONS,
  which will take a list of views.  These are template views that
  will be used to render individual header sections.
- There is a new view in openstack_dashboard/views.py to cycle
  through these added views and combine them into the complete
  header to be added to the navbar.
- This view is queried by newly added javascript after page load.
  On response it is inserted into the page's navbar.
  If more than one header is present, the first will be shown in
  the navbar, while the rest are added to a drop-down menu.
- The currently displayed header can be changed by clicking on a
  new header in the drop-down; this is stored in a cookie to
  persist the selection between pages.
- Unit tests were modified/added to verify the new plugin entry
  can be parsed successfully and the main header view can parse
  a plugin's view successfully

Change-Id: I177b69ec4e78c17f827e540a7e669af1c29e8b59
Implements: blueprint extensible-header
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2017-10-03 17:11:06 +00:00
Rob Cresswell
e3e5812b19 Add Django OpenStack Auth to Horizon
Moves Django OpenStack Auth content to Horizon, since they are so
tightly coupled. This cleans up the development workflow and should
make keystone / auth related contributions easier.

Implements: blueprint merge-openstack-auth
Change-Id: Ia1cdc47bad1ca6e633073a9f9445b0c7f70d05bc
2017-09-27 12:06:57 +01:00
Jenkins
8d7b72c0b3 Merge "Clean up broken links due to doc-migration" 2017-09-21 04:46:08 +00:00
Amelia Cordwell
4d32b1fbe9 Add permissions explanation to quickstart doc
* Also fixes part of the example which showed having a custom
  permission that could not exist in the way that
  django_openstack_auth's keystone backend was implemented.

Change-Id: I46e748302d34f82648ef6690e2d5db4618487a6a
Closes-Bug: #1605842
2017-09-05 14:05:36 +12:00
Petr Kovar
d44f1c7e14 [doc] Fix broken links
Change-Id: I58de603276913ab4b1c05f675738bcb20711f9ef
Closes-Bug: #1702855
Closes-Bug: #1702854
2017-09-04 15:13:41 +02:00
Akihiro Motoki
a4d05ce55d Clean up broken links due to doc-migration
admin-manage-stacks.rst is dropped as we have no admin stack panel.
view-cloud-resources.rst is dropped as the metering panel was dropped
several releases ago.

Closes-Bug: 1714753

Change-Id: I483cb3dbaab23722abd2f321e8666d8beea2f7c7
2017-09-03 08:57:42 +00:00
Rob Cresswell
b4914c4caf Remove remainder of run_tests references
Change-Id: I74245159e8c4e17056170fe4a573ad899676aea6
2017-08-29 08:15:24 +00:00
Shu Muto
4982dc3cda Angularize Key Pairs index view
This patch adds Angularized index view.
Actions and details view will be implemented in subsequent patches.

To use Angularized Key Pairs index view, copy following file:

  openstack_dashboard/local/local_settings.d/
  _11_toggle_angular_features.py.example

to:

  _11_toggle_angular_features.py

and add following line into _11_toggle_angular_features.py:

  ANGULAR_FEATURES.update({'key_pairs_panel': True})

Change-Id: Ie1bf555430f77fc6bc95deedb8328caa5a2287aa
Partial-Implements: blueprint ng-keypairs
2017-08-25 14:40:03 +09:00
Rob Cresswell
9787ef4784 Minor improvements to the translation document
This patch improves the syntax highlighting of code examples in the
translation doc, and bolds a couple of important references.

Change-Id: Ib5d396fdb40cf8f2f735a39373b2d1d64a4520e7
Implements: blueprint pike-docs-overhaul
2017-08-16 13:47:45 +00:00
Jenkins
9603ee9f24 Merge "Make default visibility option on create image modal configurable" 2017-08-09 16:40:05 +00:00
Rob Cresswell
9a98a5fd98 Disable Edit Flavour by default
Closes-bug: 1709056
Change-Id: Ifa4e9cdfbbac1a1d4bf28679b24a17b13f637ddd
2017-08-07 12:06:33 +00:00
Akihiro Motoki
4c3e1f0508 Add some notices on handling release notes
During the recent work on release notes I got some useful lessons on reno.
It is worth documented. (Note that they will be added to the reno docs
but it is nice to have it in horizon doc too)

Also adds a link to the release note section in the contributor guide
to the release note page so that developers can find information on
the release notes more easily.

Change-Id: I0c5bd5f5e70d6c1be4eb8f8e895312205177774e
2017-08-05 14:30:12 +00:00
Akihiro Motoki
515ba0ae0f Update the documentation link for doc migration
This commit updates links affected by doc migration.
Note that other links are not touched in this commit.
Fixing other broken links or changing http to https
should be covered by a separate patch.

Also convert http links to docs.openstack.org to https per reviewer
request (though it is not directly related to doc-migration).

Note that this commit does not touch files under releasenotes/notes/.
If we touch release notes in older releases, reno will considers
it as a release note in the current release.
(Pike release notes are clean up in a separate patch.)

Change-Id: Iba9bd465ef08014a4972584cf4da6e7d77961119
2017-08-04 18:38:25 +00:00
Jenkins
79135ac5d7 Merge "Update local conf" 2017-07-31 16:02:16 +00:00
Ying Zuo
9edda95f04 Make default visibility option on create image modal configurable
If the user is allowed to create public images, the default visibility
option on the create image modal is public unless the setting
image_visibility is set to "private" on local_settings.py.

Closes-bug: #1699144
Change-Id: Ib1fc6c846ba3b7e2ee303749aca797b0e6707f37
2017-07-28 21:08:38 -07:00
Rob Cresswell
79a3c65f4a Fix a settings header style in docs
Change-Id: I83409b9e9fb992b584610906c9ec3d6111cb7d8e
2017-07-28 11:39:21 +01:00
Jenkins
9e9ee5c145 Merge "Add missing DOA config value to docs" 2017-07-27 15:27:12 +00:00
Rob Cresswell
6cd4b03447 Update local conf
implments: blueprint pike-docs-overhaul

Change-Id: I6a05d25717d98e9ceeb337142cfee327d27c03b7
2017-07-27 11:13:49 +00:00
Jenkins
2b78015405 Merge "Cleanup release notes" 2017-07-27 05:08:40 +00:00
Diana Whitten
958e522d40 Added SELECTABLE_THEMES setting
Currently themes machinery works in such way that if we rely on
default theme in our branded theme, we have to include them both into
AVAILABLE_THEMES setting, otherwise default theme assets will be
unavailable and the branded theme assets compilation will fail. On
the other hand, mentioning them both leads to theme picker being
shown - which we would like to avoid (per marketing wish).

SELECTABLE_THEMES setting was added to allow limiting the user facing
themes by configuration.

Closes-bug: #1564543
Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>

Change-Id: Ic00a9201d2d352685b1089a37a25987b75d6636d
2017-07-26 11:52:35 +01:00
Jan Gutter
587c3de89b Add support for virtio-forwarder VNIC type
* This patch adds support for the virtio-forwarder VNIC type.
  * The virtio-forwarder VNIC type has been added as another option for
    setting the "binding:vnic_type" property on a port. This requests a
    low-latency virtio port inside the instance, likely backed by hardware
    acceleration.
  * The documentation for OPENSTACK_NEUTRON_NETWORK/supported_vnic_types
    has been updated to clarify the term "supported VNIC types".
    Unfortunately, the VNIC binding happens at scheduling and error
    reporting in core Nova and Neutron is not optimal in this case.
  * Corresponding python-openstackclient change:
    https://review.openstack.org/#/c/483532/
  * Corresponding neutron-lib change:
    https://review.openstack.org/#/c/483530/

Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
Closes-Bug: 1705548
Depends-On: I28315fb12f62dc7d52d099c211086b2b81eca39a
Change-Id: I02dc3581de8f31c659e545e340cbdf6a1b2bb837
2017-07-24 13:40:54 +00:00
Akihiro Motoki
c17a93af02 Cleanup release notes
The main purpose of prelude is to describe release highlights.
The current usage of prelude looks random and there is no need for
individual release notes to use prelude section.
This commit cleans them up.

Also add a note on this to the contributor guide.

Change-Id: Ib72a3f4fc1bac2befd900249d07f5d67a56079f3
2017-07-24 01:37:59 +00:00