495 Commits

Author SHA1 Message Date
Jenkins
9bf49ec5f7 Merge "Template loaders defined before local settings" 2016-04-20 09:32:59 +00:00
Jenkins
4ec8b211f6 Merge "Fix doc build if git is absent" 2016-04-19 06:33:21 +00:00
Jenkins
bee7fdd00b Merge "Support scheduler hints when launching instance" 2016-04-18 18:42:32 +00:00
Jenkins
b28780636d Merge "Fix RST formatting errors" 2016-04-18 17:18:07 +00:00
Yves-Gwenael Bourhis
17176d0617 Template loaders defined before local settings
TEMPLATE_LOADERS was defined after loading local_settings.py and was sqashing
any attempt to customize the template loaders.
This patch adds CACHED_TEMPLATE_LOADERS, ADD_TEMPLATE_LOADERS and a doc
defining how to use them in order to ease customization process.

Change-Id: I2544529ee965ef01c6ac4973056801ebee50be6d
Closes-Bug: #1568764
2016-04-18 18:11:23 +02:00
Brian Moss
85b7725417 Fix RST formatting errors
Change-Id: I59d1c3c78eea3477ff101e3afa7a01c7cdbf95f9
2016-04-18 17:12:03 +10:00
Justin Pomeroy
4254165250 Support scheduler hints when launching instance
This adds the Scheduler Hints step to the angular Launch Instance
workflow and allows specifying arbitrary hints when launching an
instance. It also displays available hints from the glance metadata
definitions catalog OS::Nova::Server namespace that use the
"scheduler_hints" properties target.

Implements: blueprint add-scheduler-hints
Change-Id: Ic33c31e645f45b7a4cbdf13e9a115c96399d5e32
2016-04-15 22:47:57 +00:00
YAMAMOTO Takashi
ed7c766854 Add Geneve support
Closes-Bug: #1461069
Change-Id: Ib8d150d36d617e0ff381a40115bde2183dace4f8
2016-04-15 08:39:26 +09:00
YAMAMOTO Takashi
a968f9a500 Add network types used by midonet
Don't enable them unless explicitly configured in local_settings.

Closes-Bug: #1504466
Related-Bug: #1486943
Change-Id: Ia1c059dfa80a55d10fb0318b1648f41ac24cea17
2016-04-15 08:39:21 +09:00
Jenkins
c1960d2240 Merge "Make neutron provider network configuration more flexible" 2016-04-14 13:13:48 +00:00
Thomas Bechtold
33b000a57d Fix doc build if git is absent
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.

Change-Id: I905736fc5f998385128b306c75bc8191b2797dc6
Closes-Bug: #1552251
2016-04-13 09:46:35 +02:00
Jenkins
6ee4b78b5b Merge "Documentation on translation support in horizon plugins" 2016-04-12 21:01:33 +00:00
Jenkins
dc8c01c929 Merge "Update URLs to Django 1.8+ style" 2016-04-11 18:10:51 +00:00
Akihiro Motoki
5fc69c9764 Make neutron provider network configuration more flexible
Previously only the predefined provider network types
can be used in supported_provider_types.
Neutron support various network back-ends and some of
them use different provider network types.
Operators who use such back-ends cannot specify extra
provider network types not defined in Horizon.

This commit reorganizes the logic around neutron provider
network and allows to specify extra provider network types.

