Ansible failed to update OAM floating IP on re-run

Bug #1829419 reported by Anujeyan Manokeran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Tee Ngo

Bug Description

Brief Description
-----------------
             During the Ansible run it was observed when OAM floating IP address was changed and re-executed it fails on system host-if-add. Here it allow the user to correct the OAM floating ip address. Below logs shows the error.

TASK [bringup-essential-services : Add loopback interface] *****************************************************************************************************
failed: [localhost] (item=source /etc/platform/openrc; system host-if-add controller-0 lo virtual none lo -c platform --networks mgmt -m 1500) => {"changed": true, "cmd": "source /etc/platform/openrc; system host-if-add controller-0 lo virtual none lo -c platform --networks mgmt -m 1500", "delta": "0:00:01.940350", "end": "2019-05-16 15:57:00.243881", "item": "source /etc/platform/openrc; system host-if-add controller-0 lo virtual none lo -c platform --networks mgmt -m 1500", "msg": "non-zero return code", "rc": 1, "start": "2019-05-16 15:56:58.303531", "stderr": "Name must be unique.", "stderr_lines": ["Name must be unique."], "stdout": "", "stdout_lines": []}
changed: [localhost] => (item=source /etc/platform/openrc; system host-if-modify controller-0 -c platform --networks cluster-host lo)
failed: [localhost] (item=ip addr add 192.168.206.3/24 brd 192.168.206.255 dev lo scope host label lo:5) => {"changed": true, "cmd": "ip addr add 192.168.206.3/24 brd 192.168.206.255 dev lo scope host label lo:5", "delta": "0:00:00.002829", "end": "2019-05-16 15:57:03.457617", "item": "ip addr add 192.168.206.3/24 brd 192.168.206.255 dev lo scope host label lo:5", "msg": "non-zero return code", "rc": 2, "start": "2019-05-16 15:57:03.454788", "stderr": "RTNETLINK answers: File exists", "stderr_lines": ["RTNETLINK answers: File exists"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=ip addr add 192.168.204.3/24 brd 192.168.204.255 dev lo scope host label lo:1) => {"changed": true, "cmd": "ip addr add 192.168.204.3/24 brd 192.168.204.255 dev lo scope host label lo:1", "delta": "0:00:00.003095", "end": "2019-05-16 15:57:03.579251", "item": "ip addr add 192.168.204.3/24 brd 192.168.204.255 dev lo scope host label lo:1", "msg": "non-zero return code", "rc": 2, "start": "2019-05-16 15:57:03.576156", "stderr": "RTNETLINK answers: File exists", "stderr_lines": ["RTNETLINK answers: File exists"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=ip addr add 169.254.202.2/24 dev lo scope host) => {"changed": true, "cmd": "ip addr add 169.254.202.2/24 dev lo scope host", "delta": "0:00:00.002926", "end": "2019-05-16 15:57:03.695980", "item": "ip addr add 169.254.202.2/24 dev lo scope host", "msg": "non-zero return code", "rc": 2, "start": "2019-05-16 15:57:03.693054", "stderr": "RTNETLINK answers: File exists", "stderr_lines": ["RTNETLINK answers: File exists"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=ip addr add 192.168.206.2/24 dev lo scope host) => {"changed": true, "cmd": "ip addr add 192.168.206.2/24 dev lo scope host", "delta": "0:00:00.003256", "end": "2019-05-16 15:57:03.816694", "item": "ip addr add 192.168.206.2/24 dev lo scope host", "msg": "non-zero return code", "rc": 2, "start": "2019-05-16 15:57:03.813438", "stderr": "RTNETLINK answers: File exists", "stderr_lines": ["RTNETLINK answers: File exists"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=ip addr add 192.168.204.2/24 dev lo scope host) => {"changed": true, "cmd": "ip addr add 192.168.204.2/24 dev lo scope host", "delta": "0:00:00.003157", "end": "2019-05-16 15:57:03.931935", "item": "ip addr add 192.168.204.2/24 dev lo scope host", "msg": "non-zero return code", "rc": 2, "start": "2019-05-16 15:57:03.928778", "stderr": "RTNETLINK answers: File exists", "stderr_lines": ["RTNETLINK answers: File exists"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=ip addr add 192.168.204.5/24 dev lo scope host) => {"changed": true, "cmd": "ip addr add 192.168.204.5/24 dev lo scope host", "delta": "0:00:00.003000", "end": "2019-05-16 15:57:04.085726", "item": "ip addr add 192.168.204.5/24 dev lo scope host", "msg": "non-zero return code", "rc": 2, "start": "2019-05-16 15:57:04.082726", "stderr": "RTNETLINK answers: File exists", "stderr_lines": ["RTNETLINK answers: File exists"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=ip addr add 192.168.204.6/24 dev lo scope host) => {"changed": true, "cmd": "ip addr add 192.168.204.6/24 dev lo scope host", "delta": "0:00:00.002675", "end": "2019-05-16 15:57:04.197593", "item": "ip addr add 192.168.204.6/24 dev lo scope host", "msg": "non-zero return code", "rc": 2, "start": "2019-05-16 15:57:04.194918", "stderr": "RTNETLINK answers: File exists", "stderr_lines": ["RTNETLINK answers: File exists"], "stdout": "", "stdout_lines": []}

PLAY RECAP *****************************************************************************************************************************************************
localhost : ok=89 changed=17 unreachable=0 failed=1

Severity
--------
Major
Steps to Reproduce
------------------
1. Execute with wrong floating ip in .yml file example 128.224.151.183 . Fully run successfully.
2. Execute with correct floating ip example 128.224.151.83 failure as description .

Expected Behavior
------------------
No failure able to change the ip address.
Actual Behavior
----------------
As per description reject on cli.
Reproducibility
---------------.
Yes
System Configuration
--------------------
regular system
Branch/Pull Time/Commit
-----------------------
20190508T013000Z
Last Pass
---------
N/A
Timestamp/Logs
--------------

Test Activity
-------------
Regression test

Ghada Khalil (gkhalil)
tags: added: stx.config
Numan Waheed (nwaheed)
tags: added: stx.retestneeded
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as release gating; related to new ansible deployment feature

Changed in starlingx:
importance: Undecided → Medium
assignee: nobody → Tee Ngo (teewrs)
tags: added: stx.2.0
Changed in starlingx:
status: New → Triaged
Revision history for this message
Tee Ngo (teewrs) wrote :

This issue will be resolved once commit: https://review.opendev.org/658174 is merged.

Revision history for this message
Tee Ngo (teewrs) wrote :

The fix for this issue has long been delivered. Please verify and close. Thx!

Changed in starlingx:
status: Triaged → 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.