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
attribute-level imports are not checked by hacking module now.
most noqa is used to disable warnings on attribute-level imports.
This commit drops noqa for this purpose.
After this, there are only 3 noqa under openstack_dashboard/ :)
Change-Id: I4a449802f5dbd6e44e4b8b5c378a555d47d9a99f
Some places are not using ThemableSelectWidget, so
these select ui is not themable. This patch fix it.
Change-Id: I303a9cf8c6f8f651edf68973a2f5e16a8b04b26d
Closes-bug: #1669696
It seems there has been changes in the Heat API, and it no longer
returns the default value for a parameter in the "Default" key, it
has been instead renamed to "DefaultValue" and later to "Value".
This patch makes it use all those key names, whichever exists.
Change-Id: Ia86d8d79fcd48974ffe3fecf21a7153bf2ba6a9a
As mentioned in [1], we should avoid using six.iteritems(iter) to
achieve iterators. We can use iter.items() instead, as it will
return iterators in PY3 as well.
[1] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: Ieadd5fa69b3f6058c0641a5b96ef3e8e1e3f6cc2
heat-api had already return the boolean type using 'Boolean' in this commit:
https://review.openstack.org/#/c/116762/ , So remove the lowercase case.
Change-Id: If2fd981ffb854699301b77c6b0bc318a90c178dc
This patch gets Horizon to a passing state in the Django 1.9 tests
Co-Authored-By: Itxaka <iserrano@redhat.com>
Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Change-Id: Icbc1a3c039de658faa9fba4a2cdd5027345fe94d
Partially-Implements: blueprint drop-dj17
Some API calls just sent but the results were uncertain,
Horizon should notify the user that your request is
just accepted, not successfully.
So this patch change some form message level to INFO,
and some message expression.
Change-Id: I241cd9cf3ad6b2bd747e3ea1c6040a140ba77b56
Closes-Bug: #1326301
Closes-Bug: #1286418
While creating Heat stack user has to set all required stack parameters.
So if there is no default value for boolean type parameter, user has to
choose between True or False. However the boolean field is marked as
"required" and doesn't accept False value. This patch set removes
requirement from this field and allows user to pick False for boolean
parameter.
Change-Id: Ie9495a8c83f33d6634931888b31336e5a1b52130
Closes-Bug: #1526698
when get_file is contained in template, the stack create/update/preview
will fail due to No content found in the "files" section.
So added handle get_file code.
Change-Id: I6f125f9e5f3f53f630ab0d4f3f00631e6850e905
Closes-Bug: #1512564
* On Python 3, the pretty JSON output doesn't add space before newline.
* CreateStackForm: don't compare str to int, it raises a TypeError on
Python 3. Instead, use MinLength already converted to int.
* tox.ini: enable all stacks on Python 3.
Partial-Implements: blueprint porting-python3
Change-Id: I20cd9e83720cc3974973bec5471864f0ffc00716
Currently a password is needed when doing a stack creation using
Horizon. This patch adds a configurable setting in local_settings.py
file, so that it can be disabled from the stack creation form.
Change-Id: I82783b73940e39d961ac70a5ce86abdaca02eba7
Closes-bug: #1290344
Co-Authored-By: Richard Jones <r1chardj0n3s@gmail.com>
Co-Authored-By: Jesse Keating <jlk@bluebox.net>
The heat template allows user to define custom parameters,
the fields are then converted to input fields. The description
param maps to the help_text attribute of the field.
Since the value comes from the user, the value must be escaped
before rendering.
Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com>
Change-Id: I79d540a8363b2507c4bccdc0cc38e283962919d2
Closes-bug: #1453074
This patch set fixes default values displaying for JSON parameters
to make it possible to use them without any changes.
Closes-Bug: #1438138
Change-Id: Ib925dc39320f7cab240eed3ccbcf1fa574bc5507
This patch set adds "Preview Stack" button to Stacks table
to provide user with a possibility to preview stack without
creating it, as it is already implemented in CLI.
Partially implements blueprint: heat-ui-improvement
Change-Id: Idf92deb57f8213a403f102db467828087d91e79a
If the heat template parameter has a custom constraint of
'nova.flavor', 'nova.keypair', 'glance.image' or 'neutron.network',
the form will generate a drop down field with a list of all
possible options the current user has access to.
Change-Id: I17f99eca364f1123a950cf712225ce751728239e
blueprint: heat-template-choices
Co-Authored-By: Cédric Soulas <cedric.soulas@cloudwatt.com>
Horizon input fields may be swapped when launching stack instances
with some errors. The patch make params order fixed by simply sort
them.
Change-Id: Ied3e681cfa76a52bde824ddc91ff3c1851b3cac3
Closes-Bug: #1417515
oslo_utils moved out of the oslo namespace.
Partially Implements: blueprint drop-namespace-packages
Change-Id: I3c38426142de535b5474676b1214ea72b231ce76
Rather than sync'ing with oslo-incubator, let's use the library
oslo.utils instead. Removing the local copy of strutils.
With removal of strutils in local, gettextutils is now safe to
remove as well.
Change-Id: I0d98d41b03d105e34933efcdb5c60020141e13fb
Partially-Implements: blueprint improve-oslo-usage
Horizon fails to render boolean and json parameters properly in the
stack launch form, instead of rendering these fields it renders a
duplicate of the previous field.
Change-Id: Idb2fcf4b52578951fb578138a80529eefc140d1a
Closes-Bug: 1360495
Parameters in a heat template are now rendered in the order specified
in the "ParameterGroups" section. If this section is not available then
they are rendered unordered.
Change-Id: I3367b42c4c3037666b705cebf9cf67ccf0ce4fce
Closes-Bug: 1364567
In the launch stack form, any heat template parameters that are
of type string and marked as hidden are now rendered as a
password field.
Change-Id: Ie9b0a051a8815525c89de31b7ab98d8148166a55
Closes-Bug: 1362846
Some general guidelines:
1. Removed contractions
2. Changed "Info" to "Information"
3. Removed the "From here you can..." at the beginning of messages.
4. Explained concepts to users instead of just reiterating the modal
title. Thanks Jeff Calcaterra!
Co-Authored-By: Cindy Lu <clu@us.ibm.com>
Closes-Bug: #1329984
Change-Id: I35af81953cafcbafc28c31b3ce305e8c5e21fe84
Warnings H904, H307 and H405 are new or considerably changed, and will
be fixed in a separate patch.
Closes-bug: #1349820
Partial-bug: #1347472
Change-Id: I4fd28990dacf16f03a4eaa6074ef59c37f1a2c14
- environment data was being passed to heat API on stack create,
but not stack validate - meaning that templates that referenced
environment files were not validating correctly
- heat client does not support URLs for environment files - we will
need to do this client side before POSTing back to horizon. future
patch
Partial-Bug: #1322258
Change-Id: I40982b777abaec743ed6cbc527008522a619e817
According to https://wiki.openstack.org/wiki/Python3 dict.iteritems()
should be replaced with six.iteritems(dict).
Change-Id: Ia2dcabbd071e1fcdf111ba83573785989a77aef0
Remove vim setting:
comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4
at the top of source code files, except for files in
openstack/common.
Change-Id: I9a5c6b17c6ef7ecec601f4503dfc7b31fc72e90a
Close-bug: #1229324
Initially, the field key was used as the label. In the return dictionary
has the label, so I use that value and fall back to the key if it does
not exist.
Change-Id: I39b4a7f25d8947276d3bdc3e12e728f84696a203
Co-Authored-By: Yves-Gwenaël Bourhis <yves-gwenael.bourhis@cloudwatt.com>
Heat now consistently formats error messages in returned HTTP json
and heatclient HTTPException makes every attempt to capture these
messages.
This means that the safest way to display an error or validation
message from Heat is to rely on the existing behaviour of
Horizon's exceptions.handle.
Change-Id: I80cdb67df87cb5192f220bc78a156d6e4113112f
Closes-Bug: #1241395