Skip to content

fix: skip Insights deploy-time security upgrade - #372

Merged
santhosh-apphelix-2u merged 1 commit into
masterfrom
insights-disable-deploy-time-security-upgrade
Aug 20, 2026
Merged

fix: skip Insights deploy-time security upgrade#372
santhosh-apphelix-2u merged 1 commit into
masterfrom
insights-disable-deploy-time-security-upgrade

Conversation

@santhosh-apphelix-2u

Copy link
Copy Markdown
Contributor

This PR disables the deploy-time security upgrade step for the Insights playbook by setting SECURITY_UPGRADE_ON_ANSIBLE to False.

The Insights deployment pipeline has not been actively used/validated for a long time. While bringing it back, we found a few environment compatibility issues. The application/deployment is now using Python 3.12, so the Insights VM had to be moved from Ubuntu 20.04 to Ubuntu 22.04 because Ubuntu 20.04 does not provide the required Python 3.12 packages.

After moving to Ubuntu 22.04, the pipeline moved further but started failing during the Ansible security update step. The failure is caused by unattended-upgrade trying to upgrade ubuntu-pro-client, which needs a manual config-file prompt. Since GoCD/Ansible runs non-interactively, it cannot answer that prompt and the deployment fails.

This change does not remove security configuration from the server. It only skips running the immediate unattended-upgrade command during the Insights deployment, so the deployment can continue without getting blocked by a manual package prompt.

Copilot AI lite review requested due to automatic review settings August 20, 2026 05:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Disables the deploy-time unattended-upgrade security-update run during the Insights Ansible deployment by overriding the SECURITY_UPGRADE_ON_ANSIBLE variable for that playbook, preventing non-interactive package upgrade prompts from blocking the pipeline.

Changes:

  • Set SECURITY_UPGRADE_ON_ANSIBLE: False in the Insights playbook to skip the deploy-time security upgrade step.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@santhosh-apphelix-2u
santhosh-apphelix-2u merged commit 59a0edd into master Aug 20, 2026
4 checks passed
@santhosh-apphelix-2u
santhosh-apphelix-2u deleted the insights-disable-deploy-time-security-upgrade branch August 20, 2026 05:52
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.

4 participants