You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
Acorn version - ### acorn version v0.7.0-alpha1-39-g696e7f52+696e7f52
Steps to reproduce the problem:
Deploy app that uses a service.
In my case, service creates volume and secret.
Deplete the app.
acorn apps
NAME IMAGE HEALTHY UP-TO-DATE CREATED ENDPOINTS MESSAGE
mytest 99aca2339227 1 1 11m ago http://app-mytest-9c158bdf.local.on-acorn.io => app:80 [defined: waiting on missing secrets [mydb]]
mytest.mydb 1a061021afe6 1 1 11m ago tcp://192.168.1.201:3306 => dbcon:3306 OK
% acorn secrets
NAME TYPE KEYS CREATED
mytest.mydb.admin basic [password username] 11m ago
% acorn volumes
NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED
mytest.mydb.mydata mytest.mydb.mydata mydata 15G local-path bound RWO 11m ago
sangeethahariharan@Sangeethas-MacBook-Pro serviceexample % acorn rm -af mytest
Waiting for app mytest to be removed...
Removed: mytest
• No volumes associated with mytest
Removed: mytest.mydb.admin
% acorn apps
NAME IMAGE HEALTHY UP-TO-DATE CREATED ENDPOINTS MESSAGE
% acorn secrets
NAME TYPE KEYS CREATED
% acorn volumes
NAME APP-NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED
mytest.mydb.mydata mytest.mydb.mydata mydata 15G local-path released RWO 11m ago
App relating to the service gets deleted.
Secrets associated with service also gets deleted as expected .
Volume continues to be present in the "released" state and never gets removed.
The text was updated successfully, but these errors were encountered:
sangee2004
changed the title
Volumes associated with services donot get deleted when using acorn rm -af to delete the app using the service.
Services - Volumes associated with services donot get deleted when using acorn rm -af to delete the app using the service.
May 9, 2023
Can we confirm that when you do acorn rm -af foo, child services such as foo.db also get deleted?
If it does, then yes, volume and secrets for foo.db should aslo get deleted.
Tested with acorn version - v0.8.0-rc4-58-gbe49d0bd+be49d0bd
I am still able to see the volumes not being cleaned up when the consuming app gets deleted.
Deploy the an app that consumes a service (that has volume defined in it).
App fails to come up successfully waiting for the service (this most probably because of something not right with the service)
acorn apps
NAME IMAGE COMMIT CREATED ENDPOINTS MESSAGE
mytest 3e2bf5ac815f 71s ago http://app-mytest-9c158bdf.local.oss-acorn.io (container: app): waiting for service to be created [mydb]; (service: mydb): not ready
mytest.mydb docker.io/sangeetha/mytestsql:v0.0.1 71s ago tcp://<ip>:3306 OK
Delete the app using acorn rm -af mytest
Child service - mytest.mydb gets cleaned up but leaves behind volume in "released" state.s
Secrets associated with the service gets removed as expected.
% acorn apps
NAME IMAGE COMMIT CREATED ENDPOINTS MESSAGE
% acorn secrets
NAME TYPE KEYS CREATED
% acorn volumes
NAME BOUND-VOLUME CAPACITY VOLUME-CLASS STATUS ACCESS-MODES CREATED
mytest.mydb.mydata mydata 15G local-path released RWO 18m ago
Acorn version - ###
acorn version v0.7.0-alpha1-39-g696e7f52+696e7f52
Steps to reproduce the problem:
Deploy app that uses a service.
In my case, service creates volume and secret.
Deplete the app.
App relating to the service gets deleted.
Secrets associated with service also gets deleted as expected .
Volume continues to be present in the "released" state and never gets removed.
The text was updated successfully, but these errors were encountered: