LINBIT / drbd-utils

DRBD userspace utilities (for 9.x, 8.4, 8.3)
GNU General Public License v2.0
78 stars 46 forks source link

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 #18

Closed MarkLTZ closed 2 years ago

MarkLTZ commented 2 years ago

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:

  1. Install new CentOS Stream 8 server
  2. Install and configure drbd
  3. Install pacemaker
  4. Try to configure drbd resource

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.

MarkLTZ commented 2 years ago

Please take a look at

https://github.com/ClusterLabs/pcs/pull/443/files

https://github.com/ClusterLabs/pcs/issues/441

Thanks

rck commented 2 years ago

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?

rck commented 2 years ago

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.