Bug 24927 - ppp0 interface gets deleted upon invoking ifdown ppp0
Summary: ppp0 interface gets deleted upon invoking ifdown ppp0
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: Mageia 9
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard: MGA7TOO MGA8TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-06 07:37 CEST by Alexander Krylov
Modified: 2021-07-06 16:55 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
ifcfg-ppp0 (85 bytes, text/plain)
2019-07-15 06:07 CEST, Alexander Krylov
Details
/etc/ppp/peers/ppp0 (250 bytes, text/plain)
2019-07-15 06:12 CEST, Alexander Krylov
Details

Description Alexander Krylov 2019-06-06 07:37:01 CEST
Description of problem:
Every time after 'ifdown ppp0' command execution or during system reboot process, my DSL connection gets deleted, so I need to recreate it every time.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create new DSL PPPoE connection via 'drakconnect'
2. Connect to internet 'ifup ppp0'
3. Bring interface down 'ifdown ppp0'
4. Try to bring interface up again 'ifup ppp0'

[root@localhost]# ifup ppp0
RTNETLINK answers: No such device
Cannot find device "ppp0"
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
CHAP authentication succeeded
CHAP authentication succeeded
local  IP address 82.199.xxx.xx
remote IP address 82.199.xxx.x
primary   DNS address 82.199.xx.xxx
secondary DNS address 82.199.xxx.xxx
[root@localhost]# ifdown ppp0
pppoe: read (asyncReadFromPPP): Session 61919: Input/output error <-- this message is a norm.
[root@localhost]# ifup ppp0
/etc/sysconfig/network-scripts/chat-ppp0 does not exist
ifup-ppp for ppp0 exiting
Comment 1 Lewis Smith 2019-06-06 09:01:57 CEST
To Thierry for starters because of 'drakconnect'.

CC: (none) => lewyssmith
Assignee: bugsquad => thierry.vignaud

Comment 2 Alexander Krylov 2019-07-15 06:07:06 CEST
Some more investigation.
'drakconnect' creates at least two required files for TYPE=ADSL connection to work properly, /etc/sysconfig/network-scripts/ifcfg-ppp0 and /etc/ppp/peers/ppp0

What I've noticed is execution of 'ifdown ppp0' deletes /etc/ppp/peers/ppp0 file.
Not sure if it's intended behaviour, but next execution of 'ifup ppp0' fails, because of absent /etc/ppp/peers/ppp0 file.
Comment 3 Alexander Krylov 2019-07-15 06:07:56 CEST
Created attachment 11184 [details]
ifcfg-ppp0
Comment 4 Alexander Krylov 2019-07-15 06:12:20 CEST
Created attachment 11185 [details]
/etc/ppp/peers/ppp0
Comment 5 Alexander Krylov 2019-07-15 06:35:33 CEST
As a workaround I had to manually alter generated ifcfg-ppp0 to use TYPE=xDSL instead. This TYPE uses external scripts for ifup/ifdown which are parts of rp-pppoe package.
Comment 6 Simon Rowe 2020-03-27 14:25:32 CET
I think this is the upstream fix for this

https://github.com/deekej/initscripts/commit/f25f4828ea1c56c95d91586bec7403ab6cd48d76

CC: (none) => srowe

Comment 7 Alexander Krylov 2020-03-27 14:51:53 CET
I confirm, applying the above changes fixes the initial problem.
Rolf Pedersen 2020-03-27 14:55:30 CET

CC: (none) => rolfpedersen

Comment 8 Simon Rowe 2021-04-24 13:11:41 CEST
Bump, this still affects mga8.
Comment 9 Alexander Krylov 2021-04-24 14:04:41 CEST
As Simon said in comment 8 this bug still valid for mga8.

And to make matters worse, the solution from comment 6 doesn't work anymore for me... What about you, Simon?

The original link to that solution is dead, so here's another one: https://github.com/fedora-sysv/initscripts/pull/156/commits/f25f4828ea1c56c95d91586bec7403ab6cd48d76
Comment 10 Simon Rowe 2021-04-24 15:07:50 CEST
Yes, I've just applied this change manually again.
Comment 11 Aurelien Oudelet 2021-04-24 15:33:53 CEST
Changing this.

Version: 7 => Cauldron
CC: (none) => ouaurelien
Whiteboard: (none) => MGA7TOO MGA8TOO
Target Milestone: --- => Mageia 9

Comment 12 Alexander Krylov 2021-04-24 15:42:50 CEST
Heh, that's really odd...

In my case, /etc/ppp/peers/ppp0 file keeps being deleted after 'ifdown ppp0' command even now, regardless of changes made to /etc/sysconfig/network-scripts/ifdown-post script.

And IIRC, the solution mentioned in comment 6 & now in comment 9, in my case, worked for about a month in mga7, but then stopped again for some unknown reasons.

Version: Cauldron => 7

Comment 13 Aurelien Oudelet 2021-07-06 13:18:05 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 14 Alexander Krylov 2021-07-06 16:43:35 CEST
Yes, as mentioned in comment 8, this bug still affects mga8. Nothing has been changed since then.
Marja Van Waes 2021-07-06 16:55:10 CEST

Version: 7 => 8
CC: (none) => marja11


Note You need to log in before you can comment on or make changes to this bug.