Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-17667

[2076379] must-gather: ruletables and qemu logs collected as a part of gather_vm_details scripts are zero bytes file

XMLWordPrintable

    • CNV I/U Operators Sprint 220, CNV I/U Operators Sprint 221
    • No

      Description of problem: On running gather_vm_details against 4.11, we are seeing the following warning on console:
      ===================
      Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (containers "gather", "copy" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (containers "gather", "copy" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or containers "gather", "copy" must set securityContext.runAsNonRoot=true), seccompProfile (pod or containers "gather", "copy" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
      ===================
      And rulestable, qemu log information are no longer getting collected.

      Version-Release number of selected component (if applicable):
      4.11.0-224

      How reproducible:
      100%

      Steps to Reproduce:
      1. Run vm gather commmand: oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8@sha256:e49438a284e8e9121137132f3810ecf49909892574668cb9cd2b19b8b46d08a0 --dest-dir=/tmp/pytest-EX4WtwouaHUoyZacyicyzk/must_gather_test_vm_gather_alternate_namespace0 – NS=must-gather-alternate gather_vms_details

      or
      oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8@sha256:e49438a284e8e9121137132f3810ecf49909892574668cb9cd2b19b8b46d08a0 --dest-dir=/tmp/pytest-EX4WtwouaHUoyZacyicyzk/must_gather_scope_module1 – gather_vms_details
      2.
      3.

      Actual results:
      rulestable and qemu logs collected are empty.
      Following error message is seen on mustgather output:
      =======================
      [must-gather-9vccn] POD 2022-04-18T20:43:26.119439364Z cat: /var/log/libvirt/qemu/must-gather-alternate_must-gather-vm-2-1650314512-3492553.log: Permission denied
      [must-gather-9vccn] POD 2022-04-18T20:43:26.128515074Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:26.193723643Z cat: /var/log/libvirt/qemu/must-gather-alternate_must-gather-vm-3-1650314512-5202754.log: Permission denied
      [must-gather-9vccn] POD 2022-04-18T20:43:26.195080289Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:26.277463123Z cat: /var/log/libvirt/qemu/must-gather-alternate_must-gather-vm-0-1650314511-7316048.log: Permission denied
      [must-gather-9vccn] POD 2022-04-18T20:43:26.289674838Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:26.322750933Z cat: /var/log/libvirt/qemu/must-gather-alternate_must-gather-vm-1-1650314511-9379501.log: Permission denied
      [must-gather-9vccn] POD 2022-04-18T20:43:26.325656916Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:26.370199606Z cat: /var/log/libvirt/qemu/must-gather-alternate_must-gather-vm-4-1650314512-6850836.log: Permission denied
      [must-gather-9vccn] POD 2022-04-18T20:43:26.371093484Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:27.814192970Z Defaulted container "virt-handler" out of: virt-handler, virt-launcher (init)
      [must-gather-9vccn] POD 2022-04-18T20:43:28.049858518Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:28.178720318Z Defaulted container "virt-handler" out of: virt-handler, virt-launcher (init)
      [must-gather-9vccn] POD 2022-04-18T20:43:28.257773254Z Defaulted container "virt-handler" out of: virt-handler, virt-launcher (init)
      [must-gather-9vccn] POD 2022-04-18T20:43:28.310118977Z Defaulted container "virt-handler" out of: virt-handler, virt-launcher (init)
      [must-gather-9vccn] POD 2022-04-18T20:43:28.670392002Z Defaulted container "virt-handler" out of: virt-handler, virt-launcher (init)
      [must-gather-9vccn] POD 2022-04-18T20:43:28.911945137Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:28.919012468Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:28.982849444Z command terminated with exit code 1
      [must-gather-9vccn] POD 2022-04-18T20:43:28.995467881Z command terminated with exit code 1
      =======================

      Expected results:
      All valid must-gather information should be collected.

      Additional info:
      Will attach vm gather output.

              stirabos Simone Tiraboschi
              rhn-support-dbasunag Debarati Basu-Nag
              Debarati Basu-Nag Debarati Basu-Nag
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: