helm-zabbix icon indicating copy to clipboard operation
helm-zabbix copied to clipboard

Fix upgrade to zabbix7

Open crowleym opened this issue 1 year ago • 2 comments
trafficstars

What this PR does / why we need it:

Zabbix 7 has changed behaviour. DB upgrade can only happen if server node is single and not HA configured. DB upgrade is automatically performed by the server node. See comments in #42

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #42

Special notes for your reviewer:

I have disabled the creation of the job that runs the db-inint-script as I do not believe is necessary anymore with new Zabbix behaviour. This is a fundemental change, so rather than delete the template I have just forced the generation condition to false so it is not executed.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • [x] DCO signed
  • [x] Chart Version bumped

crowleym avatar Jul 03 '24 16:07 crowleym

see my comment in the issue. I don't believe needing to disable HA mode is a good way to achieve major release upgrades. Of course, it kind of solves the problem, but it isn't "nice" though.

fibbs avatar Jul 04 '24 12:07 fibbs

Agree its not nice, but logs from Server when starting up gave me the impression I did not have an alternative.

 1:20240627:120804.783 Starting Zabbix Server. Zabbix 7.0.0 (revision 49955f1).
 1:20240627:120804.783 ****** Enabled features ******
 1:20240627:120804.783 SNMP monitoring:           YES
 1:20240627:120804.783 IPMI monitoring:           YES
 1:20240627:120804.783 Web monitoring:            YES
 1:20240627:120804.783 VMware monitoring:         YES
 1:20240627:120804.783 SMTP authentication:       YES
 1:20240627:120804.783 ODBC:                      YES
 1:20240627:120804.783 SSH support:               YES
 1:20240627:120804.783 IPv6 support:              YES
 1:20240627:120804.783 TLS support:               YES
 1:20240627:120804.783 ******************************
 1:20240627:120804.783 using configuration file: /etc/zabbix/zabbix_server.conf
 1:20240627:120804.927 current database version (mandatory/optional): 06020000/06020013
 1:20240627:120804.927 required mandatory version: 07000000
 1:20240627:120804.927 mandatory patches were found
 1:20240627:120804.935 cannot perform database upgrade in HA mode: all nodes need to be stopped and Zabbix server started in standalone mode for the time of upgrade.
 1:20240627:120804.936 Zabbix Server stopped. Zabbix 7.0.0 (revision 49955f1).

I have proceeded with my upgrade, but look forward to understanding final solution.

crowleym avatar Jul 04 '24 13:07 crowleym

Hi @sa-ChristianAnton! How is your opinion about the solution proposed here?

aeciopires avatar Nov 18 '24 12:11 aeciopires

Hi @sa-ChristianAnton! How is your opinion about the solution proposed here?

It is kind of obsolete by #115, sorry for "taking over":

  • HA mode will be switchable on and off
  • even with HA mode switched on, there will be seemless major release upgrades, by using a job taking care of these actions

fibbs avatar Nov 18 '24 13:11 fibbs