Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian10 pacemaker group resources #20

Open
kotireddy478 opened this issue Mar 3, 2020 · 2 comments
Open

Debian10 pacemaker group resources #20

kotireddy478 opened this issue Mar 3, 2020 · 2 comments

Comments

@kotireddy478
Copy link

Hi,

Thank you so much for the Anisble role. It's really helpful.

I'm trying to setup Pacemaker cluster on Debian 10 and with little tweaks it's working fine.

We would like to add 2 Virtual IPs and a service for squid. I followed the taks_from: group but post tasks - Verify cluster configuration is failing with CIB did not pass DTD/schema validation.

We trying to setup something like http://wiki.stocksy.co.uk/wiki/High_Availability_IP_Addresses_in_Debian

Could you please guide how to configure our requirement please?

@kotireddy478
Copy link
Author

configuration:

  • name: Configure squid group resource
    include_role:
    name: pacemaker
    tasks_from: group
    vars:
    pcmk_group:
    id: squid_group
    resources:
    id: squid-ip1
    class: ocf
    provider: heartbeat
    type: IPaddr2
    options:
    ip: 192.168.69.200
    cidr_netmask: 24
    op:
    - name: monitor
    interval: 5s
    id: squid-ip2
    class: ocf
    provider: heartbeat
    type: IPaddr2
    options:
    ip: 192.168.69.250
    cidr_netmask: 24
    op:
    - name: monitor
    interval: 5s
    id: squid
    type: clone
    class: service
    type: squid
    op:
    - name: monitor
    interval: 5s
    • name: Set up constraints
      include_role:
      name: pacemaker
      tasks_from: constraints
      vars:
      pcmk_constraints:
      - type: order
      first: squid-ip
      then: squid
      Error:
      FAILED! => {"changed": false, "cmd": ["crm_verify", "--verbose", "--xml-file=/tmp/ansible.0EKtnV.xml"], "delta": "0:00:00.034566", "end": "2020-03-03 10:03:47.963462", "msg": "non-zero return code", "rc": 78, "start": "2020-03-03 10:03:47.928896", "stderr": "/tmp/ansible.0EKtnV.xml:17: element primitive: Relax-NG validity error : Invalid sequence in interleave\n/tmp/ansible.0EKtnV.xml:17: element primitive: Relax-NG validity error : Element primitive failed to validate content\n/tmp/ansible.0EKtnV.xml:17: element group: Relax-NG validity error : Invalid sequence in interleave\n/tmp/ansible.0EKtnV.xml:17: element group: Relax-NG validity error : Element group failed to validate content\n/tmp/ansible.0EKtnV.xml:17: element group: Relax-NG validity error : Element resources has extra content: group\n(main) \terror: CIB did not pass schema validation\nErrors found during check: config not valid", "stderr_lines": ["/tmp/ansible.0EKtnV.xml:17: element primitive: Relax-NG validity error : Invalid sequence in interleave", "/tmp/ansible.0EKtnV.xml:17: element primitive: Relax-NG validity error : Element primitive failed to validate content", "/tmp/ansible.0EKtnV.xml:17: element group: Relax-NG validity error : Invalid sequence in interleave", "/tmp/ansible.0EKtnV.xml:17: element group: Relax-NG validity error : Element group failed to validate content", "/tmp/ansible.0EKtnV.xml:17: element group: Relax-NG validity error : Element resources has extra content: group", "(main) \terror: CIB did not pass schema validation", "Errors found during check: config not valid"], "stdout": "", "stdout_lines": []}

@wnukadrian
Copy link

Any update status?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants