nvazquez commented on issue #9477:
URL: https://github.com/apache/cloudstack/issues/9477#issuecomment-3747506929

   Hi @shwstppr @DaanHoogland @harikrishna-patnala - I reproduced the scenario 
and have observed that when the user is removed, the user data is removed as 
well as its been created by that user. However, the link between the template 
and the (removed) user data remains.
   
   I think we can follow a simpler approach: during the user data removal 
(already invoked by the remove user logic) we can search and remove the 
existing template links to the user data (marking  the `user_data_id` column as 
NULL on the `vm_template` table for the templates referencing the user data to 
be removed). What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to