Openwisp Config Versions Save

OpenWRT configuration agent for OpenWISP Controller

1.0.1

1 year ago
  • Fixed addition of new UCI files which were not previously already present on the file system

1.0.0

2 years ago

Features

  • The SIGUSR1 signal can be now used to interrupt the interval sleep and check for configuration changes again
  • Made the procd respawn parameters configurable
  • The agent now stores the any UCI configuration which is overwritten by OpenWISP with the goal of restoring it if the piece of configuration overwritten by OpenWISP is removed
  • Added management_interval and registration_interval options

Changes

Backward incompatible changes

  • Remove unneeded SSL package implementation definitions

Other changes

  • Made configuration checksum persistent to fix 2 problems:
    1. If the openwisp-config daemon is restarted (e.g. by the openwisp-controller via ssh) after it already downloaded the latest checksum but before it has applied the configuration, all further calls of configuration_changed() (until CONFIGURATION_CHECKSUM is deleted, e.g. by a reboot) will imply that everything is already up-to-date, although the configuration was never applied
    2. prevents the configuration from being downloaded and written again after a reboot
  • Do not wait for management interface during registration: If openwisp-config is not registered yet, do not wait for the management interface to be ready because we can assume the management interface configuration is not present yet
  • Increased report status retries: in some cases the report status operation may fail because the network reload could take a few minutes to complete (eg: in mesh networks scenarios) and therefore the agent must be a bit more patient before giving up
  • Refactored init script to make it more consistent with the best practices used in the OpenWrt community
  • If the agent receives 404 response from the server when downloading the configuration checksum, after the number of attempts specified in checksum_max_retries fail, the agent assumes the device has been deleted from OpenWISP and exits

Bugfixes

  • Use configured curl timeout values in default configuration test; Without this fix, it's possible that the configuration test fails while the regular checksum fetch succeeds
  • Ensured config download error is detected: adding the --fail flag to curl makes it exit with a non zero exit code in case the server respond with an HTTP status code which is not 200 OK, without this fix, a bad response is interpreted as a valid configuration and the agent removes the old configuration, then installs the new configuration, which fails and the router remains with an empty configuration, effectively causing a disruption of service
  • Fixed post-registration-hook logging line which was mistakenly mentioning post-reload-hook instead of post-registration-hook
  • Fixed service reload handling for unnamed uci sections: the openwisp agent modifies the configuration on first contact by rewriting all anonymous UCI sections into na

0.5.0

3 years ago

Features

Changes

  • Backward incompatible change: list options are now overwritten to prevent duplication
  • Improved log message in case of registration failure
  • Allow $MAC_ADDRESS to be bridge
  • Removed polarssl
  • Check sanity of downloaded UCI files before applying them
  • Give up with registration only when 403 is returned by the server
  • Show entire registration error message in logs
  • Updated examples and precompiled packages to use OpenWRT 19.07
  • Made check of OpenWISP Controller header case insensitve

Bugfixes

  • Ensured order of UCI sections is preserved during config write operations, handle special section types
  • Ensure anonymous UCI config sections are handled well
  • Ensure removal of files only includes items which are not in the new downloaded configuration
  • Fixed duplication of list options
  • Fixed a bug that caused /etc/config/openwisp to be overwritten

0.4.5

7 years ago
  • ade89b2: made default hostname check case insensitive
  • #26: added pre-reload-hook

0.4.4

7 years ago
  • 57e431f: [makefile] added PKGARCH:=all in order to compile an architecture indipendent package
  • 35067c8: [docs] default compile instructions to to LEDE 17.01

0.4.3

7 years ago
  • 6bbbc75: adapted openwisp-remove-default-wifi script to work on LEDE 17.01

0.4.2

7 years ago
  • 3e89fd6: [openwisp-reload-config] Removed local declarations
  • 13bc735: [agent] Improved log messages
  • 6955d5b: [reload-config] Reintroduced init.d check
  • 7c4cb8b: [agent] Improved 2 more connection failure messages
  • #25: [Makefile] Added openwisp-config-mbedtls
  • [docs]: several documentation improvements regarding compilation and relation with other openwisp2 modules

0.4.1

7 years ago

0.4.0

7 years ago
  • #16: added "Unmanaged Configurations" feature (replaced merge_default)
  • #19: added smarter configuration merge mechanism
  • #20: improved default test
  • #21: introduced automatic naming of anonymous uci sections
  • daff21f: added "Consistent key generation" feature
  • d6294ce: added capath argument and configuration option
  • 93639af: added connect_timeout and max_time options for curl
  • 9ef6f93: added support for LEDE
  • e122e40: fixed bug in autoregistration when hostname is empty
  • bd8ad3b: improved build options (ssl, category, maintainer)

0.3.1

8 years ago
  • bd64be8: fixed infinite registration bug introduced in #14
  • e8ae900: use current hostname in registration unless hostname is OpenWrt