Co-Authored-By: YAMAMOTO Takashi <yamamoto@midokura.com>
Related-Bug: #1504466
Change-Id: Ia5e3f91b7c5964a5253a67a42c7d63e35619d1c2
2016-04-11 19:12:30 +09:00
Akihiro Motoki
e4216cb27a Documentation on translation support in horizon plugins
Change-Id: I53350baf95be18f0d759f0fc687e889f1f9c2b80
2016-04-11 16:16:25 +09:00
venkatamahesh
7f6942f478 Update the Administrator guide link with new one
Change-Id: I2bcc0e9569c9391fd5f32da4eef11ce09ddb3331
2016-04-06 17:27:58 +05:30
Jenkins
3666072654 Merge "Fixing the deprecated library function." 2016-04-05 05:34:34 +00:00
Jenkins
99edc5c613 Merge "Optimize "open" method with context manager" 2016-04-05 05:32:22 +00:00
Jenkins
c6922178ce Merge "Fix some trivial errors in plugin.rst" 2016-04-04 21:56:06 +00:00
Bo Wang
6a880bd0c1 Fix some trivial errors in plugin.rst
1. ADD_JS_FILES should be mentioned
2. scss files can not be discovered automatically
3. remove incorrect scss exmaple codes

Change-Id: Id543673a925eedb824b8222982e9ba35110fc44a
Closes-Bug: #1562834
2016-04-01 11:24:59 +08:00
Nguyen Hung Phuong
8ea75adf13 Fix typos in Horizon files
Change-Id: If2c4ebfa474270761e6af59e79ae24521c704700
2016-03-31 08:50:41 +07:00
Rob Cresswell
15e83c6448 Update URLs to Django 1.8+ style
Django 1.8 altered and deprecated the existing pattern for defining
URLs. This will be removed in 1.10, meaning that many deprecation
warnings show up under Django 1.9. We should fix the URLs promptly to
avoid logspam, and to support Django 1.10 in Newton.

See
https://docs.djangoproject.com/en/1.9/releases/1.8/#django-conf-urls-patterns

Change-Id: I074d20850de59bfe678a3bc72e9f0f25bd743cbf
Partially-Implements: blueprint dj110
2016-03-28 11:03:08 +01:00
Bo Wang
f645d85218 Fix the link of Django logging directive
Current link is out of date. It's 404 Page not found now.
Change it to an address regardless of specific django version.

Remove the warning content since the bug has been fixed.

Change-Id: Idd0060313d538e25f9b89d7197adca739d2f6782
Closes-Bug: #1560449
2016-03-22 19:21:39 +08:00
Jenkins
4da4bf44c3 Merge "More documentation on writing i9n tests" 2016-03-22 00:43:04 +00:00
Eddie Ramirez
48193a517c Doc page not displaying command-line with appropriate styling
The page locate at http://docs.openstack.org/developer/horizon/testing.html
is not displaying commands with appropiate styling, for instance there are
some command options using en dash instead of double hyphens.

This patch fixes the way these lines should appear in the browser: using
mono-spaced font, enclosed in a gray box and with double hyphens instead of
en dashes. This way we prevent users seeing errors when copy-pasting the
instructions.

Change-Id: Id76675cd6510d0491cdc08d9cc845c0fc66ab2c6
Closes-bug: #1559276
2016-03-18 19:53:11 +00:00
Timur Sufiev
3ec7f0bf55 More documentation on writing i9n tests
List of topics:
* go_to_<pagename>page() methods and proper file structure is covered
* regions facilities
* customizing gate environment
* running tests in plugins

Change-Id: I885705b62e63b72c5ba823a8ebf7be20f9fcddbe
2016-03-15 14:44:39 +03:00
Jenkins
a699e5a371 Merge "Deprecate default_*_subnet_pool_label options" 2016-03-04 22:21:26 +00:00
Rob Cresswell
2843ce3c0a Enable Angular Launch Instance by default
This patch enables the Angular Launch Instance workflow by default. The
toggle has been maintained for those running the Python workflow, and
also for the integration tests to run against both simultaneously.

Keep integration tests running for a legacy Launch Instance workflow
by means of a separate local_settings.d code snippet activated before
starting the tests.

Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Change-Id: Id0c57b33df46397711e32092cec6cc5268841779
Implements: blueprint enable-angular-launch-instance
2016-03-03 17:40:35 +00:00
Diana Whitten
259973dd06 Horizon Checkboxes are now themeable.
Horizon checkboxes were using a standard checkbox. Unfortunately,
this type of checkbox is only customizable through Chrome, and
even then, its not completely flexible.

