GET security group rule is missing description attribute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Low
|
Unassigned |
Bug Description
The description attribute is missed attribute in _make_security_
Create sec group rule with desc
stack@bionic-
+------
| Field | Value |
+------
| created_at | 2021-10-
| description | test rule |
| direction | ingress |
| ether_type | IPv4 |
| id | 389eb45e-
| location | cloud='', project.
| name | None |
| port_range_max | None |
| port_range_min | None |
| project_id | f2527eb734c745e
| protocol | None |
| remote_group_id | None |
| remote_ip_prefix | None |
| revision_number | 0 |
| security_group_id | ff57f76f-
| tags | [] |
| updated_at | 2021-10-
+------
Example get (no description)
RESP BODY: {"security_
Potential fix (patch applies to stable/ussuri, not master)
diff --git a/neutron/
index 28238358ae.
--- a/neutron/
+++ b/neutron/
@@ -655,6 +655,7 @@ class SecurityGroupDb
def _make_security_
res = {'id': security_
+ 'description': security_
After patch description attribute is present
RESP BODY: {"security_
Thank you for the bug report!
I believe on master this is fixed already:
$ project_id="$( openstack project show "$OS_PROJECT_NAME" | awk '/ id / { print $4 }' )" ------- ------- -----+- ------- ------- ------- ------- ------- --+ ------- ------- -----+- ------- ------- ------- ------- ------- --+ 01T12:44: 31Z | 7e5c-45df- 9570-79c6a975d2 fc | 5b8f02d1d219977 a0 | address_ group_id | None | 9809-411d- 882b-3577f68a52 a1 | 01T12:44: 31Z | ------- ------- -----+- ------- ------- ------- ------- ------- --+ 7e5c-45df- 9570-79c6a975d2 fc ------- ------- -----+- ------- ------- ------- ------- ------- --+ ------- ------- -----+- ------- ------- ------- ------- ------- --+ 01T12:44: 31Z | 7e5c-45df- 9570-79c6a975d2 fc | 5b8f02d1d219977 a0 | address_ group_id | None |
$ default_sg_id="$( neutron security-group-list --tenant-id "$project_id" | awk '/ default / { print $2 }' )"
neutron CLI is deprecated and will be removed in the Z cycle. Use openstack CLI instead.
$ openstack security group rule create --description "test rule" --remote-ip 0.0.0.0/0 --ingress $default_sg_id +------
| Field | Value |
+------
| created_at | 2021-10-
| description | test rule |
| direction | ingress |
| ether_type | IPv4 |
| id | 2025c3ff-
| name | None |
| port_range_max | None |
| port_range_min | None |
| project_id | 60ff14d073834c0
| protocol | None |
| remote_
| remote_group_id | None |
| remote_ip_prefix | 0.0.0.0/0 |
| revision_number | 0 |
| security_group_id | 1dc8dd93-
| tags | [] |
| updated_at | 2021-10-
+------
$ openstack security group rule show 2025c3ff-
+------
| Field | Value |
+------
| created_at | 2021-10-
| description | test rule |
| direction | ingress |
| ether_type | IPv4 |
| id | 2025c3ff-
| name | None |
| port_range_max | None |
| port_range_min | None |
| project_id | 60ff14d073834c0
| protocol | None |
| remote_
| remote_group_id | None ...