Pretty straightforward conversion, and remove the old scripts
which are not needed anymore.
Also, even though OS_TENANT_NAME is still exported,
read OS_PROJECT_NAME as first choice.
Depends-On: https://review.opendev.org/746235
Change-Id: Ie8402e2d9c3297e3bbee6065c9977890c4d46589
assertItemsEqual was removed from Python's unittest.TestCase in
Python 3.3 [1][2]. We have been able to use them since then, because
testtools required unittest2, which still included it. With testtools
removing Python 2.7 support [3][4], we will lose support for
assertItemsEqual, so we should switch to use assertCountEqual.
[1] - https://bugs.python.org/issue17866
[2] - https://hg.python.org/cpython/rev/d9921cb6e3cd
[3] - testing-cabal/testtools#286
[4] - testing-cabal/testtools#277
Change-Id: I6d5e373917bd4aea7da8f158755bea53e96d6678
- Remove Babel from requirements, it's not needed for running.
- remove unused file setup.sh
- Update to hacking 3.1.0; fix problems found.
- Remove hacking and friends from lower-constraints, they are not
needed there at all.
Depends-On: https://review.opendev.org/736382
Change-Id: I8b2a8c06de0282f797fab51d90aeac1ca2eef9c4
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I96f66e103313c5ba4eb9cc04ed1e813ab3fb0532
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Change-Id: I5cb9b15a3391bf32bb6e43958f8f6ffbcd6bcf07
The command line parameters, ca-file, key-file, and cert-file,
are deprecated. The problem is that the argument parser stores
the values for the deprecated parameters into the same attributes
used by Keystone. As a result the murano dashboard is overriding
the default values of the Keystone attributes with its own default
values. This is wrong.
The change is to ignore these parameters if they are not specified
on the command line. This will allow the Keystone client's method,
register_cli_options, to set them to the correct default values.
If the user specifies these parameters on the command line, then
we will honor them.
Change-Id: I08974f7fea0cd0cb2a906e26c9f197209c473b9b
Closes-bug: #1767144
When update with unexisting env template, the output contain '<'
and '>'.
murano env-template-update 849c781b2ef84a6a8961b520c11f7322 test
404 Not Found: EnvTemplate <TempId 849c781b2ef84a6a8961b520c11f7322>
is not found (HTTP 404)
Change-Id: Ifcbdc4cb5846de35e55fbeeaf21f9ce3d4748e36
The API catalog endpoint `show_categories` was deprecated back
in Liberty cycle. It was recently removed from murano in
If1bea7448c0d4aa5fdf37c8400323589d73fdb21
This commit removes the muranoclient usage of this now-removed
endpoint, which is currently used by muranodashboard, causing
bugs. There is a commit for muranodashboard to address this
problem: I715b1c9ccfdd044980596cc6d966062e0386884c
After muranodashboard stops referencing the deprecated
endpoint in favor of the current one, all references
to the deprecated endpoint will have been removed.
Related change: If1bea7448c0d4aa5fdf37c8400323589d73fdb21
Change-Id: I2024fc1e5705f581579ecabaec30f66687a272d7
Depends-On: I715b1c9ccfdd044980596cc6d966062e0386884c
Partial-Bug: #1701067
From 2016/10, there is no domain with id 'default' in keystone.
And the user would create a domain whith name 'default', like this:
https://docs.openstack.org/mitaka/install-guide-obs/keystone-users.html
If a user do not specify domain_id and domain_name, it is appropriate to set
the default domain with name 'default'.
Change-Id: I4a8ff3e06362e8034eb84b0a26d8400fc733292a
There are two "completion" in the subcommand table: bash-completion
and bash_completion. but "bash_completion" is not in help information
and it is repeated with "bash-completion", so delete it.
Change-Id: Ia00061376daabeacd524b1afb01e2e9a585ac56f
Closes-Bug: #1670123
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: Ib3740617715c7097efeb5852338a669dc0bf8ff7
OpenStack common has a wrapper for generating uuids. We should
use that function when generating uuids for consistency.
Change-Id: Ie6c8ac0d70e200f60415e720bc0f94980ec11147
Murano Dashboard uses Murano Client to fetch data from Murano.
In order to improve log browsing for deployments in Murano
Dashboard, which requires showing all deployments for all
environments, the deployments API had to be changed to support
this.
Includes client support for OSC as well as old murano client.
Change-Id: I80c02a8cfd82260f097474bb512f693aa6734655
Partially-implements: blueprint improve-deployment-log-browsing
Depends-On: I1b6a313af1a0c4aa57bd4e6f51da92b396b35165
This fix applies to Murano + Glare only.
The glare artifact_properties table does not contain a property
name 'name', but rather 'display_name'. Thus, filtering by 'name'
was not working. This change changes the kwargs filter dict to
use the key 'display_name' rather than 'name'.
Change-Id: I10d4d728fcd3e4bc0cc41cbddcad9ccd40b57f5e
Closes-Bug: #1653774