Re: [PATCH] CIMI: adding system support

2013-02-08 Thread David Lutterkort
On Fri, 2013-02-08 at 22:44 +1100, di...@fast.au.fujitsu.com wrote: > From: Dies Koper You killed yourself with debug prints; I'll point the exact place out below. But I also have a couple more comments. > diff --git a/server/lib/cimi/collections/addresses.rb > b/server/lib/cimi/collections/add

Re: [PATCH] CIMI: adding system support

2013-02-08 Thread David Lutterkort
On Fri, 2013-02-08 at 19:13 +0200, mar...@redhat.com wrote: > Hi Dies: > > On 08/02/13 14:10, Koper, Dies wrote: > > This is a work in progress. At the moment I'm not making any progress > > though: > > > > unfortunately the patch won't apply - I think you need to rebase it and > send again. I c

Re: Help accessing provider API url, or perhaps knowing how to set it in a unit test

2013-02-08 Thread David Lutterkort
Hi Chip, fun ! The fact that you don't have a provider at the point where you print it, isn't an issue; what you pass into Deltacloud::new (defined on line 127 in lib/deltacloud/api.rb) is an options hash, which contains user/password for credentials, but also the provider. The provider does not

Help accessing provider API url, or perhaps knowing how to set it in a unit test

2013-02-08 Thread Chip Childers
Hi all, I'm getting through some of the basic plumbing for the CloudStack driver, and have been battling something that's probably dead simple for those of you in the know. It's also possible that my lack of ruby experience is a contributing factor in this... ;-) Within my unit tests, I need t

[PATCH] Entity.ent_properties: make sure we always store a Hash

2013-02-08 Thread lutter
From: David Lutterkort Previously, if you assigned nil to properties, ent_properties would end up being "null" which is not valid JSON. --- server/lib/db/entity.rb | 5 + server/tests/cimi/db/entity_test.rb | 29 + 2 files changed, 34 insertions(+) c

[jira] [Commented] (DTACLOUD-437) Empty user-data genrated on rhevm3.1 instance

