Project

General

Profile

Actions

Bug #10435

closed

Publishing an existing CV with a previous deletion of Puppet Environment ends up with Error "Validation failed: Puppet environment can't be blank"

Added by Christian Ehart almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I´m no longer able to publish an existing CV to a new version, I´m getting the Error "Validation failed: Puppet environment can't be blank". I found out that its related to a previous task where I removed for example my YUM Puppet Environments (it was only holding YUM Content without any Puppet Module) from the GUI, now and also after re-importing it from /etc/puppet/environments I got the error...

Steps to Reproduce:
1. create new content view "xxx"
2. publish content view "xxx" to version "1"
3. verify new Enviroment over "GUI" and under "/etc/puppet/environments"
4. publish content view "xxx" to version "2"
5. delete "KT_CESYSTEMS_Library_xxx_11" over GUI in Section "Puppet Environments"
6. try to publish content view "xxx" to version "3"
7. press the button "Import from katello" in Section "Puppet Environments"
8. try to publish content view "xxx" to version "3"
9. remove content view "xxx" completely via GUI

Actual results:
step5: GUI Entry gets deleted, but Directory /etc/puppet/environments/KT_CESYSTEMS_Library_xxx_11 is still existing
step6: Error "Validation failed: Puppet environment can't be blank"
step7: GUI Entry "KT_CESYSTEMS_Library_xxx_11" is back
step8: Error "Validation failed: Puppet environment can't be blank"
step9: Puppet Enviroment is no longer available via GUI, but the Directory /etc/puppet/environments/KT_CESYSTEMS_Library_xxx_11 is still existing

Expected results:
1. prevent such behavior
2. procedure/workaround required in order to fix the issue with the Error (see step 6 and 8)
2. Directory /etc/puppet/environments/KT_CESYSTEMS_Library_xxx_11 should maybe be deleted (see step 5 & 9)


Related issues 2 (0 open2 closed)

Related to Katello - Bug #10460: Prevent puppet environments from being deleted when produced by a content viewRejectedActions
Related to Katello - Bug #10459: Don't publish puppet environments for content views without puppet environmentsClosed05/11/2015Actions
Actions

Also available in: Atom PDF