Bug 818865 - "500 : Unhandled exception or status code" displayed when name of VM is already taken
Summary: "500 : Unhandled exception or status code" displayed when name of VM is alrea...
Keywords:
Status: CLOSED EOL
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
Assignee: Angus Thomas
QA Contact: Rehana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-04 08:26 UTC by Shveta
Modified: 2020-03-27 18:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


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

Description Shveta 2012-05-04 08:26:36 UTC
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 08:28:36 UTC
Created attachment 582051 [details]
unhandled exception

Comment 2 Shveta 2012-05-04 08:29:10 UTC
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.