606 Commits

Author SHA1 Message Date
zhangguoqing
7b29869e65 Fix syntax error with settings in doc
There is a missing ',' in the code block LAUNCH_INSTANCE_DEFAULTS.
Closes-bug: #1648014

Change-Id: Ie9bd36b380d58e35b63b197304a2e3e758f3fa70
2016-12-16 12:49:20 +00:00
Kenji Ishii
981ee96319 [trivial]Add support keys for OPENSTACK_NEUTRON_NETWORK in doc
OPENSTACK_NEUTRON_NETWORK supports a lot of keys.
Some of them are not in docs.

Change-Id: Iae770c20887b2960410616fb14c5ac02e656bd49
2016-12-08 17:01:27 +09:00
Jenkins
93b1cef050 Merge "Migrate Create Container to schema form" 2016-12-02 19:05:35 +00:00
Timur Sufiev
4ceeef5376 Add the Profiler panel to the Developer dashboard
Provide both pythonic Django part and the static assets (angular
directives and styles) for the new panel.

DEPLOY NOTES:

To enable panel itself, copy
openstack_dashboard/local/local_settings.d/_9030_profiler_settings.py.example
file from the previous commit to
openstack_dashboard/local/local_settings.d/_9030_profiler_settings.py
and copy openstack_dashboard/contrib/developer/enabled/_9030_profiler.py
to openstack_dashboard/local/enabled/_9030_profiler.py

To support storing profiler data on server-side, MongoDB cluster needs
to be installed on Devstack host (default configuration), see
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition
for instructions. Then, change net:bindIp: key to 0.0.0.0 inside
/etc/mongod.conf and invoke `sudo service mongod restart` for the
changes to have an effect.

Implements-blueprint: openstack-profiler-at-developer-dashboard
Change-Id: Ice7b8b4b4decad2c45a9edef3f3c4cc2ff759de4
2016-12-01 22:29:16 +03:00
Jenkins
6da0e2d281 Merge "Refactor tox & update docs" 2016-12-01 17:16:31 +00:00
Eddie Ramirez
a187ea14ec Update path of JS coverage reports
Current documentation states that coverage reports (Karma) are stored in a
directory that doesn't exist. This change proposes the valid path to the
coverage reports: cover/[horizon|openstack_dashboard]

Change-Id: Id8529e8e76bf1bba3293907d80e517c3248e302c
2016-12-01 00:51:51 +00:00
Rob Cresswell
36d1d1ac68 Refactor tox & update docs
- Updated tox envlist, so just running `tox` from the CLI will now run all
voting gate tests

- Reduce duplicated definitions and commands

- Remove any reliance on run_tests within tox

- Removes all doc references to run_tests.sh, and replaces them
with their tox equivalent. Where necessary, language around the tox
commands has been altered or extended so that it makes sense and is
consistent with other parts of the docs. Also adds a new "Test Environment"
list to the docs, so that newcomers do not have to piece together CLI
commands and their cryptic extensions from tox.ini

- Move the inline shell scripting to its own file. Also fixes a bug when
passing args, since the logic assumed you were attempting a subset test
run (try `tox -e py27 -- --pdb` on master to compare)

- Moved translation tooling from run_tests to manage.py, w/ help text
and arg restrictions. This is much more flexible so that plugins can use
it without having to copy commands, but still defaults to exactly the
same parameters/behaviour from run_tests. Docs updated appropriately.

- Removed npm/karma strange reliance on either .venv or tox/py27. Now
it only uses tox/npm.

Change-Id: I883f885bd424955d39ddcfde5ba396a88cfc041e
Implements: blueprint enhance-tox
Closes-Bug: 1638672
2016-11-30 20:38:59 +00:00
Richard Jones
9181305839 Note how to use local.conf in stable branches
Change-Id: I751a317d4ab279e1060f02510709c47fb47abbab
Closes-Bug: 1644677
2016-11-25 01:08:39 +00:00
Jenkins
de9d8fd56e Merge "Update Angular Users Table use registry" 2016-11-18 20:07:24 +00:00
Jenkins
4fcfd0526e Merge "Document exception handling" 2016-11-15 01:13:32 +00:00
jing.liuqing
1ee056fa7e Update Angular Users Table use registry
This patch updates an angular users table.

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

