Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi_nmcli_test.py: 'Namespace' object has no attribute 'essid' #1698

Open
1 task
pieqq opened this issue Jan 23, 2025 · 1 comment
Open
1 task

wifi_nmcli_test.py: 'Namespace' object has no attribute 'essid' #1698

pieqq opened this issue Jan 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@pieqq
Copy link
Collaborator

pieqq commented Jan 23, 2025

Bug Description

In the lab, when running the com.canonical.certification::wireless/nmcli_wifi_ap_a_p2p0.com.canonical.certification::wireless/nmcli_wifi_ap_a_p2p0 test on a given device (tillamook), the test fails with an error stating 'Namespace' object has no attribute 'essid' (see Jenkins job)

Cert-blocker Test Case

  • cert-blocker

To Reproduce

  1. Launch the Jenkins job for the given device

Expected Result

The test passes

Actual Result

The test fails with an AttributeError exception.

Environment

  • Checkbox Snap

Relevant log output

=============================
Attempt 1/5 (function 'main')
=============================

======================================
Attempt 1/5 (function 'device_rescan')
======================================
## Calling a rescan
+ nmcli d wifi rescan

List all APs

Attempt 1 failed:
'Namespace' object has no attribute 'essid'

Waiting 28.64 seconds before retrying...

=============================
Attempt 2/5 (function 'main')
=============================

======================================
Attempt 1/5 (function 'device_rescan')
======================================
## Calling a rescan
+ nmcli d wifi rescan

List all APs

Attempt 2 failed:
'Namespace' object has no attribute 'essid'

Waiting 23.74 seconds before retrying...

=============================
Attempt 3/5 (function 'main')
=============================

======================================
Attempt 1/5 (function 'device_rescan')
======================================
## Calling a rescan
+ nmcli d wifi rescan

List all APs

Attempt 3 failed:
'Namespace' object has no attribute 'essid'

Waiting 29.16 seconds before retrying...

=============================
Attempt 4/5 (function 'main')
=============================

======================================
Attempt 1/5 (function 'device_rescan')
======================================
## Calling a rescan
+ nmcli d wifi rescan

List all APs

Attempt 4 failed:
'Namespace' object has no attribute 'essid'

Waiting 26.12 seconds before retrying...

=============================
Attempt 5/5 (function 'main')
=============================

======================================
Attempt 1/5 (function 'device_rescan')
======================================
## Calling a rescan
+ nmcli d wifi rescan

List all APs

Attempt 5 failed:
'Namespace' object has no attribute 'essid'

All the attempts have failed!
Traceback (most recent call last):
  File "/tmp/nest-rerwrk2o.430cf5d9c452dd87a259c40fc82bd409ff35077517a5df35acb7792d219e9edc/wifi_nmcli_test.py", line 409, in <module>
    sys.exit(main())
  File "/snap/checkbox-tillamook/42/checkbox-runtime/lib/python3.5/site-packages/checkbox_support/helpers/retry.py", line 94, in _f
    return run_with_retry(f, max_attempts, delay, *args, **kwargs)
  File "/snap/checkbox-tillamook/42/checkbox-runtime/lib/python3.5/site-packages/checkbox_support/helpers/retry.py", line 58, in run_with_retry
    result = f(*args, **kwargs)
  File "/tmp/nest-rerwrk2o.430cf5d9c452dd87a259c40fc82bd409ff35077517a5df35acb7792d219e9edc/wifi_nmcli_test.py", line 387, in main
    "Targed access point: {} not found".format(args.essid)
AttributeError: 'Namespace' object has no attribute 'essid'

Additional context

No response

@pieqq pieqq added the bug Something isn't working label Jan 23, 2025
Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1723.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant