Bug 1580481

Summary: Create Puppet 4 environment directory structure automatically when Puppet environment is created via Satellite WebUI
Product: Red Hat Satellite Reporter: patalber
Component: PuppetAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: mhulan, oprazak
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-22 06:13:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description patalber 2018-05-21 14:56:59 UTC
1. Proposed title of this feature request  
   	Automatic creation of Puppet4 environment directory structure when a puppet environment is created using the Satellite UI
   
2. What is the nature and description of the request?  
	As for the nature of the request, I see it being more of a fix rather than an enhancement (see Item 3 below for explanation).

3. Why do you need this? (List the business requirements here)  
  
	If a new Puppet environment is created using the Satellite 6.3 UI, it would make sense to create the directory structure in the back end to support that new environment. As that doesn't occur currently, transitioning hosts from Satellite 5 to 6.3 will fail because the directory /etc/puppet/environments/<new_environment> can't be found, requiring it to be manually created.
  
4. How would you like to achieve this? (List the functional requirements here)  
  
	The directory should be created after the steps below are completed:
	
	Satellite 6.3 UI > Configure > Puppet > Environments > Create Puppet Environment > Specify Environment Mame, Location and Organizations > Submit
  
5. For each functional requirement listed, specify how Red Hat and yourself can test to confirm the requirement is successfully implemented.  
  
	By performing the steps in item 4 above, checking whether the environment name was created in the back end (i.e., /etc/puppet/environments/<new_environment>), 	and try transitioning a host from Satellite 5 to 6.3 with a Puppet Environment specified in the Host Group configuration prior to transitioning it.
  
6. Is there already an existing RFE upstream or in Red Hat Bugzilla?  

	No
  
7. Do you have any specific timeline dependencies and which release would they like to target (i.e. RHEL7.6, Puppet 5)?  
  
	Puppet4 via Satellite 6.3.x
  
8. Is the sales team involved in this request and do they have any additional input?  
	
	Not that I know of.
  
9. Would you be able to assist in testing this functionality if implemented? 

	Yes.

Comment 2 Ondřej Pražák 2018-08-21 08:05:31 UTC
Created redmine issue http://projects.theforeman.org/issues/24667 from this bug

Comment 3 Marek Hulan 2018-08-21 11:22:34 UTC
Ondrej, I think this is a dup of 1245008 where we decided to close it as not a bug. I think we shouldn't add orchestration around environments creation on puppet server when UI is create in UI. Rather we should remove the UI create/delete environments as it's no longer necessary.

If you agree, could you close please?

Comment 4 Ondřej Pražák 2018-08-22 06:13:41 UTC

*** This bug has been marked as a duplicate of bug 1245008 ***