Bug 825329

Summary: Application created from app template has no cartridges assigned to gears
Product: OKD Reporter: Clayton Coleman <ccoleman>
Component: WebsiteAssignee: Fotios Lindiakos <fotios>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: urgent Docs Contact:
Priority: high    
Version: 2.xCC: jkeck, rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-08 17:58:47 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:
Attachments:
Description Flags
Cartridge gears none

Description Clayton Coleman 2012-05-25 17:25:50 UTC
Scenario:
1) Created an application template via application_templates/templates/rails/create.sh
2) Deployed it to my domain via rake descriptors:deploy as railstest
3) Went into the UI, got the following error

NoMethodError (undefined method `git_url=' for nil:NilClass):
  app/models/gear_group.rb:82:in `simplify'
  app/models/application.rb:38:in `gear_groups'
  app/controllers/applications_controller.rb:147:in `show'
  app/models/rest_api/railties/controller_runtime.rb:12:in `process_action'
  lib/streamline/railties/controller_runtime.rb:12:in `process_action'

This is because no cartridges were returned by gear groups

data": [
    {
      "cartridges": [],
      "name": "@@app",
      "gears": [
        {
          "id": "aa99188d57f64b699b88ad7d9d998c95",
          "state": "new"
        }
      ]
    }
  ],

This is either because the descriptor .yaml for the rails example is wrong (and needs to be updated) or because the REST API has bug that needs to be fixed.

Comment 1 Fotios Lindiakos 2012-05-30 18:42:40 UTC
This was fixed with a recent regeneration of template descriptors and the page now correctly shows gears

Comment 2 Xiaoli Tian 2012-06-01 08:44:02 UTC
Created attachment 588359 [details]
Cartridge gears

Verified it on integration env. cartrdge gears have been added to the page