Commit Graph

252 Commits

Author SHA1 Message Date
Rob Cresswell de5bc4b46b Update and merge the install / deployment docs
These two documents were incredibly outdated, but also had almost
identical concerns. This patch updates the content and merges the two
documents.

Note that this guide is still separate to the quickstart guide, which is
intended for developers. In future patches in this blueprint, the file &
navigation structure will be altered to make this distinction more
clear.

Change-Id: Ic5d111d53ab69a3cd1ab08c4c05b2d676e79258c
Implements: blueprint pike-docs-overhaul
2017-06-15 10:40:24 +01:00
Jenkins 8ecb9c141b Merge "Extended description of OPENSTACK_HOST setting" 2017-06-08 19:15:18 +00:00
Mohammed Naser d734f482ec Add config for default create volume option
This patch adds the ability to configure the default "create volume"
value when launching an instance with Cinder enabled.

Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>

Closes-Bug: 1678109
Change-Id: I272f7f1b20cc1276976c464a82d1776de92d17e7
2017-06-06 15:38:45 +02:00
Eddie Ramirez fc60a5f53d Extended description of OPENSTACK_HOST setting
This change extends the description of OPENSTACK_HOST, now including
references to other settings that explain how to setup multiple region in
Horizon.

Change-Id: Id079cae5767159ff8d2ff8b854ab218db1fbdd79
2017-05-19 12:03:52 +00:00
Jenkins 071ba2cb08 Merge "Drop deprecated settings: enable_firewall and enable_vpn" 2017-05-18 14:34:52 +00:00
Mateusz Kowalski 605a34376a operation_log: Expose IP address of the user
IP address is now included in the default format
as %(client_ip)s what fully covers auditing
use case for this log.

Change-Id: I226f268b0eac6e35021b3e86aef512108ddb5691
Closes-Bug: #1688484
2017-05-05 09:57:05 +02:00
Akihiro Motoki 53a5164d82 Drop deprecated settings: enable_firewall and enable_vpn
enable_firewall and enable_vpn settings have been deprecated
since Juno release, but they have not been dropped yet just because
we need a lot of changes in unit tests if dropped.

The situation is resolved by the parent commit and we can now drop these
settings safely. We can control whether a specific panel should be
enabled or disabled via the pluggable panel mechanism ("enabled" dir).

Also clean up enable_lb which has gone several releases ago.

Closes-Bug: #1687185
Change-Id: I83fa48c5d9568a00294be7cd5f43ef181bc1f28d
2017-04-29 11:51:24 +00:00
Tyr Johanson eb38ac80f7 Update Network Port VNIC Types
Update the VNIC type list shown by Horizon to match the options
supported by neutronclient.

See neutronclient/tests/unit/test_cli20_port.py

Closes-Bug: 1681917
Change-Id: Ifbe81a3a3b5f2edc9c0b8a0129d780546119a92e
2017-04-11 12:50:58 -07:00
Monty Taylor 6d315598aa Add support for downloading clouds.yaml files
python-openstackclient, shade, openstacksdk and Ansible's OpenStack
modules all support reading client config information from a file called
clouds.yaml instead of from environment variables set from openrc files.
Unfortunately, the only thing horizon currently offers for download is
old-style openrc files.

Add support for downloading clouds.yaml files.

Change-Id: I0611dd44524b746ad993bff7435ec8628a83a762
2017-04-06 17:16:55 +00:00
Rob Cresswell a8f17150bf Remove all remaining vendor specific code
There's some vendor specific code still lingering from several cycles
ago. This patch removes all usage of it, all related tests, and all
default settings.

Implements: blueprint horizon-vendor-split
Change-Id: Ic0bb84f547b07b130480e587bd365f6e7805dfb5
2017-03-22 20:23:12 +00:00
Ying Zuo 31f4aa9767 Provide available physical networks on create network modal
Added setting physical_networks to provide users list of
available physical networks to choose from on the
admin create network modal.

