← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1673334] Re: min_ttl variable is not being honoured when adding records

 

I think this must be a horizon bug (ie. not displaying the actual
values).

Creation of the domain + specifying the TTL, then dig @ns.blah.com
<domain here> NS (or SOA) indicates that the correct TTL is being
applied.

** Project changed: designate => horizon

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1673334

Title:
  min_ttl variable is not being honoured when adding records

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Currently using Designate version 2.0.0-1 (el7) with Mitaka.

  Designate is not honouring min_ttl variable when records are created.

  An example from our setup:

  $ grep min_ttl /etc/designate/designate.conf
  min_ttl = 300

  $ designate record-create --name test.matt-ttl-test.com. --ttl 100 --type A --data 101.0.101.10 c1dada84-7500-4a4d-b2ea-f415b75cf61c
  +-------------+--------------------------------------+
  | Field       | Value                                |
  +-------------+--------------------------------------+
  | description | None                                 |
  | type        | A                                    |
  | created_at  | 2017-03-16T05:46:56.000000           |
  | updated_at  | None                                 |
  | domain_id   | c1dada84-7500-4a4d-b2ea-f415b75cf61c |
  | priority    | None                                 |
  | ttl         | 100                                  |
  | data        | 101.0.101.10                         |
  | id          | 2a55e1d6-51b2-402e-b943-917a0ff23a90 |
  | name        | test.matt-ttl-test.com.              |
  +-------------+--------------------------------------+

  Also, specifying a value which is not in range as specified within
  domain.json (ie. 1 to 2147483647) will fail, however if you don't
  specify a '-ttl', it'll add with a null value:

  $ designate record-create --name testa.matt-ttl-test.com. --type A --data 101.0.101.10 c1dada84-
  +-------------+--------------------------------------+
  | Field       | Value                                |
  +-------------+--------------------------------------+
  | description | None                                 |
  | type        | A                                    |
  | created_at  | 2017-03-16T05:49:00.000000           |
  | updated_at  | None                                 |
  | domain_id   | c1dada84-7500-4a4d-b2ea-f415b75cf61c |
  | priority    | None                                 |
  | ttl         | None                                 |
  | data        | 101.0.101.10                         |
  | id          | 71003363-02b4-40b1-87e9-dd88d6326c44 |
  | name        | testa.matt-ttl-test.com.             |
  +-------------+--------------------------------------+

  This is also the same case with adding records via Horizon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1673334/+subscriptions