heat need python-croniter

Bug #1628572 reported by halfss
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
Low
halfss

Bug Description

python-croniter is need for heat when use heat to create network with cidr

halfss (ljvsss)
Changed in kolla:
assignee: nobody → halfss (ljvsss)
Revision history for this message
halfss (ljvsss) wrote :

heat need 'python-croniter' work with cidr

(kolla-toolbox)[ansible@kolla-test ~]$ heat stack-create -f test.yaml test
WARNING (shell) "heat stack-create" is deprecated, please use "openstack stack create" instead
ERROR: Property error: : resources.experiment_subnet.properties.cidr: : "192.168.1.0/24" does not validate net_cidr (constraint not found)

which test.yaml contain this:
'
  net_cidr:
    type: string
    description: CIDR of private network
    default: 192.168.1.0/24
  net_gateway:
    type: string
    description: CIDR of private network
    default: 192.168.1.1
  public_net:
    type: string
    description: Public network
    default: ext-net

  experiment_subnet:
    type: OS::Neutron::Subnet
    properties:
      name: {get_param: subnet_name}
      tenant_id: {get_resource: experiment_project}
      network_id: { get_resource: experiment_net }
      cidr: { get_param: net_cidr }
      gateway_ip: { get_param: net_gateway }
'

Revision history for this message
halfss (ljvsss) wrote :

diff --git a/docker/heat/heat-base/Dockerfile.j2 b/docker/heat/heat-base/Dockerfile.j2
index e7507a6..4585060 100644
--- a/docker/heat/heat-base/Dockerfile.j2
+++ b/docker/heat/heat-base/Dockerfile.j2
@@ -6,6 +6,7 @@ MAINTAINER {{ maintainer }}

 RUN yum -y install \
         openstack-heat-common \
+ python-croniter \
     && yum clean all

     {% elif base_distro in ['ubuntu'] %}

this is work for me

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

1. which branch are u using?

2. the python-croniter is in the requirements.txt file in heat code base, i think there is some issue in rdo packaging

3. python-croniter provide some function to iteration for datetime object with cron like format. why it related to cidr?

Changed in kolla:
status: New → Triaged
Revision history for this message
halfss (ljvsss) wrote :

1: stable/liberty
2: is not installed in rdo
3: ERROR: Property error: : resources.experiment_subnet.properties.cidr: : "192.168.1.0/24" does not validate net_cidr (constraint not found) not come again after install python-croniter

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

hmm. it is weird.

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

So this only affects liberty? have u every tried mitaka or master branch?

Revision history for this message
halfss (ljvsss) wrote :

I have not tried other branch

Changed in kolla:
milestone: none → ocata-3
Revision history for this message
Christian Berendt (berendt) wrote :

Closing as invalid. Works on master and mitaka/newton. Liberty is EOL.

Changed in kolla:
importance: Undecided → Low
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.