Code Monkey home page Code Monkey logo

Comments (4)

e4jet avatar e4jet commented on July 27, 2024

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.

e4jet avatar e4jet commented on July 27, 2024

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.

kesseract avatar kesseract commented on July 27, 2024

@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.

kesseract avatar kesseract commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.