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

Support GO Template #4391

Closed
slimjim2234 opened this issue Oct 31, 2019 · 4 comments
Closed

Support GO Template #4391

slimjim2234 opened this issue Oct 31, 2019 · 4 comments
Assignees
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. 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. stale-issue

Comments

@slimjim2234
Copy link
Contributor

/kind bug

Description

Just like closed issues #2688 and #2671, but with the "info" option.

Steps to reproduce the issue:

  1. kubeadm init --apiserver-advertise-address=192.168.122.1 --pod-network-cidr=192.168.123.0/24

Describe the results you received:

error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR SystemVerification]: failed executing "docker info --format '{{json .}}'"\noutput: Error: template parsing error: template: image:1: function "json" not defined
\nerror: exit status 125

Describe the results you expected:

docker info --format '{{ json .}}'
and
podman info --format '{{ json .}}'
should produce json output

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

In the above kubeadm error, podman is symlinked to docker.

Output of podman version:

Version:            1.6.2
RemoteAPI Version:  1
Go Version:         go1.13.3
OS/Arch:            linux/amd64

Output of podman info --debug:

debug:
  compiler: gc
  git commit: ""
  go version: go1.13.3
  podman version: 1.6.2
host:
  BuildahVersion: 1.11.3
  CgroupVersion: v1
  Conmon:
    package: Unknown
    path: /usr/bin/conmon
    version: 'conmon version 2.0.1, commit: 4dc8bcfec41e10ca760c8e2089474c2843dfd066'
  Distribution:
    distribution: arch
    version: unknown
  IDMappings:
    gidmap:
    - container_id: 0
      host_id: 976
      size: 1
    uidmap:
    - container_id: 0
      host_id: 976
      size: 1
  MemFree: 45038505984
  MemTotal: 50620407808
  OCIRuntime:
    name: runc
    package: Unknown
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc9
      commit: d736ef14f0288d6993a1845745d6756cfc9ddd5a
      spec: 1.0.1-dev
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 8
  eventlogger: journald
  hostname: megachamp
  kernel: 5.3.7-arch1-1-ARCH
  os: linux
  rootless: true
  slirp4netns:
    Executable: /usr/bin/slirp4netns
    Package: Unknown
    Executable: /usr/bin/slirp4netns
    Package: Unknown
    Version: |-
      slirp4netns version 0.4.1
      commit: 4d38845e2e311b684fc8d1c775c725bfcd5ddc27
  uptime: 72h 12m 52.05s (Approximately 3.00 days)
registries:
  blocked: null
  insecure: null
  search:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ConfigFile: /home/nope/.config/containers/storage.conf
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: {}
  GraphRoot: /home/nope/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 0
  RunRoot: /run/user/976
  VolumePath: /home/nope/.local/share/containers/storage/volumes

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

pacman -S podman
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Oct 31, 2019
@rhatdan
Copy link
Member

rhatdan commented Oct 31, 2019

@slimjim2234 Would you like to take a stab at this?

@rhatdan rhatdan added the Good First Issue This issue would be a good issue for a first time contributor to undertake. label Oct 31, 2019
@slimjim2234
Copy link
Contributor Author

@slimjim2234 Would you like to take a stab at this?

Certainly, took a stab at it.

openshift-merge-robot added a commit that referenced this issue Nov 8, 2019
Fixed issue #4391; podman info --format '{{ json . }}'
mheon pushed a commit to mheon/libpod that referenced this issue Nov 14, 2019
Fixed issue containers#4391; podman info --format '{{ json . }}'
@github-actions
Copy link

github-actions bot commented Dec 2, 2019

This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days.

@mheon
Copy link
Member

mheon commented Dec 2, 2019

I believe we can close this as #4408 is merged

@mheon mheon closed this as completed Dec 2, 2019
@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
Good First Issue This issue would be a good issue for a first time contributor to undertake. 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. stale-issue
Projects
None yet
Development

No branches or pull requests

4 participants