Fails to get DPDK feature status.

This change is to get dpdk feature status for a role
when using docker service neutron-ovs-dpdk-agent.yaml file.
DPDK derive params workflow is not invoked and derived
parameters for dpdk role when using docker service
neutron-ovs-dpdk-agent.yaml file for deployment.
_get_role_info workflow is failed to get dpdk feature enabled
status for dpdk role.

Change-Id: I3e878e5dacf8e78710c892309b0d064506ec7345
Closes-Bug: #1759296
This commit is contained in:
Jaganathan Palanisamy 2018-03-27 11:07:35 -04:00
parent 74f33c57bf
commit 13e1aca771

View File

@ -404,8 +404,8 @@ workflows:
check_features:
on-success: build_feature_dict
publish:
# The role supports the DPDK feature if the NeutronDatapathType parameter is present.
dpdk: <% $.role_services.any($.get('parameters', []).contains('NeutronDatapathType')) %>
# The role supports the DPDK feature if the NeutronDatapathType parameter is present
dpdk: <% let(resources => $.heat_resource_tree.resources) -> $.role_services.any($.get('parameters', []).contains('NeutronDatapathType') or $.get('resources', []).select($resources.get($)).any($.get('parameters', []).contains('NeutronDatapathType'))) %>
# The role supports the DPDK feature in ODL if the OvsEnableDpdk parameter value is true in role parameters.
odl_dpdk: <% let(role => $.role_name) -> $.heat_resource_tree.parameters.get(concat($role, 'Parameters'), {}).get('default', {}).get('OvsEnableDpdk', false) %>