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

Problem: pulp_installer CI often fails to test more than 1 OS at a time #377

Merged
merged 1 commit into from Aug 4, 2020

Conversation

mikedep333
Copy link
Member

Solution: Run pulp_database_config's block of task for each OS,
disabling the run_once. Via a private variable.

fixes: #7263
https://pulp.plan.io/issues/7263

Solution: Run pulp_database_config's block of task for each OS,
disabling the run_once. Via a private variable.

fixes: #7263
https://pulp.plan.io/issues/7263
@pulpbot
Copy link
Member

pulpbot commented Aug 3, 2020

Attached issue: https://pulp.plan.io/issues/7263

@@ -36,7 +36,7 @@
no_log: true
when: pulp_default_admin_password is defined and migrate_auth.changed

run_once: true
run_once: "{{ __pulp_database_config_run_once }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like a hack. And it does not support the installation of multiple clusters in the same go. Do you think we can limit the runs by running the tasks per database host delegated to the corresponding first api host?

https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#delegation

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdellweg hopefully, and that seems like a better solution, but:

  1. Right now, CI is broken and I have urgent work to do. I want to address that later.
  2. It seems like it requires the roles to have awareness of the inventory (host groups?), which we currently don't do as an upstream set of roles for users to consume.
  3. It would require role refactoring again, which is moderately time consuming.

@mdellweg
Copy link
Member

mdellweg commented Aug 4, 2020

I see. So this is not going to be a feature, but only a workaround for the very specific way, we test the roles.

@mikedep333
Copy link
Member Author

I see. So this is not going to be a feature, but only a workaround for the very specific way, we test the roles.

Yup, hence why I am prefixing the var with 2 underscores. To indicate it is private.

Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not going to block this one here.
Just two questions: do we want to capture the 'proper' solution in a ticket we can reference here? Do the docs state that you can only perform one pulp installation in one go?

@mikedep333 mikedep333 merged commit c6c3a42 into pulp:master Aug 4, 2020
@mikedep333
Copy link
Member Author

mikedep333 commented Aug 4, 2020

Just two questions: do we want to capture the 'proper' solution in a ticket we can reference here? Do the docs state that you can only perform one pulp installation in one go?

The installer refers to "an installation" as singular. My understanding is that doing multiple installs at once only worked because we never did anything to interfere with it until now.

I believe we should discuss this at the installer meeting.

@mikedep333 mikedep333 deleted the 7263_CI_multiple_OS branch August 4, 2020 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants