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

Error: unable to find connection when removing a machine that was init with --ignition-path #24344

Open
gaufde opened this issue Oct 23, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug. machine remote Problem is in podman-remote stale-issue

Comments

@gaufde
Copy link

gaufde commented Oct 23, 2024

Issue Description

If a Podman machine was created using a custom ignition file podman machine init --igntion-path <path>, then this error will appear when trying to remove the machine:

podman machine rm with-ign
The following files will be deleted:


/Users/gaufde/.config/containers/podman/machine/applehv/with-ign.json
/var/folders/7m/z_f3vkmd6t30fhydp4z513gw0000gn/T/podman/with-ign.sock
/var/folders/7m/z_f3vkmd6t30fhydp4z513gw0000gn/T/podman/with-ign-gvproxy.sock
/var/folders/7m/z_f3vkmd6t30fhydp4z513gw0000gn/T/podman/with-ign-api.sock
/var/folders/7m/z_f3vkmd6t30fhydp4z513gw0000gn/T/podman/with-ign.log
Are you sure you want to continue? [y/N] y
Error: failed to remove machines files: unable to find connection named "with-ign"

Steps to reproduce the issue

Steps to reproduce the issue

  1. podman machine init --igntion-path <path> <name> (FYI this won't work in podman 5.2.4, see Podman Machine VM config does not get created when an Ignition file is provided #23544).
  2. podman machine rm <name>

Describe the results you received

The error can present itself in both of these ways:

podman machine rm <name>
Error: failed to remove machines files: unable to find connection named "<name>"

or

podman machine reset

Are you sure you want to continue? [y/N] y
Error: 1 error occurred:
	* unable to find connection named "<name>"

Describe the results you expected

No error

podman info output

host:
arch: arm64
buildahVersion: 1.37.0
cgroupControllers:

  • cpu
  • io
  • memory
  • pids
    cgroupManager: systemd
    cgroupVersion: v2
    conmon:
    package: conmon-2.1.10-1.fc40.aarch64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: '
    cpuUtilization:
    idlePercent: 91.09
    systemPercent: 5.21
    userPercent: 3.7
    cpus: 5
    databaseBackend: sqlite
    distribution:
    distribution: fedora
    variant: coreos
    version: "40"
    eventLogger: journald
    freeLocks: 2048
    hostname: localhost.localdomain
    idMappings:
    gidmap:
    • container_id: 0
      host_id: 1000
      size: 1
    • container_id: 1
      host_id: 100000
      size: 1000000
      uidmap:
    • container_id: 0
      host_id: 501
      size: 1
    • container_id: 1
      host_id: 100000
      size: 1000000
      kernel: 6.9.12-200.fc40.aarch64
      linkmode: dynamic
      logDriver: journald
      memFree: 1499160576
      memTotal: 2045726720
      networkBackend: netavark
      networkBackendInfo:
      backend: netavark
      dns:
      package: aardvark-dns-1.12.1-1.20240816112034046522.main.4.g9fe344a.fc40.aarch64
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.13.0-dev
      package: netavark-1.12.1-1.20240816123644637575.main.22.gee98ad6.fc40.aarch64
      path: /usr/libexec/podman/netavark
      version: netavark 1.13.0-dev
      ociRuntime:
      name: crun
      package: crun-1.16-1.20240813143753154884.main.16.g26c7687.fc40.aarch64
      path: /usr/bin/crun
      version: |-
      crun version UNKNOWN
      commit: 158b340ec38e187abee05cbf3f27b40be2b564d0
      rundir: /run/user/501/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
      os: linux
      pasta:
      executable: /usr/bin/pasta
      package: passt-0^20240726.g57a21d2-1.fc40.aarch64
      version: |
      pasta 0^20240726.g57a21d2-1.fc40.aarch64-pasta
      Copyright Red Hat
      GNU General Public License, version 2 or later
      https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      remoteSocket:
      exists: true
      path: /run/user/501/podman/podman.sock
      rootlessNetworkCmd: pasta
      security:
      apparmorEnabled: false
      capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
      rootless: true
      seccompEnabled: true
      seccompProfilePath: /usr/share/containers/seccomp.json
      selinuxEnabled: true
      serviceIsRemote: true
      slirp4netns:
      executable: /usr/bin/slirp4netns
      package: slirp4netns-1.2.2-2.fc40.aarch64
      version: |-
      slirp4netns version 1.2.2
      commit: 0ee2d87523e906518d34a6b423271e4826f71faf
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.5
      swapFree: 0
      swapTotal: 0
      uptime: 0h 0m 15.00s
      variant: v8
      plugins:
      authorization: null
      log:
  • k8s-file
  • none
  • passthrough
  • journald
    network:
  • bridge
  • macvlan
  • ipvlan
    volume:
  • local
    registries:
    search:
  • docker.io
    store:
    configFile: /var/home/core/.config/containers/storage.conf
    containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
    graphDriverName: overlay
    graphOptions: {}
    graphRoot: /var/home/core/.local/share/containers/storage
    graphRootAllocated: 106769133568
    graphRootUsed: 4383481856
    graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
    imageCopyTmpDir: /var/tmp
    imageStore:
    number: 0
    runRoot: /run/user/501/containers
    transientStore: false
    volumePath: /var/home/core/.local/share/containers/storage/volumes
    version:
    APIVersion: 5.3.0-dev-e8410b839
    Built: 1723766400
    BuiltTime: Thu Aug 15 17:00:00 2024
    GitCommit: ""
    GoVersion: go1.22.6
    Os: linux
    OsArch: linux/arm64
    Version: 5.3.0-dev-e8410b839

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@gaufde gaufde added the kind/bug Categorizes issue or PR as related to a bug. label Oct 23, 2024
@github-actions github-actions bot added the remote Problem is in podman-remote label Oct 23, 2024
gaufde added a commit to gaufde/podman that referenced this issue Oct 23, 2024
@Luap99 Luap99 added the machine label Oct 23, 2024
Copy link

A friendly reminder that this issue had no activity for 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. machine remote Problem is in podman-remote stale-issue
Projects
None yet
Development

No branches or pull requests

2 participants