Default to an empty list and the physical network field is
a regular input field where users can type in the name
of the physical network to be used.

If it's set to a list of physical network names, the
physical network field is a dropdown menu where users can
choose a physical network to use.

Closes-bug: #1485144

Change-Id: I342b3776a52179d5b4a704fb984912878ff3dc81
2017-03-10 08:56:52 -08:00
Richard Jones 4c03d5cf9a Fix doc confusion around AVAILABLE_REGIONS/OPENSTACK_KEYSTONE_URL
The docs erroneously indicate that OPENSTACK_KEYSTONE_URL should not
be set when AVAILABLE_REGIONS is used, but it actually should be.

Change-Id: I2bd55b1c7e41c14a2624aadd8d32acdae5753839
Closes-Bug: 1667557
2017-02-24 15:20:02 +11:00
Eric Brown 8f01b2cb0e Fix the awkward English in description for extra info
The description for the PROJECT_TABLE_EXTRA_INFO and
USER_TABLE_EXTRA_INFO settings makes no sense. This patch cleans
up the English to describe how to use these settings.

Change-Id: I6e14889a1dc8b3e4b242b6649847761084500c08
2017-02-05 17:22:01 -08:00
Cindy Lu e152d398ff New Identity NG Panels missing stuff in settings.py/rst
Newly added NG panels are missing some definitions
in settings.py and settings.rst

NG Domains default is not defined in settings.py
https://review.openstack.org/#/c/387771/

NG Roles default should be described in settings.rst
documentation
https://review.openstack.org/#/c/222825/

Change-Id: I0bddbf2c829467c2c1ea20d96124c66ec46c50b4
2017-01-17 15:39:49 -08:00
Jenkins 8962d7b8cc Merge "Adding identity domains table" 2017-01-16 15:54:19 +00:00
Kenji Ishii cc94b0f202 Adding identity domains table
This patch adds the domain table to the identity domains panel
adn domain detail page.
Actions will be added in subsequent patches.

To test this patch, it needs to show domain panel and enable angular
feature for domain panel.

To show domain panel (after installing OpenStack with latest Devstack).
 - using backends except signed cookie as SESSION_ENGINE in local_settings.py.
   e.g memcached
----
CACHES = {
   'default': {
       'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
       'LOCATION': '127.0.0.1:11211',
   }
}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
----

 - enable OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT in local_settings.py
----
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
----

After that, if admin user logged in, the user could see Domain panel and
could operate actions for domains like Create.

To test this patch, after above, set 'domains_panel': True in 'ANGULAR_FEATURES'.

Change-Id: Ib15e25a4cebe6de83f1c2f427490d5850d36b908
Partially-Implements: blueprint angularize-identity-tables
2017-01-12 13:55:46 +09:00
Jenkins 662b4118d3 Merge "Update settings docs with using ANGULAR_FEATURES for dev" 2017-01-06 17:58:16 +00:00
Mike Carden fa09d908dc DOC Remove duplicated words
Remove a couple of accidental word duplications from the docs.

