Bug 717176 - frontend: undefined method `kind' for nil:NilClass : when launching instance
Summary: frontend: undefined method `kind' for nil:NilClass : when launching instance
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: rubygem-aeolus-image
Version: 0.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
Assignee: Matt Wagner
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-28 09:30 UTC by Shveta
Modified: 2014-08-17 22:27 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-08 13:49:47 UTC


Attachments (Terms of Use)

Description Shveta 2011-06-28 09:30:42 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. using deployment cli build and pushed image 
http://aeolusproject.org/page/Launching_a_Deployment_with_CLI_Tools
2. From aeolus made deployment in default pool 
3. Launching an instance  throws this error ..
  
Actual results:


Expected results:


Additional info:Steps are as given below
1)

 imgfac.py --debug --template template2.tpl --target ec2
2011-06-28 05:02:14,071 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-06-28 05:02:14,072 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-06-28 05:02:14,084 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Setting metadata ({'object_type': 'image', 'uuid': 'b10cc0c1-153f-4cda-b1a3-3afa4e292250'}) for http://localhost:9090/images/b10cc0c1-153f-4cda-b1a3-3afa4e292250
2011-06-28 05:02:14,090 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Setting metadata ({'image': 'b10cc0c1-153f-4cda-b1a3-3afa4e292250', 'object_type': 'build', 'uuid': '18fea1b7-fa1c-423f-abb6-5ac7b47656a1'}) for http://localhost:9090/builds/18fea1b7-fa1c-423f-abb6-5ac7b47656a1
2011-06-28 05:02:14,095 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-06-28 05:02:14,096 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(6441) Message: Building Linux for non-upload cloud (ec2)
Building build 18fea1b7-fa1c-423f-abb6-5ac7b47656a1 of image b10cc0c1-153f-4cda-b1a3-3afa4e292250 to target ec2
2011-06-28 05:02:14,097 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(6441) Message: Storing placeholder object for non upload cloud image
2011-06-28 05:02:14,099 INFO imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Creating a bucket returned status 500.  If only iwhd would provide a sane way to know if a bucket exists so we wouldn't have to try and create one every time...
2011-06-28 05:02:14,102 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Setting metadata ({'object_type': 'template', 'uuid': '087ae88a-f4ff-496d-9fcf-7be18e0296f9'}) for http://localhost:9090/templates/087ae88a-f4ff-496d-9fcf-7be18e0296f9
2011-06-28 05:02:14,109 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Setting metadata ({'icicle': 'none', 'uuid': 'e041d3e3-03a4-4b3e-9134-73474370bf8e', 'template': '087ae88a-f4ff-496d-9fcf-7be18e0296f9', 'target_parameters': None, 'object_type': 'target_image', 'target': 'ec2', 'build': '18fea1b7-fa1c-423f-abb6-5ac7b47656a1'}) for http://localhost:9090/target_images/e041d3e3-03a4-4b3e-9134-73474370bf8e
2011-06-28 05:02:14,120 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Getting metadata (['latest_unpushed']) from http://localhost:9090/images/b10cc0c1-153f-4cda-b1a3-3afa4e292250
2011-06-28 05:02:14,121 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Getting metadata (['latest_build']) from http://localhost:9090/images/b10cc0c1-153f-4cda-b1a3-3afa4e292250
2011-06-28 05:02:14,122 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(6441) Message: Setting metadata ({'latest_unpushed': '18fea1b7-fa1c-423f-abb6-5ac7b47656a1'}) for http://localhost:9090/images/b10cc0c1-153f-4cda-b1a3-3afa4e292250
2011-06-28 05:02:14,124 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(6441) Message: Completed placeholder warehouse object for linux non-upload image...


=====================================================
 sudo imgfac.py --image b10cc0c1-153f-4cda-b1a3-3afa4e292250 --provider ec2-us-east-1 --credentials ec2-credentials.xml 
Pushing build 18fea1b7-fa1c-423f-abb6-5ac7b47656a1 of image b10cc0c1-153f-4cda-b1a3-3afa4e292250 to provider ec2-us-east-1
2011-06-28 05:07:10,918 WARNING boto pid(6519) Message: Error converting code (pending) to int

======================================================
[root@hp-ml150g6-01 ~]# cp /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/spec/sample_data/aeolus-cli /root/.aeolus-cli
[root@hp-ml150g6-01 ~]# aeolus-image build --target ec2 --template template2.tpl 

Target Image: 0c5bc40a-1cf6-4d2d-88a1-d4d255b9b2f8
Image: 5aeeddab-cd04-4c47-a6d0-c7b4a77eb890
Build: 1dde8e42-77f1-4624-8eee-0ccef41c8755
Status: COMPLETED
Percent Complete: 100
-================================================================
[root@hp-ml150g6-01 ~]# aeolus-image push --provider ec2-us-east-1 --id 5aeeddab-cd04-4c47-a6d0-c7b4a77eb890

Provider Image: f1abb59e-30bb-4e9a-a66f-c100ffc4ffed
Image: 5aeeddab-cd04-4c47-a6d0-c7b4a77eb890
Build: 1dde8e42-77f1-4624-8eee-0ccef41c8755
Status: PUSHING
Percent Complete: 0
========================================================

From aeolus launched new deployable in default pool. 

==================================


Deployables.xml
-----------------
<deployable name="Sample">
 <description>desc</description>
 <assemblies>
  <assembly name="frontend" hwp="hwp1">
   <image id="b10cc0c1-153f-4cda-b1a3-3afa4e292250">
   </image>
  </assembly>
 </assemblies>
</deployable>
=============================================

 rpm -qa|grep aeolus
aeolus-conductor-0.3.0-0.fc14.20110627173747git2a88782.noarch
rubygem-aeolus-cli-0.0.1-1.fc14.20110627173747git2a88782.noarch
aeolus-conductor-daemons-0.3.0-0.fc14.20110627173747git2a88782.noarch
aeolus-all-0.3.0-0.fc14.20110627173747git2a88782.noarch
aeolus-configure-2.0.1-0.fc14.20110624144850git38b0c06.noarch
aeolus-conductor-doc-0.3.0-0.fc14.20110627173747git2a88782.noarch

Comment 1 Jan Provaznik 2011-06-28 13:12:35 UTC
I believe this is caused by having hw profile with nil property. Most probably you added a vmware provider which is known to have nil values for some hw profiles. There is a patch from Matt in mailing list which adds nil properties support to conductor.

Comment 2 Shveta 2011-06-29 11:03:20 UTC
Yes you are right, it comes when vsphere vmware provider is added .(Tried with and without vmware provider)

Comment 3 Matt Wagner 2011-07-01 14:37:51 UTC
This should be fixed with 95116478d701b11d870480e6f873c6d688053f2a, which has been pushed and is in the latest RPMs in the testing repo.

Comment 4 Shveta 2011-07-05 12:28:33 UTC
With no hardware profile validation message is displayed .

Verified

Comment 5 wes hayutin 2011-07-05 15:04:27 UTC
removing ce-p2-beta

Comment 6 wes hayutin 2011-07-05 15:08:21 UTC
second attempt to remove ce-p2-beta

Comment 7 wes hayutin 2011-08-01 19:55:13 UTC
release pending...

Comment 8 wes hayutin 2011-08-01 19:57:02 UTC
release pending...

Comment 10 wes hayutin 2011-12-08 13:49:47 UTC
perm close


Note You need to log in before you can comment on or make changes to this bug.