Bug #2406
closedNo IP alias within the subnet of a CARP IP can be deleted
0%
Description
The input validation that triggers:
$input_errors[] = gettext("This entry cannot be deleted because it is still referenced by a CARP IP with the description") . " {$vip['descr']}.";
prevents the deletion of any IP alias within the subnet of a defined CARP IP. It's intended to keep you from shooting yourself in the foot and breaking your CARP on that subnet, but it should only prohibit deleting the last IP alias within a CARP IP's subnet as it's perfectly valid to delete any additional IP aliases within that subnet.
It can be worked around by editing the IP alias VIP and changing its IP subnet or subnet mask, then deleting the IP alias, as that same input validation is not done upon editing.
Updated by Renato Botelho almost 12 years ago
- Assignee set to Renato Botelho
- Target version set to 2.1
Updated by Renato Botelho almost 12 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset b030e03510656584d1d29f3a1d355e4a6d947f04.
Updated by Richard Adams almost 12 years ago
Using:
2.1-BETA1 (amd64)
built on Thu Feb 21 23:02:24 EST 2013
FreeBSD 8.3-RELEASE-p6
with the latest gitsync.
The problem is not fixed. The error still appears when you try to move the IPAlias VIP.
Updated by Jim Pingle almost 12 years ago
- Status changed from Feedback to New
- % Done changed from 100 to 0
Updated by Renato Botelho almost 12 years ago
- Status changed from New to Feedback
As proposed on bug description, the error still shows up when you try to remove the last IP alias, but do not complain when you remove additional ones. Are you getting it when trying to remove additional ones? If yes, please, post the <virtualip> section of your config.xml here.
Updated by Richard Adams almost 12 years ago
It is the last one. pfSense should be able to determine if the alias type is CARP or IP Alias and let you remove any (even the last one) IP Alias. How are IP Aliases referenced by CARP interfaces?
I tested again going from 2 to one IP Alias left and it was able to delete all but the last IP Alias.
Updated by Chris Buechler almost 12 years ago
- Status changed from Feedback to Resolved
This is fixed. You can't remove the last IP alias on the subnet of a CARP IP because it'll break CARP, you have to delete the CARP IP first. The only exception being when the interface IP is on the CARP IP's subnet, which is also handled correctly.
Updated by Nei Ka about 10 years ago
Chris Buechler wrote:
This is fixed. You can't remove the last IP alias on the subnet of a CARP IP because it'll break CARP, you have to delete the CARP IP first. The only exception being when the interface IP is on the CARP IP's subnet, which is also handled correctly.
This is still a problem. I have a CARP alias. I added another virtual IP in the same network for testing. I then could not delete the VIP. I had to delete the CARP IP then the VIP, then re-add the CARP IP.