Just like cli-overcloud-node-network-config.yaml,
cli-overcloud-node-growvols.yaml will be run by the "openstack
overcloud node provision" directly after provisioning so that whole
disk images will have their /var volume grown to 100%.
This default growvols behaviour can be overridden by adding an
ansible_playbooks entry which sets different arguments:
- count: 3
name: Controller
ansible_playbooks:
- playbook: /usr/share/ansible/tripleo-playbooks/cli-overcloud-node-growvols.yaml
extra_vars:
growvols_args: /var=50% /srv=50%
Other changes in this commit include:
- Always call run_role_playbooks and pass network_config as an
argument
- Full unit test coverage on run_role_playbooks
- Fix run_role_playbook using os.path.basename instead of os.path.dirname
Change-Id: I085ab9da30e1e1a7d2b9a9f230dd0275bd40480d
Blueprint: whole-disk-default
Depends-On: I0a847ad4077a02a02ad817dd189a6a31c3637a93
Use the defaults from container image prepare to set the default values
for the standalone and undercloud heat api and engine images. This will
allow the default upstream or downstream defaults from the right branch
to be used.
Additionally this patch splits out the ephemeral heat containers to a
special namespace and tag that we use in THT to setup the containers for
the overcloud deploy command on an undercloud.
related-bug: 1931995
Depends-On: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/796617
Change-Id: I55fb9816e2b0a54717938b7a094bde6780811305
Signed-off-by: James Slagle <jslagle@redhat.com>
Signed-off-by: Alex Schultz <aschultz@redhat.com>
Save a copy of the deployment archive to /var/lib/tripleo to avoid
accidental deletion by a normal user.
Change-Id: I9f5dc697dd1cd7895723d4c23ce89a00631b310f
Signed-off-by: James Slagle <jslagle@redhat.com>
We don't have glance in the undercloud by default. Though we
currently fall back to upload locally if glance is not
available. Let's make local upload the default and deprecate
image upload to glance. This would help avoid looking glance
endpoint in the catalog, which would not be available in the
noauth use-case.
We'll drop GlanceClientAdapter when we remove option to enable
glance from the undercloud.
Change-Id: I1991afdb93e7019a9c29ea70e25eec5c062a98d6
This would ensure that we don't build service chains for
not enabled roles and cip would not try to pull images
for services mapped to OS::Heat::None.
Depends-On: https://review.opendev.org/c/openstack/tripleo-common/+/797173
Change-Id: I8f2f7700d0dd5a6c7459c8bc69d7937d72d23687
--network-ports
Deploy network ports during baremetal node provisioning.
--network-config (implies --network-ports)
Deploy network ports and apply the network configuration
by applying the tripleo_network_config role on the nodes.
Change-Id: Ib0c57e57fe5771d914ffd2a93c911cb325152f8b
Distingushing between pre- and post- network config
playbooks is not neccecary. Anything post-network
config can be done using the THT extra config interfaces.
Also, refactor bm post deploy playbooks to utils:
* Add methods in utils module to run playbooks against
nodes provisioned by the baremetal deploy workflow.
* Re-factors the implementation in node provision to use
the new methods in utils module.
Change-Id: Ief11590f3421ffd6fb1b4312c07ce9de48f17c3d
When the --vip-file argument provides the vip_data.yaml
provision Virtual IPs and include the deployed network
environment file in user environments.
Depends-On: https://review.opendev.org/795080
Change-Id: I1e4f8dde9f56311bed8dcbe1b08ade09225fd595
Switches to use ephemeral Heat by default for all overcloud operations
and defaults enable_heat to False in undercloud.conf. Stack data will be
migrated to the ephemeral Heat model (to use the consistent working
directory) as part of the upgrade with the inclusion of the depends-on.
To improve the UX when using ephemeral Heat, "stack resource list" is
now run after "stack failures list" automaticaly in the case of Heat
stack failures.
Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: I22b2ec530f8b888a94a88e1726792a8afef227ab
Heat creates some listener and worker queues before creating
the queue that clients publish message to.
Let's check for the service queue to ensure that all queues
are created before we make any api call.
Also uses a constant for the pod name which is used by
podman for the pod hostname[1].
[1] https://github.com/containers/podman/blob/master/libpod/runtime_pod_infra_linux.go#L34
Change-Id: I7d544dc277bd81a0f6f5f9d5ca15b2bdc99c102f
Make the methods functions, as they do not need the
class properties.
_validate_args:
Move the checks for non environment files outside the
'parsed_args.environment_files' condition. We want to
check for plan_environment_file, networks_file and
answers_file even if no environment files are provided.
_update_args_from_answers_file:
Rename the variable to s/args/parsed_args/ to use the
same name as elsewhere.
Change-Id: I9b541cebf45a155653b39d94994016b44e29f9ac
Make the method a function since it does not need
the class properties. Use list comprehension, and
a shorter more descriptive variable name.
Change-Id: Ieda25ce82808276461c74944befa96faccd95301
In I24612700bcbd3e17685ae7a33a27f38a2055a0fb we added specific
exceptions but in novaless deployment, we hit a EndpointNotFound
exception
Change-Id: I0c6d4e04891cefcc13a5f4294492cbdc76e1f3c3
Ironic uses the order of enabled interfaces to attempt each interface
in turn, so sorting the list will result in an incorrect order in some
cases, which will cause deployment failures on some hardware.
This change sets an explicit order for each interface.
Change-Id: If2740767521453c7adfca56d942db97af13bfaf2
Closes-Bug: #1931161
Tests cover branches of the __init__ and __exit__
methods that were not covered by existing tests.
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I1944a5a9dbd115f49e3fe0514d82af6f98f4556f
When the network file provided as input to the overcloud
deploy command is a network-v2 format file. Provision
networks and include the deployed network environment
file in user environments.
Change-Id: I20da47f8dfbf48f6ee46e60a07c00482545cb444
interactive mode (-i) is required since the db restore makes use of
stdin redirect.
Change-Id: I9668df39ed874949badd2bd169de2eaae0c08a48
Signed-off-by: James Slagle <jslagle@redhat.com>