crc: [BUG] Monitoring is not coming up in 4.6.1

General information

  • OS: Linux
  • Hypervisor: KVM
  • Did you run crc setup before starting it (Yes/No)? Yes
  • Running CRC on: Laptop

CRC version

CodeReady Containers version: 1.18.0+bb304aa
OpenShift version: 4.6.1 (embedded in binary)

CRC status

 version: 1.18.0+bb304aa 
DEBU OpenShift version: 4.6.1 (embedded in binary) 
Checking file: /home/stavros/.crc/machines/crc/.crc-exist
DEBU About to run SSH command with hidden output  
DEBU SSH command succeeded                        
DEBU About to run SSH command:
df -B1 --output=size,used,target /sysroot | tail -1 
DEBU SSH command results: err: <nil>, output: 32720793600 13103243264 /sysroot 
CRC VM:          Running
OpenShift:       Running (v4.6.1)
Disk Usage:      13.1GB of 32.72GB (Inside the CRC VM)
Cache Usage:     15.09GB
Cache Directory: /home/stavros/.crc/cache

CRC config

- cpus                                  : 8
- memory                                : 40960

Host Operating System

NAME=Fedora
VERSION="32 (Workstation Edition)"
ID=fedora
VERSION_ID=32
VERSION_CODENAME=""
PLATFORM_ID="platform:f32"
PRETTY_NAME="Fedora 32 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:32"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f32/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=32
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=32
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation

Steps to reproduce

  1. sudo rm -rf ~/.crc sudo rm -rf ~/.kube
  2. crc cleanup
  3. crc setup
  4. crc config set memory 40960
  5. crc config set cpus 8
  6. crc config mem, cpus
  7. crc start --log-level debug -p pull.txt
  8. eval $(crc oc-env)
  9. oc login -u … -p …
  10. oc patch clusterversion/version --type=‘json’ -p ‘[{“op”:“remove”, “path”:“/spec/overrides/0”}]’ -oyaml (0 is the right index)

Expected

Monitoring to be up according to docs.

Actual

oc get pods -n openshift-monitoring returns no pods.

Logs

https://gist.github.com/skonto/a720158a2c993acd72eed9d0b2e0ad54

Note: 4.5.9 works with no issues.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

You can do it with oc on a running cluster:

$ oc edit clusterversion version
....
  - kind: Deployment
    group: apps/v1
    name: etcd-quorum-guard
    namespace: openshift-etcd
    unmanaged: true

(append these lines to the existing content)

$ oc scale --replicas=1 deployment etcd-quorum-guard -n openshift-etcd
$ oc delete validatingwebhookconfigurations prometheusrules.openshift.io

then you can follow the instructions as usual