Red Hat Bugzilla – Bug 807455
Deleted template still available in promoted environment
Last modified: 2013-03-27 16:52:54 EDT
Created attachment 573164 [details]
Description of problem:
Beta customer SAIC pointed this out to me and I was able to reproduce.
A system template has been created and promoted. Now the system template is deleted. While it has been removed from the list of system templates, if I switch to promotion, I don't see it available from library, but do see it from the promoted env.
How would one delete this? How would one access this?
See attached movie.
Version-Release number of selected component (if applicable):
SAIC is using Beta 3, I re-created using the early beta 6.
Here is my details.
root@cf-se1 os]# /pub/scripts/post_install_configuration_scripts/cf-se-versions
Red Hat Enterprise Linux Server release 6.2 (Santiago)
Linux cf-se1.cloud.lab.eng.bos.redhat.com 2.6.32-220.7.1.el6.x86_64 #1 SMP Fri Feb 10 15:22:22 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
2 for 2
Steps to Reproduce:
(In reply to comment #0)
> How would one delete this? How would one access this?
it is possible to delete promoted templates using the katello CLI.
> katello> template delete --name 'rhel-x86_64-6Server-cf-configserver' --environment Prod
> Deleted system template 'rhel-x86_64-6Server-cf-configserver'
However, I suspect that is a partially implemented feature.
Bryan or Mike, what is the intended mechanism for deleting a promoted system template?
Also, what is the expected behavior when you delete a system template? What happens to the template in any previously promoted environments?
we are going to be adding a 1.1 feature to remove content, packages, products and templates from promoted environments as part of a changeset.
I think because there is a workaround with the CLI we can go out the door as-is with 1.0 but for 1.1 we definitely need to address the ability to remove templates (and other content) from the promoted env
Looking at the comments, the delete features mentioned in comment 2 are in 1.1. I am therefore moving this but to ON_QA with the goal of having it verified against hte 1.1 code base.
Bryan, this BZ was blocked by https://bugzilla.redhat.com/show_bug.cgi?id=904128, which just got added to the next release. I am asking for a 1.1.2 flag here.
I was able to create a template, promote it across several environments and then delete the template. When I go to the changeset page and check under Library for the template, it is no longer there. However, I can still see it under the other environments, albeit when I select it, the UI tells me that it is empty. Is this the expected behavior? I thought we had agreed that in order to delete any type of **promoted** content, one has to first delete it from the promoted environments, walking "backwards" until you reach the Library.
Verified. My assumption had been that, like repos, system templates could not be deleted randomly, but had to follow a pattern where you'd have to delete it from all the promoted environments first before you could delete it from the Library. This is not the case.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.