This repository was archived by the owner on Feb 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
hyperd compiled --without-xen failed to start pod sandbox #690
Copy link
Copy link
Closed
Description
The failure log of hyperd:
I1210 23:48:08.444119 32172 manager.go:208] RunPodSandbox from runtime service with request &RunPodSandboxRequest{Config:&PodSandboxConfig{Metadata:&PodSandboxMetadata{Name:PodSandbox-for-create-test-92ee8ba1-de04-11e7-89aa-42010a14007b,Uid:cri-test-uid92ee8bd3-de04-11e7-89aa-42010a14007b,Namespace:cri-test-namespace92ee8beb-de04-11e7-89aa-42010a14007b,Attempt:2,},Hostname:,LogDirectory:,DnsConfig:nil,PortMappings:[],Labels:map[string]string{},Annotations:map[string]string{},Linux:&LinuxPodSandboxConfig{CgroupParent:,SecurityContext:nil,Sysctls:map[string]string{},},},}
I1210 23:48:10.218487 32172 sandbox.go:106] Get container interfaces in netns "/var/run/netns/cni-e794ffb1-2de7-0b47-26c0-e0fcd5b7c762": []*hyper.containerInterface{(*hyper.containerInterface)(0xc420011770)}
I1210 23:48:10.254067 24216 pod.go:14] PodCreate with request podSpec:<id:"k8s_POD.2_PodSandbox-for-create-test-92ee8ba1-de04-11e7-89aa-42010a14007b_cri-test-namespace92ee8beb-de04-11e7-89aa-42010a14007b_cri-test-uid92ee8bd3-de04-11e7-89aa-42010a14007b_06e1f806" labels:<key:"HOSTBRIDGE" value:"br10ecdbe5" > labels:<key:"NETNS" value:"/var/run/netns/cni-e794ffb1-2de7-0b47-26c0-e0fcd5b7c762" > resource:<vcpu:1 memory:64 > interfaces:<bridge:"br10ecdbe5" ip:"10.30.0.2/16" ifname:"tap10ecdbe5" mac:"52:2a:d1:ce:18:68" gateway:"10.30.0.1" > >
I1210 23:48:10.254146 24216 factory.go:95] configuring log driver [json-file] for k8s_POD.2_PodSandbox-for-create-test-92ee8ba1-de04-11e7-89aa-42010a14007b_cri-test-namespace92ee8beb-de04-11e7-89aa-42010a14007b_cri-test-uid92ee8bd3-de04-11e7-89aa-42010a14007b_06e1f806
I1210 23:48:10.254170 24216 sandbox.go:27] get sandbox from factory: CPU: 1, Memory 64
I1210 23:48:10.254385 24216 vm.go:788] VM[vm-fQbwGGXsaW] GetVm succeeded
I1210 23:48:10.254427 24216 vm_states.go:301] SB[vm-fQbwGGXsaW] startPod: &json.Pod{Hostname:"k8s_POD.2_PodSandbox-for-create-test-92ee8ba1-de04-11e7-89aa-42", DeprecatedContainers:[]json.Container(nil), DeprecatedInterfaces:[]json.NetworkInf(nil), Dns:[]string(nil), DnsOptions:[]string(nil), DnsSearch:[]string(nil), DeprecatedRoutes:[]json.Route(nil), ShareDir:"share_dir", PortmappingWhiteLists:(*json.PortmappingWhiteList)(0xc42074e6f0)}
I1210 23:48:10.254493 24216 qemu_amd64.go:38] kvm not exist change to no kvm mode
I1210 23:48:10.254526 24216 qemu_process.go:138] cmdline arguments: -machine pc-i440fx-2.1,usb=off -cpu core2duo -kernel /tmp/src/github.com/hyperhq/hyperstart/build/arch/x86_64/kernel -initrd /tmp/src/github.com/hyperhq/hyperstart/build/hyper-initrd.img -append console=ttyS0 panic=1 no_timer_check iommu=off clocksource=acpi_pm notsc -realtime mlock=off -no-user-config -nodefaults -no-hpet -rtc base=utc,clock=vm,driftfix=slew -no-reboot -display none -boot strict=on -m size=64,slots=1,maxmem=32768M -smp cpus=1,maxcpus=8 -numa node,nodeid=0,cpus=0-7,mem=64 -qmp unix:/var/run/hyper/vm-fQbwGGXsaW/qmp.sock,server,nowait -serial unix:/var/run/hyper/vm-fQbwGGXsaW/console.sock,server,nowait -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x2 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x3 -chardev socket,id=charch0,path=/var/run/hyper/vm-fQbwGGXsaW/hyper.sock,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charch0,id=channel0,name=sh.hyper.channel.0 -chardev socket,id=charch1,path=/var/run/hyper/vm-fQbwGGXsaW/tty.sock,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charch1,id=channel1,name=sh.hyper.channel.1 -fsdev local,id=virtio9p,path=/var/run/hyper/vm-fQbwGGXsaW/share_dir,security_model=none -device virtio-9p-pci,fsdev=virtio9p,mount_tag=share_dir -daemonize -pidfile /var/run/hyper/vm-fQbwGGXsaW/pidfile -D /var/log/hyper/qemu/vm-fQbwGGXsa.log
I1210 23:48:10.254546 24216 qemu_process.go:139] qemu log file: /var/log/hyper/qemu/vm-fQbwGGXsa.log
I1210 23:48:10.254767 24216 hypervisor.go:41] SB[vm-fQbwGGXsaW] watch hyperstart
I1210 23:48:10.254791 24216 hypervisor.go:44] SB[vm-fQbwGGXsaW] issue VERSION request for keep-alive test
I1210 23:48:10.254915 24216 vm_console.go:56] SB[vm-fQbwGGXsaW] fail to enable vmLogd: dial unix /var/run/vmlogd.sock: connect: no such file or directory
E1210 23:48:10.260471 24216 qemu_process.go:155] /usr/bin/qemu-system-x86_64: error while loading shared libraries: libxenctrl-4.4.so: cannot open shared object file: No such file or directory
E1210 23:48:10.260500 24216 qemu_process.go:159] exit status 127
If use default configure (with xen), the compile will fail:
```go build -tags "static_build with_xen with_libvirt libdm_no_deferred_remove" -ldflags "-X github.com/hyperhq/hyperd/utils.VERSION=1.0.0 -X github.com/hyperhq/hyperd/utils.GITCOMMIT=`git describe --dirty --always --tags 2> /dev/null || true`" hyperd.go
# github.com/hyperhq/hyperd/vendor/github.com/hyperhq/runv/hypervisor/xen
../../vendor/github.com/hyperhq/runv/hypervisor/xen/xen.go:258:71: cannot use guest.Ipaddr[0] (type byte) as type string in argument to HyperxlNicAdd
# github.com/hyperhq/hyperd/vendor/github.com/hyperhq/runv/lib/runvxenlight
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go: In function 'runvxl_domain_create_new':
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:56:13: error: 'libxl_domain_config {aka struct libxl_domain_config}' has no member named 'num_p9s'
d_config.num_p9s = 1;
^
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:57:13: error: 'libxl_domain_config {aka struct libxl_domain_config}' has no member named 'p9'
d_config.p9 = malloc(sizeof(libxl_device_p9));
^
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:57:33: error: 'libxl_device_p9' undeclared (first use in this function)
d_config.p9 = malloc(sizeof(libxl_device_p9));
^
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:57:33: note: each undeclared identifier is reported only once for each function it appears in
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:58:17: error: 'libxl_domain_config {aka struct libxl_domain_config}' has no member named 'p9'
if (d_config.p9 == NULL) {
^
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:61:13: error: 'libxl_domain_config {aka struct libxl_domain_config}' has no member named 'p9'
d_config.p9->tag = config->p9_tag;
^
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:62:13: error: 'libxl_domain_config {aka struct libxl_domain_config}' has no member named 'p9'
d_config.p9->path = config->p9_path;
^
../../vendor/github.com/hyperhq/runv/lib/runvxenlight/xenlight-runv.go:63:13: error: 'libxl_domain_config {aka struct libxl_domain_config}' has no member named 'p9'
d_config.p9->security_model = "none";```
Encountered this in frakti travis CI.
cc @gnawux
Metadata
Metadata
Assignees
Labels
No labels