... to use the consistent environment in overcloudrc and stackrc.
This also allows us to use /etc/openstack/clouds.yaml for the modern
openstack CLI.
Closes-Bug: #1987234
Change-Id: If3ac25384412f02b23b6f8e5de918abac47df826
Refactors _create_overcloudrc into _create_overcloudrc_from_outputs such
that it can be used without requiring a stack.
Change-Id: I28c21f923baf75fbc3be501552c10a5bb5384a09
Signed-off-by: James Slagle <jslagle@redhat.com>
The six library was used to bridge the py2 > py3
gap. This library is longer required on branches
that do not support Python2.
Change-Id: Ibebe1ac80342774d47f80f6f5855cd4d064742b6
When parsing addresses the value could be None, if that is the case, we
need to handle the result and return it accordingly. This change adds
the expected TypeError when dealing with a null value.
Additionally the overcloudrc will now process the data ahead of time and
ensure that the items in the array have an assosiated value before
feeding the data into the mapped function.
Change-Id: I5a1900d4e50395065b6b56876ab9ee10f01fae05
Signed-off-by: Kevin Carter <kecarter@redhat.com>
When an operator runs `source overcloudrc` then `source stackrc`,
ENV['no_proxy'] keep having overcloud information because stackrc
doesn't include no_proxy line.
If they runs deploy commands like overcloud deploy with that situation,
the command is executed with ENV['no_proxy'] including overcloud hosts.
This generates overcloudrc with duplicated host in no_proxy line,
because no_proxy in overcloudrc is generated by joining ENV['no_proxy']
and rquired overcloud hosts.
This patch makes sure that duplicated hosts are removed before they get
dumped into no_proxy parameter.
Change-Id: I94934ae7631100d20a9e2e72e348f26bd595a3c5
Closes-Bug: #1870017
This patch adds constraints for identity api version and compute
api version, so that we can have all api version defined in one
place.
Change-Id: I5ff4a99b9cb69058c584d57d4332c423babc9597
Remove COMPUTE_API_VERSION and NOVA_VERSION from overcloudrc,
because we don't have any clients which use these parameters.
Change-Id: Ifa0ea069503171e78d18bef5114310bfc0f57cdb
The fix for 1854868 introduced double quoting for the PYTHONWARNINGS
variable which leads to a message about an Invalid -W option being
displayed.
Change-Id: I6a9b2704a9c6c7c1c9903532a5423408ede8ffc9
Closes-Bug: #1858113
If the overcloudrc values have spaces, we need to quote them to ensure
it gets parsed correctly.
Change-Id: I06995dee0ec7eabda16793aa42cae7197c4959f5
Closes-Bug: #1854868
openstack cli doesn't negotiate a microversion. Live migration and
multiattach are 2 examples of operations which require arcane
incantations
to make them work correctly, and therefore usually don't.
This adds ``OS_COMPUTE_API_VERSION=2.latest`` to the overcloudrc
file to fix it.
Change-Id: I6bb4ef5d3d0e53b12f8636b998d7f7c2426c2b60
Adds support for IPv6 undercloud in the image uploader.
The get_undercloud_registry will look for an IPv4 address
first, then look for an IPv6 address.
If the address is an IPv6 address brackets are added.
Closes-Bug: #1836057
Change-Id: Ibc90e46ffba2b6385a4d49171761023e15e4d471
This change fixes few linting errors which are discovered by newer
linters.
- bashate: consistent 4 chars identation
- python unamed Exceptions
- python space around operators
- python space after # comments
- python unused imports
- python unknown escapes (errors after py36)
- python double newline before methods
Change-Id: I5d2f37d1c820b1983355be60c09de581a72e08e0
Needed-By: https://review.opendev.org/#/c/665445/
This is no longer needed as we've ship keystone v3 by default for some
relaases now. overcloudrc has the same content.
Related-Bug: #1733640
Depends-On: I137e08213ef7f0f49510e2ebc905e351fb25b85a
Change-Id: Iaafef5b49802e1ea25f374014ebf8632ad0bcc31
This is useful when deploying a cloud that doesn't use the default
region name.
Change-Id: I21b462f78b32cd334acdf8a5644b70b1f24c8162
Closes-Bug: #1804449
We're configuring OS_IDENTITY_API_VERSION so the /v3 is not really
necessary. Additionally, the string replace being used is resulting in a
// in the url.
Depends-On: Ia41d21ebad9329ae9fa506868957a72e6f9a5ca5
Change-Id: Id8f2ec0d78eec7276b7d4f82782d64e4edde6302
Closes-Bug: #1785660
Starting with python-ironicclient 2.0.0, this is no longer needed to access
the latest features, as the default API version is now the latest version
supported by both the client and the server.
Change-Id: Icfc631484a500fd7730d807bcc0e87da62895187
Closes-Bug: #1671145
The keystone v2.0 overcloudrc is not useful anymore, since keystone
already removed support for it. This commit doesn't remove overcloudrc,
but instead it makes it have the same contents as overcloudrc.v3.
Change-Id: Ia98856e092a378ffa90e0dbf2fc8cddd0b5aa58d
Define the default API versions for the Image and Volume services in
overcloudrc.
The default Image API version (2) is the latest major version supported
by Glance, and matches the version Glance implements when the version is
unspecified. The default Volume API version (3) is the latest major
version supported by Cinder. Cinder supports higher microversions, but
the Cinder project recommends a lower default value in order prevent
breaking legacy applications (e.g. scripts).
Change-Id: I306fc90b0adcc001aae5bfbe83685b27371c80c8
Interactive editing of the command line was broken due to the usage of
$PROMPT_COMMAND. The cursor would often be placed at the wrong location
when editing history due to prompt length confusion. We already had the
OS_CLOUDNAME variable for this purpose, and I took the prompt setting
logic from what we previously used in tripleo-incubator:
http://git.openstack.org/cgit/openstack/tripleo-incubator/tree/cloudprompt
Change-Id: I85d6a2be597477ff74ba72ffa4c4aefc42c0df3c
Partial-Bug: #1673459
This variable is currently unset while the authentication type used is
'password'. It works by chance because most clients have a default set to
'password', but if that's not the case, then the exported variables do not
work.
Closes-bug: #1672060
Change-Id: Ie126434518a6ed889b27ebf31da16114d0980b9d
In order to improve the end user experience, lets show that the
overcloud credentials are currently loaded via the command prompt when a
user sources the overcloudrc. This change defines the PROMPT_COMMAND to
preprend the stack name in all capital letters to the command prompt.
Change-Id: I54c719f7ccc575cb938bf8fda609d0cf0b14bd28
Partial-Blueprint: update-ps1-in-rc-files
This way the CLI and OSC users can use the latest features without specifying
the version explicitly. The final Ocata version is 1.31, but 1.29 is the most
recent version supported by ironicclient Ocata.
Change-Id: I8e0818eff079a802e7c2023749ff3824958dbd7d
Depends-On: I285178d0b7384956eb151ca66007d7354566574d
Partial-Bug: #1663203