Skip to content

Instantly share code, notes, and snippets.

@larsks
Last active November 19, 2021 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsks/f2e51d95956a7c60853b48098b3de92a to your computer and use it in GitHub Desktop.
Save larsks/f2e51d95956a7c60853b48098b3de92a to your computer and use it in GitHub Desktop.
{"component":"virt-launcher","level":"info","msg":"Collected all requested hook sidecar sockets","pos":"manager.go:74","timestamp":"2021-11-19T03:34:35.502732Z"}
{"component":"virt-launcher","level":"info","msg":"Sorted all collected sidecar sockets per hook point based on their priority and name: map[]","pos":"manager.go:77","timestamp":"2021-11-19T03:34:35.502814Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon: qemu:///system","pos":"libvirt.go:492","timestamp":"2021-11-19T03:34:35.504494Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon failed: virError(Code=38, Domain=7, Message='Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory')","pos":"libvirt.go:500","timestamp":"2021-11-19T03:34:35.505016Z"}
{"component":"virt-launcher","level":"info","msg":"libvirt version: 7.0.0, package: 14.4.module+el8.4.0+12413+d23780e6 (Red Hat, Inc. \u003chttp://bugzilla.redhat.com/bugzilla\u003e, 2021-08-27-06:46:40, )","subcomponent":"libvirt","thread":"56","timestamp":"2021-11-19T03:34:35.527000Z"}
{"component":"virt-launcher","level":"info","msg":"hostname: example","subcomponent":"libvirt","thread":"56","timestamp":"2021-11-19T03:34:35.527000Z"}
{"component":"virt-launcher","level":"error","msg":"internal error: Child process (dmidecode -q -t 0,1,2,3,4,11,17) unexpected exit status 1: /dev/mem: No such file or directory","pos":"virCommandWait:2771","subcomponent":"libvirt","thread":"56","timestamp":"2021-11-19T03:34:35.527000Z"}
{"component":"virt-launcher","level":"info","msg":"Connected to libvirt daemon","pos":"libvirt.go:508","timestamp":"2021-11-19T03:34:36.007323Z"}
{"component":"virt-launcher","level":"info","msg":"Registered libvirt event notify callback","pos":"client.go:485","timestamp":"2021-11-19T03:34:36.011987Z"}
{"component":"virt-launcher","level":"info","msg":"Marked as ready","pos":"virt-launcher.go:80","timestamp":"2021-11-19T03:34:36.012391Z"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Executing PreStartHook on VMI pod environment","name":"example","namespace":"lars-sandbox","pos":"manager.go:447","timestamp":"2021-11-19T03:34:36.337240Z","uid":"227ee246-9a6e-454e-a4fc-4966dad14ba7"}
{"component":"virt-launcher","kind":"","level":"info","msg":"Starting PreCloudInitIso hook","name":"example","namespace":"lars-sandbox","pos":"manager.go:456","timestamp":"2021-11-19T03:34:36.337424Z","uid":"227ee246-9a6e-454e-a4fc-4966dad14ba7"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1671c84]
goroutine 103 [running]:
kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/network.(*podNIC).PlugPhase2(0xc001d260f8, 0xc000340500, 0x29afe30, 0x1c455a0)
/go/src/kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/network/podnic.go:241 +0x84
kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/network.(*VMNetworkConfigurator).SetupPodNetworkPhase2(0xc001d26278, 0xc000340500, 0x1a15fda, 0x18)
/go/src/kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/network/network.go:107 +0x117
kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap.(*LibvirtDomainManager).preStartHook(0xc0001de000, 0xc000340000, 0xc000340500, 0x1c66c00, 0x0, 0x1c145c0, 0xc001d5b170)
/go/src/kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/manager.go:484 +0x692
kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap.(*LibvirtDomainManager).SyncVMI(0xc0001de000, 0xc000340000, 0xc00058eb00, 0xc0005e83c0, 0x0, 0x0, 0x0)
/go/src/kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/manager.go:788 +0x577
kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/cmd-server.(*Launcher).SyncVirtualMachine(0xc00058e030, 0x1c47c20, 0xc0005e80c0, 0xc00011bbe0, 0xc00058e030, 0xc0005e80c0, 0xc000643ba0)
/go/src/kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/cmd-server/server.go:183 +0x98
kubevirt.io/kubevirt/pkg/handler-launcher-com/cmd/v1._Cmd_SyncVirtualMachine_Handler(0x19824e0, 0xc00058e030, 0x1c47c20, 0xc0005e80c0, 0xc00010f680, 0x0, 0x1c47c20, 0xc0005e80c0, 0xc0003d9900, 0x10bf)
/go/src/kubevirt.io/kubevirt/pkg/handler-launcher-com/cmd/v1/cmd.pb.go:935 +0x217
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00013efc0, 0x1c59b18, 0xc0001caf00, 0xc00062a100, 0xc0003eaab0, 0x28a6300, 0x0, 0x0, 0x0)
/go/src/kubevirt.io/kubevirt/vendor/google.golang.org/grpc/server.go:1171 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc00013efc0, 0x1c59b18, 0xc0001caf00, 0xc00062a100, 0x0)
/go/src/kubevirt.io/kubevirt/vendor/google.golang.org/grpc/server.go:1494 +0xccf
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0007b02e0, 0xc00013efc0, 0x1c59b18, 0xc0001caf00, 0xc00062a100)
/go/src/kubevirt.io/kubevirt/vendor/google.golang.org/grpc/server.go:834 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/go/src/kubevirt.io/kubevirt/vendor/google.golang.org/grpc/server.go:832 +0x1fd
{"component":"virt-launcher","level":"info","msg":"Reaped pid 22 with status 512","pos":"virt-launcher.go:549","timestamp":"2021-11-19T03:34:36.342971Z"}
{"component":"virt-launcher","level":"error","msg":"dirty virt-launcher shutdown: exit-code 2","pos":"virt-launcher.go:567","timestamp":"2021-11-19T03:34:36.343083Z"}
{"component":"virt-launcher","level":"error","msg":"error when checking for istio-proxy presence","pos":"virt-launcher.go:657","reason":"Get \"http://localhost:15021/healthz/ready\": dial tcp [::1]:15021: connect: connection refused","timestamp":"2021-11-19T03:34:36.346964Z"}
{"component":"virt-launcher","level":"error","msg":"error when checking for istio-proxy presence","pos":"virt-launcher.go:657","reason":"Get \"http://localhost:15021/healthz/ready\": dial tcp [::1]:15021: connect: connection refused","timestamp":"2021-11-19T03:34:36.358756Z"}
{"component":"virt-launcher","level":"error","msg":"error when checking for istio-proxy presence","pos":"virt-launcher.go:657","reason":"Get \"http://localhost:15021/healthz/ready\": dial tcp [::1]:15021: connect: connection refused","timestamp":"2021-11-19T03:34:36.414572Z"}
{"component":"virt-launcher","level":"error","msg":"error when checking for istio-proxy presence","pos":"virt-launcher.go:657","reason":"Get \"http://localhost:15021/healthz/ready\": dial tcp [::1]:15021: connect: connection refused","timestamp":"2021-11-19T03:34:36.682665Z"}
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: example
namespace: lars-sandbox
spec:
dataVolumeTemplates:
- metadata:
name: example-rootdisk
spec:
pvc:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi
storageClassName: ocs-external-storagecluster-ceph-rbd
volumeMode: Block
source:
pvc:
name: centos-8-stream
namespace: lars-sandbox
running: true
template:
spec:
accessCredentials:
- sshPublicKey:
source:
secret:
secretName: authorizedsshkeys-example
propagationMethod:
configDrive: {}
domain:
cpu:
cores: 1
sockets: 1
threads: 1
devices:
disks:
- disk:
bus: virtio
name: cloudinitdisk
- bootOrder: 1
disk:
bus: virtio
name: rootdisk
interfaces:
- macAddress: 02:c6:bc:00:00:15
model: virtio
name: default
networkInterfaceMultiqueue: true
machine:
type: pc-q35-rhel8.4.0
resources:
limits:
memory: 4Gi
requests:
memory: 4Gi
evictionStrategy: LiveMigrate
hostname: example
networks:
- name: default
pod: {}
terminationGracePeriodSeconds: 180
volumes:
- cloudInitConfigDrive:
userData: |
#cloud-config
user: centos
name: cloudinitdisk
- dataVolume:
name: example-rootdisk
name: rootdisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment