Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid failure ip route replace $NETWORK #618

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dedalodaelus
Copy link

I Proposed change the order of the start command, first change de default via and then the network.

On the machines I tested, If I execute first the network src IP command, it fails. With this change of order works without problems.

Tested on ubuntu server 12.04 x64

I Proposed change the order of the start command, first change de default via and then the network.

On the machines I tested, If I execute first the network src IP command, it fails. With this change of order works without problems.

Tested on ubuntu server 12.04 x64
$CMDCHANGE $ROUTE_WO_SRC src $1 || \
errorexit "command '$CMDCHANGE $ROUTE_WO_SRC src $1' failed"

ip route replace $NETWORK dev $INTERFACE src $1 || \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If change the source ip of the network before changing the default via, the commands exit with error.

@davidvossel
Copy link
Contributor

This is interesting. I'm surprised this makes a difference. Do you have any information on the error you encountered? Was there anything in the logs that indicated why exactly this fails?

@dedalodaelus
Copy link
Author

I copy the syslog entries. I didn't have any other error. The crm_mon me telling that the IPscraddr failed a thousand times.

Here you are the syslog lines:

syslog.2:Jun 8 12:38:52 VMUbuntuCluster3 IPsrcaddr[1978]: ERROR: command 'ip route replace 192.168.3.0/24 dev eth0 src 192.168.3.130' failed

syslog.2-Jun 8 12:38:52 VMUbuntuCluster3 lrmd: [1065]: info: operation start[22] on ipout for client 1068: pid 1978 exited with return code 1

syslog.2-Jun 8 12:38:52 VMUbuntuCluster3 crmd: [1068]: info: process_lrm_event: LRM operation ipout_start_0 (call=22, rc=1, cib-update=24, confirmed=true) unknown error

syslog.2-Jun 8 12:38:52 VMUbuntuCluster3 attrd: [1066]: notice: attrd_ais_dispatch: Update relayed from VMUbuntuCluster4

syslog.2-Jun 8 12:38:52 VMUbuntuCluster3 attrd: [1066]: notice: attrd_trigger_update: Sending flush op to all hosts for: fail-count-ipout (INFINITY)

syslog.2-Jun 8 12:38:52 VMUbuntuCluster3 attrd: [1066]: notice: attrd_perform_update: Sent update 7: fail-count-ipout=INFINITY

I hope this helps others.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants