Ansible failed to update OAM floating IP on re-run
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-
failed: [localhost] (item=source /etc/platform/
changed: [localhost] => (item=source /etc/platform/
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
tags: | added: stx.config |
tags: | added: stx.retestneeded |
tags: | removed: stx.retestneeded |
Marking as release gating; related to new ansible deployment feature