Ask Your Question

Not able to use OS::Heat::MultipartMime resource type in Heat.

asked 2014-11-24 04:22:23 -0500

Kashyap Kopparam gravatar image

I have this template which uses OS::MultipartMime to combine the CloudConfig and SoftwareConfig resource types. But when I try to run this or any template with heat I run into errors and the stack fails. Here is the the full trace of the error that I see in heat engine. I have tried multiple MultipartMime examples but all of them fail like this. Has anyone seen this before, found a workaround, or just have any clue how I can get around this for now?

2014-11-24 15:49:49.562 INFO heat.engine.stack [-] Stack CREATE FAILED (simple): Resource CREATE failed: TypeError: object of type 'NoneType' has no len()
Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/", line 134, in _dispatch_and_reply

  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/", line 177, in _dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)

  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/", line 123, in _do_dispatch
    result = getattr(endpoint, method)(ctxt, **new_args)

  File "/usr/local/lib/python2.7/dist-packages/osprofiler/", line 105, in wrapper
    return f(*args, **kwargs)

  File "/opt/stack/heat/heat/engine/", line 72, in wrapped
    return func(self, ctx, *args, **kwargs)

  File "/opt/stack/heat/heat/engine/", line 1409, in show_software_config
    sc = db_api.software_config_get(cnxt, config_id)

  File "/opt/stack/heat/heat/db/", line 258, in software_config_get
    return IMPL.software_config_get(context, config_id)

  File "/opt/stack/heat/heat/db/sqlalchemy/", line 706, in software_config_get
    result = model_query(context, models.SoftwareConfig).get(config_id)

  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/", line 799, in get
    if len(ident) != len(mapper.primary_key):

TypeError: object of type 'NoneType' has no len()
edit retag flag offensive close merge delete


I can replicate this locally, investigating now

Steve Baker gravatar imageSteve Baker ( 2014-11-24 15:33:07 -0500 )edit

I have raised , and an answer will be posted when there is a review available which fixes this

Steve Baker gravatar imageSteve Baker ( 2014-11-24 15:41:38 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-24 16:04:55 -0500

Steve Baker gravatar image

Thanks for reporting this, it is a regression from a commit 9 days ago. The proposed fix is here:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-11-24 04:22:23 -0500

Seen: 520 times

Last updated: Nov 24 '14