Last active
January 31, 2018 16:38
-
-
Save mandre/578b03e352253c7acc18befa45a55352 to your computer and use it in GitHub Desktop.
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
[heat-admin@openshift-openshiftmaster-0 ~]$ oc describe pod test-pod | |
Name: test-pod | |
Namespace: default | |
Node: openshift-openshiftworker-0/192.168.24.21 | |
Start Time: Wed, 31 Jan 2018 16:25:00 +0000 | |
Labels: <none> | |
Annotations: openshift.io/scc=anyuid | |
Status: Pending | |
IP: | |
Containers: | |
test-standalone-cinder: | |
Container ID: | |
Image: gcr.io/google-samples/node-hello:1.0 | |
Image ID: | |
Port: 80/TCP | |
State: Waiting | |
Reason: ContainerCreating | |
Ready: False | |
Restart Count: 0 | |
Environment: <none> | |
Mounts: | |
/iscsi from iscsi (rw) | |
/var/run/secrets/kubernetes.io/serviceaccount from default-token-trvtz (ro) | |
Conditions: | |
Type Status | |
Initialized True | |
Ready False | |
PodScheduled True | |
Volumes: | |
iscsi: | |
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace) | |
ClaimName: test-iscsi | |
ReadOnly: false | |
default-token-trvtz: | |
Type: Secret (a volume populated by a Secret) | |
SecretName: default-token-trvtz | |
Optional: false | |
QoS Class: BestEffort | |
Node-Selectors: <none> | |
Tolerations: <none> | |
Events: | |
FirstSeen LastSeen Count From SubObjectPath Type Reason Message | |
--------- -------- ----- ---- ------------- -------- ------ ------- | |
3m 3m 1 default-scheduler Normal Scheduled Successfully assigned test-pod to openshift-openshiftworker-0 | |
3m 3m 1 kubelet, openshift-openshiftworker-0 Normal SuccessfulMountVolume MountVolume.SetUp succeeded for volume "default-token-trvtz" | |
1m 1m 1 kubelet, openshift-openshiftworker-0 Warning FailedMount Unable to mount volumes for pod "test-pod_default(48e407fd-06a3-11e8-bf02-00cc34b50cbb)": timeout expired waiting for volumes to attach/mount for pod "default"/"test-pod". list of unattached/unmounted volumes=[iscsi] |
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
[heat-admin@openshift-openshiftmaster-0 ~]$ oc describe pv pvc-26692229-06a3-11e8-bf02-00cc34b50cbb | |
Name: pvc-26692229-06a3-11e8-bf02-00cc34b50cbb | |
Labels: <none> | |
Annotations: cinderVolumeId=1c08a724-75b8-4447-8be2-acc13fbda15b | |
pv.kubernetes.io/provisioned-by=openstack.org/standalone-cinder | |
standaloneCinderProvisionerIdentity=openstack.org/standalone-cinder | |
StorageClass: cinder-external-iscsi | |
Status: Bound | |
Claim: default/test-iscsi | |
Reclaim Policy: Delete | |
Access Modes: RWO | |
Capacity: 1Gi | |
Message: | |
Source: | |
Type: ISCSI (an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod) | |
TargetPortal: 192.168.24.9:3260 | |
IQN: iqn.2010-10.org.openstack:volume-1c08a724-75b8-4447-8be2-acc13fbda15b | |
Lun: 0 | |
ISCSIInterface default | |
FSType: | |
ReadOnly: false | |
Portals: [] | |
DiscoveryCHAPAuth: false | |
SessionCHAPAuth: true | |
SecretRef: &{pvc-26692229-06a3-11e8-bf02-00cc34b50cbb-secret} | |
Events: <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
[heat-admin@openshift-openshiftmaster-0 ~]$ oc describe pvc test-iscsi | |
Name: test-iscsi | |
Namespace: default | |
StorageClass: cinder-external-iscsi | |
Status: Bound | |
Volume: pvc-26692229-06a3-11e8-bf02-00cc34b50cbb | |
Labels: <none> | |
Annotations: control-plane.alpha.kubernetes.io/leader={"holderIdentity":"034a29db-06a3-11e8-8118-0a580a81001d","leaseDurationSeconds":15,"acquireTime":"2018-01-31T16:24:02Z","renewTime":"2018-01-31T16:24:14Z","lea... | |
pv.kubernetes.io/bind-completed=yes | |
pv.kubernetes.io/bound-by-controller=yes | |
volume.beta.kubernetes.io/storage-provisioner=openstack.org/standalone-cinder | |
Capacity: 1Gi | |
Access Modes: RWO | |
Events: | |
FirstSeen LastSeen Count From SubObjectPath Type Reason Message | |
--------- -------- ----- ---- ------------- -------- ------ ------- | |
13m 13m 1 openstack.org/standalone-cinder standalone-cinder-provisioner-4168608668-drtsf 034a29db-06a3-11e8-8118-0a580a81001d Normal Provisioning External provisioner is provisioning volume for claim "default/test-iscsi" | |
13m 12m 7 persistentvolume-controller Normal ExternalProvisioningwaiting for a volume to be created, either by external provisioner "openstack.org/standalone-cinder" or manually created by system administrator | |
12m 12m 1 openstack.org/standalone-cinder standalone-cinder-provisioner-4168608668-drtsf 034a29db-06a3-11e8-8118-0a580a81001d Normal ProvisioningSucceededSuccessfully provisioned volume pvc-26692229-06a3-11e8-bf02-00cc34b50cbb |
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
[heat-admin@openshift-openshiftmaster-0 ~]$ oc log standalone-cinder-provisioner-4168608668-drtsf | |
W0131 16:29:35.661725 110606 cmd.go:403] log is DEPRECATED and will be removed in a future version. Use logs instead. | |
I0131 16:23:03.944181 1 controller.go:407] Starting provisioner controller 034a29db-06a3-11e8-8118-0a580a81001d! | |
I0131 16:23:03.944239 1 reflector.go:202] Starting reflector *v1.StorageClass (15s) from github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:384 | |
I0131 16:23:03.944249 1 reflector.go:240] Listing and watching *v1.StorageClass from github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:384 | |
I0131 16:23:03.944487 1 reflector.go:202] Starting reflector *v1.PersistentVolumeClaim (15s) from github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:411 | |
I0131 16:23:03.944496 1 reflector.go:240] Listing and watching *v1.PersistentVolumeClaim from github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:411 | |
I0131 16:23:03.944595 1 reflector.go:202] Starting reflector *v1.PersistentVolume (15s) from github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:412 | |
I0131 16:23:03.944601 1 reflector.go:240] Listing and watching *v1.PersistentVolume from github.com/kubernetes-incubator/external-storage/lib/controller/controller.go:412 | |
I0131 16:24:02.874773 1 controller.go:1084] scheduleOperation[lock-provision-default/test-iscsi[26692229-06a3-11e8-bf02-00cc34b50cbb]] | |
I0131 16:24:02.889936 1 leaderelection.go:156] attempting to acquire leader lease... | |
I0131 16:24:02.895811 1 leaderelection.go:178] successfully acquired lease to provision for pvc default/test-iscsi | |
I0131 16:24:02.895881 1 controller.go:1084] scheduleOperation[provision-default/test-iscsi[26692229-06a3-11e8-bf02-00cc34b50cbb]] | |
I0131 16:24:03.273271 1 actions.go:103] Created volume 1c08a724-75b8-4447-8be2-acc13fbda15b in Availability Zone: nova | |
I0131 16:24:03.956351 1 controller.go:1084] scheduleOperation[provision-default/test-iscsi[26692229-06a3-11e8-bf02-00cc34b50cbb]] | |
I0131 16:24:13.024847 1 actions.go:140] Received connection info: {{iscsi {1c08a724-75b8-4447-8be2-acc13fbda15b CHAP cHdD8yFBJKy78oKjPZc7 MaYHUdYAcRY5ZWaz 192.168.24.9:3260 iqn.2010-10.org.openstack:volume-1c08a724-75b8-4447-8be2-acc13fbda15b 0 [] []}}} | |
I0131 16:24:13.028306 1 clusterbroker.go:40] Secret pvc-26692229-06a3-11e8-bf02-00cc34b50cbb-secret created | |
I0131 16:24:13.028327 1 controller.go:817] volume "pvc-26692229-06a3-11e8-bf02-00cc34b50cbb" for claim "default/test-iscsi" created | |
I0131 16:24:13.032085 1 controller.go:834] volume "pvc-26692229-06a3-11e8-bf02-00cc34b50cbb" for claim "default/test-iscsi" saved | |
I0131 16:24:13.032105 1 controller.go:870] volume "pvc-26692229-06a3-11e8-bf02-00cc34b50cbb" provisioned for claim "default/test-iscsi" | |
I0131 16:24:14.937740 1 leaderelection.go:198] stopped trying to renew lease to provision for pvc default/test-iscsi, task succeeded | |
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
(overcloud) [stack@undercloud ~]$ openstack volume list | |
+--------------------------------------+---------------------------------------------------------+-----------+------+-------------+ | |
| ID | Name | Status | Size | Attached to | | |
+--------------------------------------+---------------------------------------------------------+-----------+------+-------------+ | |
| 1c08a724-75b8-4447-8be2-acc13fbda15b | cinder-dynamic-pvc-266e03a5-06a3-11e8-8118-0a580a81001d | attaching | 1 | | | |
+--------------------------------------+---------------------------------------------------------+-----------+------+-------------+ |
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: Pod | |
metadata: | |
name: test-pod | |
namespace: default | |
spec: | |
containers: | |
- name: test-standalone-cinder | |
image: gcr.io/google-samples/node-hello:1.0 | |
volumeMounts: | |
- name: iscsi | |
mountPath: /iscsi | |
ports: | |
- containerPort: 80 | |
volumes: | |
- name: iscsi | |
persistentVolumeClaim: | |
claimName: test-iscsi |
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: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: test-iscsi | |
spec: | |
storageClassName: cinder-external-iscsi | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 1Gi |
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/v1beta1 | |
metadata: | |
name: standalone-cinder | |
rules: | |
- apiGroups: [""] | |
resources: ["persistentvolumes"] | |
verbs: ["get", "watch", "list"] | |
- apiGroups: [""] | |
resources: ["persistentvolumeclaims"] | |
verbs: ["get", "watch", "list"] | |
- apiGroups: ["storage.k8s.io"] | |
resources: ["storageclasses"] | |
verbs: ["get", "watch", "list"] |
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: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: standalone-cinder | |
subjects: | |
- kind: ServiceAccount | |
name: default | |
namespace: default | |
roleRef: | |
kind: ClusterRole | |
name: standalone-cinder | |
apiGroup: rbac.authorization.k8s.io |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: standalone-cinder-provisioner | |
spec: | |
replicas: 1 | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: standalone-cinder-provisioner | |
spec: | |
containers: | |
- name: standalone-cinder-provisioner | |
image: "quay.io/external_storage/standalone-cinder-provisioner:latest" | |
args: ["-v", "3"] | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: OS_AUTH_URL | |
value: http://192.168.24.10:5000/v3 | |
- name: OS_USERNAME | |
value: admin | |
- name: OS_PASSWORD | |
value: eXjXCRQpJ9XnwXPtDy6FyVF6r | |
- name: OS_TENANT_ID | |
value: 0b6b2b4faaa348ffae45ae345e5e6f9c | |
- name: OS_REGION_NAME | |
value: regionOne | |
- name: OS_USER_DOMAIN_NAME | |
value: default |
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: cinder-external-iscsi | |
provisioner: openstack.org/standalone-cinder | |
parameters: | |
type: iscsi |
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
[root@overcloud-controller-0 heat-admin]# targetcli ls | |
o- / ............................................................................................... [...] | |
o- backstores .................................................................................... [...] | |
| o- block ........................................................................ [Storage Objects: 1] | |
| | o- iqn.2010-10.org.openstack:volume-1c08a724-75b8-4447-8be2-acc13fbda15b [/dev/cinder-volumes/volume-1c08a724-75b8-4447-8be2-acc13fbda15b (1.0GiB) write-thru activated] | |
| | o- alua ......................................................................... [ALUA Groups: 1] | |
| | o- default_tg_pt_gp ............................................. [ALUA state: Active/optimized] | |
| o- fileio ....................................................................... [Storage Objects: 0] | |
| o- pscsi ........................................................................ [Storage Objects: 0] | |
| o- ramdisk ...................................................................... [Storage Objects: 0] | |
o- iscsi .................................................................................. [Targets: 1] | |
| o- iqn.2010-10.org.openstack:volume-1c08a724-75b8-4447-8be2-acc13fbda15b ................... [TPGs: 1] | |
| o- tpg1 ................................................................ [no-gen-acls, auth per-acl] | |
| o- acls ................................................................................ [ACLs: 1] | |
| | o- iqn.1994-05.com.redhat:a13fc3d1cc22 ............................ [1-way auth, Mapped LUNs: 1] | |
| | o- mapped_lun0 [lun0 block/iqn.2010-10.org.openstack:volume-1c08a724-75b8-4447-8be2-acc13fbda15b (rw)] | |
| o- luns ................................................................................ [LUNs: 1] | |
| | o- lun0 [block/iqn.2010-10.org.openstack:volume-1c08a724-75b8-4447-8be2-acc13fbda15b (/dev/cinder-volumes/volume-1c08a724-75b8-4447-8be2-acc13fbda15b) (default_tg_pt_gp)] | |
| o- portals .......................................................................... [Portals: 1] | |
| o- 192.168.24.9:3260 ...................................................................... [OK] | |
o- loopback ............................................................................... [Targets: 0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment