containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
23.83k stars 2.42k forks source link

unable to build with operator-sdk build #6392

Closed matzew closed 4 years ago

matzew commented 4 years ago

/kind bug

/kind feature

Description

Steps to reproduce the issue:

  1. running the operator-sdk build.... I get:
+ operator-sdk build quay.io/openshift-knative/knative-kafka-operator:v0.15.0
build github.com/openshift-knative/knative-kafka-operator/cmd/manager: cannot load github.com/openshift-knative/knative-kafka-operator/cmd/manager: open /home/matzew/vendor/github.com/openshift-knative/knative-kafka-operator/cmd/manager: no such file or directory

FATA[0000] Failed to build operator binary: failed to exec []string{"go", "build", "-o", "/home/matzew/go/src/github.com/openshift-knative/knative-kafka-operator/build/_output/bin/knative-kafka-operator", "-gcflags", "all=-trimpath=/home/matzew/go/src/github.com/openshift-knative", "-asmflags", "all=-trimpath=/home/matzew/go/src/github.com/openshift-knative", "-mod=vendor", "github.com/openshift-knative/knative-kafka-operator/cmd/manager"}: exit status 1 

Output of podman version:

podman version
Version:            1.9.3
RemoteAPI Version:  1
Go Version:         go1.14.2
OS/Arch:            linux/amd64

Output of podman info:

host:
  arch: amd64
  buildahVersion: 1.14.9
  cgroupVersion: v2
  conmon:
    package: conmon-2.0.16-3.fc32.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.16, commit: ce36e0b2bc0d4551a4a25f89555cc84bdaad955c'
  cpus: 8
  distribution:
    distribution: fedora
    version: "32"
  eventLogger: file
  hostname: linux.fritz.box
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 5.6.11-300.fc32.x86_64
  memFree: 6283382784
  memTotal: 33504034816
  ociRuntime:
    name: crun
    package: crun-0.13-2.fc32.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 0.13
      commit: e79e4de4ac16da0ce48777afb72c6241de870525
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  rootless: true
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.0.0-1.fc32.x86_64
    version: |-
      slirp4netns version 1.0.0
      commit: a3be729152a33e692cd28b52f664defbf2e7810a
      libslirp: 4.2.0
  swapFree: 16852709376
  swapTotal: 16852709376
  uptime: 123h 3m 25.06s (Approximately 5.12 days)
registries:
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - registry.centos.org
  - docker.io
store:
  configFile: /home/matzew/.config/containers/storage.conf
  containerStore:
    number: 81
    paused: 0
    running: 0
    stopped: 81
  graphDriverName: overlay
  graphOptions:
    overlay.mount_program:
      Executable: /usr/bin/fuse-overlayfs
      Package: fuse-overlayfs-1.0.0-1.fc32.x86_64
      Version: |-
        fusermount3 version: 3.9.1
        fuse-overlayfs: version 1.0.0
        FUSE library version 3.9.1
        using FUSE kernel interface version 7.31
  graphRoot: /home/matzew/.local/share/containers/storage
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  imageStore:
    number: 943
  runRoot: /run/user/1000
  volumePath: /home/matzew/.local/share/containers/storage/volumes
mheon commented 4 years ago

I don't believe this is a Podman problem; this looks like an Openshift operator failing, not Podman?

mheon commented 4 years ago

Also, that's a go build command, not podman build.

I'm going to close this; I recommend you open an issue against Openshift itself.