Bug 1004910

Summary: Non-existent ERB files declared in processed templates result in empty result files
Product: OpenShift Online Reporter: Paul Morie <pmorie>
Component: ContainersAssignee: Paul Morie <pmorie>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: xtian, yadu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 16:49:31 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:

Description Paul Morie 2013-09-05 17:45:12 UTC
If managed_files.yml declares a non-existent ERB file in its processed_templates section, an empty result file is created anyway.  Instead, we should warn the user (targeting the cart developer during the development phase of a cartridge), and not create the result file.

Comment 1 openshift-github-bot 2013-09-08 23:56:59 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/ffd859ed49acf300e1bcd61324fa16595191c888
Fix bug 1004910: provide warning when processed_templates declares a non-existent file

Comment 2 Yan Du 2013-09-09 08:13:14 UTC
test on devenv_3758

steps:
1. ssh into instance and declares a non-existent ERB file in its processed_templates section in managed_files.yml.
2. create an app via CLI

[root@Daphne test]# rhc app create j7 jbossas-7
Application Options
-------------------
  Namespace:  111
  Cartridges: jbossas-7
  Gear Size:  default
  Scaling:    no

Creating application 'j7' ... done

  File declared in processed_templates does not exist and will not be rendered: /var/lib/openshift/522d81312b0e83efbc000001/jbossas/metadata/jenkins_artifacts_globaaa.erbadded manifest
  Artifacts deployed: ./ROOT.war

Waiting for your DNS name to be available ... done

move bug to verified.