Hacluster-pacemaker missing pacemaker-cli-utils package on debian

Bug #1934788 reported by Michal Arbet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Michal Arbet
Wallaby
Fix Released
High
Unassigned
Xena
Fix Released
High
Michal Arbet

Bug Description

Hi,

Hacluster-pacemaker debian binary image is missing pacemaker-cli-utils as you can see below from k-a log :

fatal: [compute0 -> controller0]: FAILED! => {"changed": true, "cmd": "docker exec hacluster_pacemaker cibadmin --modify --scope resources -X '\n <resources>\n <primitive id=\"compute0\" class=\"ocf\" provider=\"pacemaker\" type=\"remote\">\n <instance_attributes id=\"compute0-instance_attributes\">\n <nvpair id=\"compute0-instance_attributes-server\" name=\"server\" value=\"192.168.205.20\"/>\n </instance_attributes>\n <operations>\n <op id=\"compute0-monitor\" name=\"monitor\" interval=\"60\" timeout=\"30\"/>\n </operations>\n </primitive>\n </resources>\n'\n", "delta": "0:00:00.236358", "end": "2021-07-06 10:32:56.593826", "msg": "non-zero return code", "rc": 126, "start": "2021-07-06 10:32:56.357468", "stderr": "", "stderr_lines": [], "stdout": "OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: \"cibadmin\": executable file not found in $PATH: unknown", "stdout_lines": ["OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: \"cibadmin\": executable file not found in $PATH: unknown"]}
fatal: [compute1 -> controller0]: FAILED! => {"changed": true, "cmd": "docker exec hacluster_pacemaker cibadmin --modify --scope resources -X '\n <resources>\n <primitive id=\"compute1\" class=\"ocf\" provider=\"pacemaker\" type=\"remote\">\n <instance_attributes id=\"compute1-instance_attributes\">\n <nvpair id=\"compute1-instance_attributes-server\" name=\"server\" value=\"192.168.205.21\"/>\n </instance_attributes>\n <operations>\n <op id=\"compute1-monitor\" name=\"monitor\" interval=\"60\" timeout=\"30\"/>\n </operations>\n </primitive>\n </resources>\n'\n", "delta": "0:00:00.242364", "end": "2021-07-06 10:32:56.799651", "msg": "non-zero return code", "rc": 126, "start": "2021-07-06 10:32:56.557287", "stderr": "", "stderr_lines": [], "stdout": "OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: \"cibadmin\": executable file not found in $PATH: unknown", "stdout_lines": ["OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: \"cibadmin\": executable file not found in $PATH: unknown"]}

Changed in kolla:
assignee: nobody → Michal Arbet (michalarbet)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/799782

Changed in kolla:
status: New → In Progress
Mark Goddard (mgoddard)
Changed in kolla:
importance: Undecided → Medium
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

As discussed in the review, other systems installed pacemaker-cli but not Debian (due to a different dep chain). CLI is required in the pacemaker container to control the cluster via kolla-ansible.

/triaged

summary: - Hacluster-pacemaker missing pacemaker-cli-utils package on debian binary
+ Hacluster-pacemaker missing pacemaker-cli-utils package on debian
Changed in kolla:
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/799782
Committed: https://opendev.org/openstack/kolla/commit/535c861d99aa0c07ea130d1f30cabb6af3db7ab7
Submitter: "Zuul (22348)"
Branch: master

commit 535c861d99aa0c07ea130d1f30cabb6af3db7ab7
Author: Michal Arbet <email address hidden>
Date: Wed Jul 7 11:41:04 2021 +0200

    Fix missing pacemaker-cli-utils in Debian hacluster images

    Hacluster-pacemaker images need to have pacemaker cli utils
    available in all distros and they are provided by pacemaker-cli-utils
    package in Debuntu systems. Due to a different dependency chain
    this package is not installed in Debian. This package is also
    *recommended* dependency of pacemaker and pacemaker-remote in both
    Debian/Ubuntu systems, but unfortunatelly it is not installed
    on Debian via APT by default.

    This patch adding this package to list of package to be installed
    on Debian/Ubuntu systems for both hacluster-pacemaker (required)
    and hacluster-pacemaker-remote (to ease with debugging).

    Closes-Bug: #1934788
    Change-Id: I055086ab4af37878e81844f1055bc48d84ae9945

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/kolla/+/803189

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/803189
Committed: https://opendev.org/openstack/kolla/commit/ac18704dd53e92b5ce5fb4312b46e06da155e6f8
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit ac18704dd53e92b5ce5fb4312b46e06da155e6f8
Author: Michal Arbet <email address hidden>
Date: Wed Jul 7 11:41:04 2021 +0200

    Fix missing pacemaker-cli-utils in Debian hacluster images

    Hacluster-pacemaker images need to have pacemaker cli utils
    available in all distros and they are provided by pacemaker-cli-utils
    package in Debuntu systems. Due to a different dependency chain
    this package is not installed in Debian. This package is also
    *recommended* dependency of pacemaker and pacemaker-remote in both
    Debian/Ubuntu systems, but unfortunatelly it is not installed
    on Debian via APT by default.

    This patch adding this package to list of package to be installed
    on Debian/Ubuntu systems for both hacluster-pacemaker (required)
    and hacluster-pacemaker-remote (to ease with debugging).

    Closes-Bug: #1934788
    Change-Id: I055086ab4af37878e81844f1055bc48d84ae9945
    (cherry picked from commit 535c861d99aa0c07ea130d1f30cabb6af3db7ab7)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 13.0.0.0rc1

This issue was fixed in the openstack/kolla 13.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 12.1.0

This issue was fixed in the openstack/kolla 12.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.