Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lifecycle: build inventory and wait for instances #6113

Draft
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

fridim
Copy link
Collaborator

@fridim fridim commented Mar 17, 2023

In case there is a lifecycle hook detected in the config:

  • Build the inventory using the default roles
  • Set the ansible_ssh_extra_args for connection
  • wait for hosts using the generic role
  • load vars into all hosts using include_vars.yml

This will simplify config lifecycle hooks.

This changes also patch all the lifecycle hooks across agnosticd:

  • modified: ansible/configs/ocp4-cluster/lifecycle_hook_post_start.yml
  • modified: ansible/configs/ocs4-external-implementation/lifecycle_hook_post_start.yml
  • modified: ansible/configs/sap-integration/lifecycle_hook_post_start.yml
SUMMARY
ISSUE TYPE
  • Bugfix pull request
  • Feature Pull Request

@github-actions github-actions bot added the core label Mar 17, 2023
In case there is a lifecycle hook detected in the config:

- Build the inventory using the default roles
- Set the ansible_ssh_extra_args for connection
- wait for hosts using the generic role
- load vars into all hosts using `include_vars.yml`

This will simplify config lifecycle hooks.

This changes also patch all the lifecycle hooks across agnosticd:

* modified:   ansible/configs/ocp4-cluster/lifecycle_hook_post_start.yml
* modified:   ansible/configs/ocs4-external-implementation/lifecycle_hook_post_start.yml
* modified:   ansible/configs/sap-integration/lifecycle_hook_post_start.yml
Instead of Waiting for instances to be up and then do something,
Do something while the instances are starting.
@perryrivera1
Copy link
Collaborator

Hello...might there be any updates on the status of this PR for https://redhat.service-now.com/surl.do?n=TASK1481707 ?
Feel free to respond next regular business week.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants