3fb8722012
The Stack._find_filtered_resources() method returns Resource objects for all resources associated with the Stack, regardless of whether they are current (present in the template; latest version in the case of convergence). To do this, it previously created a new Resource object for every resource found in the database. However, for those resources which *are* current this is unnecessary. We can access the Resource object simply through self.resources. It turns out this is necessary for obtaining the required_by list for legacy stacks, because only the Resources obtained from self.resources also appear in the Dependencies graph obtained from self.dependencies. The required_by list is read when listing or showing resources, which would either return an empty list or fail for legacy stacks. This patch also makes the Resource.required_by() method more robust in its error handling. Change-Id: Id438336e5c88dc7c2d168ba01ee703faa17e8b8e Closes-Bug: #1703703 Related-Bug: #1523748 (cherry picked from commit |
||
---|---|---|
.. | ||
__init__.py | ||
functional_base.py | ||
test_admin_actions.py | ||
test_autoscaling.py | ||
test_aws_stack.py | ||
test_cancel_update.py | ||
test_conditional_exposure.py | ||
test_conditions.py | ||
test_create_update_neutron_port.py | ||
test_create_update_neutron_subnet.py | ||
test_create_update.py | ||
test_default_parameters.py | ||
test_delete.py | ||
test_encrypted_parameter.py | ||
test_encryption_vol_type.py | ||
test_env_merge.py | ||
test_event_sinks.py | ||
test_external_ref.py | ||
test_heat_autoscaling.py | ||
test_hooks.py | ||
test_immutable_parameters.py | ||
test_instance_group.py | ||
test_lbaasv2.py | ||
test_notifications.py | ||
test_nova_server_networks.py | ||
test_os_wait_condition.py | ||
test_preview_update.py | ||
test_preview.py | ||
test_purge.py | ||
test_reload_on_sighup.py | ||
test_remote_stack.py | ||
test_replace_deprecated.py | ||
test_resource_chain.py | ||
test_resource_group.py | ||
test_resources_list.py | ||
test_snapshot_restore.py | ||
test_software_config.py | ||
test_software_deployment_group.py | ||
test_stack_events.py | ||
test_stack_outputs.py | ||
test_stack_tags.py | ||
test_swiftsignal_update.py | ||
test_template_resource.py | ||
test_template_validate.py | ||
test_templates.py | ||
test_unicode_template.py | ||
test_update_restricted.py | ||
test_validation.py | ||
test_waitcondition.py |