Description of problem: According to: https://github.com/openshift/origin-server/blob/master/node/README.writing_cartridges.md It's supposed to delete those listings before rerunning setup. It seems to do nothing. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Add blah to setup_rewritten in managed_files.yml of a cart 2. touch blah 3. Rerun a setup file that fails if blah exists and then writes blah Actual results: It fails Expected results: Should succeed because setup_rewritten specified blah Additional info:
The setup script is currently run in two scenarios: 1) on cartridge create: No files exist so there are no files to delete 2) on cartridge migration: setup_rewritten files are removed in this case Please reopen bug if there is a scenario that has been missed.
Sorry I searched for the code before and missed the code in migrate.rb (and my scenario I listed wasn't really correct. Should have referenced the migration.). There is one scenario missed but hasn't been implemented yet to handle upgrading downloadable carts.