2013-02-08 Thread Joseph J. VLcek (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574700#comment-13574700 ] Joseph J. VLcek commented on DTACLOUD-437: -- Posted attached patch for review as

[PATCH] DTACLOUD-437 update gemspec for latest rbovirt rubygem 0.0.17

2013-02-08 Thread jvlcek
From: Joe VLcek --- server/deltacloud-core.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/deltacloud-core.gemspec b/server/deltacloud-core.gemspec index 5044cb0..8df1587 100644 --- a/server/deltacloud-core.gemspec +++ b/server/deltacloud-core.gemspec @@ -89,7

DTACLOUD-437 update gemspec for latest rbovirt rubygem 0.0.17

2013-02-08 Thread jvlcek
Fix for https://issues.apache.org/jira/browse/DTACLOUD-437 Empty user-data genrated on rhevm3.1 instance As tracked in: http://tracker.deltacloud.org/set/307 Summary: Empty user-data file delivered on rhevm3.1 due to bug in the rbovirt gem. I cut a new version of the gem today - 0.0.17 @

[jira] [Assigned] (DTACLOUD-437) Empty user-data genrated on rhevm3.1 instance

2013-02-08 Thread Joseph J. VLcek (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph J. VLcek reassigned DTACLOUD-437: Assignee: Ronelle Landy (was: Joseph J. VLcek) > Empty user-data genrated on

[jira] [Updated] (DTACLOUD-437) Empty user-data genrated on rhevm3.1 instance

2013-02-08 Thread Joseph J. VLcek (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph J. VLcek updated DTACLOUD-437: - Attachment: 0001-DTACLOUD-437-update-gemspec-for-latest-rbovirt-rubyg.patch I cut a new

[jira] [Assigned] (DTACLOUD-437) Empty user-data genrated on rhevm3.1 instance

2013-02-08 Thread Joseph J. VLcek (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph J. VLcek reassigned DTACLOUD-437: Assignee: Joseph J. VLcek (was: Ronelle Landy) > Empty user-data genrated on

Re: [PATCH] [Core] - minor typo on realms xml view - DTACLOUD-460

2013-02-08 Thread David Lutterkort
On Fri, 2013-02-08 at 19:38 +0200, mar...@redhat.com wrote: > From: marios > > https://issues.apache.org/jira/browse/DTACLOUD-460 > > Signed-off-by: marios > --- > server/views/realms/show.xml.haml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/views/realms/sh

[jira] [Created] (DTACLOUD-461) SyntaxError when starting Deltacloud server - Openstack provider (gem 1.0.9)

2013-02-08 Thread Ronelle Landy (JIRA)
Ronelle Landy created DTACLOUD-461: -- Summary: SyntaxError when starting Deltacloud server - Openstack provider (gem 1.0.9) Key: DTACLOUD-461 URL: https://issues.apache.org/jira/browse/DTACLOUD-461 Pr

[jira] [Updated] (DTACLOUD-460) GET /api/realms?format=xml returns "undefined method `each' for nil:NilClass" + stack trace

2013-02-08 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-460: Attachment: 0001-Core-minor-typo-on-realms-xml-view-DTACLOUD-460.patch attached patch sho

[PATCH] [Core] - minor typo on realms xml view - DTACLOUD-460

2013-02-08 Thread marios
From: marios https://issues.apache.org/jira/browse/DTACLOUD-460 Signed-off-by: marios --- server/views/realms/show.xml.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/views/realms/show.xml.haml b/server/views/realms/show.xml.haml index 268cb65..54052a4 100644 -

DTACLOUD-460 - tracker set 306

2013-02-08 Thread marios
http://tracker.deltacloud.org/set/306

[jira] [Commented] (DTACLOUD-444) Provider name change - Aruba

2013-02-08 Thread Aruba Staff (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574652#comment-13574652 ] Aruba Staff commented on DTACLOUD-444: -- Thank you! > Provider name

Re: [PATCH] CIMI bug - create CIMI db resource with no properties - Fix for DTACLOUD-448

2013-02-08 Thread mar...@redhat.com
On 08/02/13 02:46, David Lutterkort wrote: > On Thu, 2013-01-31 at 19:14 +0200, mar...@redhat.com wrote: >> diff --git a/server/lib/cimi/models/address_template.rb >> b/server/lib/cimi/models/address_template.rb >> index 41d86f6..b804396 100644 >> --- a/server/lib/cimi/models/address_template.rb >

[jira] [Commented] (DTACLOUD-450) Creating images from instances - Openstack provider returns 404 although the image is created

2013-02-08 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574647#comment-13574647 ] Marios Andreou commented on DTACLOUD-450: - Gemspec change pushed with commit e56

[jira] [Resolved] (DTACLOUD-444) Provider name change - Aruba

2013-02-08 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou resolved DTACLOUD-444. - Resolution: Fixed > Provider name change - Aruba > > >

[jira] [Closed] (DTACLOUD-444) Provider name change - Aruba

2013-02-08 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou closed DTACLOUD-444. --- > Provider name change - Aruba > > > Key: DTAC

[jira] [Commented] (DTACLOUD-444) Provider name change - Aruba

2013-02-08 Thread Marios Andreou (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574644#comment-13574644 ] Marios Andreou commented on DTACLOUD-444: - OK - I pushed these patches after ACK

Re: [PATCH] CIMI: adding system support

2013-02-08 Thread mar...@redhat.com
Hi Dies: On 08/02/13 14:10, Koper, Dies wrote: > This is a work in progress. At the moment I'm not making any progress > though: > unfortunately the patch won't apply - I think you need to rebase it and send again. I couldn't spot the problem from a visual inspection - but there's a lot of code

[jira] [Created] (DTACLOUD-460) GET /api/realms?format=xml returns "undefined method `each' for nil:NilClass" + stack trace

2013-02-08 Thread Ronelle Landy (JIRA)
Ronelle Landy created DTACLOUD-460: -- Summary: GET /api/realms?format=xml returns "undefined method `each' for nil:NilClass" + stack trace Key: DTACLOUD-460 URL: https://issues.apache.org/jira/browse/DTACLOUD-460

[PATCH] Allows to specify a username when running a comman - DTACLOUD-458

2013-02-08 Thread efcasado
From: efcasado --- server/lib/deltacloud/drivers/ec2/ec2_driver.rb |2 +- server/lib/deltacloud/runner.rb |3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver

[jira] [Updated] (DTACLOUD-457) RHEVm, Passing an invalid instance ID to start instance results in traceback with 500.

2013-02-08 Thread Joseph J. VLcek (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph J. VLcek updated DTACLOUD-457: - Attachment: 0001-DTACLOUD-457-RHEVm-Passing-an-invalid-instance-ID-to.patch Posted atta

DTACLOUD-457 RHEVm, Passing an invalid instance ID to start instance results in traceback with 500.

2013-02-08 Thread jvlcek
This patch address Jira: https://issues.apache.org/jira/browse/DTACLOUD-457 It's track in: http://tracker.deltacloud.org/set/304 Summary: When starting an instance on RHEVm and passing an invalid instance ID to POST "start" generates the following traceback with 500. Mfojtik: suggested raising

[PATCH] DTACLOUD-457 RHEVm, Passing an invalid instance ID to start instance results in traceback with 500.

2013-02-08 Thread jvlcek
From: Joe VLcek --- server/lib/deltacloud/helpers/deltacloud_helper.rb | 4 +++- server/views/errors/403.xml.haml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server/lib/deltacloud/helpers/deltacloud_helper.rb b/server/lib/deltacloud/helpers/deltaclo

[jira] [Updated] (DTACLOUD-459) run_command always returns 406 when specifying JSON as a response type

2013-02-08 Thread Enrique Fernandez Casado (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enrique Fernandez Casado updated DTACLOUD-459: -- Attachment: 0001-Adds-JSON-as-a-supported-rtype-run_command-DTACLOUD-.

[PATCH] Adds JSON as a supported rtype (run_command) - DTACLOUD-459

2013-02-08 Thread efcasado
From: efcasado --- server/lib/deltacloud/collections/instances.rb |1 + 1 file changed, 1 insertion(+) diff --git a/server/lib/deltacloud/collections/instances.rb b/server/lib/deltacloud/collections/instances.rb index adddacf..824ba15 100644 --- a/server/lib/deltacloud/collections/instance

[jira] [Commented] (DTACLOUD-458) When sending a 'run on instance' request, the user should be able to specify the username

2013-02-08 Thread Enrique Fernandez Casado (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574491#comment-13574491 ] Enrique Fernandez Casado commented on DTACLOUD-458: --- It wasn't rocket

[jira] [Created] (DTACLOUD-459) run_command always returns 406 when specifying JSON as a response type

2013-02-08 Thread Enrique Fernandez Casado (JIRA)
Enrique Fernandez Casado created DTACLOUD-459: - Summary: run_command always returns 406 when specifying JSON as a response type Key: DTACLOUD-459 URL: https://issues.apache.org/jira/browse/DTACLOUD-459

[jira] [Resolved] (DTACLOUD-458) When sending a 'run on instance' request, the user should be able to specify the username

2013-02-08 Thread Michal Fojtik (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michal Fojtik resolved DTACLOUD-458. Resolution: Fixed Assignee: Michal Fojtik ACK && pushed (f67a2a7ad2cfbda4353ed0dc93

[jira] [Updated] (DTACLOUD-458) When sending a 'run on instance' request, the user should be able to specify the username

2013-02-08 Thread Enrique Fernandez Casado (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enrique Fernandez Casado updated DTACLOUD-458: -- Attachment: 0001-Allows-to-specify-a-username-when-running-a-comman-D.

RE: [PATCH] CIMI: adding system support

2013-02-08 Thread Koper, Dies
This is a work in progress. At the moment I'm not making any progress though: When listing systems or system templates, I get the following trace: >> Listening on localhost:3001, CTRL+C to stop list(#) called. system_template#self.find called reached mock's system_templates with opts: env# dir: /

[PATCH] CIMI: adding system support

2013-02-08 Thread diesk
From: Dies Koper --- server/lib/cimi/collections/addresses.rb | 2 +- server/lib/cimi/collections/machines.rb| 2 +- server/lib/cimi/collections/system_templates.rb| 72 server/lib/cimi/collections/systems.rb | 198 + server

Re: [jira] [Closed] (DTACLOUD-443) Openstack Provider 'Availability Zones'

2013-02-08 Thread mar...@redhat.com
Hi David: On 07/02/13 20:01, David Lutterkort wrote: > Hi guys, > > I am very confused by what's been happening on this ticket. Can somebody > explain what the differences between different Openstack providers and > realms now is ? > > The way it should work is that different providers share not

[jira] [Commented] (DTACLOUD-458) When sending a 'run on instance' request, the user should be able to specify the username

2013-02-08 Thread Enrique Fernandez Casado (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574369#comment-13574369 ] Enrique Fernandez Casado commented on DTACLOUD-458: --- The EC2 driver se

[jira] [Updated] (DTACLOUD-458) When sending a 'run on instance' request, the user should be able to specify the username

2013-02-08 Thread Enrique Fernandez Casado (JIRA)
[ https://issues.apache.org/jira/browse/DTACLOUD-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enrique Fernandez Casado updated DTACLOUD-458: -- Description: When sending a 'run on instance' request, Deltacloud (or

[jira] [Created] (DTACLOUD-458) When sending a 'run on instance' request, the user should be able to specify the username

2013-02-08 Thread Enrique Fernandez Casado (JIRA)
Enrique Fernandez Casado created DTACLOUD-458: - Summary: When sending a 'run on instance' request, the user should be able to specify the username Key: DTACLOUD-458 URL: https://issues.apache.org/jira/

[PATCH core 2/4] CIMI: Add support for 'realm' in MachineTemplate

2013-02-08 Thread mfojtik
From: Michal Fojtik Clients can now specify the 'realm' attribute when creating the new MachineTemplate entity. If they then use this MachineTemplate to create a new Machine, the Machine will be placed into that realm. Signed-off-by: Michal fojtik --- server/lib/cimi/models/machine.rb

[PATCH core 4/4] Core: Don't run migrations when server starts

2013-02-08 Thread mfojtik
From: Michal Fojtik Users can now run migrations using: - bin/deltacloud-db-upgrade - rake db:migrate Signed-off-by: Michal fojtik --- server/Rakefile | 10 ++ server/bin/deltacloud-db-upgrade | 13 + server/lib/db.rb | 4 +--- 3 files cha

[PATCH core 3/4] Core: Moved migrations to server/db/migrations

2013-02-08 Thread mfojtik
From: Michal Fojtik Signed-off-by: Michal fojtik --- .../migrations/1_add_realm_to_machine_template.rb | 23 ++ .../migrations/1_add_realm_to_machine_template.rb | 23 -- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 server/db/

[PATCH core 1/4] Core: Added support for migrations to database

2013-02-08 Thread mfojtik
From: Michal Fojtik Currently everytime we add or remove attributes from DB, users need to rerun the 'rake' task to recreate the database. This patch will make possible to update the DB schema without executing the rake task. The 'migrations' extension in Sequel will check the 'schema_version'