GithubHelp home page GithubHelp logo

Comments (8)

benoitf avatar benoitf commented on July 18, 2024

hi, what does mean " set its connection to default"
what is the command you're executing

By default a machine contains both rootless and rootful socket and one is exposed to the socket on the host, and CLI is using system connection so toggling system connection to rootless or rootful is possible.

But here I don't know what you did in the steps

from podman-desktop.

odockal avatar odockal commented on July 18, 2024

@benoitf It should be the dialog that appears in the UI when you are starting the machine that is different from the one that had the connection set (either rootful or rootless) to default.

from podman-desktop.

odockal avatar odockal commented on July 18, 2024

@xbabalov @benoitf So, I would like to colaborate a bit on a reproducer:

  1. Create a podman machine (with default values) and let it start
  2. Assert: Machine is started, the socket connection used is correct: podman system connection ls show default true for podman-machine-default-root connection
  3. Stop the machine
  4. Create new machine called rootful, also keep all values default (rootful, start now)
  5. Assert: Machine is created
  6. User is offered a dialog to switch the defautl connection to the rootful machine which was jsut created - accept and confirm
  7. Assert: podman system connection ls shows that default true value is at rootful-root connection
    Actual: Default true value is at rootful connection -> which is rootless.

from podman-desktop.

odockal avatar odockal commented on July 18, 2024

Problem might be the change between podman 4.x and 5.x in the content of the Machine config Json:

const machineConfig = JSON.parse(machineConfigJson);
// if it's rootful let's update the connection to the rootful one
if (machineConfig.Rootful) {
await extensionApi.process.exec(getPodmanCli(), [
'system',
'connection',
'default',
`${runningMachine.Name}${ROOTFUL_SUFFIX}`,
]);
}

machineConfig.Rootful is undefined with podman v5.

This is new json content:

{
   "Created":"2024-04-30T12:57:55.2389544+02:00",
   "GvProxy":{
      "Debug":false,
      "MTU":0,
      "LogFile":"",
      "PidFile":"",
      "SSHPort":0
   },
   "HostUser":{
      "Rootful":true,
      "UID":1000,
      "HostUserModified":false
   },
   "LastUp":"2024-04-30T12:59:58.8456202+02:00",
   "Mounts":null,
   "Name":"podman-machine-default",
   "Resources":{
      "CPUs":2,
      "DiskSize":100,
      "Memory":2048,
      "USBs":[
         
      ]
   },
   "SSH":{
      "IdentityPath":"C:\\Users\\podmanqe\\.local\\share\\containers\\podman\\machine\\machine",
      "Port":64572,
      "RemoteUsername":"user"
   },
   "Version":1,
   "ImagePath":{
      "Path":"C:\\Users\\podmanqe\\.local\\share\\containers\\podman\\machine\\wsl\\podman-machine-default-amd64"
   },
   "WSLHypervisor":{
      "UserModeNetworking":false
   },
   "Starting":false
}

from podman-desktop.

benoitf avatar benoitf commented on July 18, 2024

AFAIK this issue was existing in all previous releases

from podman-desktop.

odockal avatar odockal commented on July 18, 2024

yes.

from podman-desktop.

benoitf avatar benoitf commented on July 18, 2024

but yes probably related to podman v4 -> v5

from podman-desktop.

benoitf avatar benoitf commented on July 18, 2024

PR opened #7024

from podman-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.