Ansible failure on IPV6 address

Bug #1830113 reported by Anujeyan Manokeran
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Tee Ngo

Bug Description

Brief Description
-----------------.
   Ansbile validation fails on IPV6 as below. Below localhost was updated with management and cluster host with IPV6 address.

Validation Error

TASK [validate-config : Fail if IPv6 management on simplex] ******************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'ipv6_addressing' failed. The error was: template error while templating string: expected token 'end of statement block', got ':'. String: {% if abde::/64 %} True {% else %} False {% endif %}\n\nThe error appears to have been in '/usr/share/ansible/stx-ansible/playbooks/bootstrap/roles/validate-config/tasks/main.yml': line 124, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - block:\n - name: Fail if IPv6 management on simplex\n ^ here\n"}

PLAY RECAP *******************************************************************************************************************************************************************************
localhost : ok=37 changed=9 unreachable=0 failed=1

-15:~$ cat localhost.yml
system_mode: duplex
pxeboot_subnet: 192.168.202.0/24
management_subnet: abde::/64
cluster_host_subnet: aefd::/64
external_oam_subnet: 128.224.150.0/23
external_oam_gateway_address: 128.224.150.1
external_oam_floating_address: 128.224.151.230
external_oam_node_0_address: 128.224.150.140
external_oam_node_1_address: 128.224.150.180
admin_password: Li69nux*
ansible_become_pass: Li69nux*
Severity
--------.
Major
Steps to Reproduce
------------------
1. Install controller
2. As per description create localhost.yml
3. Execute ansible-playbook /usr/share/ansible/stx-ansible/playbooks/bootstrap/bootstrap.yml -e "override_files_dir=/home/wrsroot ansible_become_pass=Li69nux*"

4. As per description failure was seen.
Expected Behavior
------------------
No validation failure as per localhost.yml

Actual Behavior
----------------
As per description validation failure as per description.
Reproducibility
---------------
100% reproducible.
System Configuration
--------------------
Regular system
Branch/Pull Time/Commit
-----------------------
BUILD_DATE="2019-05-21 14:16:14 -0400"
Last Pass
---------
Never executed before.
Timestamp/Logs
--------------
n/a
Test Activity
-------------
Feature test

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Please retest with the cluster network still on IPv4. IPv6 on the cluster network is not done yet.
This means that the cluster network cannot be shared with the management network

Changed in starlingx:
status: New → Incomplete
assignee: nobody → Anujeyan Manokeran (anujeyan)
Revision history for this message
Matt Peters (mpeters-wrs) wrote :

I'm running into the same issue while testing changes to support IPv6. Therefore this looks to be a valid issue for Ansible IPv6 deployments.

summary: - Ansibile failure on IPV6 address
+ Ansible failure on IPV6 address
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as release gating; based on Matt's confirmation that this is an issue related to ansible deployment.

Changed in starlingx:
importance: Undecided → High
assignee: Anujeyan Manokeran (anujeyan) → Tee Ngo (teewrs)
status: Incomplete → Triaged
tags: added: stx.2.0 stx.config
tags: added: stx.retestneeded
Changed in starlingx:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/660847
Committed: https://git.openstack.org/cgit/starlingx/config/commit/?id=62ef32324605e62e8f11edf518180e3e06c87920
Submitter: Zuul
Branch: master

commit 62ef32324605e62e8f11edf518180e3e06c87920
Author: Tee Ngo <email address hidden>
Date: Wed May 22 18:04:10 2019 -0400

    Fix a template issue related to IPv6 validation

    This commit resolves a template issue due to a flawed IPv6
    addressing condition check. Tasks related to DNS server ping
    test are also removed as many DNS servers may not respond to
    ICMP messages especially when they are behind the firewall.

    Closes-Bug: 1830113
    Change-Id: Ie62c102ba0a6965ff675209f9d98004038007899
    Signed-off-by: Tee Ngo <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
tags: removed: stx.retestneeded
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.