[3.0.1.0-23 kilo] can't create a policy in UI with service chain for a tenant with a space in name

Bug #1589512 reported by Robert Rosiak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Low
Siva Bavanasi
R3.0
Won't Fix
Low
Siva Bavanasi

Bug Description

Steps to reproduce:
1. Create w new tenant with space in name - eg. "CLIENT A".
2. Create for this tenant on contrail UI a new v1 service chain - eg. "VAS55"
3. Try to create a new policy in contrail UI with a service instance "VAS55"

The contrail UI will not add a correct policy, because the apply_service property will be stripped:

curl -H "X-Auth-Token: 715799835fba4549a0fd0fa87dd13d82" http://localhost:8082/network-policy/16e7fb8c-d6b5-4f90-87a4-a6f6a6600049 | python -mjson.tool

...
"network_policy_entries": {
            "policy_rule": [
                {
                    "action_list": {
                        "apply_service": [
                            "default-domain:CLIENT"
                        ],
                        "gateway_name": null,
                        "log": false,
....

The apply_service property value should be: "default-domain:CLIENT A:VAS55"

Here's output for service-instance fq_name values:

curl -H "X-Auth-Token: 715799835fba4549a0fd0fa87dd13d82" http://localhost:8082/service-instance/91453c1f-8494-4e31-86bd-b668e8ca83a8 | python -mjson.tool
{
    "service-instance": {
        "display_name": "VAS55",
        "fq_name": [
            "default-domain",
            "CLIENT A",
            "VAS55"
        ],
        "href": "http://localhost:8082/service-instance/91453c1f-8494-4e31-86bd-b668e8ca83a8",
        "id_perms": {
....

Tags: api ui
Revision history for this message
Robert Rosiak (robert-rosiak) wrote :
information type: Proprietary → Public
Rahul (rahuls)
Changed in juniperopenstack:
assignee: nobody → Siva Bavanasi (kbsiva)
importance: Undecided → Low
Revision history for this message
Robert Rosiak (robert-rosiak) wrote :
Revision history for this message
Siva Bavanasi (kbsiva) wrote :
Changed in juniperopenstack:
status: New → Fix Committed
Siva Bavanasi (kbsiva)
tags: added: releasenote
removed: api ui
tags: added: api ui
Rahul (rahuls)
tags: removed: releasenote
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.