Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102820 - rp-pppoe now at 3.6
Summary: rp-pppoe now at 3.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 05:40 UTC by Gabriel Devenyi
Modified: 2006-01-22 13:42 UTC (History)
3 users (show)

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


Attachments
adsl module for baselayout-1.11 (adsl,2.32 KB, text/plain)
2005-10-13 04:22 UTC, Roy Marples (RETIRED)
Details
adsl module for baselayout-1.11 (adsl,2.42 KB, text/plain)
2005-10-18 05:19 UTC, Roy Marples (RETIRED)
Details
adsl module for baselayout-1.11 (adsl,2.46 KB, text/plain)
2005-10-19 09:18 UTC, Alin Năstac (RETIRED)
Details
adsl module for baselayout-1.11 (adsl,2.77 KB, text/plain)
2005-10-19 11:36 UTC, Alin Năstac (RETIRED)
Details
adsl module for baselayout-1.11 (adsl,2.77 KB, text/plain)
2005-10-21 01:58 UTC, Roy Marples (RETIRED)
Details
adsl module for baselayout-1.12 (adsl,2.50 KB, text/plain)
2005-10-21 02:02 UTC, Roy Marples (RETIRED)
Details
adsl module for baselayout-1.12 (adsl,2.51 KB, text/plain)
2005-10-25 13:56 UTC, Alin Năstac (RETIRED)
Details
adsl module for baselayout-1.12 (adsl,2.51 KB, text/plain)
2005-10-25 14:04 UTC, Alin Năstac (RETIRED)
Details
adsl module for baselayout-1.11 (adsl,2.85 KB, text/plain)
2005-11-15 11:30 UTC, Alin Năstac (RETIRED)
Details
adsl module for baselayout-1.11 (adsl,2.89 KB, text/plain)
2005-11-15 11:37 UTC, Alin Năstac (RETIRED)
Details
adsl module for baselayout-1.11 (adsl,3.00 KB, text/plain)
2005-11-16 13:44 UTC, Alin Năstac (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Devenyi 2005-08-17 05:40:46 UTC
Please update
Comment 1 Gabriel Devenyi 2005-09-14 07:43:01 UTC
http://www.roaringpenguin.com/penguin/pppoe/rp-pppoe-3.6.tar.gz

Its been nearly a month...
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2005-09-14 12:05:21 UTC
this package is not a priority for me ('cause the endless array of rp-pppoe's
bugs), but I will get it done eventually, just for the only thing that matter in
it - server part.

we choosed to implement our solution for PPPoE client connections (bug #53954).
I hope it will soon replace all rp-pppoe installations on our user base.
Comment 3 Gabriel Devenyi 2005-09-14 12:22:10 UTC
Is this implementation ready for deployment? I'd love to move away from rp-pppoe
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2005-09-14 12:28:20 UTC
IMO yes.
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2005-09-14 13:03:55 UTC
this "solution" is based on the pppoe-plugin of pppd. I use the pppoe-plugin 
since a year and it works rock-solid. 
 
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2005-09-14 14:59:18 UTC
I use that net module on a production server with a PPPoE Internet connection.
it worked flawlessly for several months, not to mention the fact that is
physically inaccesible to me, which shows how much faith I have in it.

Comment 7 Alin Năstac (RETIRED) gentoo-dev 2005-10-12 11:05:30 UTC
the new version has been commited to the tree, but is hard masked until script
paths from adsl net module of the baselayout gets updated.

Roy, the adsl module should decide whether use adsl-{start,stop} or
pppoe-{start,stop}, based on the existence of the /usr/sbin/pppoe-setup or
/usr/sbin/adsl-setup.
Please let me know when you're done.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2005-10-12 15:23:32 UTC
I'll do this tomorrow - but do I prefer adsl-setup or pppoe-setup?
I know that both probably won't exist, but there is the possibility ......

I'm guessing it's pppoe. Alin, care to clarify?
Comment 9 Alin Năstac (RETIRED) gentoo-dev 2005-10-12 21:55:38 UTC
Since rp-pppoe isn't slotted, existence of adsl-setup and pppoe-setup is
mutually exclusive:
 - adsl-* scripts are installed by net-dialup/rp-pppoe-3.5* 
 - pppoe-* scripts are installed by net-dialup/rp-pppoe-3.6* 
Comment 10 Roy Marples (RETIRED) gentoo-dev 2005-10-13 03:53:43 UTC
OK. Last question. With the dropping of the "Gentoo Patch" I take it that the
adsl module should just called pppoe-start "${iface}" or just pppoe-start and
not force ETH, PID, USER like we currently do?
Comment 11 Roy Marples (RETIRED) gentoo-dev 2005-10-13 04:21:26 UTC
Hmmmm.

Does the pidfile get created with the interface name? It had better do .....
Comment 12 Roy Marples (RETIRED) gentoo-dev 2005-10-13 04:22:31 UTC
Created attachment 70552 [details]
adsl module for baselayout-1.11
Comment 13 Alin Năstac (RETIRED) gentoo-dev 2005-10-13 11:45:31 UTC
I didn't dropped gentoo-netscripts.patch. I planned to but I decided not to go
this way.

I will test this new module tomorrow.
Comment 14 Alin Năstac (RETIRED) gentoo-dev 2005-10-14 10:11:33 UTC
Roy, the attached module use adsl-* scripts. It cannot possibly work with
rp-pppoe-3.6.
Comment 15 Roy Marples (RETIRED) gentoo-dev 2005-10-18 05:19:54 UTC
Created attachment 70927 [details]
adsl module for baselayout-1.11

Wups, uploaded the wrong module

This one should work with both adsl-* and pppoe-*
Comment 16 Alin Năstac (RETIRED) gentoo-dev 2005-10-19 09:18:38 UTC
Created attachment 71021 [details]
adsl module for baselayout-1.11

This version corrects the info message about adsl-setup.

The module starts connection as expected but fails to close it down due to
inexistence of /var/run/adsl-${iface}.pid
Unfortunately, /var/run contains only rp-pppoe.pid, rp-pppoe.pid.pppd and
rp-pppoe.pid.start. Is this a problem?
Comment 17 Alin Năstac (RETIRED) gentoo-dev 2005-10-19 11:36:41 UTC
Created attachment 71031 [details]
adsl module for baselayout-1.11

This version also fix the PIDFILE problem.

Now the pid file is /var/run/rp-pppoe-${iface}.pid regardless of the rp-pppoe
version. It had been tested with rp-pppoe-3.6 and it works flawlessly.

Please let me know when you update adsl module in all baselayout versions, for
allowing me to unmask net-dialup/rp-pppoe-3.6.
Comment 18 Roy Marples (RETIRED) gentoo-dev 2005-10-21 01:58:53 UTC
Created attachment 71102 [details]
adsl module for baselayout-1.11

New version, supports adsl_user_eth0 again.
Comment 19 Roy Marples (RETIRED) gentoo-dev 2005-10-21 02:02:22 UTC
Created attachment 71103 [details]
adsl module for baselayout-1.12

Please test this module with baselayout-1.12.0_pre9-r1

If both work fine, then both will be comitted today and a new
baselayout-1.12.0_pre10 rolled.

I'll pester vapier about rolling a 1.11.14
Comment 20 Alin Năstac (RETIRED) gentoo-dev 2005-10-25 13:52:31 UTC
version posted by you in comment #18 is identical with mine posted in comment #17
Comment 21 Alin Năstac (RETIRED) gentoo-dev 2005-10-25 13:56:38 UTC
Created attachment 71446 [details]
adsl module for baselayout-1.12

corrected module for baselayout-1.12

You've made a mistake in adsl_start. Your command was
	${exe} <(< "${cfgfile}"; \
and I fixed with
	${exe} <(cat "${cfgfile}"; \

After I've fixed the module, it worked just fine.
Comment 22 Alin Năstac (RETIRED) gentoo-dev 2005-10-25 14:04:10 UTC
Created attachment 71447 [details]
adsl module for baselayout-1.12

huh... I've posted more changes that I wanted to. Sorry!
Comment 23 SpanKY gentoo-dev 2005-10-27 19:22:13 UTC
proposed module for 1.11 works fine on arm/uClibc with baselayout-1.11.13-r1 and
rp-pppoe-3.5-r11 in portage

anything else you want me to test ?
Comment 24 Alin Năstac (RETIRED) gentoo-dev 2005-10-27 22:23:50 UTC
I already test the rp-pppoe-3.6 with the attached modules on a x86 arch. I think
it is enough.
Comment 25 Roy Marples (RETIRED) gentoo-dev 2005-11-08 08:55:36 UTC
baselayout-1.12.0_pre10 is released with the new adsl module
Comment 26 Alin Năstac (RETIRED) gentoo-dev 2005-11-14 12:24:00 UTC
vapier, I need a baselayout-1.11 with adsl module updated in order to unmask
rp-pppoe-3.6.
Comment 27 SpanKY gentoo-dev 2005-11-14 19:30:41 UTC
the 1.11 module isnt fully working ... tested with 1.11.13 plus the module
posted here

user_IFACE does not work at all ... i have to set USER to the proper value in my
pppoe.conf for it to work

the net module doesnt override the ETH setting in pppoe.conf all the time either
... start works fine, but stop always displays:
 * Stopping eth0
 *   WARNING: You are forcing modules!
 *   Do not complain or file bugs if things start breaking
 *   Bringing down eth0
 *     Stopping ADSL for eth0                                   [ !! ]
 *     Shutting down eth0 ...                                   [ ok ]

my /etc/conf.d/net:
modules_force=( "ifconfig" "adsl" )
config_eth0=( "adsl" )
user_eth0=( "vze2h932" )
ifconfig_eth1=( "192.168.0.1 netmask 255.255.255.0" )

also, if i set ETH and USER to the proper values, pppoe-start and pppoe-stop
work nicely as expected
Comment 28 Alin Năstac (RETIRED) gentoo-dev 2005-11-15 11:30:57 UTC
Created attachment 72957 [details]
adsl module for baselayout-1.11

This module pass user_IFACE to the pppoe-start.
Also, redirect output of pppoe-start/pppoe-stop to ${devnull}.

These are the only 2 things different between the old attached module and the
one found in baselayout-1.11.13-r1 (besides the support for rp-pppoe-3.6, of
course).

Please test this one.
Comment 29 Alin Năstac (RETIRED) gentoo-dev 2005-11-15 11:37:49 UTC
Created attachment 72959 [details]
adsl module for baselayout-1.11

Damn it! I've forgot about $ifvar and $user declaration.

However, judging after the adsl module found in stable version of baselayout,
the variable that contains the username is adsl_user_IFACE , not user_IFACE.
Comment 30 SpanKY gentoo-dev 2005-11-15 11:59:27 UTC
is there a reason for forcing the user var to be prefixed with adsl ?

could add support for both ...
 # Might or might not be set in conf.d/net
 eval user=\"\$\{adsl_user_${ifvar}\}\"
+[[ -n ${user} ]] && eval user=\"\$\{user_${ifvar}\}\"
Comment 31 Alin Năstac (RETIRED) gentoo-dev 2005-11-15 12:05:10 UTC
don't see why not, but uberlord has the last word on that.

btw, the last attached module works for me on baselayout-1.11.13-r1
Comment 32 SpanKY gentoo-dev 2005-11-15 15:52:39 UTC
almost there ...

ETH is now correctly ignored when doing start/stop

USER is correctly ignored when doing start, but not when doing stop ... perhaps
the eval for user should be moved to adsl_setup_vars rather than just doing it
in start()

also, there is the matter of respecting user_$iface as a fall back ... what do
you think Roy ?
Comment 33 Alin Năstac (RETIRED) gentoo-dev 2005-11-15 21:48:20 UTC
I don't see why pppoe-stop should know about the correct USER (all that it does
is killing the associated processes).

Comment 34 Roy Marples (RETIRED) gentoo-dev 2005-11-15 22:46:14 UTC
(In reply to comment #32)
> also, there is the matter of respecting user_$iface as a fall back ... what do
> you think Roy ?

It was agriffis who wanted it prefixed with adsl - iirc that was so you could
distinguish between an adsl user and another user. 

The adsl module and documentation only supports adsl_user, we've never supported
user_$iface
Comment 35 SpanKY gentoo-dev 2005-11-16 06:20:08 UTC
> I don't see why pppoe-stop should know about the correct USER

i agree except that isnt what my tests showed ;)
if i comment out 'USER' in pppoe.conf and stop the interface, i get
[ !! ] instead of [ OK ]
adding back in USER to pppoe.conf and i get [ OK ] (same output as comment 27)

> The adsl module and documentation only supports adsl_user, we've
> never supported user_$iface

thats no reason to not add it :P
i'm not asking to break the current behavior, just add 'user_$iface'
as a fallback value if the normal 'adsl_user_$iface' is empty
Comment 36 Alin Năstac (RETIRED) gentoo-dev 2005-11-16 13:44:56 UTC
Created attachment 73028 [details]
adsl module for baselayout-1.11

there you go! this variant contains the changes requested in comment #32.
Comment 37 SpanKY gentoo-dev 2005-11-16 22:49:49 UTC
the adsl_stop() function has a syntax/whitespace error:
        ${exe} <(cat "${cfgfile}"; \
            echo "ETH=${iface}"; \
-                echo "PIDFILE=/var/run/rp-pppoe-${iface}.pid") \
+           echo "PIDFILE=/var/run/rp-pppoe-${iface}.pid"; \
            [[ -n ${user} ]] && echo "USER=${user}") \
            >${devnull}

once i fixed that everything seems to be good ... Roy, want to go ahead and
import this into 1.11.x and i'll work on testing a new release ?
Comment 38 Alin Năstac (RETIRED) gentoo-dev 2006-01-22 13:42:54 UTC
the fixed adsl module is in the latest stable baselayout (sys-apps/baselayout-1.11.14-r2)
I've unmasked net-dialup/rp-pppoe-3.6