kubevirt / demo

Easy to use KubeVirt demo based on minikube.
Apache License 2.0
108 stars 59 forks source link

Deploy a VirtualMachine fails with The "" is invalid: : spec.template.spec.volumes.containerDisk in body is a forbidden property #98

Closed haidernitc closed 5 years ago

haidernitc commented 5 years ago

We are using demo vm.yaml but it fails with below error. Kubervirt seems up and working.

[centos@ip-172-31-43-99 ~]$ kubectl apply -f https://raw.githubusercontent.com/kubevirt/demo/master/manifests/vm.yaml The "" is invalid: : spec.template.spec.volumes.containerDisk in body is a forbidden property

[centos@ip-172-31-43-99 kubevirt-ansible]$ kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system coredns-86c58d9df4-5gpqn 1/1 Running 0 25m kube-system coredns-86c58d9df4-j7sqz 1/1 Running 0 25m kube-system etcd-ip-172-31-43-99.eu-central-1.compute.internal 1/1 Running 0 24m kube-system kube-apiserver-ip-172-31-43-99.eu-central-1.compute.internal 1/1 Running 0 23m kube-system kube-cni-plugins-amd64-hv2zc 1/1 Running 0 24m kube-system kube-controller-manager-ip-172-31-43-99.eu-central-1.compute.internal 1/1 Running 0 24m kube-system kube-multus-amd64-2ztrz 1/1 Running 0 24m kube-system kube-ovs-cni-plugin-amd64-pqdvw 1/1 Running 0 23m kube-system kube-proxy-mggdz 1/1 Running 0 25m kube-system kube-scheduler-ip-172-31-43-99.eu-central-1.compute.internal 1/1 Running 0 24m kube-system virt-api-66d49464-7bg9s 1/1 Running 0 23m kube-system virt-api-66d49464-c9x5z 1/1 Running 0 23m kube-system virt-controller-7fb89fd44c-j2mlc 1/1 Running 0 23m kube-system virt-controller-7fb89fd44c-xnhqm 1/1 Running 0 23m kube-system virt-handler-k6bb4 1/1 Running 0 23m kube-system weave-net-tdxwp 2/2 Running 0 25m

haidernitc commented 5 years ago

More information: [centos@ip-172-31-43-99 ~]$ kubectl version Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T21:04:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T20:56:12Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}

slintes commented 5 years ago

@haidernitc Hi, containerDisk was renamed recently from registryDisk. What KubeVirt version are you running (virtctl version)? If it's not the latest, you either upgrade KubeVirt, or downgrade the VM spec by renaming containerDisk back to registryDisk.

kubevirt-bot commented 5 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kubevirt-bot commented 5 years ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

kubevirt-bot commented 5 years ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

kubevirt-bot commented 5 years ago

@kubevirt-bot: Closing this issue.

In response to [this](https://github.com/kubevirt/demo/issues/98#issuecomment-491277785): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen`. >Mark the issue as fresh with `/remove-lifecycle rotten`. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.