[jira] [Updated] (DTACLOUD-392) Expanding an empty subcollection does not work

2012-12-04 Thread David Lutterkort (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Lutterkort updated DTACLOUD-392: -- Assignee: David Lutterkort > Expanding an empty subcollection does not work > ---

[jira] [Created] (DTACLOUD-392) Expanding an empty subcollection does not work

2012-12-04 Thread David Lutterkort (JIRA)
David Lutterkort created DTACLOUD-392: - Summary: Expanding an empty subcollection does not work Key: DTACLOUD-392 URL: https://issues.apache.org/jira/browse/DTACLOUD-392 Project: DeltaCloud

[jira] [Created] (DTACLOUD-391) Using $select=id,machineConfig for machineTemplates does not include machineConfig

2012-12-04 Thread David Lutterkort (JIRA)
David Lutterkort created DTACLOUD-391: - Summary: Using $select=id,machineConfig for machineTemplates does not include machineConfig Key: DTACLOUD-391 URL: https://issues.apache.org/jira/browse/DTACLOUD-391

tracker publish on Windows

2012-12-04 Thread Koper, Dies
Hi Michal, Do you know how I can run tracker publish on Windows? d:\sources\OSS\cloud\deltacloud\tests>tracker publish fatal: invalid --pretty format: '{ D:/programs/Ruby187/lib/ruby/gems/1.8/gems/tracker-client-1.1.3/lib/comm and.rb:357:in `git_cmd': Child process returned 32768 (Tracker::Cmd::C

[jira] [Created] (DTACLOUD-390) cimi: volume name is not set

2012-12-04 Thread Dies Koper (JIRA)
Dies Koper created DTACLOUD-390: --- Summary: cimi: volume name is not set Key: DTACLOUD-390 URL: https://issues.apache.org/jira/browse/DTACLOUD-390 Project: DeltaCloud Issue Type: Bug C

[PATCH 2/2] * tests/cimi/spec_helper.rb: require json/pure so tests can run individually

2012-12-04 Thread lutter
From: David Lutterkort --- server/tests/cimi/spec_helper.rb |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/server/tests/cimi/spec_helper.rb b/server/tests/cimi/spec_helper.rb index 6ec7b0d..8e86701 100644 --- a/server/tests/cimi/spec_helper.rb +++ b/server/tests/cimi/sp

Handle missing subcollections

2012-12-04 Thread lutter
Patch 1/2 makes sure we can deserialize bare-bones resources like a Machine with only the mandatory attributes in it. Uploaded as http://tracker.deltacloud.orgset/180 David

[PATCH 1/2] CIMI: tolerate missing subcollections when parsing

2012-12-04 Thread lutter
From: David Lutterkort It is legal to omit subcollections, e.g. in Machine; make sure we process these correctly. --- server/lib/cimi/models/schema.rb|8 ++-- server/tests/cimi/data/machine-minimal.json |7 +++ server/tests/cimi/data/machine-minimal.xml |5 +

Re: Create volume with config by value - DTACLOUD-385

2012-12-04 Thread David Lutterkort
On Tue, 2012-12-04 at 14:23 +0200, mar...@redhat.com wrote: > Patches above fix this issue - also available at > http://tracker.deltacloud.org/set/177 Seems like Ronelle ack'd them - I just pushed them. David

Re: [PATCH 1/2] CIMI - Adds Volume creation with template and config by value - DTACLOUD-385

2012-12-04 Thread David Lutterkort
On Tue, 2012-12-04 at 14:23 +0200, mar...@redhat.com wrote: > From: marios > > https://issues.apache.org/jira/browse/DTACLOUD-385 > > Signed-off-by: marios > --- > server/lib/cimi/collections/volumes.rb | 11 +++--- > server/lib/cimi/helpers/cimi_helper.rb | 39 > +

Re: [PATCH 2/2] CIMI - collections use grab_content_type helper to guess type if not supplied

2012-12-04 Thread David Lutterkort
On Tue, 2012-12-04 at 14:23 +0200, mar...@redhat.com wrote: > From: marios > > > Signed-off-by: marios > --- > server/lib/cimi/collections/addresses.rb | 2 +- > server/lib/cimi/collections/credentials.rb | 2 +- > server/lib/cimi/collections/machine_templates.rb | 2 +- > ser

[jira] [Updated] (DTACLOUD-379) Executing /DELETE on a template used by an active instance throws 500 error

2012-12-04 Thread Joseph J. VLcek (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph J. VLcek updated DTACLOUD-379: - Attachment: 0001-DTACLOUD-379-omit-backtrace-using-505.patch A better approach of solvi

[jira] [Updated] (DTACLOUD-379) Executing /DELETE on a template used by an active instance throws 500 error

2012-12-04 Thread Joseph J. VLcek (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph J. VLcek updated DTACLOUD-379: - Attachment: 0001-DTACLOUD-379-add-handling-to-omit-backtrace.patch Proposed solution.

[jira] [Commented] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Ronelle Landy (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509874#comment-13509874 ] Ronelle Landy commented on DTACLOUD-385: Creating a volume using an inline volum

Re: A few more CIMI fixes

2012-12-04 Thread mar...@redhat.com
ACK && PUSH I'll update dev.deltacloud.org now to reflect this marios On 04/12/12 10:42, lut...@redhat.com wrote: > Here are a few more fixes for CIMI that we uncovered today in > testing. There's still quite a bit of trouble with running against other > providers. > > One of the sources of hea

[jira] [Created] (DTACLOUD-388) SBC / IBM SmartCloud error

2012-12-04 Thread Bojan Suzic (JIRA)
Bojan Suzic created DTACLOUD-388: Summary: SBC / IBM SmartCloud error Key: DTACLOUD-388 URL: https://issues.apache.org/jira/browse/DTACLOUD-388 Project: DeltaCloud Issue Type: Bug En

[jira] [Created] (DTACLOUD-389) Aruba

2012-12-04 Thread Bojan Suzic (JIRA)
Bojan Suzic created DTACLOUD-389: Summary: Aruba Key: DTACLOUD-389 URL: https://issues.apache.org/jira/browse/DTACLOUD-389 Project: DeltaCloud Issue Type: Bug Environment: Amazon EC2

Re: Create volume with config by value - DTACLOUD-385

2012-12-04 Thread mar...@redhat.com
appologies - fixed another issue - if testing please use the patchset at http://tracker.deltacloud.org/set/179 (alternatively grab the patches at https://issues.apache.org/jira/browse/DTACLOUD-385) thanks, marios On 04/12/12 14:23, mar...@redhat.com wrote: > Patches above fix this issue - also

[jira] [Comment Edited] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509700#comment-13509700 ] Marios Andreou edited comment on DTACLOUD-385 at 12/4/12 12:53 PM: ---

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-385: Attachment: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch

[jira] [Commented] (DTACLOUD-386) CIMI frontend does not return Location in header when creating a Volume

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509711#comment-13509711 ] Marios Andreou commented on DTACLOUD-386: - :) and again @ http://tracker.deltacl

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-385: Attachment: (was: 0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch)

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-385: Attachment: (was: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch)

[PATCH 2/2] CIMI - collections use grab_content_type helper to guess type if not supplied

2012-12-04 Thread marios
From: marios Signed-off-by: marios --- server/lib/cimi/collections/addresses.rb | 2 +- server/lib/cimi/collections/credentials.rb | 2 +- server/lib/cimi/collections/machine_templates.rb | 2 +- server/lib/cimi/collections/machines.rb | 10 +- server/lib/cimi

[PATCH 1/2] CIMI - Adds Volume creation with template and config by value - DTACLOUD-385

2012-12-04 Thread marios
From: marios https://issues.apache.org/jira/browse/DTACLOUD-385 Signed-off-by: marios --- server/lib/cimi/collections/volumes.rb | 11 +++--- server/lib/cimi/helpers/cimi_helper.rb | 39 ++ server/lib/cimi/models/volume.rb | 37 +++-

Create volume with config by value - DTACLOUD-385

2012-12-04 Thread marios
Patches above fix this issue - also available at http://tracker.deltacloud.org/set/177 Scenarios for testing: 1. Create from template by reference - not yet supported - can likely be added with new Datamapper (persistence layer) implementation 2. Create from template by value, with config by

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-385: Attachment: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch

[jira] [Commented] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509700#comment-13509700 ] Marios Andreou commented on DTACLOUD-385: - Patches above fix this issue - also a

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-385: Attachment: (was: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch)

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-385: Attachment: (was: 0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch)

[jira] [Commented] (DTACLOUD-386) CIMI frontend does not return Location in header when creating a Volume

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509699#comment-13509699 ] Marios Andreou commented on DTACLOUD-386: - updated patchset @ http://tracker.del

[jira] [Resolved] (DTACLOUD-386) CIMI frontend does not return Location in header when creating a Volume

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou resolved DTACLOUD-386. - Resolution: Fixed > CIMI frontend does not return Location in header when creating

[jira] [Commented] (DTACLOUD-386) CIMI frontend does not return Location in header when creating a Volume

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509679#comment-13509679 ] Marios Andreou commented on DTACLOUD-386: - Thanks for reporting this Jesus - I w

[jira] [Closed] (DTACLOUD-386) CIMI frontend does not return Location in header when creating a Volume

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou closed DTACLOUD-386. --- > CIMI frontend does not return Location in header when creating a Volume > ---

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-385: Attachment: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch

Re: [PATCH core 1/6] CIMI: Initial support for persisting attributes in database

2012-12-04 Thread David Lutterkort
On Fri, 2012-11-30 at 10:10 +0100, Michal Fojtik wrote: > On 11/29, David Lutterkort wrote: > > > > > + def current_provider > > > +Thread.current[:provider] || ENV['API_PROVIDER'] || 'default' > > > + end > > > > Ugh .. this introduces nasty dependencies on how we are running t

[jira] [Created] (DTACLOUD-387) Regexp warning causing test failure

2012-12-04 Thread Dies Koper (JIRA)
Dies Koper created DTACLOUD-387: --- Summary: Regexp warning causing test failure Key: DTACLOUD-387 URL: https://issues.apache.org/jira/browse/DTACLOUD-387 Project: DeltaCloud Issue Type: Test

[PATCH 5/6] CIMI tests: allow setting the Content-Type header for requests

2012-12-04 Thread lutter
From: David Lutterkort --- tests/cimi/test_helper.rb |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/tests/cimi/test_helper.rb b/tests/cimi/test_helper.rb index fccfcbc..e967e55 100644 --- a/tests/cimi/test_helper.rb +++ b/tests/cimi/test_helper.rb @@ -181,12 +181,15

[PATCH 6/6] CIMI tests: use post helper instead of RestClient.post

2012-12-04 Thread lutter
From: David Lutterkort --- tests/cimi/part2_test.rb |7 +++ tests/cimi/part3_test.rb |8 tests/cimi/part4_test.rb | 20 ++-- tests/cimi/part5_test.rb |4 ++-- tests/cimi/test_helper.rb |4 ++-- 5 files changed, 21 insertions(+), 22 deletions(-)

[PATCH 4/6] CIMI tests: add helper for post

2012-12-04 Thread lutter
From: David Lutterkort We need to make sure URL's are properly expanded when providers use relative URL's. Therefore, using Restclient.post directly won't work. --- tests/cimi/test_helper.rb | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/tests/cim

[PATCH 2/6] CIMI: base_uri must end in a slash

2012-12-04 Thread lutter
From: David Lutterkort --- server/lib/cimi/models/cloud_entry_point.rb |2 +- tests/cimi/test_helper.rb |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/lib/cimi/models/cloud_entry_point.rb b/server/lib/cimi/models/cloud_entry_point.rb ind

[PATCH 3/6] CIMI tests: do not send any auth header if no user is set

2012-12-04 Thread lutter
From: David Lutterkort --- tests/cimi/test_helper.rb | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/cimi/test_helper.rb b/tests/cimi/test_helper.rb index 009bac6..0e102c4 100644 --- a/tests/cimi/test_helper.rb +++ b/tests/cimi/test_helper.rb @@ -50,6 +5

[PATCH 1/6] CIMI: make CIMI::Model::VolumeImage.find behave like Machine.find

2012-12-04 Thread lutter
From: David Lutterkort --- server/lib/cimi/models/volume.rb | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/server/lib/cimi/models/volume.rb b/server/lib/cimi/models/volume.rb index 7951a99..6a6d42f 100644 --- a/server/lib/cimi/models/volume.rb +++ b/server

A few more CIMI fixes

2012-12-04 Thread lutter
Here are a few more fixes for CIMI that we uncovered today in testing. There's still quite a bit of trouble with running against other providers. One of the sources of headaches is when a provider uses relative URI's everywhere - I added a post helper to make sure we properly translate from relat

[jira] [Assigned] (DTACLOUD-386) CIMI frontend does not return Location in header when creating a Volume

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou reassigned DTACLOUD-386: --- Assignee: Marios Andreou > CIMI frontend does not return Location in header whe

[jira] [Assigned] (DTACLOUD-385) Can not create volume with inlined volume config

2012-12-04 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou reassigned DTACLOUD-385: --- Assignee: Marios Andreou > Can not create volume with inlined volume config > -