Skip to content

Commit

Permalink
Merge pull request #21264 from cfergeau/applehv
Browse files Browse the repository at this point in the history
applehv: return socket path from setupAPIForwarding
  • Loading branch information
openshift-merge-bot[bot] authored Jan 18, 2024
2 parents d38ee13 + 3fef531 commit 597ff52
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkg/machine/applehv/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,6 @@ func (m *MacMachine) Start(name string, opts machine.StartOptions) error {
return machine.ErrVMAlreadyRunning
}

ioEater, err := os.OpenFile(os.DevNull, os.O_WRONLY, 0755)
if err != nil {
return err
}
defer ioEater.Close()

// TODO handle returns from startHostNetworking
forwardSock, forwardState, err := m.startHostNetworking()
if err != nil {
Expand Down Expand Up @@ -641,8 +635,6 @@ func (m *MacMachine) Start(name string, opts machine.StartOptions) error {
cmd.Args = append(cmd.Args, "--gui") // add command line switch to pop the gui open
}

cmd.ExtraFiles = []*os.File{ioEater, ioEater, ioEater}

readSocketBaseDir := filepath.Dir(m.ReadySocket.GetPath())
if err := os.MkdirAll(readSocketBaseDir, 0755); err != nil {
return err
Expand Down Expand Up @@ -1039,7 +1031,8 @@ func (m *MacMachine) setupAPIForwarding(cmd gvproxy.GvproxyCommand) (gvproxy.Gvp
}
}

return cmd, "", machine.MachineLocal
return cmd, socket.GetPath(), machine.MachineLocal

}

func (m *MacMachine) dockerSock() (string, error) {
Expand Down

2 comments on commit 597ff52

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

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

podman-next COPR build failed. @containers/packit-build please check.

@lsm5
Copy link
Member

@lsm5 lsm5 commented on 597ff52 Jan 18, 2024

Choose a reason for hiding this comment

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

podman-next COPR build failed. @containers/packit-build please check.

looks like a network flake. Subsequent builds have passed.

Please sign in to comment.