RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1293961 - [SFCI] Heat template failed to start because Property error: ... net_cidr (constraint not found)
Summary: [SFCI] Heat template failed to start because Property error: ... net_cidr (co...
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-heat
Version: Liberty
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: Crag Wolfe
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-23 17:33 UTC by Tristan Cacqueray
Modified: 2016-05-19 15:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:44:59 UTC
Embargoed:


Attachments (Terms of Use)
simplified-template.hot (682 bytes, text/plain)
2016-01-06 00:21 UTC, Crag Wolfe
no flags Details

Description Tristan Cacqueray 2015-12-23 17:33:48 UTC
Description of problem:
The software factory Heat template fail to deploy using RDO Liberty. Note that just changing the release to Kilo fix this issue

How reproducible:
The RDO release: https://repos.fedorapeople.org/repos/openstack/openstack-liberty/rdo-release-liberty-2.noarch.rpm

Steps to Reproduce:
1. sudo packstack --allinone --os-swift-install=y --os-ceilometer-install=n --nagios-install=n --provision-demo=n --keystone-admin-passwd=sf4ever --os-heat-install=y --cinder-volumes-size=50G
2. heat stack-create  using this template: https://raw.githubusercontent.com/redhat-cip/software-factory/master/deploy/heat/softwarefactory.hot

This is automated in that job: http://softwarefactory-project.io/jenkins/job/sf-openstack-liberty-1node-allinone/ (eg build #65)

Actual results:
The heat stack create command failed with:
ERROR: Property error: : resources.sf_ext_secgroup_swarm_slave.properties.rules[0].remote_ip_prefix: : "0.0.0.0/0" does not validate net_cidr (constraint not found)

Expected results:
Heat stack CREATE_IN_PROGRESS

Additional info:
We hit that bug in software factory project CI (thus the sfci Keywords).
Two jobs are testing OpenStack integration with the SF project using RDO release and packstack deployment:
  sf-openstack-kilo-1node-allinone and sf-openstack-liberty-1node-allinone.
The two jobs are identique, except that one will use rdo release, the other kilo release.

Comment 1 Zane Bitter 2016-01-05 18:46:36 UTC
IIRC this is due to a missing dependency that is not reflected in the packaging.

Comment 2 Crag Wolfe 2016-01-05 20:30:37 UTC
Do you have the exact "heat stack-create" command used? I'm not seeing it in the jenkins console output, but maybe I'm looking in the wrong place.

Comment 3 Crag Wolfe 2016-01-06 00:21:52 UTC
Created attachment 1111985 [details]
simplified-template.hot

Comment 4 Crag Wolfe 2016-01-06 00:35:24 UTC
I repro'd the issue using simplified-template.hot (uploaded to bz).

If you install python-croniter, the issue should go away. This implies that the real issue is that the openstack-heat-common rpm is missing a dependency on python-croniter.

Debugging notes: 

heat-engine.log included:
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension [-] Could not load 'net_cidr': No module named croniter
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension [-] No module named croniter
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension Traceback (most recent call last):
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension   File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 162, in _load_plugins
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension     verify_requirements,
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension   File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 185, in _load_one_plugin
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension     plugin = ep.load(require=verify_requirements)
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension   File "/usr/lib/python2.7/site-packages/heat/engine/constraint/common_constraints.py", line 14, in <module>
2016-01-05 18:36:19.086 38117 ERROR stevedore.extension     import croniter


Editing /usr/lib/python2.7/site-packages/heat/engine/constraint/common_constraints.py so that "import croniter" is commented out and bouncing the heat services also causes the issue to go away, but I think the proper fix is just to add the python-croniter rpm dependency.

Comment 5 Tristan Cacqueray 2016-01-06 03:11:01 UTC
I confirm installing python-croniter before running packstack fixed the issue:
 http://softwarefactory-project.io/jenkins/job/sf-openstack-liberty-1node-allinone/83/console   shows the heat template is now properly accepted and put in CREATE_IN_PROGRESS

Thanks!

Comment 6 Crag Wolfe 2016-01-07 17:50:13 UTC
Review submitted to update .spec file:
https://review.gerrithub.io/#/c/258836/

Comment 7 Antonio Ojea 2016-05-09 10:07:00 UTC
I have this bug in current liberty packages, I cherry picked the patch to the liberty branch https://review.gerrithub.io/#/c/275756/

Comment 8 Chandan Kumar 2016-05-19 15:44:59 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.


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