Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380603 - sys-apps/openrc-0.8.3-r1 vlans on bonding interface fails to stop (manually or at shutdown)
Summary: sys-apps/openrc-0.8.3-r1 vlans on bonding interface fails to stop (manually o...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
Keywords: InVCS
Depends on:
Blocks: 382299
  Show dependency tree
Reported: 2011-08-25 09:06 UTC by Bernd Bednarz
Modified: 2011-10-16 20:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

/etc/conf.d/net (net,1.75 KB, text/plain)
2011-08-25 09:07 UTC, Bernd Bednarz

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Bednarz 2011-08-25 09:06:27 UTC
I uses VLAN on bonding interfaces. With new openrc the vlan config switched. After reconfiguring everything to fit the new layout we figured out that there are some problems with RPDB rules.

During start up the process read the rules config without any problem even if there are rule arrays which arn't supported anymore. On stop only the first rule gets deleted.

As we have many VLANs on our bonding interface we have many rules. We tired to add the rules to each vlan_ config but then we have the problem that the init.d/net script just deletes the bonding interface and don't cares about the VLANs.

Please see my conf.d/net I attached.


Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/net.lwlbond01 start
2. /etc/init.d/net.lwlbond01 stop
Actual Results:  
with every restart we get more and more rules

Expected Results:  
the rules should be delete after successfully stop.
Comment 1 Bernd Bednarz 2011-08-25 09:07:27 UTC
Created attachment 284577 [details]

My /etc/conf.d/net I have right now.

The vlan0005_rules entry is only for testing.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2011-09-18 14:20:33 UTC
The RPDB rules removal has been fixed, bug 372547.
Please try openrc-0.9.x. If this bug still occurs reopen this bug.

*** This bug has been marked as a duplicate of bug 372547 ***
Comment 3 Bernd Bednarz 2011-09-19 15:38:45 UTC
Today I installed sys-apps/openrc-9999 (0.9.3git-bf49e5).

I adjust the configuration to get all warnings away.

But still _my_ problem with VLAN interfaces on bond interfaces isn't fixed. On startup the bonding interface gets created also all VLANs. On stop the scripts only delete the bonding interface but don't executes any VLAN configs.

So the VLANs just disappear 'cause of deleting of bonding interface but the rules still keeps on the system.

If think VLANs on bond interfaces is a special case.
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2011-09-19 19:51:16 UTC
Are only VLAN rules affected or other things as well, like routes?
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2011-09-21 11:34:40 UTC
Ok Bernd, good news. :)

This has been fixed by commit 4b63929.

To apply the patch temporary please do:
# wget ';a=patch;h=4b6392987873107f83fa135b871ac137a6c29ba2' -O /tmp/vlan.patch
# patch /lib/rc/net/ < /tmp/vlan.patch

Thank you for your bug report :)
Comment 6 Bernd Bednarz 2011-09-21 17:51:20 UTC
I tested with version: 0.9.3git-4b6392 right works perfectly as expected.

Can't see no more errors and every VLAN goes down before the bonding interface gets deleted. All rule are gon and nothing left over.