ansibleplaybookbundle / import-vm-disk-apb Goto Github PK
View Code? Open in Web Editor NEWImport a virtual machine disk into a PVC for use with Kubevirt
License: Apache License 2.0
Import a virtual machine disk into a PVC for use with Kubevirt
License: Apache License 2.0
Hi @aglitke @rthallisey ,
So far kubevirt component and storage have been decoupled, provision kubevirt won't need/create storage,and users can choose storage they want. This APB is not updated for months, so I'd like to know if it still needs a StorageClass named "kubevirt" to provide storage interface to create PVC. Thanks.
Hi there,
I have kubevirt deployed on OCP v3.9.14 + OpenStack + GlusterFS. Then I can provision import-vm-disk-apb successfully. If I delete its serviceinstance or delete the provisioned service from web console, serviceinstance, service, pvc and pv can be deleted, but the running pod is still there. Pod should be deleted as well. Other APBs (such as PostgreSQL APB) have pod clean-up steps on deprovision.yml so they don't have the problem .
[root@host-172-16-120-12 ~]# oc get serviceinstance -n qwang4
NAME AGE
rh-import-vm-disk-apb-7bsvf 1m
[root@host-172-16-120-12 ~]# oc get all -n qwang4
NAME READY STATUS RESTARTS AGE
po/importer-qwang4dv26s 1/1 Running 0 1m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/glusterfs-dynamic-qwang4 ClusterIP 172.30.40.4 <none> 1/TCP 1m
[root@host-172-16-120-12 ~]# oc get pvc -n qwang4
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
qwang4 Bound pvc-7425c613-447d-11e8-a895-fa163e24d456 5Gi RWO kubevirt 1m
[root@host-172-16-120-12 ~]# oc get pv -n qwang4
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-3efa35d3-445b-11e8-a895-fa163e24d456 1Gi RWO Delete Bound openshift-ansible-service-broker/etcd standard 4h
pvc-7425c613-447d-11e8-a895-fa163e24d456 5Gi RWO Delete Bound qwang4/qwang4 kubevirt 1m
[root@host-172-16-120-12 ~]# oc delete serviceinstance rh-import-vm-disk-apb-7bsvf -n qwang4
serviceinstance "rh-import-vm-disk-apb-7bsvf" deleted
[root@host-172-16-120-12 ~]# oc get serviceinstance -n qwang4
No resources found.
[root@host-172-16-120-12 ~]# oc get pvc -n qwang4
No resources found.
[root@host-172-16-120-126 ~]# oc get pv -n qwang4
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-3efa35d3-445b-11e8-a895-fa163e24d456 1Gi RWO Delete Bound openshift-ansible-service-broker/etcd standard 4h
[root@host-172-16-120-12 ~]# oc get all -n qwang4
NAME READY STATUS RESTARTS AGE
po/importer-qwang4dv26s 1/1 Running 0 13m
tags:
- virtualization
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.