Provider PTG creation failed due to name lenght restriction in DB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Group Based Policy |
Fix Released
|
High
|
Sumit Naiksatam |
Bug Description
While launching the FW(Vyos) in East-West, the provider Ptg creation failed due to DBError .
On debugging further observed that the issue is caused while updating DB (sc_instances). The error seen was "Data too long for column 'name'".
The 'name' field in sc_instances table is 50 characters long. The name that is given while createing PTG is less than 50 characters.
The problem is seen as gbp is pre-pending some extra characters to the ptg name before updating the DB.
MariaDB [neutron]> desc sc_instances;
+------
| Field | Type | Null | Key | Default | Extra |
+------
| tenant_id | varchar(255) | YES | | NULL | |
| id | varchar(36) | NO | PRI | NULL | |
| name | varchar(50) | YES | | NULL | |
| description | varchar(255) | YES | | NULL | |
| config_param_values | varchar(4096) | YES | | NULL | |
| provider_ptg_id | varchar(36) | YES | | NULL | |
| consumer_ptg_id | varchar(36) | YES | | NULL | |
| classifier_id | varchar(36) | YES | | NULL | |
| management_ptg_id | varchar(36) | YES | | NULL | |
+------
9 rows in set (0.00 sec)
Snapshot of neutron server log
-------
2015-11-25 01:58:10.531 26974 TRACE gbpservice.
2015-11-25 01:58:10.531 26974 TRACE gbpservice.
2015-11-25 01:58:10.531 26974 TRACE gbpservice.
2015-11-25 01:58:10.531 26974 TRACE gbpservice.
Note:
gbp is prefixing the following string format to names before updating db.
gbp_
Eg: In the above error 'gbp_sungard-
In this case prs name is 'sungard-
Changed in group-based-policy: | |
milestone: | none → liberty-1 |
assignee: | nobody → Sumit Naiksatam (snaiksat) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in group-based-policy: | |
status: | Confirmed → In Progress |
Changed in group-based-policy: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: stable/kilo /review. openstack. org/251094
Review: https:/