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

Not able to run k8s node e2e tests #6927

Closed
harche opened this issue Jul 10, 2020 · 3 comments · Fixed by #6929
Closed

Not able to run k8s node e2e tests #6927

harche opened this issue Jul 10, 2020 · 3 comments · Fixed by #6929
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@harche
Copy link

harche commented Jul 10, 2020

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description
Kubernetes node e2e tests execute docker info --format '{{json .}}' command before starting with the tests. I see the support was added for GO template {{ json . }} in podman a while back in #2688 but I am still seeing the issue.

I am trying to execute node e2e tests on Fedora 32 with podman (via podman-docker.norach)

Steps to reproduce the issue:

  1. clone github.com/kubernetes/kubernetes

  2. make test-e2e-node

Describe the results you received:

CGROUPS_PIDS: enabled
Validating package...
F0710 11:20:35.434641   90024 e2e_node_suite_test.go:151] system validation failed: [failed executing "docker info --format '{{json .}}'"\noutput: Error: template: info:1: function "json" not defined
\nerror: exit status 125]
# docker info --format '{{json .}}'
Error: template: info:1: function "json" not defined

Describe the results you expected:
docker info --format '{{json .}}' should work to make sure we are able to execute k8s e2e tests.

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

# podman version 
Version:      2.0.2
API Version:  1
Go Version:   go1.14.3
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64

Also, what's up with that Built date?
Output of podman info --debug:

host:
  arch: amd64
  buildahVersion: 1.15.0
  cgroupVersion: v2
  conmon:
    package: conmon-2.0.18-1.fc32.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.18, commit: 6e8799f576f11f902cd8a8d8b45b2b2caf636a85'
  cpus: 32
  distribution:
    distribution: fedora
    version: "32"
  eventLogger: file
  hostname: harpatil-node-tests
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.6.6-300.fc32.x86_64
  linkmode: dynamic
  memFree: 120888156160
  memTotal: 126625615872
  ociRuntime:
    name: crun
    package: crun-0.14-2.fc32.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 0.14
      commit: ebc56fc9bcce4b3208bb0079636c80545122bf58
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  remoteSocket:
    path: /run/podman/podman.sock
  rootless: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 0
  swapTotal: 0
  uptime: 46m 6.18s
registries:
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - registry.centos.org
  - docker.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev,metacopy=on
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "true"
  imageStore:
    number: 0
  runRoot: /var/run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 1
  Built: 0
  BuiltTime: Thu Jan  1 00:00:00 1970
  GitCommit: ""
  GoVersion: go1.14.3
  OsArch: linux/amd64
  Version: 2.0.2


Package info (e.g. output of rpm -q podman or apt list podman):

podman-2.0.2-1.fc32.x86_64```

**Additional environment details (AWS, VirtualBox, physical, etc.):**
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 10, 2020
@vrothberg
Copy link
Member

Thanks for opening the issue, @harche!

I works when adding a space with '{{ json .}}'. I'll take a look to make it a bit more tolerant.

@vrothberg vrothberg self-assigned this Jul 10, 2020
@vrothberg
Copy link
Member

It's not defined for podman info but note that #2688 referred to podman version

@baude
Copy link
Member

baude commented Jul 10, 2020

I think templates require the space?

vrothberg added a commit to vrothberg/libpod that referenced this issue Jul 10, 2020
Allow more variants to yield json output for `podman version` and
`podman info`.  Instead of comparing strings, use a regex and add
unit and e2e tests.

Fixes: containers#6927
Signed-off-by: Valentin Rothberg <[email protected]>
mheon pushed a commit to mheon/libpod that referenced this issue Jul 22, 2020
Allow more variants to yield json output for `podman version` and
`podman info`.  Instead of comparing strings, use a regex and add
unit and e2e tests.

Fixes: containers#6927
Signed-off-by: Valentin Rothberg <[email protected]>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants