openstack recordset create does not throw any error when Zero TTL Values are specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-designateclient |
Confirmed
|
Medium
|
Unassigned |
Bug Description
1.Setup Designate Client git clone https:/
2. Setup the credentials.
Issue:
Creating domains with TTL values set to "Zero" does not throw any error and the domain gets created.(status also change first pending than active)
Note: When "0" ttl value is mentioned, no error is thrown and the domain gets created with default value as below.
STEP:1
rahul-vm1@
+------
| Field | Value |
+------
| action | UPDATE |
| created_at | 2017-03-
| description | None |
| id | f5814a0e-
| name | www.example.com. |
| project_id | b8b30cfdc3a0425
| records | 192.0.2.20 |
| status | PENDING |
| ttl | 10000 |
| type | A |
| updated_at | 2017-03-
| version | 11 |
| zone_id | 64ecf64e-
| zone_name | example.com. |
+------
rahul-vm1@
+------
| Field | Value |
+------
| action | UPDATE |
| created_at | 2017-03-
| description | None |
| id | f5814a0e-
| name | www.example.com. |
| project_id | b8b30cfdc3a0425
| records | 192.0.2.20 |
| status | PENDING |
| ttl | 10000 |
| type | A |
| updated_at | 2017-03-
| version | 11 |
| zone_id | 64ecf64e-
| zone_name | example.com. |
+------
rahul-vm1@
+------
| Field | Value |
+------
| action | NONE |
| created_at | 2017-03-
| description | None |
| id | f5814a0e-
| name | www.example.com. |
| project_id | b8b30cfdc3a0425
| records | 192.0.2.20 |
| status | ACTIVE |
| ttl | 10000 |
| type | A |
| updated_at | 2017-03-
| version | 11 |
| zone_id | 64ecf64e-
| zone_name | example.com. |
+------
STEP 2
Now set ttl as -1
rahul-vm1@
-1 is less than the minimum of 1
STEP 3
Now set ttl as 0,CLI is executed with status PENDING
rahul-vm1@
+------
| Field | Value |
+------
| action | UPDATE |
| created_at | 2017-03-
| description | None |
| id | f5814a0e-
| name | www.example.com. |
| project_id | b8b30cfdc3a0425
| records | 192.0.2.20 |
| status | PENDING |
| ttl | 10000 |
| type | A |
| updated_at | 2017-03-
| version | 12 |
| zone_id | 64ecf64e-
| zone_name | example.com. |
+------
STEP 4
CLI is executed with status ACTIVE
rahul-vm1@
+------
| Field | Value |
+------
| action | NONE |
| created_at | 2017-03-
| description | None |
| id | f5814a0e-
| name | www.example.com. |
| project_id | b8b30cfdc3a0425
| records | 192.0.2.20 |
| status | ACTIVE |
| ttl | 10000 |
| type | A |
| updated_at | 2017-03-
| version | 12 |
| zone_id | 64ecf64e-
| zone_name | example.com. |
+------
rahul-vm1@
PLEASE PROVIDE CLARIFICATION ON BELOW ALSO
As per my understanding, the max ttl should be 256 (max hop count) but our system shows max ttl value is 2147483647 . if anyone has any clarification of this plz let me know
affects: | designate → python-designateclient |
Changed in python-designateclient: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: low-hanging-fruit |
Could you re-run that command with verbose logging on the openstackclient and post those logs? -vvv should do it. Thanks!