canonical / canonical/multipass

multipass does not look for new IP addresses

Open
#3,772 7 comments 1 reaction 0 assignees View on GitHub
jira
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

**Describe the bug**
Multipass 1.14.1 graphical UI freezes upon the installation of the _network-manager_ snap, on an Ubuntu 24.04.1 VM.

**To Reproduce**
The bug was experienced while interacting with the graphical interface, but it seems the CLI may be affected too, as trying to execute `multipass info` after having the graphical UI frozen, does not work either.

To reproduce it via CLI:
```shell
multipass launch --cpus 2 --memory 4G --disk 5G --name Testing 24.04
multipass exec Testing -- sudo snap install network-manager
```

**Expected behavior**
The graphical UI would continue to respond to user input.

**Logs**
```log
2024-11-11 12:32:45.899089 INFO Sent FindRequest{showImages: true, showBlueprints: false}
2024-11-11 12:32:45.921208 INFO Sent VersionRequest{}
2024-11-11 12:32:45.994749 INFO FindRequest{showImages: true, showBlueprints: false} received FindReply{showImages: true, imagesInfo: [{os: Ubuntu, release: 20.04 LTS, version: 20240821, aliasesInfo: [{alias: 20.04}, {alias: f}, {alias: focal}], codename: Focal Fossa}, {os: Ubuntu, release: 22.04 LTS, version: 20241002, aliasesInfo: [{alias: 22.04}, {alias: j}, {alias: jammy}], codename: Jammy Jellyfish}, {os: Ubuntu, release: 24.04 LTS, version: 20241106, aliasesInfo: [{alias: 24.04}, {alias: n}, {alias: noble}, {alias: lts}, {alias: default}], codename: Noble Numbat}]}
2024-11-11 12:32:45.994875 INFO FindRequest{showImages: true, showBlueprints: false} is done
2024-11-11 12:32:45.995144 INFO VersionRequest{} received VersionReply{version: 1.14.1+mac, updateInfo: {}}
2024-11-11 12:32:45.995273 INFO VersionRequest{} is done
2024-11-11 12:33:06.201736 INFO Sent LaunchRequest{instanceName: Testing, image: 24.04, numCores: 2, memSize: 4GB, diskSpace: 5GB}
2024-11-11 12:33:28.596499 INFO LaunchRequest{instanceName: Testing, image: 24.04, numCores: 2, memSize: 4GB, diskSpace: 5GB} is done
2024-11-11 12:33:28.859888 INFO Sent SSHInfoRequest{instanceName: [Testing]}
2024-11-11 12:33:28.874732 INFO SSHInfoRequest{instanceName: [Testing]} received SSHInfoReply{sshInfo: {Testing: {port: 22, privKeyBase64: *hidden*, host: 192.168.64.18, username: ubuntu}}}
2024-11-11 12:34:18.052272 ERROR Error on polling info
gRPC Error (code: 9, codeName: FAILED_PRECONDITION, message: [ssh proc] failed to open session channel: '', details: [], rawResponse: null, trailers: {})
```

**Additional info**
- Host machine OS: macOS 15.1 (latest)
- Host machine arch: arm64.
- Multipass: 1.14.1 (latest)
- Multipass VM: Ubuntu 24.04.1 (latest)

**Additional context**
Multipass frozen

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the listed `multipass launch`, `multipass exec`, and `multipass info` commands after installing the network-manager snap. Trace the info-polling path associated with the logged SSH session-channel failure and verify that the graphical UI remains responsive and `multipass info` continues to work after the VM receives a new network address.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, macos
Domain
cli, desktop, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.