Required attribute 'subnet_id' not specified

Bug #1650762 reported by Turbo Fredriksson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Rabi Mishra

Bug Description

When trying to create a stack with a "OS::Neutron::LBaaS::PoolMember", I get:

2016-12-17 12:17:28Z [admin-auth]: CREATE_FAILED Resource CREATE failed: BadRequest: resources.ldap.resources[4].resources.member: Failed to parse request. Required attribute 'subnet_id' not specified

This with a stack resource like this:

  member:
    type: OS::Neutron::LBaaS::PoolMember
    properties:
      address: { get_attr: [instance, address] }
      pool: { get_param: pool_id }
      protocol_port: { get_param: port_nr }

The documentation at http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Neutron::LBaaS::PoolMember does not mention "subnet_id", only "subnet" which isn't a required property.

.
This is Heat v7.0.0 (Newton) on Debian GNU/Linux Stretch.

Revision history for this message
Rabi Mishra (rabi) wrote :

Looks like subnet is a required property.

Changed in heat:
importance: Undecided → Medium
assignee: nobody → Rabi Mishra (rabi)
Revision history for this message
Turbo Fredriksson (turbo-bayour) wrote :

Yes, it did work by adding that.

Revision history for this message
Rabi Mishra (rabi) wrote :

Hmm, there seems to be some confusion around the subnet/subnet_id property of pool member. An earlier patch to fix this was blocked[1] and and an neutron api-ref bug[2] raised is marked as 'opinion'. I see neutronclient cli mentions it as required[3]. However in the neutron-lbaas db model it's nullable[4]

[1] https://review.openstack.org/#/c/319109/1
[2] https://bugs.launchpad.net/openstack-api-site/+bug/1585100
[3] https://github.com/openstack/python-neutronclient/blob/master/neutronclient/neutron/v2_0/lb/v2/member.py#L93
[4] https://github.com/openstack/neutron-lbaas/blob/aa63f5b20152911418653ac4178361bc39992c25/neutron_lbaas/db/loadbalancer/models.py#L86

Changed in heat:
status: New → In Progress
Rabi Mishra (rabi)
Changed in heat:
milestone: none → ocata-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit ee2cdd3c2c138acf405d38da453da2ab534e2bda
Author: Dmitriy Uvarenkov <email address hidden>
Date: Thu May 19 18:14:30 2016 +0300

    Make subnet required for lbaasv2 member resource

    Subnet property is required for pool-member creation
    in neutron-lbaasv2. So make it required in heat and
    remove test for creation without subnet.

    Change-Id: Ic017be6e9734d633517d0a564798f18a0872b051
    Closes-Bug: #1650762

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 8.0.0.0b3

This issue was fixed in the openstack/heat 8.0.0.0b3 development milestone.

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.