Commit Graph

29 Commits

Author SHA1 Message Date
Ghanshyam Mann 120bd48006 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I2fcd63ee46cf8e3651fb997e414a1a556f2b2455
2024-02-24 11:43:05 -08:00
Takashi Kajinami b14ee1ac8e overcloudrc: Replace OS_CLOUDNAME by OS_CLOUD
... 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
2022-08-24 23:29:39 +09:00
James Slagle 90fd3c41f0 Add _create_overcloudrc_from_outputs
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>
2022-02-25 06:58:59 -05:00
Brendan Shephard d86b063547 Remove six library
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
2021-10-06 08:53:45 +00:00
Kevin Carter eaeb230f83
Add TypeError exception when parsing addresses
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>
2021-06-16 13:37:00 -05:00
ramishra 5a422e4f9e Cleanup utils 1/2
- Removes unused methods in modules
- Refactors methods to not to use swift

Depends-On: https://review.opendev.org/c/openstack/python-tripleoclient/+/779259
Change-Id: I7b04e606c4bf3de7a8c054b65cc0f33e4bb0993b
2021-03-08 19:10:28 +05:30
Sorin Sbarnea 4db1e72654 pylint: fixed conditions
Change-Id: I0e6bcebca55d89bdfb59944bf91f4f9949c95562
2021-01-11 17:14:06 +05:30
Rabi Mishra 315174ce38 Move OvercloudRcAction functionality to utils
This would help us use it in ansible modules and
playbooks.

Change-Id: I7adf08fa31722539de8d536eca34d3500c5ac6e8
2020-04-15 10:02:27 +05:30
Takashi Kajinami 4ae8eb070e Prevent duplicated hosts in overcloudrc no_proxy
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
2020-04-01 16:53:51 +09:00
Zuul 580ac98b4f Merge "Define all api versions in constraints" 2020-02-08 03:24:09 +00:00
Takashi Kajinami 50df840f78 Define all api versions in constraints
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
2020-01-31 12:33:27 +09:00
Takashi Kajinami 24b3c935e8 Remove useless parameters from overcloudrc
Remove COMPUTE_API_VERSION and NOVA_VERSION from overcloudrc,
because we don't have any clients which use these parameters.

Change-Id: Ifa0ea069503171e78d18bef5114310bfc0f57cdb
2020-01-31 09:51:37 +09:00
Alex Schultz 45ab26770c Fix quoting for PYTHONWARNINGS
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
2020-01-02 08:43:31 -07:00
Alex Schultz 5d44457ae1 Quote output values for overcloudrc
If the overcloudrc values have spaces, we need to quote them to ensure
it gets parsed correctly.

Change-Id: I06995dee0ec7eabda16793aa42cae7197c4959f5
Closes-Bug: #1854868
2019-12-02 16:20:30 -07:00
Martin Schuppert f3e3208fb7 Add OS_COMPUTE_API_VERSION to overcloudrc
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
2019-10-07 11:07:51 +02:00
Harald Jensås 460b99aefb Image Uploader - get_undercloud_registry IPv6
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
2019-07-10 15:02:31 +02:00
Sorin Sbarnea 26a3d7e6d0 Fix bashate and flake8 errors
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/
2019-06-14 19:23:53 +01:00
Juan Antonio Osorio Robles 272f5de85b Stop outputting overcloudrc.v3 from workflow
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
2019-03-06 05:40:50 +00:00
Juan Antonio Osorio Robles 7cd99c8d13 Persist region name in overcloudrc
This is useful when deploying a cloud that doesn't use the default
region name.

Change-Id: I21b462f78b32cd334acdf8a5644b70b1f24c8162
Closes-Bug: #1804449
2018-11-21 15:13:02 +02:00
Alex Schultz 14b7b3c3af Drop version from OS_AUTH_URL
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
2018-08-24 21:11:32 +00:00
Dmitry Tantsur acf06a514a Stop setting IRONIC_API_VERSION and OS_BAREMETAL_API_VERSION in overcloudrc
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
2017-11-24 14:55:15 +01:00
Juan Antonio Osorio Robles 7011b33e35 Only generate keystone v3 enabled overcloudrc's
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
2017-10-30 15:48:22 +02:00
Alan Bishop 4e38b28344 Define default Image and Volume API versions in overcloudrc
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
2017-06-14 14:33:23 -04:00
James Slagle 2d376f1367 Fix broken command prompt
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
2017-03-28 16:44:24 -04:00
Julien Danjou f28dd1c620 overcloudrc: set OS_AUTH_TYPE
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
2017-03-11 17:35:20 +00:00
Jenkins a5445f1a18 Merge "Add stack name indicator to overcloudrc" 2017-03-10 13:57:35 +00:00
Alex Schultz 8b2b124871 Add stack name indicator to overcloudrc
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
2017-03-09 10:02:15 -07:00
Dmitry Tantsur 6180c2cdf6 Bump OS_BAREMETAL_API_VERSION to 1.29
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
2017-02-13 10:31:07 +01:00
Dougal Matthews 8aa57e2715 Move the overcloudrc generation from tripleoclient to a Mistral action
This change moves the code from tripleoclient to a new Mistral action.

Partial-Bug: #1615720
Change-Id: I1302dcfa83ee9eed8ebe721536dfc454b5da5b6c
2016-11-30 11:34:15 +00:00