← Back to team overview

touch-packages team mailing list archive

[Bug 1349273] Re: NM does not retry opening mobile data on reboot

 

So I re-tested your incorrect APN scenario and another that was as close
as I could get to your original scenario.  Note, I didn't check the
mobile data settings in any of these tests.

Here's what I did on mako, running rtm image #26 plus a modified version
of the latest ofono from the rtm.

I stopped ofono & NM, then edited ofono's gprs settings file for the
current SIM ( more on that later ) and appended ".foo" to each of the
context "AccessPointName" values.   I also deleted
/var/lib/NetworkManager/timestamps and then rebooted.

NM tries context1 ( "ATT PHONE" ) four times ( each failing ), then
context2 ( "ATT WAP" ) which also fails.  NM marks each connection as
"Invalid".

Note, I also discovered that NM tries to activate other contexts found
in previous SIM card directories under /var/lib/ofono.  I will open
another bug for this problem.

Next, I stopped ofono and NM again, edit the gprs file, and correct the
AccessPointName values and reboot.   After rebooting, NM seems to
properly find the correct context and activates it.

I also tried to simulate your first scenario, but checking an
environment variable ( "OFONO_RIL_DATA_FAIL" ) in rilmodem/gprs-
context.c in the callback that handles the data reply.  If the env var
is set, I treat it like a FAILED reply from ril.   Again I rebooted and
watched NM fail to connect either context and mark both Invalid.  After
removing the env var from the upstart job, I rebooted and again NM comes
up and properly activates the correct context.

I will try to reproduce on krillin next.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1349273

Title:
  NM does not retry opening mobile data on reboot

Status in “network-manager” package in Ubuntu:
  Incomplete

Bug description:
  In case NM has failed to open any mobile data context, it will not re-
  try when rebooting the phone.

  This happened with a pre-paid SIM with no credit: opening a data
  context for it obviously failed. After adding credit to the SIM, I
  followed the instructions from the operator to reboot the phone to get
  data. However, after rebooting I had no mobile data. Taking a look to
  system settings, cellular data was set to "Off" and I was able to
  revert the situation marking the "2G/3G/4G" option. Make NM retry the
  list of contexts in case no context was ever active on previous boot
  would make life easier for the user.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1349273/+subscriptions


References