deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marios Andreou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-400) "POST /cimi/volumes" returns 412 Precondition Failed for server pointing at RHEVM provider
Date Fri, 14 Dec 2012 12:02:12 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13532255#comment-13532255
] 

Marios Andreou commented on DTACLOUD-400:
-----------------------------------------

OK - 2 parts to this.

1. The precondition failed is because for the rhevm driver, it isn't possible to create a
volume (michal has more info on why - but basically "RHEV-M does not support creating standalone
'disk', it must be 'for instance' -> https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.0/html-single/REST_API_Guide/index.html#sect-REST_API_Guide-VMs-Disks").


2. The tests need to guard against this inability to execute some action. Like we do for deltacloud
API tests - when some capability is not supported (create volume in this case) then those
tests should be skipped.

2 patches tracked at http://tracker.deltacloud.org/set/208. Patch 2/2 is for the server side
- to not expose the 'add' URI for a collection when the given driver doesn't support that
operation. Patch 1/2 adds a 'need_capability' check for the tests...

marios
                
> "POST /cimi/volumes" returns 412 Precondition Failed for server pointing at RHEVM provider
> ------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-400
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-400
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: CIMI/Frontend
>         Environment: Deltacloud commit version: 15c1e8b702460b43fc445cbbc13657d9affd2977
> RHEVM 3.0
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>         Attachments: 0001-CIMI-dont-expose-add-URI-for-collection-if-not-suppo.patch,
0002-CIMI-tests-skip-if-capability-supported-DTACLOUD-400.patch
>
>
> Found while running cimiplan tests - part4_test.rb  - testing Deltacloud server with
cimi frontend - pointing at RHEVM provider:
> Executing the following lines in the test code:
> *************
> volume = post(volume_add_uri,
>   "<VolumeCreate xmlns=\"#{CIMI::Test::CIMI_NAMESPACE}\">" +
>     "<name>cimi_volume_for_attach_new</name>" +
>     "<description>volume for attach testing</description>" +
>     "<volumeTemplate>" +
>       "<volumeConfig href=\"" + get_a(cep_json, "volumeConfig") + "\">" +
>       "</volumeConfig>" +
>     "</volumeTemplate>" +
>   "</VolumeCreate>",
>   :accept => :json, :content_type => :xml)
> **************
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
`return!': 412 Precondition Failed (RestClient::PreconditionFailed)
> 	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in
`process_result'
> 	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in
`transmit'
> 	from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
> 	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in
`transmit'
> 	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
> 	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
> 	from /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient.rb:72:in `post'
> 	from ./test_helper.rb:153:in `post'

--
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

Mime
View raw message