open-switch / opx-nas-interface

https://openswitch.net
2 stars 13 forks source link

OPX 3.0.0 does not bring interfaces up after reboot #52

Closed geraldmyres closed 6 years ago

geraldmyres commented 6 years ago

Installed latest OPX 3.0.0. Have Ixia connected to e101-001-0 and e101-003-0 on S4048-ON. Populated /etc/network/interfaces with:

root@OPX:/home/admin# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto e101-001-0
   iface e101-001-0 inet manual

auto e101-003-0
   iface e101-003-0 inet manual

Then:

 service networking restart

If I down/up interfaces, they come up. However, after rebooting switch, interfaces won't come up automatically. I have to cycle down/up again manually. Is this a bug or is there a procedure to do so?

GarrickHe commented 6 years ago

Investigating.

atanu-mandal commented 6 years ago

Hi @geraldmyres, can you please make sure the application stack does not bring those interfaces down after OPX comes up. e.g If you are running FRR and those ports are "shut" (not enabled) as part of startup config it will bring the interfaces admin down afterward. I have tried this steps on a VM running OPX 3.0.0 and it works fine (and I believe the same should work on any hardware platform). The interfaces (as configured in /ete/network/interfaces) are UP after reboot. Thanks, -Atanu

geraldmyres commented 6 years ago

Atanu,

I have tried using the /etc/network/interface config with and without FRR loaded and they never link up to another device until I cycle them down/up (ip link set ). I have tested on S6010, Z9100 and S4048.

From: Atanu Mandal [mailto:notifications@github.com] Sent: Thursday, September 13, 2018 10:06 PM To: open-switch/opx-nas-interface Cc: Myres, Gerald; Mention Subject: Re: [open-switch/opx-nas-interface] OPX 3.0.0 does not bring interfaces up after reboot (#52)

Hi @geraldmyreshttps://github.com/geraldmyres, can you please make sure the application stack does not bring those interfaces down after OPX comes up. e.g If you are running FRR and those ports are "shut" (not enabled) as part of startup config it will bring the interfaces admin down afterward. I have tried this steps on a VM running OPX 3.0.0 and it works fine (and I believe the same should work on any hardware platform). The interfaces (as configured in /ete/network/interfaces) are UP after reboot. Thanks, -Atanu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/open-switch/opx-nas-interface/issues/52#issuecomment-421216799, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApDPMyHzla3tgUqop09DCQIF70Kkmqrqks5uax0MgaJpZM4Wn306.

GarrickHe commented 6 years ago

@geraldmyres @atanu-mandal ,

This is a service-file start-up issue. I am testing out a fix - which is going good - will submit a PR after I finish testing.

Thanks, Garrick

GarrickHe commented 6 years ago

PR merged.

geraldmyres commented 6 years ago

Found that this fix only works when mtu is assigned. Needs to work either way.

For example, with following /etc/network/interfaces only e101-001-0 comes up after reboot:

MTU assignments

auto e101-001-0 iface e101-001-0 inet manual mtu 9184

auto e101-003-0 iface e101-003-0 inet manual

GarrickHe commented 5 years ago

@geraldmyres I tested without any MTU assigned. I'll send you an email to discuss this further.