App deletion logs left in Swift after successful deletion

Bug #1463986 reported by Melissa Kam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Fix Released
High
Murali Allada

Bug Description

When an app is deleted, the unittest, build, and deploy logs are deleted from swift, but a log for deletion is uploaded. This log is not necessary when the app deletion is successful, and currently only contains:

2015-06-04 02:42:56 solum.delete.d1180ac5-12e8-4434-8e86-f58cc5c0735f Deleting Assembly d1180ac5-12e8-4434-8e86-f58cc5c0735f

Revision history for this message
Adrian Otto (aotto) wrote :

Why are logs deleted when an app is deleted? Shouldn't that be optional?

Changed in solum:
status: New → Incomplete
Revision history for this message
Adrian Otto (aotto) wrote :
Revision history for this message
Devdatta Kulkarni (devdatta-kulkarni) wrote :

Yes, the log deletion is going to be optional.

The question is what should be the default behavior. Should the default be to delete the logs and provide a flag to keep them , or keep them by default and provide a override flag to delete them?

Delete-by-default is consistent with the view that when an app is deleted, all its artifacts are deleted (the app's meta data, the deployment units (DUs), and the logs). This behavior is also useful in our current state when the app resource and cli are in flux. For now, without a way to specify a flag, either to delete the logs or to keep them, delete-by-default behavior helps us clean all the log files from the application's cloud files container. This is very useful for our CI jobs.

Changed in solum:
assignee: nobody → Murali Allada (murali-allada)
Revision history for this message
Murali Allada (murali-allada) wrote :

In initial user testing, we got feedback to delete these logs from swift by default. Users don't want to be charged for storage because of orphaned logs files sitting around.

I'm using this bug to track a bug in the code where logs are not deleted when an app is deleted when it fails the unit test phase.

During app deletion, we look for an image id which points to the DU which needs to be deleted. If the app failed in the unit test phase, we don't have a DU yet and the deletion code returns without deleting anything. We should be deleting the unit test phase logs.

Changed in solum:
status: Incomplete → In Progress
Changed in solum:
status: In Progress → Fix Committed
Changed in solum:
milestone: none → 2015.1.2
Changed in solum:
milestone: 2015.1.2 → 4.0.0
Changed in solum:
importance: Undecided → High
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.