Error on creating port with fixed ip

Bug #1616027 reported by MD IRSHAD ALAM
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Incomplete
Low
Dmitriy

Bug Description

I want to create a port with fixed ip. The same yaml file is successfully created the port on kilo ubuntu version but when i'm going to use same yaml file in liberty centos it will throws an error:

heatclient.exc.HTTPBadRequest: ERROR: Property error: : resources.my_port.properties.fixed_ips[0].ip_address: : "10.0.0.20" does not validate ip_addr (constraint not found)

Below is the yaml file:

heat_template_version: 2013-05-23
description: Simple template to deploy a single compute instance
parameters:

resources:
  my_port:
    type: OS::Neutron::Port
    properties:
      name: "port1"
      network_id: "<network-id>"
      fixed_ips: [{"ip_address": 10.0.0.20}]

workaroud:

File: /usr/lib/python2.7/site-packages/heat/engine/resources/openstack/neutron/port.py
Function: class Port(neutron.NeutronResource):

comment the line as below:

FIXED_IP_IP_ADDRESS: properties.Schema(
                        properties.Schema.STRING,
                        _('IP address desired in the subnet for this port.')
                        #_('IP address desired in the subnet for this port.'),
                        #constraints=[
                        # constraints.CustomConstraint('ip_addr')
                        #]
                    ),

Dmitriy (duvarenkov)
Changed in heat:
assignee: nobody → Dmitriy (duvarenkov)
Revision history for this message
Rabi Mishra (rabi) wrote :

I think your constraints plugins are not registered properly. May be you've upgraded and your upgrade is not clean. Please check you setup.cfg where plugins entrypoints are there. I think we changed these entrypoints in liberty.

Revision history for this message
Dmitriy (duvarenkov) wrote :

Hi. Tried this template on liberty, validation is going fine. Can you share contents of your setup.cfg in heat? And contents of heat.egg-info/entry_points.txt.

Thomas Herve (therve)
Changed in heat:
status: New → Incomplete
milestone: none → ongoing
importance: Undecided → Low
Revision history for this message
MD IRSHAD ALAM (dhn-irshad) wrote :

Hi,
It resolves the issue after installing the package "python-croniter" using yum install python-croniter. But according to official document http://docs.openstack.org/liberty/install-guide-rdo/heat.html there is no such detail about this package.

Dmitriy i have installed the heat on my openstack setup using the below document-
http://docs.openstack.org/liberty/install-guide-rdo/heat.html

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.