- fixes two issues identified by newer flake8
- upgrades flake8 and keeps it pinned
- removes hacking as this is no longer needed, as pre-commit does
its own pinning.
- enables us to easily add other linters, pylint would come in
The validator run command will now raise a CommandError exception if one
or more validations have failed.
This patch is also aligning the result table to left in order to be
compliant with other table output.
Signed-off-by: Gael Chamoulaud (Strider) <email@example.com>
Kernel and ramdisk images are found nonexistent when "file://"
is prepended to the image path, so replace it with empty
string only when checking the existence of the image
Signed-off-by: Yadnesh Kulkarni <firstname.lastname@example.org>
We can set the heat parameters in the client itslef and there
would be no need to update plan environment and can get rid of
the ansible tasks for those.
Same applies for RootStackName.
Also, removes multiple redundant calls to _update_parameters()
This file, and its tests, are not useful for tripleo so we're
removing because they're now becoming problematic.
Signed-off-by: Kevin Carter <email@example.com>
Fix debug logging for buildah bud
Pass the application debug option to the called build process as well
Co-authored-by: Bogdan Dobrelya <firstname.lastname@example.org>
Since we are using mistral to get the list of the plan
in TripleO, we require authentication for the clients
otherwise the validation Run won't work due to unable
to get mistral context.
This patch handle the authentication if provided by the user and
environment, if no authentifcation, since we cant generate dynamic
inventory, it checks if a static is passed with the CLI, if not it
raised an exception.
If authentication is provided and succeed, then tripleoclient can
safely call the plan_management to check and ensure if the plan is
Currently, when building container images, we are overriding the ubi
image repos with the repos configured in the host. Effectively, this is
removing ubi repo config from the image build environment which most of
the times is not a problem as centos is on sync with ubi, but in some
cases as after RHEL 8.3 release, ubi is ahead of CentOS and need
packages from the ubi repo itself.
This patch is bind mounting the repos config from build host in
distro.repos.d instead of yum.repos.d. In that way, both the repos
configured by default in the image (ubi repos) and the ones in the host
ubi-8 based jobs uses tcib method of building containers
and same method also used by content-provider jobs.
We nearly migrated to content-provider, this jobs
are no longer in use.
Signed-off-by: Amol Kahat <email@example.com>
`overcloud cell export` command does not have option
to provide from where to copy export data if config-download
data is exported to custom directory.
This change add the option for `overcloud cell export` command
to provide custom directory.
- Replace logging with logging from oslo_log
In order to have timestamps as well as other features this patch
replaces python logging to extended logging from oslo_log. This allows
to produce timestamps in output messages
- Replace some prints with log.info to have timing information in logs
When using net-config-override, objects can exist without a 'name' key.
The validation fails with KeyError: 'name'. This change only considers
objects with 'name' key present.