error in policy creation on contrail UI R3.0

Bug #1577933 reported by Santosh Gupta
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Ranjeet R
Trunk
Fix Committed
High
Ranjeet R

Bug Description

I am creating a policy Networking >> Policies >> “+ to create new policy”.
I am getting the following error. I tried various values for different fields but I still see the issue. I am able to create a policy via openstack UI.

Error: Bad property in create: Error validating property network_policy_entries value {'policy_rule': [{'direction': '<>', 'protocol': 'any', 'dst_addresses': [{'security_group': None, 'virtual_network': 'any', 'network_policy': None, 'subnet': None}], 'action_list': {'simple_action': 'pass', 'gateway_name': None, 'apply_service': None, 'mirror_to': None, 'log': False}, 'dst_ports': [{'end_port': -1, 'start_port': -1}], 'application': [], 'src_addresses': [{'security_group': None, 'virtual_network': 'any', 'network_policy': None, 'subnet': None}], 'rule_sequence': {'major': -1, 'minor': -1}, 'src_ports': [{'end_port': -1, 'start_port': -1}]}]} Field apply_service must be a list. Received value: None

I am attaching snapshot for the same. If needed you can try it at below link.
https://10.84.5.42:8143/#p=config_net_policies

Tags: config
Revision history for this message
Santosh Gupta (sangupta) wrote :
  • policy-error.docx Edit (199.2 KiB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: Sachin Bansal (sbansal) → Ranjeet R (rranjeet-n)
Changed in juniperopenstack:
importance: Undecided → High
tags: added: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/19907
Submitter: Ranjeet R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19907
Committed: http://github.org/Juniper/contrail-controller/commit/6aed551476ffd3ca472144634bbf30c4ea7b4054
Submitter: Zuul
Branch: master

commit 6aed551476ffd3ca472144634bbf30c4ea7b4054
Author: Ranjeet R <email address hidden>
Date: Wed May 4 14:42:19 2016 -0700

Fixes: error in policy creation on contrail UI R3.0

When validating a value, check for None and if it is None, skip
validating it.

Change-Id: I3b4509e77528fe2fc2670eac195465e85d613426
Closes-Bug: 1577933

information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20471
Submitter: Ranjeet R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20471
Committed: http://github.org/Juniper/contrail-controller/commit/552a146b841e476cdcaef7f063acbd9778dbd343
Submitter: Zuul
Branch: R3.0

commit 552a146b841e476cdcaef7f063acbd9778dbd343
Author: Ranjeet R <email address hidden>
Date: Fri May 20 11:32:45 2016 -0700

Fixes: error in policy creation on contrail UI R3.0

When validating a value, check for None and if it is None, skip
validating it.

Change-Id: I03377618cf58fa1a4a3bb2e88022691aa9ea85c2
Closes-Bug: 1577933

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.