ClusterLabs / ClusterLabs/resource-agents

IPaddr2 LVS_SUPPORT not working with labels on interfaces

Open
#200 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
519
Forks
608
Avg merge
6d 1h
Merged PRs (30d)
7

Description

The label/alias on the loopback interface (lo:vip) is not restored if the Virtual IP is migrated. This is a small patch to the commit of January 14th 2013.

``` bash
443,453c443
< case $NIC in
< *:*)
< IFLABEL=$NIC
< NIC=`echo $NIC | sed 's/:.*//'`
< ;;
< *)
< if [ -n "$IFLABEL" ]; then
< IFLABEL=${NIC}:${IFLABEL}
< fi
< ;;
< esac

---
> NIC=`echo $NIC | sed 's/:.*//'`
545,546c535,536
< cmd="$cmd label $label"
< msg="${msg} (with label $label)"

---
> cmd="$cmd label $iface:$label"
> msg="${msg} (with label $iface:$label)"
617c607
< add_interface $ifinfo

---
> add_interface $ifinfo $IFLABEL
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the IPaddr2 agent and the January 14, 2013 change referenced in the issue, then compare its interface-label handling with the supplied hunks. Reproduce Virtual IP migration using a labeled loopback interface such as lo:vip; done means the label is restored on the destination interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.