Bug 1004910 - Non-existent ERB files declared in processed templates result in empty result files
Summary: Non-existent ERB files declared in processed templates result in empty result...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-05 17:45 UTC by Paul Morie
Modified: 2015-05-14 23:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-19 16:49:31 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.