Bug 818865 - "500 : Unhandled exception or status code" displayed when name of VM is already taken
"500 : Unhandled exception or status code" displayed when name of VM is alrea...
Status: NEW
Product: CloudForms Cloud Engine
Classification: Red Hat
Component: aeolus-conductor (Show other bugs)
1.0.0
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Angus Thomas
Rehana
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-04 04:26 EDT by Shveta
Modified: 2012-08-06 18:07 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
unhandled exception (218.21 KB, image/png)
2012-05-04 04:28 EDT, Shveta
no flags Details

  None (edit)
Description Shveta 2012-05-04 04:26:36 EDT
Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Built and Pushed for Rhev
2. Created App BP
3. launch Instance and given name of an existing VM (Ex : rhel-x86-64-5-7-cf-rh )

"rhel-x86-64-5-7-cf-tools500 : Unhandled exception or status code (Cannot add VM. VM with the same name already exists.)"  is displayed and Instance goes to 
create_failed state 
  

This exception is shown only for the first time , next time onwards proper message "name is already taken " is displayed


Actual results:


Expected results:


Additional info:

rpm -qa|grep aeolus
aeolus-conductor-0.8.13-1.el6_2.noarch
aeolus-configure-2.5.3-1.el6.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
rubygem-aeolus-cli-0.3.1-1.el6.noarch
aeolus-all-0.8.13-1.el6_2.noarch
aeolus-conductor-doc-0.8.13-1.el6_2.noarch
aeolus-conductor-daemons-0.8.13-1.el6_2.noarch
Comment 1 Shveta 2012-05-04 04:28:36 EDT
Created attachment 582051 [details]
unhandled exception
Comment 2 Shveta 2012-05-04 04:29:10 EDT
Rails.log 


500 : Unhandled exception or status code (Cannot add VM. VM with the same name already exists.)

    /usr/share/deltacloud-core/lib/deltacloud/drivers/rhevm/rhevm_client.rb:177:in `create_vm'
    /usr/share/deltacloud-core/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:206:in `create_instance'
    /usr/share/deltacloud-core/lib/deltacloud/base_driver/exceptions.rb:151:in `call'
    /usr/share/deltacloud-core/lib/deltacloud/base_driver/exceptions.rb:151:in `safely'
    /usr/share/deltacloud-core/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:197:in `create_instance'
    /usr/share/deltacloud-core/lib/deltacloud/server.rb:480
    /usr/share/deltacloud-core/lib/sinatra/rabbit.rb:125:in `instance_eval'
    /usr/share/deltacloud-core/lib/sinatra/rabbit.rb:125:in `POST /api/instances'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1151:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1151:in `compile!'
Redirected to https://dell-per805-01.rhts.eng.bos.redhat.com/conductor/deployments/2
Completed 302 Found in 3836ms

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