Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 807136 - "undefined method 'NodeException' for StickShift:Module" error is seen when trying to create a scalable app of jenkins/diy type
Summary: "undefined method 'NodeException' for StickShift:Module" error is seen when t...
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
Depends On:
TreeView+ depends on / blocked
Reported: 2012-03-27 06:54 UTC by Johnny Liu
Modified: 2012-04-13 18:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-04-13 18:33:25 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Johnny Liu 2012-03-27 06:54:39 UTC
Description of problem:
When trying to create a scalable app of jenkins/diy type, "undefined method 'NodeException' for StickShift:Module" happen, and error message is not friendly for user.

Log in /var/www/stickshift/broker/log/development.log:
Started POST "/broker/rest/domains/jialiu/applications" for at Tue Mar 27 02:43:18 -0400 2012
  Processing by ApplicationsController#create as XML
  Parameters: {"cartridge"=>"jenkins-1.4", "domain_id"=>"jialiu", "name"=>"myapp", "scale"=>"true"}
Adding user jialiu@redhat.com...inside authenticate
MongoDataStore.find(CloudUser, jialiu@redhat.com, jialiu@redhat.com)

MongoDataStore.find(CloudUser, jialiu@redhat.com, jialiu@redhat.com)

Checking to see if user limit for number of apps has been reached
Completed 500 Internal Server Error in 134ms

NoMethodError (undefined method `NodeException' for StickShift:Module):

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run the following command to try to create a scalable app of jenkins/diy type
$ curl -k -X POST -H 'Accept: application/xml' -d name=myapp -d cartridge=jenkins-1.4 -d scale=true --user <username>:<password> https://<instance>/broker/rest/domains/<domain>/applications
Actual results:
"undefined method `NodeException' for StickShift:Module" is seen. And error message is not friendly for user.

Expected results:
Failure should happen, and error message is friendly.

Additional info:

Comment 1 Rajat Chopra 2012-03-27 21:49:47 UTC
Fixed. rev#0151e1bff66925b692b19b1eef2a16d0a43610c4

Comment 2 Johnny Liu 2012-03-28 03:24:36 UTC
Verified this bug with devenv_1677, and PASS.

$ curl -k -X POST -H 'Accept: application/xml' -d name=myapp -d cartridge=diy-0.1 -d scale=true --user jialiu@redhat.com:xx https://ec2-50-17-96-240.compute-1.amazonaws.com/broker/rest/domains/jialiu/applications
<?xml version="1.0" encoding="UTF-8"?>
  <data nil="true"></data>
  <type nil="true"></type>
      <field nil="true"></field>
      <text>Failed to create application myapp due to:Scalable app cannot be of type haproxy-1.4 jenkins-1.4 diy-0.1</text>

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