You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There is an issue with haproxy exporter removal when executing the upgrade command twice.
After the first upgrade, the service is already removed, but after executing the upgrade command again, it tries to remove the nonexistent service.
The condition used in task load_balancer | Remove haproxy-exporter is as follows:
when: ansible_facts.services["prometheus-haproxy-exporter.service"] is defined
But after ansible update, prometheus-haproxy-exporter.service is still visible in ansible_facts.services but it's status is not-found, which causes some tasks to be re-executed.
14:58:56 INFO cli.src.ansible.AnsibleCommand - "prometheus-haproxy-exporter.service": {
14:58:56 INFO cli.src.ansible.AnsibleCommand - "name": "prometheus-haproxy-exporter.service",
14:58:56 INFO cli.src.ansible.AnsibleCommand - "source": "systemd",
14:58:56 INFO cli.src.ansible.AnsibleCommand - "state": "stopped",
14:58:56 INFO cli.src.ansible.AnsibleCommand - "status": "not-found"
14:58:56 INFO cli.src.ansible.AnsibleCommand - },
This means that the condition is insufficient and must be extended (similar to #2962).
How to reproduce
Steps to reproduce the behavior:
deploy v1.0.x cluster with load balancer and montoring
upgrade to 2.0.0dev
upgrade to 2.0.0dev
Expected behavior
The upgrade should be successful.
Config files
Environment
Cloud provider: [all]
OS: [all]
epicli version: 2.0.0dev
Additional context
Add any other context about the problem here.
DoD checklist
Changelog
updated
not needed
COMPONENTS.md
updated
not needed
Schema
updated
not needed
Backport tasks
created
not needed
Documentation
added
updated
not needed
Feature has automated tests
Automated tests passed (QA pipelines)
apply
upgrade
backup/restore
Idempotency tested
All conversations in PR resolved
The text was updated successfully, but these errors were encountered:
Describe the bug
There is an issue with haproxy exporter removal when executing the upgrade command twice.
After the first upgrade, the service is already removed, but after executing the upgrade command again, it tries to remove the nonexistent service.
The condition used in task
load_balancer | Remove haproxy-exporter
is as follows:But after ansible update,
prometheus-haproxy-exporter.service
is still visible in ansible_facts.services but it's status isnot-found
, which causes some tasks to be re-executed.This means that the condition is insufficient and must be extended (similar to #2962).
How to reproduce
Steps to reproduce the behavior:
Expected behavior
The upgrade should be successful.
Config files
Environment
epicli version: 2.0.0dev
Additional context
Add any other context about the problem here.
DoD checklist
The text was updated successfully, but these errors were encountered: