malformed image: null; Caused by: java.lang.NullPointerException: imageId

Description

When using ec2 cloud driver with 2.3.rc (also saw this in 2.3.m2), seeing a warning with stack trace that starts like below,

2012-12-11 12:16:55,139 WARNING [org.jclouds.ec2.xml.DescribeImagesResponseHandler] - malformed image: null; Caused by: java.lang.NullPointerException: imageId
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:208)
at org.jclouds.ec2.domain.Image.<init>(Image.java:84)

Image id is not null as you can see in the next log entry.

2012-12-11 12:16:55,321 INFO [org.cloudifysource.esc.jclouds.JCloudsDeployer] - starting machine with template : {image={id=us-east-1/ami-1624987f, providerId=ami-1624987f, name=amzn-ami-pv-2012.09.0.x86_64-ebs, location={scope=REGION, id=us-east-1, description=us-east-1, parent=aws-ec2, iso3166Codes=[US-VA]}, os={family=unrecognized, arch=paravirtual, version=, description=amazon/amzn-ami-pv-2012.09.0.x86_64-ebs, is64Bit=true}, description=Amazon Linux AMI x86_64 EBS, status=AVAILABLE[available], loginUser=ec2-user, userMetadata={owner=137112412989, rootDeviceType=ebs, virtualizationType=paravirtual, hypervisor=xen}}, hardware={id=m1.large, providerId=m1.large, processors=[{cores=2.0, speed=2.0}], ram=7680, volumes=[{type=LOCAL, size=10.0, device=/dev/sda1, bootDevice=true, durable=false}, {type=LOCAL, size=420.0, device=/dev/sdb, bootDevice=false, durable=false}, {type=LOCAL, size=420.0, device=/dev/sdc, bootDevice=false, durable=false}], supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,is64Bit())}, location={scope=REGION, id=us-east-1, description=us-east-1, parent=aws-ec2, iso3166Codes=[US-VA]}, options={groupNames=[AllPortsOpen], keyPair=seankey, userData=[35, 99, 108, 111, 117, 100, 45, 99, 111, 110, 102, 105, 103, 10, 114, 101, 112, 111, 95, 117, 112, 103, 114, 97, 100, 101, 58, 32, 110, 111, 110, 101, 10]}}
2012-12-11 12:17:24,868 INFO [org.cloudifysource.esc.shell.listener.CliAgentlessInstallerListener] - Attempting to access Management VM 50.17.175.229.

Attached is a log file

Activity

Show:
Barak Merimovich
December 27, 2012, 7:26 AM

This generally means that jclouds found an image (not the one used by us) that it could not parse. The warning should not cause any problems, but we definitely need to hide the warning.

Eli Polonsky
April 14, 2013, 11:22 AM

this is a bug that was reported in jclouds 4 months ago.
it happens when the Image has custom tags attached to it.

https://github.com/jclouds/jclouds/issues/1066

Assignee

Unassigned

Reporter

Shravan (Sean) K Pabba

Labels

Priority

Medium
Configure