New updates available

The following changes were made:

openmediavault 4.1.10

  • Update locales.
  • Do not show details button in error dialog if text is empty.
  • Postfix now listens on localhost instead of loopback-only.
  • Add S.M.A.R.T. support for NVM devices.
  • Issue #161: omv_is_ipv6_enabled function raises error with IPv4 only.

openmediavault-usbbackup 4.0.7

  • Fix various bugs, e.g. in shell scripts when the devicefile looks like
    /dev/disk/by-label/… and contains blanks.

New update available

The following changes were made:

openmediavault 4.1.9

  • Update locales.
  • Issue #128: Fix column widths in S.M.A.R.T. tables.
  • Issue #129: Fix selection bug in icon panel.
  • Issue #139: Remove deprecated smb.conf syslog setting.
  • Update Material Design icons to version 2.4.85.
  • Ensure a mdadm device name is unique when creating a RAID device.

SUSE Hack Week 17

During the SUSE Hack Week 17 i continued the work that i’ve started during the Hack Week 16. In OMV5 the configuration files and services are managed via Salt Stack. This required extensive work in the OMV code base, e.g. all omv-mkconf scripts had to be rewritten using Jinja2.

The previous command omv-mkconf to create the configuration files is now superseded by omv-salt.

# omv-mkconf proftpd
# omv-salt deploy run proftpd

You can easily get a list of states via

# omv-salt deploy list

You can also deploy multiple states at once, e.g.

# omv-salt deploy run nginx interfaces ssh

But the most important and greatest thing is that Salt will take care about that the whole system is in a valid state, this means all configuration files are using the latest data from the database and all services are running or stopped according to the configuration in the database. As a plugin developer it is not necessary anymore to start/stop/restart services on your own in the PHP backend modules, this is done by the Salt states.

The omv-salt command also provides the ability to deploy stages. Currently there are 3 stages available:

  • prepare
  • deploy
  • all

The prepare stage is used to prepare the Salt environment (pillar, modules, states) and the deploy stage is used to deploy all configuration states at once.

# omv-salt stage run all

Currently Salt Stack is using Python2 which requires some workarounds in the OMV module because the OMV API is already using Python3, but as soon as Salt is ready for Python3 we will adapt the code and make it use of the OMV Python3 API instead of calling CLI tools.

Force Salt service.running state to restart the service

If you want to restart a service using salt.states.service.running and you can’t use watch because there is simply nothing to watch for changes, then use the following code:

restart_phpfpm_service:
  # Force service.running to always restart the service.
  test.succeed_with_changes:
    - watch_in:
      - service: restart_phpfpm_service
  service.running:
    - name: php7.0-fpm
    - enable: True

OMV 3.x is EOL now

OMV 3.x is EOL since 30.06.2018. Please upgrade to OMV4 to get the latest feature and security updates.