Ask Your Question
0

Create_Failed: Resource CREATE failed: AttributeError: 'GlanceImage' object has no attribute 'glance'

asked 2014-10-06 04:58:54 -0600

Dushyant Gupta gravatar image

updated 2014-10-06 06:57:06 -0600

Hi, I have recently setup openstack icehouse with a few services. I have following yaml heat template to create a stack.

test.yaml :--

heat_template_version: 2013-05-23

resources:

 file1:
 type: OS::Glance::Image
 properties:
  disk_format: qcow2
  container_format: bare
  id: file1
  location: http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img

But whenever I am creating the stack using:

heat stack-create -f test.yaml mystack

the stack creation fails with the following error:--

 Create_Failed: Resource CREATE failed: AttributeError: 'GlanceImage' object has no attribute 'glance'

What's going wrong and how can I solve this problem?

PS: Earlier, when i ran the command "heat stack-create" , I was getting the error

unknown resource type OS::Glance::Image

as the resource type OS::Glance::Image was not listed in the command "heat resource-type-list",
which I resolved by uncommenting the "plugin_dirs" attribute in /etc/heat/heat.conf file and pasting the "glance_image.py" file in the /usr/lib/heat directory which I created and defined in the heat.conf file.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-06 08:24:03 -0600

zaneb gravatar image

It looks like a problem with the python-glanceclient version. If you have the latest version of it installed on the box where heat-engine is running, then please raise a bug against Heat.

edit flag offensive delete link more

Comments

Thanks for answer. I have installed glance using this documentation, and I am also able to create image using the example given in it. So, should the glance be a problem?

Dushyant Gupta gravatar imageDushyant Gupta ( 2014-10-07 00:39:43 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-06 04:58:54 -0600

Seen: 668 times

Last updated: Oct 06 '14