The default checkboxes have now been altered to allow for a highly
customized experience through the use of CSS pseudo elements and
Icon Fonts. This allows the color, size and unselected and selected
states of the checkbox to be customized.

The 'default' theme uses the standard Font Awesome checked and
unchecked icons.  The 'material' now uses the Material Design
checkbox design.

It was also noticed (and fixed) that the help-icon on the forms
were not the same color as its corresponding text.

Partially-Implements: blueprint horizon-theme-css-reorg

Change-Id: I52602357d831a5e978fe6916b37b0cde9edb2b9b
2016-03-02 19:17:09 -07:00
Frode Nordahl
5a68857bfc Deprecate default_*_subnet_pool_label options
Starting with Mitaka, Neutron API handing of default subnetpool has
changed [1].

If a default subnetpool exists in Neutron it will show up in the
subnetpool list. Thus no change in Horizon is needed to handle this
part.

The following changes are required in Horizon:
- Mark the 'default_ipv4_subnet_pool_label' and
  'default_ipv6_subnet_pool_label' configuration options for use
  with Liberty only, deprecate them and tag them for removal in
  future release.
- When the configuration options are removed the _check_subnet_data
  function should no longer allow to pass empty 'cidr' and
  'subnetpool_id'.

References:
1: http://docs.openstack.org/releasenotes/neutron/unreleased.html

Change-Id: Ib1d4143251421d03e4e9c3071d43d2423e3b0d8c
Closes-Bug: #1551333
2016-03-02 21:27:09 +01:00
Andreas Jaeger
7323abcc2a Remove unused pngmath Sphinx extension
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.

Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
2016-02-28 20:46:19 +01:00
Jenkins
f9aaa76673 Merge "Dynamic Themes" 2016-02-26 08:52:24 +00:00
Jenkins
08c91044e5 Merge "Update example local.conf" 2016-02-25 19:16:28 +00:00
Diana Whitten
c9de52d6bb Dynamic Themes
Horizon themes are now configurable at a user level, through the use
of cookies. The themes that can be set are configurable at a
deployment level through settings.py. Horizon can be configured to
run with multiple themes, and allow users to choose which themes
they wish to run.

Django Compressor:
In order to support dynamic themes, each theme configuration must
be pre-compiled through the Django compressor. By making use of its
built in COMPRESS_OFFLINE_CONTEXT, we now return a generator to
create each of the theme's necessary offline contexts.

Templates:
Horizon themes allowed template overrides via their 'templates'
subfolder.  In order to maintain this parity, a custom theme template
loader was created.  It is run before the other loads, and simply
looks for a Django template in the current theme (cookie driven)
before diverting to the previous template loaders.

Static Files:
Horizon themes allowed static overrides of the images in
'dashboard/img' folder.  A template tag, 'themable_asset' was created
to maintain this parity. Any asset that is wished to be made themable,
given that it is located in Horizon's 'static/dashboard' folder, can
now be made ot be themable.  By making this a template tag, this
gives the developers more granular control over what branders can
customize.

Angular and Plugins:
By far, the trickiest part of this task, Angular and Plugins are
dynamic in the files that they 'discover'.  SCSS is not flexible in
this manner at ALL.  SCSS disallows the importation of a variable
name.  To get around this, themes.scss was created as a Django
template.  This template is the top level import file for all styles
within Horizon, and therefore, allows ALL the scss files to share a
common namespace and thus, can use shared variables as well as extend
shared styles.

Other:
This change is fundamental, in that it changes the method by which
Horizon ingests its SCSS files.  Many problems existing in the
previous implementation, in an effort to make Horizon flexible, its
SCSS was made very inflexible.  This patch corrects those problems.

