Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-107121

`failover_aliases` and `failover_virtual_aliases` are being overwritten as empty arrays

    XMLWordPrintable

    Details

      JEditor

        Description

        If a customer is on an HA system and they try to configure an interface with only an `aliases` with no `failover_alias` or `failover_virtual_alias`, middlewared raises a validation error as expected.

        However, if a customer tries to fill in a `failover_aliases` or `failover_virtual_aliases` with no other settings, it will take it no problem.

        Furthermore, middlewared can't do proper validation checks because those keys are being overwritten with empty arrays since they're tied to the `aliases` key.

        Another issue that occurs is that middlewared actually writes an empty entry in the database for said interface. While I've detected no errors for this happening, it gets really strange really fast. Especially if the interface in question is a member of a parent interface.

          Attachments

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  erin Erin Clark
                  Reporter:
                  caleb Caleb St. John
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0 minutes
                      0m
                      Logged:
                      Time Spent - 6 minutes
                      6m