Bug 1448237 - Heat 9.0.0 error when using OS::Neutron::Segment
Summary: Heat 9.0.0 error when using OS::Neutron::Segment
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-heat
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Zane Bitter
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks: 1403955
TreeView+ depends on / blocked
 
Reported: 2017-05-04 23:28 UTC by Dan Sneddon
Modified: 2017-05-05 00:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-05 00:15:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1666616 0 None None None 2017-05-04 23:29:20 UTC

Description Dan Sneddon 2017-05-04 23:28:11 UTC
Description of problem:
Heat 9.0.0 (Pike) is supposed to support OS::Neutron::Segment resources. This is a requirement for routed spine-and-leaf (under development). Heat is giving this error:
ERROR: The Resource Type (OS::Neutron::Segment) could not be found.

Version-Release number of selected component (if applicable):
openstack-heat-api.noarch                                                                1:9.0.0-0.20170420143908.a9c423c.el7.centos                                                             @delorean
openstack-heat-api-cfn.noarch                                                            1:9.0.0-0.20170420143908.a9c423c.el7.centos                                                             @delorean
openstack-heat-common.noarch                                                             1:9.0.0-0.20170420143908.a9c423c.el7.centos                                                             @delorean
openstack-heat-engine.noarch                                                             1:9.0.0-0.20170420143908.a9c423c.el7.centos                                                             @delorean
20


How reproducible:
100%

Steps to Reproduce:

Here is an example template that will trigger the bug:

###########
heat_template_version: 2017-09-01

description: Template to create an ironic instance

parameters:

  TestNetValueSpecs:
    default: {'provider:physical_network': 'ctlplane', 'provider:network_type': 'flat'}
    description: Value specs for the internal API network.
    type: json

resources:

  test_network:
    type: OS::Neutron::Net
    properties:
      admin_state_up: True
      name: test-network
      shared: True
      value_specs: {get_param: TestNetValueSpecs}

  test_segment:
    type: OS::Neutron::Segment
    properties:
      network: test-network
      network_type: flat
      name: test-segment1
      physical_network: test_network
###########

Actual results:
$ openstack stack create -t template.yaml test_stack
ERROR: The Resource Type (OS::Neutron::Segment) could not be found.


Expected results:
A Neutron Segment should be created.

Additional info:
Prior to this testing, I enabled segments in the service_plugins in neutron.conf.

The feature in Heat is shown here, and it is listed as being supported in 9.0.0:
https://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Neutron::Segment

Comment 1 Zane Bitter 2017-05-05 00:15:55 UTC
9.0.0 hasn't actually been released yet, so you're dealing with a development build from RDO trunk. From the RPM name I'd infer that the build date was 2017-04-20. The patch to add the new resource type https://review.openstack.org/#/c/452596/ merged on 2017-04-25.


Note You need to log in before you can comment on or make changes to this bug.