Closed MarkLTZ closed 2 years ago
Please take a look at
https://github.com/ClusterLabs/pcs/pull/443/files
https://github.com/ClusterLabs/pcs/issues/441
Thanks
I think this was fixed here some time ago, but we did not do a release since then: https://github.com/LINBIT/drbd-utils/commit/992df210ab07718779626fc2646b74c00f30cb1e
Can you confirm this fixes the issue for you?
Very well, without feedback I assume this actually got fixed twice, once in drbd-utils
and in pcs
. There will be a new utils release later this week that contains the mentioned fix.
Description of problem:
Configuring DRBD on Pacemaker cluster I got this error:
[root@node1 setup]# pcs resource create drbd ocf:linbit:drbd drbd_resource=resource0 promotable promoted-max=1 promoted-node-max=1 clone-max=3 clone-node-max=1 notify=true Error: Agent 'ocf:linbit:drbd' is not installed or does not provide valid metadata: Element content failed to validate content, line 117, use --force to override Error: Errors have occurred, therefore pcs is unable to continue
Version-Release number of selected component (if applicable):
[root@node1 ~]# cat /etc/os-release NAME="CentOS Stream" VERSION="8" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Stream 8" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://centos.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
[root@node1 ~]# rpm -q pcs pcs-0.10.12-1.el8.x86_64
[root@node1 ~]# rpm -q drbd drbd90-utils-9.19.1-1.el8.elrepo.x86_64
How reproducible:
[root@node1 ~]# pcs resource create drbd ocf:linbit:drbd drbd_resource=resource0 promotable promoted-max=1 promoted-node-max=1 clone-max=3 clone-node-max=1 notify=true
Steps to Reproduce:
Actual results:
Error: Agent 'ocf:linbit:drbd' is not installed or does not provide valid metadata: Element content failed to validate content, line 117, use --force to override Error: Errors have occurred, therefore pcs is unable to continue
Expected results:
Cluster resource created.
Additional info:
Downgrading to pcs-0.10.11-1.el8 the issue is not present.