Bug 882248

Summary: [RFE] Environment renaming should be enabled
Product: [Retired] Subscription Asset Manager Reporter: Tom McKay <tomckay>
Component: katelloAssignee: Jordan OMara <jomara>
Status: CLOSED NOTABUG QA Contact: SAM QE List <sam-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.2CC: athomas, jomara, mmccune, pchalupa, tkolhar
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 795928 Environment:
Last Closed: 2013-08-06 09:39:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 795928    
Bug Blocks: 833466    

Description Tom McKay 2012-11-30 13:51:04 UTC
+++ This bug was initially created as a clone of Bug #795928 +++

See 787226 for reasons renaming was disabled. This disable, though, is only a short-term fix to avoid larger issues and needs to be resolved.

-----
Since we base the repoid in pulp off of the environment name, we really
shouldn't be able to rename it, as it could cause problems. 

One such scenario that could cause issues:


1. create environment Dev
2. promote repo X to dev
3. rename environment Dev to Foo
4. Create a new environment called Dev after Foo
5. promote repo X to Dev


Since the repo was already created in an environment called Dev, the repo
promotion would fail.  


Ideally we wouldn't be basing repo_id off of environment name.  There was some
discussion on having an immutable label field, which should allow us to have a
name that is changeable, but this is probably post V1.


We need to block this in the UI and the api.

Comment 1 Jordan OMara 2012-12-18 16:27:42 UTC
https://github.com/Katello/katello/pull/1281

Comment 2 Bryan Kearney 2013-06-06 20:50:58 UTC
Moving all POST / MODIFIED bugs to ON_QA due to the new builds.

Comment 3 Tazim Kolhar 2013-08-06 08:06:46 UTC
Hi,

  Environments is not supported in Headpin/SAM mode

Please, let me know if we still need to verify for default_environment
LIBRARY

Thanks,
Tazim

Comment 4 Tom McKay 2013-08-06 09:39:46 UTC
Environments are no longer supported in headpin mode. The single behind-the-scenes environment is Library, which even in katello cannot be modified.