Change-Id: Ic48b4b5c1d1a41f1e01a8d52784c9d38d192c8f1
Implements: blueprint horizon-dynamic-theme
Closes-Bug: #1480427
2016-02-25 09:49:43 -08:00
Jenkins
2d0f0ee908 Merge "Add local_settings.d/ dir for settings snippets" 2016-02-25 00:06:26 +00:00
Rob Cresswell
ff55f7b2fe Update example local.conf
Update the example local conf to capture changes to vpn and fwaas setup,
and add neutron qos.

Change-Id: I277ce6e630496c85a656493ce0fc55a6be5d6c3f
2016-02-24 10:21:59 -08:00
shu-mutou
f3207c814d Update URLs to Django 1.8 style for plugins
django.conf.urls.patterns() is deprecated since 1.8.
We should not use patterns(), so this patch updates URLs to
1.8 style.

Since many urls.py use patterns(), this patch revises docs and
template related to plugins and new panels.

Change-Id: Ib8fb5b1047bc4dd56000abe87affe3c22c30879e
Partial-Bug: #1539354
2016-02-23 00:19:06 +00:00
Thomas Bechtold
c9fdecc8e8 Add local_settings.d/ dir for settings snippets
All files ending with '.py' in local_settings.d/ are evaluated
after reading the settings from local_settings.py . That means
changing the settings can be done without changing local_settings.py .

Change-Id: I0b25ef2c4dada23f8cb66aa5e8af44b3a1cba3b9
Implements: blueprint local-settings-override-mechanism
2016-02-19 11:04:38 +01:00
Jenkins
d090995371 Merge "Updating password in local_conf" 2016-02-18 07:11:45 +00:00
Thai Tran
dc37a02493 Updating password in local_conf
In our recommended local_conf.rst, we use pass for password.
We should change pass to match what we have in devstack and i9n tests.

Change-Id: Ia019eadf91bc6195f40b99d6b1f8478982b76404
Closes-Bug: #1541090
2016-02-16 09:44:24 -08:00
Jenkins
5a900309f7 Merge "Webroot Theme is no longer needed" 2016-02-12 18:23:52 +00:00
Jenkins
4cb638c470 Merge "Fix misc small issues with docs" 2016-02-12 00:39:37 +00:00
Jenkins
fbaa7a53f9 Merge "Allow setting default value for config_drive" 2016-02-11 23:48:49 +00:00
Diana Whitten
d6b5527498 Webroot Theme is no longer needed
Because the $static_url scss variable is now available through the
scss namespace by default via the settings.py value for STATIC_URL,
it is no longer necessary to have an example theme on how to set
this manually.

Change-Id: I39ddfbd8e574768202233cfff09c8699486b3c01
Closes-Bug: #1478794
2016-02-11 11:58:25 -07:00
Matthias Runge
83b04c730e Fix misc small issues with docs
Apparently, it was forgotten to update IE reference in docs
there too.

Change-Id: Id35b75fca6f801633f89c4c2ed7ee369fe345537
2016-02-11 10:16:28 +01:00
Justin Pomeroy
73bb9a5943 Allow setting default value for config_drive
This adds a setting that can be used to specify the default value
for the Configuration Drive option when launching an instance.

Closes-Bug: #1537106
Change-Id: If402d3331158b462bece27fa6fce2bdb7f6a4a2e
2016-02-10 21:24:10 -06:00
Jenkins
f2d7de8f57 Merge "Add policy directive into policy.rst" 2016-02-05 05:05:17 +00:00
Jenkins
c6ae3e2de8 Merge "Add message of the day option" 2016-01-31 10:07:52 +00:00
Jenkins
6a06d2d02d Merge "Plugin Docs" 2016-01-29 05:10:04 +00:00
Bo Wang
df2701c524 Add policy directive into policy.rst
This commit is as follow-up work of:https://review.openstack.org/#/c/261695/.
Mention how to use policy directive to complete policy.rst.

Change-Id: I64e64ba8d7fd0c2e15ffd0f460b9bb981742b4b9
Partial-Bug: #1529007
2016-01-28 14:10:51 +08:00