This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: cdi | |
| rules: | |
| - apiGroups: [""] | |
| resources: ["events"] | |
| verbs: ["create", "update", "patch"] | |
| - apiGroups: [""] | |
| resources: ["persistentvolumeclaims"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style type="text/css"> | |
| .tg {border-collapse:collapse;border-spacing:0;} | |
| .tg td{font-family:"Comic Sans MS", sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;} | |
| .tg th{font-family:"Comic Sans MS", sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;} | |
| .tg .tg-kq67{font-family:"Comic Sans MS"; background-color:#a91b1b;border-color:inherit;vertical-align:top} | |
| .tg .tg-92fu{font-family:"Comic Sans MS", cursive, sans-serif !important;;background-color:#c0c0c0;border-color:inherit;vertical-align:top} | |
| .tg .tg-ik53{font-family:"Comic Sans MS", cursive, sans-serif !important;;background-color:#f8ff00;border-color:inherit;vertical-align:top} | |
| .tg .tg-hcsj{font-family:"Comic Sans MS", cursive, sans-serif !important;;background-color:#3166ff;border-color:inherit;vertical-align:top} | |
| .tg .tg-us36{font-family:"Comic Sans MS", cursive, sans-serif ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ ceph-cinder-demo git:(master) ✗ ./oc.sh logs -f cdi-deployment-5fb8c9f87f-8wsqr | |
| I0316 03:44:54.341408 9 controller.go:50] init: complete: CDI controller will create the "latest" version of the importer | |
| W0316 03:44:54.341661 9 client_config.go:529] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work. | |
| I0316 03:44:54.346992 9 controller.go:79] main: created CDI Controller in "default" namespace | |
| I0316 03:44:54.347010 9 controller.go:51] Starting CDI controller loop | |
| I0316 03:44:54.447148 9 controller.go:59] Controller cache has synced | |
| I0316 03:44:54.447197 9 controller.go:87] processNextItem: next pvc to process: default/golden-pvc | |
| E0316 03:44:54.447217 9 controller.go:99] processNextItem: error processing key "default/golden-pvc": processItem: get endpoint: getEndpoint: annotation "kubevirt.io/storage.import.endpoint" in pvc default/golden-pvc is missing or is blank | |
| I0316 03:44:54.447376 9 controller.go:87] processNex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ ceph-cinder-demo git:(master) ✗ ./oc.sh get pods | |
| NAME READY STATUS RESTARTS AGE | |
| cdi-deployment-5fb8c9f87f-nvqp2 1/1 Running 0 49m | |
| importer-golden-pvc 0/1 ContainerCreating 0 48m | |
| ➜ ceph-cinder-demo git:(master) ✗ ./oc.sh describe pod importer-golden-pvc | |
| Name: importer-golden-pvc | |
| Namespace: golden | |
| Node: node/192.168.121.241 | |
| Start Time: Thu, 15 Mar 2018 15:47:53 +0800 | |
| Labels: <none> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: kubevirt.io/v1alpha1 | |
| kind: VirtualMachine | |
| metadata: | |
| name: demo-vm | |
| spec: | |
| terminationGracePeriodSeconds: 0 | |
| domain: | |
| resources: | |
| requests: | |
| memory: 64M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: endpoint-secret | |
| type: Opaque | |
| data: | |
| accessKeyId: "cmVkaGF0" #redhat <optional: your key or user name, base64 encoded> | |
| secretKey: "MTIz" #123 <optional: your secret or password, base64 encoded> | |
| http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| importer-j4zmk 0/1 Error 0 1m | |
| ^C% ➜ ceph-cinder-demo git:(master) ✗ ./oc.sh logs -f importer-j4zmk | |
| I0313 08:14:31.477716 8 importer.go:26] Starting importer | |
| W0313 08:14:31.477932 8 util.go:31] NewImportInfo: IMPORTER_ACCESS_KEY_ID and/or IMPORTER_SECRET_KEY env variables are empty/n | |
| F0313 08:14:31.478016 8 importer.go:40] main: unable to create data reader: NewDataReader: unable to determinte client for streaming fucking%20doesn%27t%20work | |
| goroutine 1 [running]: | |
| github.com/kubevirt/containerized-data-importer/vendor/github.com/golang/glog.stacks(0xc420063700, 0xc4200ee1c0, 0xa7, 0xda) | |
| /Users/jcope/Workspace/go/src/github.com/kubevirt/containerized-data-importer/vendor/github.com/golang/glog/glog.go:766 +0xcf | |
| github.com/kubevirt/containerized-data-importer/vendor/github.com/golang/glog.(*loggingT).output(0x88dcc0, 0xc40 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ ceph-cinder-demo git:(master) ✗ ./oc.sh get pods | |
| NAME READY STATUS RESTARTS AGE | |
| cdi-deployment-7f44d94b9b-pqzs9 1/1 Running 0 6h | |
| demo-pod 1/1 Running 31 7h | |
| docker-registry-1-2lc7p 1/1 Running 0 7h | |
| importer-f94pm 0/1 ContainerCreating 0 1m | |
| registry-console-1-s9cds 1/1 Running 0 7h | |
| router-1-nzhv8 0/1 Terminating 0 7h | |
| router-2-n4z8k 1/1 Running 0 7h | |
| router-2-r4rj7 0/1 Pending 0 7h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: "golden-pvc" | |
| annotations: | |
| kubevirt.io/storage.import.endpoint: "" # Required. Format: (http||s3)://www.myUrl.com/path/of/data | |
| kubevirt.io/storage.import.secretName: "" # Optional. The name of the secret containing credentials for the data source | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: StorageClass | |
| apiVersion: storage.k8s.io/v1 | |
| metadata: | |
| name: gold | |
| namespace: default | |
| provisioner: kubernetes.io/cinder | |
| parameters: | |
| type: fast | |
| availability: nova |