To Test
 - change 'users_panel' to True in settings.py

Change-Id: I3c4cb39d80adc9aa207e56dc72a936f567f5b4d1
Partially-Implements: blueprint ng-users
2016-11-11 15:54:48 -08:00
Jenkins
2528c8d460 Merge "Update Horizon's example local.conf" 2016-11-11 16:48:39 +00:00
Jenkins
22b71f7c26 Merge "Drop LBaaS v1 dashboard" 2016-11-10 15:50:45 +00:00
Jenkins
ce1aab2d1b Merge "Provide the bones of profiler: api and middleware" 2016-11-10 12:02:08 +00:00
Richard Jones
3d042a26ed Correct installation command to include upper-constraints
Change-Id: I7856275f0bdb92851f87d1fc4235dbed3c755894
Fixes-Bug: 1640620
2016-11-10 10:35:42 +11:00
Cindy Lu
55bd8901c4 Document exception handling
Many new contributors print the errors returned by the API
directly to the UI. However, this is dangerous because errors
can be very technical/ reveal sensitive data/ and are not
translatable. We need to document this for reference.

Change-Id: Ic0ad138b69995d842af0eeeeab73fa3ebec795c9
Implements: bp document-exception-propogation
2016-11-09 11:08:21 -08:00
Timur Sufiev
dd98e10dbf Provide the bones of profiler: api and middleware
Middleware is the backbone of the whole profiler facility. It adds an
encoded payload to each request that should be profiled with
osprofiler library. This library is embedded into other OpenStack
services where it tries to decode the message with a known set of keys
(so Horizon middleware should use one of these keys) and if
successful, sends a message to MongoDB (via osprofiler driver). Every
message has its own id, the base id (root message id) and parent
id. Using these 3 ids a tree of trace messages is assembled.

Actually, Horizon Django application uses 2 middleware classes:
ProfilerClientMIddleware and
ProfilerMiddleware. ProfilerClientMiddleware is used to enable Horizon
self-profiling (profiling from the UI): if a specific key is found in
cookies, then 2 standard osprofiler headers are added to a
request. These headers are processed by ProfilerMiddleware which
should always be the last middleware class in a Django config, since
it's defines `process_view` method which returns HttpResponse object
effectively terminating the middleware process_view chain. Assuming
that all API calls happen during rendering a view, Horizon sets a
tracepoint there which becomes a root node of the trace calls tree.

Implements-blueprint: openstack-profiler-at-developer-dashboard
Change-Id: Ib896676e304f2984c011bd1b610c86d1f24d46b9
2016-11-09 11:51:06 +03:00
Rob Cresswell
b2ed775490 Update Horizon's example local.conf
Change-Id: I82b65ef2334ce94d39c063d278e457026606ccd9
Closes-bug: 1638051
2016-11-01 09:35:07 +00:00
Richard Jones
0a80626ff6 Migrate Create Container to schema form
Remove custom form controller and modal and migrate
to the new schema form implementation.

Also, as a bonus, we now check the validity of the
new container name as the user enters it into the
form, before submission.

Add some basic docs with pointers and a simple
example.

Change-Id: I156ded96340c65710ee0aa9182f859243347e16b
Partially-Fixes: 1616306
2016-10-21 14:20:50 +11:00
Richard Jones
2f2222daf8 Allow POLICY_CHECK_FUNCTION to be disabled
Remove the current defaulting behaviour when it is set to None.

Change-Id: If8e018414f9f348980d0783f90afa039330e0e49
Closes-Bug: 1634677
2016-10-19 14:34:07 +11:00
Akihiro Motoki
7e64a1cef1 Drop LBaaS v1 dashboard
LBaaS v1 feature was removed from neutron-lbaas in Newton.
There is no reason we have LBaaS v1 dashboard in Ocata or later.

Change-Id: Ic7d4ceea1943c3721500ce4b7f769b9dba28a359
Closes-Bug: #1624655
2016-10-18 08:57:26 +09:00
Jenkins
06c4bc80a7 Merge "Flavors panel can switch to Angular" 2016-10-14 20:13:13 +00:00
Jenkins
50360ce10c Merge "Minor updates to angularjs.rst" 2016-10-13 06:11:55 +00:00
Matt Borland
e8e84c2db4 Flavors panel can switch to Angular
This patch enables all of the features for the Flavors panel to use Angular but
disables it, so that it is easy to switch on/off.

