Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

ppc64le: kata-runtime kata-env fails due to missing vendor field #864

Closed
nitkon opened this issue Oct 29, 2018 · 2 comments
Closed

ppc64le: kata-runtime kata-env fails due to missing vendor field #864

nitkon opened this issue Oct 29, 2018 · 2 comments

Comments

@nitkon
Copy link
Contributor

nitkon commented Oct 29, 2018

Description of problem

kata-runtime kata-env
cannot find vendor field in file /proc/cpuinfo

Expected result

kata-runtime kata-env command does not error out

Actual result

cannot find vendor field in file /proc/cpuinfo

nitkon added a commit to nitkon/runtime that referenced this issue Oct 29, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure the check is only for
arm and amd64.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
@grahamwhaley
Copy link
Contributor

oh, and iirc, /proc/cpuinfo does not have a defined parseable format across architectures - we will likely have to code up for each arch, or use another external tool that already does that.

@nitkon
Copy link
Contributor Author

nitkon commented Oct 29, 2018

  1. cat /proc/cpuinfo
processor	: 0
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 8
cpu		: POWER8E (raw), altivec supported
clock		: 2460.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 16
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 24
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 32
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 40
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 48
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 56
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 64
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 72
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 80
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 88
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 96
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 104
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 112
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 120
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 128
cpu		: POWER8E (raw), altivec supported
clock		: 2294.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 136
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 144
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

processor	: 152
cpu		: POWER8E (raw), altivec supported
clock		: 2061.000000MHz
revision	: 2.1 (pvr 004b 0201)

timebase	: 512000000
platform	: PowerNV
model		: 8247-22L
machine		: PowerNV 8247-22L
firmware	: OPAL v3
  1. kata-runtime kata-env (After this patch)
[Meta]
  Version = "1.0.19"

[Runtime]
  Debug = false
  DisableNewNetNs = false
  Path = "/usr/local/bin/kata-runtime"
  [Runtime.Version]
    Semver = "1.3.0"
    Commit = "51d4f402c8e4974c7d7c7d949b4ed7b906491075"
    OCI = "1.0.1-dev"
  [Runtime.Config]
    Path = "/usr/share/defaults/kata-containers/configuration.toml"

[Hypervisor]
  MachineType = "pseries"
  Version = "QEMU emulator version 2.12.50 (v2.12.0-1104-g8e36d27-dirty)\nCopyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers"
  Path = "/usr/bin/qemu-system-ppc64le"
  BlockDeviceDriver = "virtio-scsi"
  EntropySource = "/dev/urandom"
  Msize9p = 8192
  MemorySlots = 10
  Debug = false
  UseVSock = false

[Image]
  Path = ""

[Kernel]
  Path = "/usr/share/kata-containers/kata-vmlinuz-4.14.49.container"
  Parameters = ""

[Initrd]
  Path = "/usr/share/kata-containers/kata-containers-initrd-intel-jodh"

[Proxy]
  Type = "kataProxy"
  Version = "kata-proxy version 1.2.0-5377b5db51fe59b52b07ee442d3598802b23d7f7"
  Path = "/usr/libexec/kata-containers/kata-proxy"
  Debug = false

[Shim]
  Type = "kataShim"
  Version = "kata-shim version 1.2.0-35c7dbabc677b0d67b4b5b21fc87c90090bc5a82"
  Path = "/usr/libexec/kata-containers/kata-shim"
  Debug = false

[Agent]
  Type = "kata"

[Host]
  Kernel = "4.4.0-127-generic"
  Architecture = "ppc64le"
  VMContainerCapable = false
  SupportVSocks = false
  [Host.Distro]
    Name = "Ubuntu"
    Version = "16.04"
  [Host.CPU]
    Vendor = ""
    Model = "8247-22L"

[Netmon]
  Version = "kata-netmon version 1.3.0"
  Path = "/usr/libexec/kata-containers/kata-netmon"
  Debug = false
  Enable = false

nitkon added a commit to nitkon/runtime that referenced this issue Nov 1, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure the check is only for
arm and amd64.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 23, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure the check is only for
arm and amd64.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 23, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure the check is only for
arm and amd64.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 23, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure the check is only for
arm and amd64.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 23, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure the check is only for
arm and amd64.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 24, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 24, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 24, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 24, 2018
    There is no vendor field in /proc/cpuinfo contents
    on ppc64le. Make sure to return "" for vendor field
    for ppc64le and fix all the corresponding testcases
    as well.

    Fixes: kata-containers#864

    Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 24, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 24, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 24, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
nitkon added a commit to nitkon/runtime that referenced this issue Nov 27, 2018
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.

Fixes: kata-containers#864

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants