OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« previous next »
  • Print
Pages: [1]

Author Topic: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added  (Read 1718 times)

Remington

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« on: April 09, 2022, 03:41:31 pm »
Hi,

updated from 22.1.4 to  22.2.5 with the Unbound MVC rework.

First the existing overwrites got lost and the new overwrites dialogue was completely empty.

Recreating the overwrites manually I found the I can't add aliases.
See attached screenshot.
The list of hosts is not filled correctly, instead of the hostname or FQDN only the domain is show, which doesn't help a lot to pick the right one.

But even if I fill the dialogue and click save, no alias is show sown in the overview. Unfortunately there is also no error message or such.

Not sure how to troubleshoot further, which logs I should look at.

Bye
  Thomas
Logged

Remington

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #1 on: April 09, 2022, 04:17:28 pm »
Diged a little bit deeper and compared the config backups before the update and after.

Seems that the config for the overwrites has been moved from <opnsense><unbound> to <opnsense><OPNsense><unboundplus>

My tries to create an alias did made it into the config backup:
Code: [Select]
      <aliases>
        <alias uuid="be93fc19-0ae6-43ae-b43c-2e8bb2627f68">
          <enabled>1</enabled>
          <host>73272ebc-54a3-47cf-8ce0-a7a81c8a2a1c</host>
          <hostname>signalcli-api</hostname>
          <domain>wupp</domain>
        </alias>
        <alias uuid="19a41d16-d2a5-4b8f-814b-f39a995fe6c1">
          <enabled>1</enabled>
          <host>9f748e34-fd1a-44a0-a0f7-4357d31c6b1e</host>
          <hostname>signalcli-api</hostname>
          <domain>wupp</domain>
        </alias>
        [...]

But the don't show up in the UI. The uuids for the host exist as host entries.
Logged

Remington

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #2 on: April 09, 2022, 05:11:29 pm »
Just found that a restore from backup limited to "Unbound DNS" is not writing the <unboundplus> part.
The docs already telling that partial restor is something that may get dropped.
May be this need to be removed from the list then to avoid confusion.
Logged

Remington

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #3 on: April 09, 2022, 05:30:33 pm »
A `configctl unbound restart` or a restart of unbound from the WebUI seems to trigger some old code an generate the config from the old entries.

While `opnsene-shell reload` and "Apply" from the UI creates it in the right manner
« Last Edit: April 09, 2022, 05:46:53 pm by Remington »
Logged

Remington

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #4 on: April 09, 2022, 05:57:28 pm »
I found the logic behind

The alias are only displayed for the host selected above.
I the same manner you can create an alias, be selecting the host and clicking the + button down in Aliases the right entry gets preselected and the alias is created as expected.

I am unsure if this works as designed, because is it very hard to keep an overview which aliases are configured at all.
Logged

rosu

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #5 on: April 27, 2022, 05:51:10 pm »
Just wanted to add what I have observed which seems to be the same/similar issue:
  • My original alias configuration (prior to update) persists in the config.xml file under the unboundplus node (as described by op)
  • The alias configuration in config.xml is reflected in the unbound configuration file /var/unbound/host_entries.conf so everything is working normally
  • I can add new alias entries via the web UI and these appear in the unbound config and resolve fine
  • No alias entries (either the pre-existing ones or newly created entries) appear in the table in the web UI
The problem appears to only be cosmetic, the functionality of existing/new alias configuration still seems to work fine in unbound. Hopefully this helps clarify.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13699
  • Karma: 1178
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #6 on: April 27, 2022, 10:20:36 pm »
We haven't been able to reproduce but are aware of the problem due to multiple reports of this exact behaviour. Could be a client-side hiccup? Specific browser? Specific data? Specific language setting?


Cheers,
Franco
Logged

katamadone [CH]

  • Jr. Member
  • **
  • Posts: 91
  • Karma: 11
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #7 on: April 27, 2022, 11:21:51 pm »
I can reproduce the not-working-add-an-alias in 22.1.6 (tried with firefox). Tried to add an entry, and because the list was empty afterwards in the "view" I added it a second time.
Downloaded the backup xml and found the entry twice.
Logged

katamadone [CH]

  • Jr. Member
  • **
  • Posts: 91
  • Karma: 11
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #8 on: April 27, 2022, 11:22:36 pm »
along with the "old" entries..
Logged

katamadone [CH]

  • Jr. Member
  • **
  • Posts: 91
  • Karma: 11
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #9 on: April 28, 2022, 08:38:48 pm »
if I restart unbound:
Code: [Select]
2022-04-28T20:30:22 Notice unbound dhcpd entry changed checkmk.suter.team @ x.x.x.x.
2022-04-28T20:30:22 Notice unbound dhcpd entry changed checkmk.ccintra.domain @ x.x.x.x.
2022-04-28T20:30:22 Notice unbound dhcpd entry changed bookmark.suter.team @ x.x.x.x.
Logged

katamadone [CH]

  • Jr. Member
  • **
  • Posts: 91
  • Karma: 11
    • View Profile
Re: 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
« Reply #10 on: April 29, 2022, 10:20:13 pm »
https://forum.opnsense.org/index.php?topic=28161.0 - Duplicate
belongs to https://forum.opnsense.org/index.php?topic=27846.15 I think
« Last Edit: April 29, 2022, 10:31:10 pm by katamadone [CH] »
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • 22.1.5 Unbound MVC rework - loss of existing config - aliases can't be added
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2