Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1481184 Details for
Bug 1582685
[IPsrcaddr] Local route table not updating
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
test cases
IPsrcaddr_1582685_testcases.txt (text/plain), 8.92 KB, created by
Reid Wahl
on 2018-09-06 01:05:56 UTC
(
hide
)
Description:
test cases
Filename:
MIME Type:
Creator:
Reid Wahl
Created:
2018-09-06 01:05:56 UTC
Size:
8.92 KB
patch
obsolete
># pcs resource show ip_grp > Group: ip_grp > Resource: vip1 (class=ocf provider=heartbeat type=IPaddr2) > Attributes: ip=192.168.22.61 > Operations: monitor interval=10s timeout=20s (vip1-monitor-interval-10s) > start interval=0s timeout=20s (vip1-start-interval-0s) > stop interval=0s timeout=20s (vip1-stop-interval-0s) > Resource: vip2 (class=ocf provider=heartbeat type=IPaddr2) > Attributes: ip=192.168.22.62 > Operations: monitor interval=10s timeout=20s (vip2-monitor-interval-10s) > start interval=0s timeout=20s (vip2-start-interval-0s) > stop interval=0s timeout=20s (vip2-stop-interval-0s) > Resource: srcvip1_default_only (class=ocf provider=heartbeat type=IPsrcaddr) > Attributes: ipaddress=192.168.22.61 > Meta Attrs: target-role=Stopped > Operations: monitor interval=10s timeout=20s (srcvip1_default_only-monitor-interval-10s) > start interval=0s timeout=20s (srcvip1_default_only-start-interval-0s) > stop interval=0s timeout=20s (srcvip1_default_only-stop-interval-0s) > Resource: srcvip1_local_only (class=ocf provider=heartbeat type=IPsrcaddr) > Attributes: ipaddress=192.168.22.61 update_default_route=false update_local_route=true > Meta Attrs: target-role=Stopped > Operations: monitor interval=10s timeout=20s (srcvip1_local_only-monitor-interval-10s) > start interval=0s timeout=20s (srcvip1_local_only-start-interval-0s) > stop interval=0s timeout=20s (srcvip1_local_only-stop-interval-0s) > Resource: srcvip1_default_and_local (class=ocf provider=heartbeat type=IPsrcaddr) > Attributes: ipaddress=192.168.22.61 update_local_route=true > Meta Attrs: target-role=Stopped > Operations: monitor interval=10s timeout=20s (srcvip1_default_and_local-monitor-interval-10s) > start interval=0s timeout=20s (srcvip1_default_and_local-start-interval-0s) > stop interval=0s timeout=20s (srcvip1_default_and_local-stop-interval-0s) > Resource: srcvip2_local_only (class=ocf provider=heartbeat type=IPsrcaddr) > Attributes: ipaddress=192.168.22.62 update_local_route=true > Meta Attrs: target-role=Stopped > Operations: monitor interval=10s timeout=20s (srcvip2_local_only-monitor-interval-10s) > start interval=0s timeout=20s (srcvip2_local_only-start-interval-0s) > stop interval=0s timeout=20s (srcvip2_local_only-stop-interval-0s) > > ># ip -o addr | grep eth0 | grep 'inet ' >2: eth0 inet 192.168.22.22/24 brd 192.168.22.255 scope global noprefixroute dynamic eth0\ valid_lft 3423sec preferred_lft 3423sec >2: eth0 inet 192.168.22.61/24 brd 192.168.22.255 scope global secondary eth0\ valid_lft forever preferred_lft forever >2: eth0 inet 192.168.22.62/24 brd 192.168.22.255 scope global secondary eth0\ valid_lft forever preferred_lft forever > ># # Show initial state of relevant routes. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.22 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.22 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.22 > > >-------------------- > >Test cases below do not cover all possible scenarios, especially failures due to misconfiguration. They demonstrate the intended use cases working properly. > >Note that configuring multiple instances without disabling "update_default_route" on all but one of them will cause a monitor failure through the existing (pre-feature) script logic. The agent detects that the configured ipaddress is no longer the preferred source IP; it has been effectively overwritten by another resource. This case is omitted below, but it's inherent in the monitor logic. > >----- > >TEST CASE 1: Update default route only >This matches the pre-feature behavior and will still be the default behavior, in the absence of any explicit "update_*_route" options. > ># pcs resource debug-start srcvip1_default_only >Operation start for srcvip1_default_only (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) > ># # Default route and "our subnet" route (not sure of the technical term) ARE updated to use the .61 VIP as source IP. ># # Local route is NOT updated to use the .61 VIP as the source IP. It still uses the .22 primary IP. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp src 192.168.22.61 metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.61 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.22 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.22 > ># pcs resource debug-stop srcvip1_default_only >Operation stop for srcvip1_default_only (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) > ># # Back to the initial state after stopping resource. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.22 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.22 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.22 > > >----- > >TEST CASE 2: Update local route only >This is new functionality. > ># pcs resource debug-start srcvip1_local_only >Operation start for srcvip1_local_only (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) > ># # Default route and "our subnet" route ARE NOT updated to use the .61 VIP as source IP. ># # Local route is updated to use the .61 VIP as the source IP. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.22 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.61 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.22 > ># pcs resource debug-stop srcvip1_local_only >Operation stop for srcvip1_local_only (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) > ># # Back to the initial state after stopping resource. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.22 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.22 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.22 > > >----- > >TEST CASE 3: Update both local and default routes >Ensure that the old and the new play nicely together. > ># pcs resource debug-start srcvip1_default_and_local >Operation start for srcvip1_default_and_local (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) > ># # Default route and "our subnet" route ARE updated to use the .61 VIP as source IP. ># # Local route is updated to use the .61 VIP as the source IP. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp src 192.168.22.61 metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.61 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.61 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.22 > ># pcs resource debug-stop srcvip1_default_and_local >Operation stop for srcvip1_default_and_local (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) > ># # Back to the initial state after stopping resource. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.22 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.22 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.22 > > >----- > >TEST CASE 4: Update local routes for multiple VIPs >There's no reason that a user running multiple VIPs should not be able to update the local route table for all of them simultaneously. > ># pcs resource debug-start srcvip1_local_only >Operation start for srcvip1_local_only (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) ># pcs resource debug-start srcvip2_local_only >Operation start for srcvip2_local_only (ocf:heartbeat:IPsrcaddr) returned: 'ok' (0) > ># # Default route and "our subnet" route ARE NOT updated to use either the .61 or .62 VIP as source IP. ># # Local routes are updated to use the VIPs as the source IPs. ># ip route show table all | grep -e '^default' -e '^192\.168\.22\.0/24' -e '\.6[12]' >default via 192.168.22.1 dev eth0 proto dhcp metric 100 >192.168.22.0/24 dev eth0 proto kernel scope link src 192.168.22.22 metric 100 >local 192.168.22.61 dev eth0 table local proto kernel scope host src 192.168.22.61 >local 192.168.22.62 dev eth0 table local proto kernel scope host src 192.168.22.62 > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1582685
:
1481183
| 1481184