Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9ECCE791 for ; Wed, 6 Feb 2013 01:46:12 +0000 (UTC) Received: (qmail 19091 invoked by uid 500); 6 Feb 2013 01:46:12 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 19081 invoked by uid 500); 6 Feb 2013 01:46:12 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 18968 invoked by uid 99); 6 Feb 2013 01:46:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 01:46:12 +0000 Date: Wed, 6 Feb 2013 01:46:12 +0000 (UTC) From: "Dies Koper (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DTACLOUD-452) RHEVM instances in RUNNING state show create_image actions - but creating an image from a running instance throws a 500 error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572053#comment-13572053 ] Dies Koper commented on DTACLOUD-452: ------------------------------------- Let's reopen DTACLOUD-442 to reconsider the test case, so that this jira can focus on the bug uncovered: rhevm driver shows 'create_image' action when it's running, while it should only do that when it's stopped. > RHEVM instances in RUNNING state show create_image actions - but creating an image from a running instance throws a 500 error > ------------------------------------------------------------------------------------------------------------------------------ > > Key: DTACLOUD-452 > URL: https://issues.apache.org/jira/browse/DTACLOUD-452 > Project: DeltaCloud > Issue Type: Bug > Components: Native/Frontend > Environment: Deltacloud commit version: 152247911e61041e35202ffdd22b2c160a390008 > RHEVM 3.1 > Reporter: Ronelle Landy > > Found by running the white box tests .... > Below is one instance returned from executing a GET /api/instances - provider is RHEVM 3.1. Notice that the create_image operation is returned even though the instance is in a RUNNING state. > However, is you try create an image from a running instance in RHEVM. you get a 500 error (ERROR -- 500: [Deltacloud::Exceptions::BackendError] Cannot add Template. VM still running, stop the VM and try again.) Full trace copied at the end of this description. > deltacloud/tests/deltacloud/instance_test.rb checks if the create_image op is returned and if so, attempts to create an image. In this case, where the VM is RUNNING, the test errors out. Since we have seen this test run cleanly in the past, I'm sort of curious what's going on here..... > > rhel-x86-64-5Server-Private-rhel-x86-64-5Server > admin@internal > > > RUNNING > > > > > > > > > > 2013-02-04T15:12:36.456-05:00 >
10.16.120.200
>
00:1a:4a:10:56:86
>
10.16.120.50
> > >
> ************************ > E, [2013-02-04T16:42:56.418373 #19024] ERROR -- 500: [Deltacloud::Exceptions::BackendError] Cannot add Template. VM still running, stop the VM and try again. > /usr/local/share/gems/gems/rbovirt-0.0.16/lib/rbovirt.rb:146:in `handle_fault' > /usr/local/share/gems/gems/rbovirt-0.0.16/lib/rbovirt.rb:89:in `rescue in http_post' > /usr/local/share/gems/gems/rbovirt-0.0.16/lib/rbovirt.rb:86:in `http_post' > /usr/local/share/gems/gems/rbovirt-0.0.16/lib/client/template_api.rb:18:in `create_template' > /home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:112:in `block in create_image' > /home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/exceptions.rb:220:in `call' > /home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/exceptions.rb:220:in `safely' > /home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:111:in `create_image' > /home/dcloud/workspace/deltacloud/server/lib/deltacloud/collections/images.rb:44:in `block (3 levels) in ' > /usr/local/share/gems/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `instance_eval' > /usr/local/share/gems/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `block in control' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:1293:in `call' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:1293:in `block in compile!' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in `[]' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in `block (3 levels) in route!' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:876:in `route_eval' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:860:in `block (2 levels) in route!' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:897:in `block in process_route' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in `catch' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:895:in `process_route' > /usr/local/share/gems/gems/sinatra-1.3.4/lib/sinatra/base.rb:859:in `block in route!' > 127.0.0.1 - - [04/Feb/2013 16:42:56] "POST /api/images HTTP/1.1" 500 32625 0.8791 > ************************* -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira