** Description changed:

  [Impact]
  
  The killswitches-no-urfkill autopkgtest fails sometimes because nmcli
  reports the old state when it's called right after rfkill block/unblock.
  Adding a sleep before calling nmcli fixes the issue.
  
  ppc64el ADT log from failed testcase:
  
https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac
  /autopkgtest-artful/artful/ppc64el/n/network-
  manager/20171120_100719_28642@/log.gz
  
  Testcase output:
  -----
  autopkgtest [10:04:48]: test killswitches-no-urfkill: [-----------------------
  make -C /lib/modules/4.13.0-17-generic/build 
KBUILD_SRC=/lib/modules/4.13.0-17-generic/build 
M=/tmp/autopkgtest.yE1hsA/build.62e/src/debian/tests
  make[1]: Entering directory '/usr/src/linux-headers-4.13.0-17-generic'
    AR      /tmp/autopkgtest.yE1hsA/build.62e/src/debian/tests/built-in.o
    CC [M]  /tmp/autopkgtest.yE1hsA/build.62e/src/debian/tests/fake-rfkill.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC      /tmp/autopkgtest.yE1hsA/build.62e/src/debian/tests/fake-rfkill.mod.o
    LD [M]  /tmp/autopkgtest.yE1hsA/build.62e/src/debian/tests/fake-rfkill.ko
  make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-17-generic'
  ERROR: NM could not track device state.
  autopkgtest [10:05:20]: test killswitches-no-urfkill: -----------------------]
  autopkgtest [10:05:20]: test killswitches-no-urfkill:  - - - - - - - - - - 
results - - - - - - - - - -
  killswitches-no-urfkill FAIL non-zero exit status 1
  -----
  
  Package versions [artful/ppc64el]:
  network-manager 1.8.4-1ubuntu3
  linux-meta 4.13.0.17.18
  
+ [Test Case]
  
- [Test Case]
+ Assume that test vm and host are ppc64
+ 
+ 1. deploy ppc64 vm instance ( with 1 cpu )
+ 2. modprobe mac80211_hwsim ( may need to install linux-modules-extra- pkg )
+ 3. apt install network-manager rfkill
+ 4. modify /etc/netplan/[conf], renderer as NetworkManager
+ 5. netplan apply
+ 6. run below command
+ - nmcli radio wifi ; rfkill list 0 ; rfkill block 0 ; rfkill list 0 ; nmcli 
radio wifi ; rfkill list 0 ; rfkill unblock 0 ; rfkill list 0 ; nmcli radio wifi
+ 
+ enabled
+ 0: fake: Wireless LAN
+ Soft blocked: no
+ Hard blocked: no
+ 0: fake: Wireless LAN
+ Soft blocked: yes
+ Hard blocked: no
+ enabled
+ 0: fake: Wireless LAN
+ Soft blocked: yes
+ Hard blocked: no
+ 0: fake: Wireless LAN
+ Soft blocked: no
+ Hard blocked: no
+ enabled
+ 
+ second 'enabled' should be 'disabled' but not updated properly.
+ 
+ [Regression Potential]
+ 
+ No regression potential. The fix touches only the testcase shipped with
+ the source package and it doesn't change the binary package. The sleep
+ time added is very small, so no possibility of causing testcase timeout.
+ 
+ [Other Info]
+ 
+ On ppc64el architecture, it was observed that a fix for systemd is also
+ needed (see bug 1734908) for the testcase to be successful.
+ 
+ # original test case
+ 
  
  2.1. Download network-manager package source code
  $ apt-get source network-manager
  
  2.2. Run killswitches-no-urfkill testcase
  $ cd network-manager-1.8.4
  $ sudo ./debian/tests/killswitches-no-urfkill
- 
- 
- [Regression Potential]
- 
- No regression potential. The fix touches only the testcase shipped with
- the source package and it doesn't change the binary package. The sleep
- time added is very small, so no possibility of causing testcase timeout.
- 
- 
- [Other Info]
- 
- On ppc64el architecture, it was observed that a fix for systemd is also
- needed (see bug 1734908) for the testcase to be successful.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1733321

Title:
  network-manager ADT tests fail with on ppc64el with artful/linux
  4.13.0.17.18

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to