Skip to content

wifi-bluetooth-support.robot: nmcli package check & installation#746

Merged
miczyg1 merged 2 commits intodevelopfrom
WLE002.001_nmcli0000
Apr 15, 2025
Merged

wifi-bluetooth-support.robot: nmcli package check & installation#746
miczyg1 merged 2 commits intodevelopfrom
WLE002.001_nmcli0000

Conversation

@matmacieje
Copy link
Copy Markdown

network-manager package check added in WLE002.001 test case

@matmacieje matmacieje requested a review from miczyg1 March 28, 2025 12:04
@matmacieje matmacieje linked an issue Mar 28, 2025 that may be closed by this pull request
@macpijan
Copy link
Copy Markdown
Contributor

Has it been tested? Can you show logs? It shows that network-manager is installed, but nmcli is still unavailable?

WLE002.001 Wi-Fi scanning (Ubuntu) :: Check whether the Wi-Fi func... .....
Checking if network-manager is installed...

Package network-manager is installed
WLE002.001 Wi-Fi scanning (Ubuntu) :: Check whether the Wi-Fi func... | FAIL |
No match found for '3mdeb_Laboratorium' in 1 minute. Output:
snap install network-manager  # version 1.2.2-31, or
apt  install network-manager  # version 1.46.0-1ubuntu2.2
See 'snap info network-manager' for additional versions.
root@3mdeb:/home/ubuntu# nmcli device wifi rescan
nmcli device wifi list
Command 'nmcli' not found, but can be installed with:
snap install network-manager  # version 1.2.2-31, or
apt  install network-manager  # version 1.46.0-1ubuntu2.2
See 'snap info network-manager' for additional versions.
root@3mdeb:/home/ubuntu# nmcli device wifi list
Command 'nmcli' not found, but can be installed with:
snap install network-manager  # version 1.2.2-31, or
apt  install network-manager  # version 1.46.0-1ubuntu2.2
See 'snap info network-manager' for additional versions.
root@3mdeb:/home/ubuntu#

@matmacieje
Copy link
Copy Markdown
Author

@macpijan yes, it is tested, here's the log.

WLE_nmcli.zip

I've also checked for differences between Ubuntu versions, if nmcli binary is being provided by another package in the past.

@miczyg1
Copy link
Copy Markdown
Contributor

miczyg1 commented Mar 31, 2025

I've also checked for differences between Ubuntu versions, if nmcli binary is being provided by another package in the past.

https://manpages.ubuntu.com/manpages/focal/man1/nmcli.1.html

It says that the nmcli is provided by network-manager package since Ubuntu 20.04LTS and it doesn' change for any newer version.

Has it been tested? Can you show logs? It shows that network-manager is installed, but nmcli is still unavailable?

This actually shows that the package is not installed:

root@3mdeb:/home/ubuntu# nmcli device wifi rescan
nmcli device wifi list
Command 'nmcli' not found, but can be installed with:
snap install network-manager  # version 1.2.2-31, or
apt  install network-manager  # version 1.46.0-1ubuntu2.2
See 'snap info network-manager' for additional versions.

Or that nmcli was somehow erased without removing the network-manager package.

@miczyg1
Copy link
Copy Markdown
Contributor

miczyg1 commented Mar 31, 2025

More context:

dpkg --list network-manager will give an output:

| 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
+++-===============-=================-============-============================>
rc  network-manager 1.46.0-1ubuntu2.2 amd64        network management framework>

Even if the package is not installed...
Confirming with apt is the way:

apt list --installed 2> /dev/null |grep network-manager

Gives empty output. So the keyword Check If Package Is Installed is broken. If I install network manager and repeat, I get:

apt list --installed 2> /dev/null |grep network-manager
network-manager-pptp/noble,now 1.2.12-3build2 amd64 [installed,automatic]
network-manager/noble-updates,now 1.46.0-1ubuntu2.2 amd64 [installed]

Copy link
Copy Markdown
Contributor

@miczyg1 miczyg1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still does not work reliably. See my comment: #746 (comment)

@matmacieje matmacieje marked this pull request as draft March 31, 2025 14:39
@matmacieje matmacieje force-pushed the WLE002.001_nmcli0000 branch from 4d18996 to 4419f7b Compare March 31, 2025 15:15
@matmacieje
Copy link
Copy Markdown
Author

matmacieje commented Mar 31, 2025

Please review, log in attachment.

WLE002.001.zip

@matmacieje matmacieje requested a review from miczyg1 March 31, 2025 15:22
Comment thread keywords.robot Outdated
@matmacieje matmacieje force-pushed the WLE002.001_nmcli0000 branch from ed9c0bc to c30ea0c Compare April 2, 2025 09:25
@matmacieje
Copy link
Copy Markdown
Author

Please review, logs in attachment. Both required packages (network-manager & pciutils) were 'apt remove'd for this execution.

WLAN_NM_regex_vp6650.zip

@matmacieje matmacieje requested a review from miczyg1 April 2, 2025 09:34
@matmacieje matmacieje marked this pull request as ready for review April 2, 2025 09:35
Comment thread dasharo-compatibility/wifi-bluetooth-support.robot Outdated
Comment thread keywords.robot Outdated
Comment thread keywords.robot Outdated
Comment thread keywords.robot Outdated
@matmacieje matmacieje requested a review from miczyg1 April 2, 2025 11:03
@matmacieje matmacieje marked this pull request as draft April 3, 2025 12:37
@matmacieje matmacieje force-pushed the WLE002.001_nmcli0000 branch from 639b66d to b547f37 Compare April 3, 2025 15:22
@matmacieje matmacieje marked this pull request as ready for review April 3, 2025 15:33
@matmacieje
Copy link
Copy Markdown
Author

Please review, rebase to develop done, here's log:
wifi_nm_pciutils.zip

@matmacieje matmacieje force-pushed the WLE002.001_nmcli0000 branch from b547f37 to b017c0e Compare April 14, 2025 10:13
@matmacieje
Copy link
Copy Markdown
Author

Comment thread dasharo-compatibility/wifi-bluetooth-support.robot
Comment thread keywords.robot Outdated
wifi-bluetooth-support.robot, WLE002.001:
 - dhclient call added before Detect Or Install Package
 - Ubuntu-specific package installation moved from test case
 to WiFi Scanning kw

keywords.robot:
 - added apt list & regex-based package detection in
 Check If Package Is Installed
 - Install Package redone using Execute Command In Terminal

lib/network.robot:
 - Execute Command In Terminal used instead of Execute Linux Command
in Check Internet Connection On Linux keyword

lib/telnet.robot:
 - Telnet.Read added in Execute Command In Terminal

Signed-off-by: Mateusz Maciejewski <mateusz.maciejewski@3mdeb.com>
- network-manager & pciutils are now installed by ansible playbook
- regexp comment removed

Signed-off-by: Mateusz Maciejewski <mateusz.maciejewski@3mdeb.com>
@matmacieje matmacieje force-pushed the WLE002.001_nmcli0000 branch from b017c0e to 0d35a2e Compare April 14, 2025 14:09
@matmacieje
Copy link
Copy Markdown
Author

@matmacieje matmacieje requested a review from miczyg1 April 14, 2025 14:12
@miczyg1 miczyg1 merged commit 0d35a2e into develop Apr 15, 2025
1 of 3 checks passed
@miczyg1 miczyg1 deleted the WLE002.001_nmcli0000 branch April 15, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WLE test in minimal-regression fail

4 participants