Note that we add integration test switches since it can't read the Django
conf.

Note that I changed the common tests to allow for testing of api calls that
don't produce error toasts, because we needed better branch coverage, and
the deleteFlavor api wasn't fully branch-tested.

Change-Id: I92b1b57bd486e5eb87179cb8d44b7551e9de2e0f
Partially-Implements: blueprint ng-flavors
2016-10-11 15:49:55 -07:00
Cindy Lu
19e5f43c45 Minor updates to angularjs.rst
- Remove link to NG Users table patch, instead
reference NG Images table as go-to standard
- Update some file locations/ names that changed

Change-Id: I26e9652eb3c18273a2c5193c5344ba3d7f56e576
2016-10-11 13:10:10 -07:00
Jenkins
5f090f8aae Merge "doc: Update middleware API ref to include all middlewares" 2016-10-11 20:01:59 +00:00
Jenkins
5611715720 Merge "Drop the undesired executable bit from non-executable file" 2016-10-06 16:53:12 +00:00
Jenkins
9d24c5facb Merge "missing action_class in sample code" 2016-10-04 20:07:24 +00:00
xiaozhuangqing
d9c99841e2 Drop the undesired executable bit from non-executable file
doc/source/topics/settings.rst has 0755 permission unintentionally.
  It should be 0644.

Change-Id: I2bb647438d6f3c2daeba86766923002c6ca1ef28
2016-10-04 18:59:06 +00:00
Jenkins
7f47b1baec Merge "Move browser support wiki page into the docs" 2016-10-04 11:07:24 +00:00
Kuo-tung Kao
d8c878f4c1 missing action_class in sample code
missing action_class in sample code in wrokflow.rst.

Change-Id: I56e412e9f7822366795748f6b73442beb177c5ea
2016-10-04 17:23:46 +08:00
Luong Anh Tuan
2bef59fb92 Fix a typo in documentation
remove redundant 'are'

Change-Id: I208f603a474dfc0e2fec0ddc9dfae328f5891b6a
2016-10-04 09:09:18 +07:00
Laurent Baeriswyl
e43fb80b26 Move browser support wiki page into the docs
The browser support page should be part of the docs. This change
moves the content of the wiki page into its own file that is accessible
from the index. References to the wiki page have consequently been
removed from the FAQ.

Change-Id: I340203771cb2b0dfa534ad3f8926e599a727e1e9
Partial-Bug: #1625514
2016-10-03 16:40:29 -07:00
Jenkins
d8f38c0fcc Merge "Fix typos in contributing.rst & policy.service.js" 2016-10-02 18:35:27 +00:00
Jenkins
7affae1f1f Merge "doc: Do not generate no source code reference" 2016-09-30 20:31:08 +00:00
Jenkins
0d5f4e7f16 Merge "Fix warnings in devref document" 2016-09-30 11:45:04 +00:00
Kenji Ishii
44afeac9d4 [Trivial]remove unnecessary commna
Change-Id: Ie174e707adbc9ad668a2ad516e2cda11a8646b49
Closes-Bug: #1625566
2016-09-29 00:05:22 +00:00
Akihiro Motoki
97d5435133 doc: Update middleware API ref to include all middlewares
When OperationLogMiddleware was introduced,the existing HorizonMiddleware
was moved under horizon/middleware/ directory.
As a result, doc/source/ref/middleware.rst generates nothing now.
This commit updates the doc/source/ref/middleware.rst to
include both middlewares.

Change-Id: Ie308fd20e7fec6b70a72e7f2b7f04dcfef6568df
2016-09-25 04:48:39 +00:00
Akihiro Motoki
215ccba9ec doc: Do not generate no source code reference
horizon devref has both explicit autodoc directives and
automatically generated source references.
This causes a lot of 'WARNING: duplicate object description'.

I think that we don't need source code references for most modules
and it is better to have explicit API references of modules
for which we need references. Thus this commit removes the logic
to generate source references.

This contributes a lot to reduce the number of sphinx warnings.
Also reduces the required time of documentation build :-)

