Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

High avalilability time-client clone #72

Description

@santos-lucas

When using defining the ha resources for the HA as on the documentation, the following error happens:

TASK [high_availability : command █ Add resources to cluster] **********************************************************************
Monday 06 June 2022 14:34:54 -0500 (0:00:00.679) 0:00:12.333 ***********
changed: [management1 -> management1] => (item=resource : vip-time-server)
changed: [management1 -> management1] => (item=resource : time-server-symlink)
changed: [management1 -> management1] => (item=resource : service-time-server)
failed: [management1 -> management1] (item=resource : time-client-symlink) => changed=false
ansible_loop_var: item
cmd:

  • pcs
  • -f
  • /root/ha_config.ansible.xml
  • resource
  • create
  • time-client-symlink
  • ocf:heartbeat:symlink
  • target=/etc/chrony-client.conf
  • link=/etc/chrony.conf
  • clone
  • interleave=true
  • --group
  • time-client
    delta: '0:00:00.378366'
    end: '2022-06-06 14:34:58.004441'
    failed_when_result: true
    item:
  • colocations:
    • score: -INFINITY
      slave: time-server
      group: time-client
      resources:
    • arguments: target=/etc/chrony-client.conf link=/etc/chrony.conf clone interleave=true
      id: time-client-symlink
      type: ocf:heartbeat:symlink
    • id: service-time-client
      type: systemd:chronyd
  • arguments: target=/etc/chrony-client.conf link=/etc/chrony.conf clone interleave=true
    id: time-client-symlink
    type: ocf:heartbeat:symlink
    msg: non-zero return code
    rc: 1
    start: '2022-06-06 14:34:57.626075'
    stderr: 'Error: you can specify only one of clone, promotable, bundle or --group'
    stderr_lines:
    stdout: ''
    stdout_lines:
    changed: [management1 -> management1] => (item=resource : service-time-client)
    ok: [management1 -> management1] => (item=resource : vip-nginx)
    changed: [management1 -> management1] => (item=resource : service-nginx)

As I only have 2 servers on the HA, I Just removed the "clone interleave=true" statement so the client will be only in the second server.

I will take a look deeper soon to try to solve this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions