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

Make sonar plugin installer more idempotent #361

Conversation

InfoSec812
Copy link
Contributor

What does this PR do?

Resolves #360

How should this be tested?

See the README in the add-sonar-plugin role

Is there a relevant Issue open for this?

#360

Other Relevant info, PRs, etc.

M/A

People to notify

cc: @redhat-cop/infra-ansible @oybed @tylerauerbeck

command: "oc rollout latest --namespace={{ namespace }} {{ pod_prefix }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

We have seen this failing at random times. A few suggestions:

  1. Before starting the steps above, wait for the current deployment to be "stable" to ensure successful install of plugins
  2. Only do another "rollout" if the plugin was successfully installed above
  3. Consider using a different approach than "rollout" since you're not really changing the image - i.e.: scale-down/scale-up, check for successful scale down/up, etc. to avoid a failed "rollout"

@oybed
Copy link
Contributor

oybed commented Feb 24, 2020

Per chat convo - closing as moving in different direction going forward

@oybed oybed closed this Feb 24, 2020
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.

SonarQube 3rd-party plugin installer is not idempotent
2 participants