heat.common.exception.StackValidationFailed: Attribute Foo for facade DummyResource missing in provider

Bug #1479185 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Angus Salkeld

Bug Description

I'm seeing this error locally and at the gate frequently now.

http://goo.gl/3hsfmt

======================================================================
FAIL: heat.tests.test_provider_template.ProviderTemplateTest.test_attributes_not_parsable
tags: worker-4
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:'alembic'
  pythonlogging:'barbicanclient'
  pythonlogging:'cinderclient'
  pythonlogging:'cliff'
  pythonlogging:'concurrent'
  pythonlogging:'designateclient'
  pythonlogging:'dogpile'
  pythonlogging:'eventlet'
  pythonlogging:'heat-provision'
  pythonlogging:'heat_integrationtests'
  pythonlogging:'heatclient'
  pythonlogging:'iso8601'
  pythonlogging:'keystoneclient'
  pythonlogging:'keystonemiddleware'
  pythonlogging:'migrate'
  pythonlogging:'mistralclient'
  pythonlogging:'neutronclient'
  pythonlogging:'novaclient'
  pythonlogging:'object'
  pythonlogging:'oslo_cache'
  pythonlogging:'oslo_concurrency'
  pythonlogging:'oslo_config'
  pythonlogging:'oslo_db'
  pythonlogging:'oslo_log'
  pythonlogging:'oslo_messaging'
  pythonlogging:'oslo_middleware'
  pythonlogging:'oslo_policy'
  pythonlogging:'oslo_service'
  pythonlogging:'oslo_utils'
  pythonlogging:'oslo_versionedobjects'
  pythonlogging:'requests'
  pythonlogging:'routes'
  pythonlogging:'saharaclient'
  pythonlogging:'sqlalchemy'
  pythonlogging:'stevedore'
  pythonlogging:'swiftclient'
  pythonlogging:'troveclient'

pythonlogging:'': {{{
WARNING [heat.engine.environment] Changing GenericResourceType from <class 'heat.tests.generic_resource.GenericResource'> to <class 'heat.tests.generic_resource.GenericResource'>
 WARNING [heat.engine.environment] Changing SignalResourceType from <class 'heat.tests.generic_resource.SignalResource'> to <class 'heat.tests.generic_resource.SignalResource'>
 WARNING [heat.engine.environment] Changing ResourceWithPropsType from <class 'heat.tests.generic_resource.ResourceWithProps'> to <class 'heat.tests.generic_resource.ResourceWithProps'>
 WARNING [heat.engine.environment] Changing StackUserResourceType from <class 'heat.tests.generic_resource.StackUserResource'> to <class 'heat.tests.generic_resource.StackUserResource'>
 WARNING [heat.engine.environment] Changing ResourceWithResourceIDType from <class 'heat.tests.generic_resource.ResourceWithResourceID'> to <class 'heat.tests.generic_resource.ResourceWithResourceID'>
 WARNING [heat.engine.environment] Changing ResourceWithAttributeType from <class 'heat.tests.generic_resource.ResourceWithAttributeType'> to <class 'heat.tests.generic_resource.ResourceWithAttributeType'>
 WARNING [heat.engine.environment] Changing ResourceWithRequiredProps from <class 'heat.tests.generic_resource.ResourceWithRequiredProps'> to <class 'heat.tests.generic_resource.ResourceWithRequiredProps'>
 WARNING [heat.engine.environment] Changing ResourceWithPropsAndAttrs from <class 'heat.tests.generic_resource.ResourceWithPropsAndAttrs'> to <class 'heat.tests.generic_resource.ResourceWithPropsAndAttrs'>
 WARNING [heat.engine.environment] Changing ResWithComplexPropsAndAttrs from <class 'heat.tests.generic_resource.ResWithComplexPropsAndAttrs'> to <class 'heat.tests.generic_resource.ResWithComplexPropsAndAttrs'>
 WARNING [heat.engine.environment] Changing ResourceWithCustomConstraint from <class 'heat.tests.generic_resource.ResourceWithCustomConstraint'> to <class 'heat.tests.generic_resource.ResourceWithCustomConstraint'>
 WARNING [heat.engine.environment] Changing ResourceWithComplexAttributesType from <class 'heat.tests.generic_resource.ResourceWithComplexAttributes'> to <class 'heat.tests.generic_resource.ResourceWithComplexAttributes'>
 WARNING [heat.engine.environment] Changing ResourceWithDefaultClientName from <class 'heat.tests.generic_resource.ResourceWithDefaultClientName'> to <class 'heat.tests.generic_resource.ResourceWithDefaultClientName'>
 WARNING [heat.engine.environment] Changing OverwrittenFnGetAttType from <class 'heat.tests.generic_resource.ResourceWithFnGetAttType'> to <class 'heat.tests.generic_resource.ResourceWithFnGetAttType'>
 WARNING [heat.engine.environment] Changing OverwrittenFnGetRefIdType from <class 'heat.tests.generic_resource.ResourceWithFnGetRefIdType'> to <class 'heat.tests.generic_resource.ResourceWithFnGetRefIdType'>
 WARNING [heat.engine.environment] Changing ResourceWithListProp from <class 'heat.tests.generic_resource.ResourceWithListProp'> to <class 'heat.tests.generic_resource.ResourceWithListProp'>
 WARNING [heat.engine.environment] Changing StackResourceType from <class 'heat.tests.generic_resource.StackResourceType'> to <class 'heat.tests.generic_resource.StackResourceType'>
 WARNING [heat.engine.environment] Changing ResourceWithRestoreType from <class 'heat.tests.generic_resource.ResourceWithRestoreType'> to <class 'heat.tests.generic_resource.ResourceWithRestoreType'>
 WARNING [heat.engine.environment] Changing myCloud::ResourceType from <class 'heat.tests.test_provider_template.MyCloudResource'> to <class 'heat.tests.test_provider_template.MyCloudResource'>
    INFO [heat.engine.environment] Registering DummyResource -> test_resource.template
}}}

Traceback (most recent call last):
  File "heat/tests/test_provider_template.py", line 299, in test_attributes_not_parsable
    self.assertIsNone(temp_res.validate())
  File "heat/engine/resources/template_resource.py", line 259, in validate
    self._validate_against_facade(facade_cls)
  File "heat/engine/resources/template_resource.py", line 238, in _validate_against_facade
    raise exception.StackValidationFailed(message=msg)
heat.common.exception.StackValidationFailed: Attribute Foo for facade DummyResource missing in provider

Rabi Mishra (rabi)
Changed in heat:
assignee: nobody → Rabi Mishra (rabi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/206862

Changed in heat:
status: New → In Progress
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Marking as a blocker for l-2, just because it affects the gate

Changed in heat:
importance: Undecided → Critical
milestone: none → liberty-2
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Looks like the gate is too backed up to land this for l-2

Changed in heat:
importance: Critical → High
milestone: liberty-2 → liberty-3
Changed in heat:
assignee: Rabi Mishra (rabi) → Angus Salkeld (asalkeld)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/206862
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=c6c1cc9e8ad68c431debfa92cdf2d2b9aca53804
Submitter: Jenkins
Branch: master

commit c6c1cc9e8ad68c431debfa92cdf2d2b9aca53804
Author: Rabi Mishra <email address hidden>
Date: Wed Jul 29 09:03:19 2015 +0530

    Fix `DummyResource missing in provider` error

    Change-Id: Ie1144702b9a6c008889116b408b4b09c3087d73e
    Closes-Bug: #1479185

Changed in heat:
status: In Progress → Fix Committed
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-3 → 5.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.