The wireless_connection_wpa_n job of checkbox sru process seems to run forever on 16.04 sometimes

Bug #1693165 reported by Taihsiang Ho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Invalid
Undecided
Unassigned

Bug Description

Dell Latitude 3330 (CID 201302-12843)
16.04 (kernel 4.4.0-21-generic)

Steps to Reproduce:

1. Install 16.04 on Dell Latitude 3330 (CID 201302-12843) and the associated packages[1] to run certification SRU test.

2. issue "checkbox sru" to run the test.

Expected Result:

The test completes in one hour.

Actual Result:

The test seems to run forever. I watched the process status and got:

root 12761 0.0 0.0 21296 2692 ? S 04:47 0:00 bash -c trap "nmcli con delete id $WPA_N_SSID" EXIT if create_connection wifi $WPA_N_SSID --security=wpa --key=$WPA_N_PSK; then connect
root 12762 0.0 0.3 61644 14672 ? S 04:47 0:00 python3 /tmp/nest-loewmcin.7cb636aab6aaa57ab81bfe26920bc3d6414223b5f1c75c6d4d539913421d5124/create_connection wifi ubuntu-cert-n-wpa --secu
root 12784 0.0 0.2 406980 9428 ? Sl 04:47 0:00 nmcli con up id ubuntu-cert-n-wpa

Process tree view:

ubuntu 1510 0.0 0.0 700692 3060 ? Ssl 04:09 0:00 \_ /usr/lib/gnome-session/gnome-session-binary --session=ubuntu
ubuntu 1702 0.0 0.0 4508 0 ? S 04:09 0:00 | \_ sh -c if [ -e /usr/share/oem-automation/flags/execute-dist-upgrade ]; then sleep 60; sudo apt-get dist-upgrade -y --force-y
ubuntu 2004 1.6 0.5 344380 23340 ? Sl 04:11 1:07 | | \_ /usr/bin/python3 /usr/bin/checkbox sru --check-config
root 12736 0.0 0.9 87268 38104 ? S 04:47 0:01 | | \_ /usr/bin/python3 /usr/bin/plainbox-trusted-launcher-1 --target 7cb636aab6aaa57ab81bfe26920bc3d6414223b5f1c75c6d4d53
root 12761 0.0 0.0 21296 2692 ? S 04:47 0:00 | | \_ bash -c trap "nmcli con delete id $WPA_N_SSID" EXIT if create_connection wifi $WPA_N_SSID --security=wpa --key=
root 12762 0.0 0.3 61644 14672 ? S 04:47 0:00 | | \_ python3 /tmp/nest-loewmcin.7cb636aab6aaa57ab81bfe26920bc3d6414223b5f1c75c6d4d539913421d5124/create_connecti
root 12784 0.0 0.2 406980 9428 ? Sl 04:47 0:00 | | \_ nmcli con up id ubuntu-cert-n-wpa

Reproducing Rate:

4 out of 5

This happens on some machines as well, but has lower reproducing rate.

--------------------------

[1]

ubuntu@201302-12843:~$ dpkg -l *checkbox* *plainbox*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================================-===========================-===========================-===============================================================================================
un checkbox <none> <none> (no description available)
ii checkbox-autostart-desktop 0.3+git201705221758+pkg38~u all Automatic system testing for desktop systems
ii checkbox-ci-mailer 0.3+git201705221758+pkg38~u all Automatic system testing CI loop
ii checkbox-converged 1.7.0+git201705221806+pkg14 all testing tool for all Ubuntu devices
ii checkbox-ng 0.33.0+git201705221758+pkg6 all PlainBox based test runner
ii plainbox 0.35.0+git201705221743+pkg6 all toolkit for software and hardware integration testing
ii plainbox-insecure-policy 0.35.0+git201705221743+pkg6 all policykit policy required to use plainbox (insecure version)
ii plainbox-provider-certification-client 0.30.0+201705221818+54~ubun all Client Certification provider for Plainbox
ii plainbox-provider-checkbox 0.36.0+git201705221812+pkg4 amd64 CheckBox provider for PlainBox
ii plainbox-provider-resource-generic 0.32.0+git201705231358+pkg3 amd64 CheckBox generic resource jobs provider
ii plainbox-provider-sru 1.7.0+git201705221838+pkg12 all CheckBox SRU jobs provider
ii plainbox-provider-tpm2 1.3.0+git201705221902+pkg13 all TPM 2.0 provider for PlainBox
un plainbox-secure-policy <none> <none> (no description available)
ii python3-checkbox-ng 0.33.0+git201705221758+pkg6 all PlainBox based test runner (Python 3 library)
ii python3-checkbox-support 0.34.0+git201705231353+pkg5 all collection of Python modules used by PlainBox providers
ii python3-plainbox 0.35.0+git201705221743+pkg6 all toolkit for software and hardware testing (python3 module)

Tags: taipei-lab
Revision history for this message
Taihsiang Ho (tai271828) wrote :

wireless_connection_wpa_n test job is here:

plainbox-provider-checkbox::jobs/wireless.txt.in

plugin: shell
category_id: 2013.com.canonical.plainbox::wireless
id: wireless/wireless_connection_wpa_n
requires:
 device.category == 'WIRELESS'
 environment.ROUTERS == 'multiple'
user: root
environ: WPA_N_SSID WPA_N_PSK
command:
    trap "nmcli con delete id $WPA_N_SSID" EXIT
    if create_connection wifi $WPA_N_SSID --security=wpa --key=$WPA_N_PSK; then
        connect_wireless # lp:1471663
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
        iw dev $INTERFACE link
        gateway_ping_test --interface=$INTERFACE
        STATUS=$?
        # We reconnect the Ethernet connection if any (lp:1471663)
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
        if [[ ! -z $WIRED ]]; then
            nmcli c up uuid $WIRED
        fi
        exit $STATUS
    else
        exit 1
    fi

Revision history for this message
Taihsiang Ho (tai271828) wrote :

This issue seems to be able to reproduce only on some specific systems and releases. Let me use this bug tracker to collect systems that could reproduce it.

Changed in plainbox-provider-checkbox:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.