Comments (4)
Hi @sumitshatwara, the docker volume should be gone at step 3 in your description. The log entries that you included only show the creation workflow, not the deletion workflow.
Did the 3PAR docker volume driver report any error in its logs?
Would you please shoot me the full logs (perhaps via email)?
from dory.
I was able to reproduce this by injecting an error into the docker driver. Do you see anything like this in the log:
16:27:39 provisioner.go:238: statusLogger: provision chains=0, delete chains=1, parked chains=0, ids tracked=0, connection=valid
16:27:40 client.go:126: request: action=POST path=http://unix/VolumeDriver.Remove payload={"Name":"oltp-dev-3ac2cdaf-1b1c-11e8-ac84-00505696c45f"}
16:27:40 client.go:168: response: 200 OK, length=-1
16:27:40 dockervol.go:267: /VolumeDriver.Remove failed oltp-dev-3ac2cdaf-1b1c-11e8-ac84-00505696c45f - Unable to remove Docker volume because it is still mounted. Request was - /VolumeDriver.Remove {"Name":"oltp-dev-3ac2cdaf-1b1c-11e8-ac84-00505696c45f"}
from dory.
@e4jet .. I had just created a PVC out of storageclass and deleted the PVC. Just steps 1-3 (No Pod and No mount).
Please observe the deletedVol
call in doryd logs:
23:20:29 client.go:175: RESPONSE: {"Volume": {"Status": {"volume_detail": {"flash_cache": null, "provisioning": "thin", "compression": null, "size": 10}}, "Mountpoint": "", "Name": "pv1-f779484d-2287-11e8-b71e-10604b98ece8", "Devicename": ""}, "Err": ""}
23:20:29 client.go:147: WILLIAM: before decode
23:20:29 dockervol.go:214: returning &dockervol.GetResponse{Volume:dockervol.DockerVolume{Name:"", Mountpoint:"", Status:map[string]interface {}(nil)}, Err:""}
23:20:29 volume.go:105: deletedVol event: cleaning up pv:pv1-f779484d-2287-11e8-b71e-10604b98ece8 phase:Released
23:20:29 provisioner.go:425: looking for /usr/libexec/kubernetes/kubelet-plugins/volume/exec/dev.hpe.com~hpe/hpe.json
23:20:29 provisioner.go:452: parsing defaultOptions [map[size:10]]
23:20:29 provisioner.go:458: key size value 10
23:20:29 provisioner.go:462: dockerOptions map[size:10]
23:20:29 provisioner.go:135: sendUpdate: pv:pv1-f779484d-2287-11e8-b71e-10604b98ece8 (f7c452ee-2287-11e8-b71e-10604b98ece8) phase:Released
23:20:29 provisioner.go:147: send: skipping f7c452ee-2287-11e8-b71e-10604b98ece8, not in map
23:20:29 client.go:126: request: action=POST path=http://unix/VolumeDriver.Get payload={"Name":"pv1-f779484d-2287-11e8-b71e-10604b98ece8"}
23:20:29 client.go:173: response: 200 OK, length=-1
23:20:29 client.go:174: ================================================================
23:20:29 client.go:175: RESPONSE: {"Volume": {"Status": {"volume_detail": {"flash_cache": null, "provisioning": "thin", "compression": null, "size": 10}}, "Mountpoint": "", "Name": "pv1-f779484d-2287-11e8-b71e-10604b98ece8", "Devicename": ""}, "Err": ""}
23:20:29 client.go:147: WILLIAM: before decode
23:20:29 dockervol.go:214: returning &dockervol.GetResponse{Volume:dockervol.DockerVolume{Name:"", Mountpoint:"", Status:map[string]interface {}(nil)}, Err:""}
23:20:33 provisioner.go:237: statusLogger: provision chains=0, delete chains=0, parked chains=0, ids tracked=0, connection=valid
Also, attaching the docker service logs.
docker_logs.txt
from dory.
I have tested in one more multinode OpenShift 3.7 env and observed auto-cleanup operation worked smoothly with "Delete" (default) Reclaim policy. Therefore, I am closing this issue.
from dory.
Related Issues (20)
- RFE: Suppot Docker v2 Plugins HOT 4
- config file is difficult to debug HOT 1
- Not all docker volume drivers support /VolumeDriver.GetCapabilities HOT 1
- docker volume/system prune can cause persistent volumes to be unintentionally deleted HOT 5
- Bug: mountConflict delay is passed by default to the underlying docker volume plugin HOT 1
- Bug: doryd crashes if StorageClass does'nt have any parameters: section HOT 2
- Bug: Mount of the POD using managed docker volume plugin fails HOT 3
- Can I set the reclaimPolicy in Storageclass?? HOT 12
- Building doryd on resource constrained hosts fails HOT 1
- dockOpts["size"] need to be converted to string HOT 1
- doryd should apply nodeAffinity to the PV for locally scoped volumes
- Need to support Docker Volume Plugins that don't return Err when /VolumeDriver.Get fails
- Static provision (dory) & patch command resulting PV in failed status after removing PVC
- Unmount failure not handled in dory
- Introduce accessMode enforcement in "driver.json"
- CSI driver status HOT 2
- Can't mount a volume HOT 3
- Unable to mount volumes for pod
- Need to support Docker Volume Plugins that don't include volume name in mount point
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dory.