Partial-Bug: #1411719
Partial-Bug: #1486222
Change-Id: Iba2bf3723cad159f4cfd1fff47e8114d9867e040
2016-09-24 20:44:48 +09:00
Akihiro Motoki
ee04fca67e Fix warnings in devref document
WARNING: invalid signature for autoclass (u'UpdateAction **DEPRECATED**')
WARNING: Literal block expected; none found.
WARNING: Duplicate explicit target name: "here".
WARNING: Definition list ends without a blank line; unexpected unindent.

Partial-Bug: #1411719
Partial-Bug: #1486222
Change-Id: I1996269d2b5db15096796bda25b35c6560f683d2
2016-09-24 20:44:48 +09:00
Kenji Ishii
07185eca28 Fix the exapmle of how to use customization_module
If a user use current example[1] as is, other attributes that
HORIZON_CONFIG have are eliminated. As a result, some unexpected
behavior may occur. So, this patch modify the exapmle.

[1]:http://docs.openstack.org/developer/horizon/topics/customizing.html

Change-Id: I022a73e6da6ad9b8ae1f807838cf29efedf7e1ef
Closes-Bug: #1626858
2016-09-23 15:52:07 +09:00
zhangyanxian
4abe3efe8c Fix typos in contributing.rst & policy.service.js
TrivialFix

Change-Id: Ifd19f066eedf1e1ce019f08ea1fdf11f881506d6
2016-09-22 02:14:29 +00:00
Akihiro Motoki
3aeb73c641 Move past release notes under doc/ to releasenotes/
We are now publishing release notes through releasenotes/
(at http://docs.openstack.org/releasenotes/).
On the other hand, we used doc/ for past release notes.
It looks better to merge the past release notes to the new location.

Change-Id: I7478e86600074bec9d8f2596c4be3c4b389ee7bb
2016-09-20 18:15:32 +09:00
Jenkins
5d5bc86c97 Merge "Support for Glance v2" 2016-09-16 02:13:50 +00:00
Luis Daniel Castellanos
e15b61f58a Update admin filter first setting to a dict
Previously the ADMIN_FILTER_DATA_FIRST setting was a True/False
setting that was taking over all the admin views leaving
operators without the opportunity to set this setting to views
individually.

This patch changes the setting to a dict where it can be specified
which panels/views will implement this setting individually.

Implements blueprint: admin-views-filter-first

Change-Id: I50deab878f68c1cc519aa9b47feaa2c58bb8eacc
2016-09-14 15:52:20 -05:00
Julie Pichon
cf0aac9400 Support for Glance v2
Implements wrappers necessary for Horizon to work with either Glance
v1 or v2 and removes the dependency on the Glance v1 endpoint.
Handles the differences between setting properties with v1 and v2 and
restricts some Glance functions that aren't supported in v2.

Implements blueprint: horizon-glance-v2
Co-Authored-By: Travis Tripp <travis.tripp@hp.com>
Co-Authored-By: Brad Pokorny <Brad_Pokorny@symantec.com>
Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Co-Authored-By: Liuqing Jing <jing.liuqing@99cloud.net>

Change-Id: Icca91c53eabf18c3109b3931ed53f70eaaaa0e56
2016-09-12 11:16:33 -07:00
Atsushi SAKAI
9628598b94 Fix five typos
configureed   => configured
infrastucture => infrastructure
annotions     => annotations     2
formating     => formatting

Change-Id: Iebb1beacb5cb73acd264a0a13f17feaad775b38a
2016-09-08 20:15:42 +09:00
Jenkins
bdbaf1c390 Merge "doc: Use "warning" directive instead of "important"" 2016-09-03 11:34:53 +00:00
shlo
325309d927 horizon documentation corrections
1. fix some spelling and punctuation errors
2. correct the path string in the plugin tutotial which might cause
misleadings

Change-Id: Ie049e1d3cfb745a62d7ab6944652a19ab3b949b6
2016-09-01 12:16:56 +08:00
Akihiro Motoki
1d0b5dea91 doc: Use "warning" directive instead of "important"
"important" is a valid directive and used in openstack manuals.
However, the theme provided by oslosphinx does not highlight
"important" directive. To highlight the section, let's use
"warning" directive instead.

Change-Id: If9ab26e6236f51b2655b5815509ff65b0a09ccfe
Note: a fix for oslosphinx will be proposed.
2016-08-31 18:44:40 +09:00