Pacemaker resource agent ocf:heartbeat:oralsnr: tns_admin attribute requires unique

Solution Unverified - Updated -

Issue

  • Since pcs-0.9.167-3.el7.x86_64 the tns_admin unique requirement is enforced.
  • Creating a resource with a duplicate tns_admin will fail:

    # pcs resource create rs_oraclsnr_01 ocf:heartbeat:oralsnr home=/u021/app/oracle/product/12.1.0.2 listener=LISTENER_01 sid=01 tns_admin=/network/admin user=oraclp op methods interval=0s timeout=5 monitor interval=10 timeout=30 start interval=0s timeout=120 stop interval=0s timeout=120
    # pcs resource create rs_oraclsnr_02 ocf:heartbeat:oralsnr home=/u01/app/oracle/product/12.1.0.2 listener=LISTENER_02 sid=02 tns_admin=/network/admin user=oraclp op methods interval=0s timeout=5s monitor interval=10 timeout=30 start interval=0s timeout=120 stop interval=0s timeout=120
    Error: Value '/network/admin' of option 'tns_admin' is not unique across 'ocf:heartbeat:oralsnr' resources. Following resources are configured with the same value of the instance attribute: 'rs_oraclsnr_01', use --force to override
    

Environment

  • Red Hat Enterprise Linux 7
    • pcs-0.9.167-3.el7.x86_64 or later
  • Red Hat Enterprise Linux 8
  • High Availability add-ons
  • resource-agents (ocf:heartbeat:oralsnr resource)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content