Validation Error for High availability

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Validation Error for High availability

L1 Bithead

The error message when commiting is:

  • Validation Error:
  • deviceconfig -> high-availability -> group -> state-synchronization unexpected here
  • deviceconfig -> high-availability -> group -> state-synchronization is invalid

I configured high availability using yaml ansible code. After enabling high availability, and setting up a few stuff, I am facing this error. I am not sure what I am missing. I am following the CIS benchmark for the palo alto firewall.

 

3.1:

- name: Set HA2 enabled

  panos_type_cmd:

    provider: '{{ provider }}'

    xpath: |

      /config/devices/entry[@name='localhost.localdomain']

      /deviceconfig/high-availability

    element: |

      <enabled>yes</enabled>

          <group><group-id>1</group-id></group>

          

- name: Ensure a fully synchronized High Availability peer is configured

  panos_type_cmd:

    provider: '{{ provider }}'

    xpath: |

      /config/devices/entry[@name='localhost.localdomain']

      /deviceconfig/high-availability/group/state-synchronization

    element: |

      <enabled>yes</enabled>

      <transport>udp</transport> #ethernet/ip/udp

    

- name: Set HA2

  panos_type_cmd:

    provider: '{{ provider }}'

    xpath: |

      /config/devices/entry[@name='localhost.localdomain']

      /deviceconfig/high-availability/interface/ha2

    element: |

      <ip-address>1.1.1.2</ip-address>

      <netmask>255.0.0.0</netmask>

      <gateway>1.1.1.1</gateway>


3.2:

- name: Configure Link Monitoring

  panos_type_cmd:

    provider: '{{ provider }}'

    xpath: |

      /config/devices/entry[@name='localhost.localdomain']

      /deviceconfig/high-availability/group/monitoring/link-monitoring

    element: |

      <enabled>yes</enabled>

      <failure-condition>any</failure-condition>

          

- name: Configure Path Monitoring

  panos_type_cmd:

    provider: '{{ provider }}'

    xpath: |

      /config/devices/entry[@name='localhost.localdomain']

      /deviceconfig/high-availability/group/monitoring/path-monitoring

        element: |

          <enabled>yes</enabled>

          <failure-condition>any</failure-condition>


3.3:

- name: Set passive-link-state auto

  panos_type_cmd:

    provider: '{{ provider }}'

      xpath: |

        /config/devices/entry[@name='localhost.localdomain']

        /deviceconfig/high-availability/group/mode/active-passive

      element: |

        <passive-link-state>auto</passive-link-state>

 

- name: Disable Preemptive

  panos_type_cmd:

    provider: '{{ provider }}'

    xpath: |

      /config/devices/entry[@name='localhost.localdomain']

      /deviceconfig/high-availability/group/election-option

    element: |

      <preemptive>no</preemptive>

1 REPLY 1

L2 Linker

Hello, 

Have you configured interfaces dedicated for HA1 and HA2 and the configuration dedicated to HA1?

  • 901 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!