Change-Id: Ie4a6d23820bb1ece1347fa32dbc4e298db1c4485
2017-01-06 15:45:12 +11:00
Cao Xuan Hoang ca69e6a114 Remove trailing backtick
This patch is removing a trailing backtick (`) from the
doc/source/contributing.rst and
doc/source/topics/settings.rst documents.

Change-Id: I9b50bf86765d6cccc1b34d9f1e4704211ff4d2be
2017-01-04 13:52:56 +07:00
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
Cindy Lu 6585659162 Update settings docs with using ANGULAR_FEATURES for dev
Note in settings documentation (for upstream developers)
that from Newton forward, we should use the ANGULAR_FEATURES
setting instead of creating an enabled file like
_3031_identity_ng_users_panel.py...
and DISABLE-ing it there.

This makes sure we only display one service panel at a time
(either Django or Angular) and not both.

Change-Id: I120011ada793eeee92fd0871e6771d755a34d7f0
2016-11-30 12:21:50 -08:00
Jenkins de9d8fd56e Merge "Update Angular Users Table use registry" 2016-11-18 20:07:24 +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 22b71f7c26 Merge "Drop LBaaS v1 dashboard" 2016-11-10 15:50:45 +00: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
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
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
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
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
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
Akihiro Motoki 9fcc9a4989 Fix document sphinx error and warnings
The following error and warnings are fixed:

* ERROR: Unknown directive type "versionupdated".
* WARNING: Title underline too short.
* WARNING: Block quote ends without a blank line; unexpected unindent.

Change-Id: I43c4e77cf62c2cd336a72cbf132f9b6933b5af75
2016-08-31 18:00:46 +09:00
Jenkins 3bfb4bbdff Merge "Add rel note and example for TOKEN_DELETE_DISABLED" 2016-08-30 21:32:20 +00:00
Rob Cresswell 455a1ba62a Add rel note and example for TOKEN_DELETE_DISABLED
https://review.openstack.org/#/c/340689 added a new setting to Django
OpenStack Auth. This patch documents it and provides an example.

Change-Id: Ib684b4c918af0d5ae3770cba702b44e86a3ad3da
Closes-Bug: 1609506
2016-08-30 19:13:14 +00:00
Jenkins 6d29875f7f Merge "Enable Angular Image panel" 2016-08-25 13:46:02 +00:00
Jenkins 1d50ce8790 Merge "Supports extra properties in project and user" 2016-08-25 05:55:13 +00:00
Kenji Ishii ab11eef92a Supports extra properties in project and user
This change is to support extra properties in project and user.
To show an extra property in project/user table, you can customize.
The explanation of the method to add an extra property is added
by this patch.
In addition, when you do a create or update user, you can specify a
value of extra property by setting in local_settings.py

Change-Id: Ifee491f2a55d9207fe5da70136f749e1fc4bab82
Implements: blueprint support-extra-prop-for-project-and-user
2016-08-21 22:13:35 +09:00
Jenkins 0e0b01fd27 Merge "Restrict user private network cidr input" 2016-08-21 12:15:32 +00:00
Itxaka 4a9f988813 Angular: Configuration of boot sources for launch instance
Adds new configs to LAUNCH_INSTANCE_DEFAULTS to configure
which sources are available when launching an instance.
Provides an info message  if no boot sources are enabled.
Prevents doing extra calls if a boot source is disabled.
Adds tests to check for the proper filling of allowedBootSources.
Removes one test as the object being checked no longer exists.

Co-Authored-By: Brad Pokorny <brad_pokorny@symantec.com>
Co-Authored-By: Yosef Hoffman <yh128t@att.com>

Change-Id: I90f76c34dbfb20cb54d5f3e599052388bd0dba39
Implements: blueprint configurable-boot-sources
2016-08-17 13:50:15 -04:00
Matt Borland 33ceb91d01 Enable Angular Image panel
This patch enables the Angular Image panel and deprecates the Django-based
Image panel.

It changes the Django configuration switch and the integration test switch.

Change-Id: I5a8b188985a28c246160210e0c87122519339c64
Partially-Implements: blueprint angularize-images-table
2016-08-16 11:42:23 +00:00
Rob Cresswell 1050755d05 Add ANGULAR_FEATURES setting dict
We should unify the angular features (new panels, workflows, etc.) in a
single setting. This also makes it a little cleaner to read, simply
using the 'truthiness' of a key rather than string comparisons.

I haven't moved the 'swift_panel' setting, as that panel will be removed
in the O cycle anway, so it seems pointless to move a setting causing
potential issues for a single cycle.

Change-Id: Ia5702ff523355ae895e14cc3d49c895128478944
2016-08-15 21:01:53 +00:00
LIU-Yulong 1342101955 Restrict user private network cidr input
If the user's private network has the same CIDR as the public
network, there will be an error.  The router is unable to set
the gateway properly when the private and public CIDR overlap.

This patch add setting 'ALLOWED_PRIVATE_SUBNET_CIDR' to decide
whether to restrict user private network cidr input. And admin
dashboard network panel was not restricted.

Example:
ALLOWED_PRIVATE_SUBNET_CIDR = {'ipv4': ['192.168.0.0/16',
                                        '10.0.0.0/8'],
                               'ipv6': ['fc00::/7',]}

By default, leave the 'ipv4' and 'ipv6' with empty lists,
then user subnet cidr input will not be restricted.

DocImpact
Implements blueprint: restrict-private-network-input
Change-Id: I6b2ee58447d517c1c40344b8f4dd95968638da5b
2016-08-15 13:22:39 +08:00
Matt Borland 20bc6e1516 Make 'switch' between legacy and Angular Images
This patch follows on the example that the Containers set, providing
a 'switch' in the panel-enablement file that currently defaults to
'legacy' (Python-based Images panel) and allows for 'angular' (Angular-
based Images panel).

To be clear, this does NOT enable Angular Images.  It's just setting the
stage to do so at some point, or to allow deployers/devs to easily switch
between the two.

A switch both for HORIZON_CONFIG and for integration tests is necessary
due to the way integration tests operate.

Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Change-Id: I12cd33552218ed1082d2d9a2ae8982639a217a6a
Partially-Implements: blueprint angularize-images-table
2016-08-05 08:17:21 -06:00
Timur Sufiev 7e65af5f13 Embed support for external data sinks into api.glance
In case 'data' image attribute is a base string (instead of in-memory
or on-disk file), api.glance sends back an image wrapper with a redirect
url and a token to its caller, so the caller could upload the file to
that url directly.

Provide a unit test for api.glance behavior when an external upload
location is used. That also requires to fix glance stub endpoint data
in keystone_data.py since it didn't reflect the reality.

Also document the new HORIZON_IMAGES_UPLOAD_MODE setting that will
govern direct images upload and the define approach to deprecating the
old HORIZON_IMAGES_ALLOW_UPLOAD setting. The old setting is deprecated
as of Newton release and planned to be removed in P. 'Removing' means
that it will no longer be used / referenced at all in code, not the
actual presence in settings.py (it is removed from settings.py in this
commit). What really matters is if the customized value of
HORIZON_IMAGES_ALLOW_UPLOAD in local_settings.py will be still
considered during the deprecation period.

Help text in Django Create Image form in case if local file upload was
enabled was wrong, fixed that.

Related-Bug: #1403129
Partially implements blueprint: horizon-glance-large-image-upload

Change-Id: I24ff55e0135514fae89c20175cf9c764e871969b
2016-07-26 13:38:58 +00:00
Timur Sufiev baca29144b Pay attention to Nova disabled quotas defined in a config file
Since Nova doesn't currently provide an API call to indicate whether
its quotas are disabled, we could use a parameter named
'enable_quotas' within 'OPENSTACK_HYPERVISOR_FEATURES' setting for
this purpose. This allows to avoid errors while trying to update
quotas which are disabled on service side. Also make disabled_quotas
collection to be a set instead of a list - this removes duplicate
fields that appear due to some possible quota overlaps between Nova
and Neutron.

Also, since we dropped out python2.6 support fancy set literals and
dict comprehensions can be used.

Co-Authored-By: Paul Karikh <pkarikh@mirantis.com>
Closes-Bug: #1286099
Change-Id: I10923f147e4c323aba8bbcc130d2016ad6725e86
2016-07-19 17:51:08 +00:00
Kevin Fox 31e5672905 Angular direct service access.
Angular based Horizon widgets and Horizon plugins will want to
contact OpenStack API's directly to enable much more responsive UI
and to place less load on the Horizon servers by proxying service
calls through horizon proxies.

Change-Id: I612c6bfefa8e157f7219938bb3e82896dde8fa09
2016-07-18 13:30:51 -07:00
Jenkins 107488f2f5 Merge "Pre-populate the Angular template cache and allow template overrides" 2016-07-14 01:06:01 +00:00