The warning is fine this is expected. Factory sends back the full
resource representation, we want to ignore everything except Status info.
The Failure is likely caused by some ImageFactory setup. I will hold
off on pushing this patch until we get the issues resolved. I will ping
you later this aftenoon / your morning. We can try and get your setup
up and running.
Thanks
On 09/07/2012 09:01 PM, jguiditta wrote:
OK, this seems to mostly work, I do get callbacks from factory, but
when pushing the provider images, I get this return, which looks not
quite right to me:
|Parameters: {"provider_image"=>{"icicle"=>nil,
"parameters"=>nil, "p
rovider"=>"MockSphere",
"_type"=>"ProviderImage",
"status"=>"FAILED",
"template"=>"<template><name>mock</name><os><name>RHELMock</name><vers
ion>1</version><arch>x86_64</arch><install
type='iso'><iso>http://mock
host/RHELMock1-x86_64-DVD.iso</iso></install><rootpw>password</rootpw>
</os><description>Mock Template</description> </template>",
"provider_
account_identifier"=>nil, "percent_complete"=>0,
"status_detail"=>{"ac
tivity"=>"Initializing image prior to Cloud/OS customization",
"error"
=>nil}, "identifier_on_provider"=>nil,
"id"=>"d78b14b0-2b03-4b37-9a3d-
a5a248ef9c57"}, "id"=>"1"}
ImageManagement::ProviderImage Load (0.2ms) SELECT "provider_images
".* FROM "provider_images" WHERE
"provider_images"."id" = 1 LIMIT 1
WARNING: Can't mass-assign protected attributes: icicle, parameters, _
type, template, provider_account_identifier, identifier_on_provider, i
d
AREL (0.4ms) UPDATE "provider_images" SET "progress" = 0,
"updated_
at" = '2012-09-07 19:55:42.183837' WHERE
"provider_images"."id" = 1
Redirected to
http://localhost:3000/provider_images/1
Completed 302 Found in 197ms
|
—
Reply to this email directly or view it on GitHub
<
https://github.com/aeolus-incubator/image-management-engine/pull/13#issue...;.