Bug 807136 - "undefined method 'NodeException' for StickShift:Module" error is seen when trying to create a scalable app of jenkins/diy type
"undefined method 'NodeException' for StickShift:Module" error is seen when t...
Product: OpenShift Origin
Classification: Red Hat
Component: Pod (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Rajat Chopra
libra bugs
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-03-27 02:54 EDT by Johnny Liu
Modified: 2012-04-13 14:33 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-13 14:33:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Johnny Liu 2012-03-27 02:54:39 EDT
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 17:49:47 EDT
Fixed. rev#0151e1bff66925b692b19b1eef2a16d0a43610c4
Comment 2 Johnny Liu 2012-03-27 23:24:36 EDT
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.