community.zabbix icon indicating copy to clipboard operation
community.zabbix copied to clipboard

Zabbix Proxy (module) undocumented change to interface

Open D3DeFi opened this issue 3 years ago • 15 comments

SUMMARY

It seems there was an (undocumented?) change in Zabbix itself. Proxy object is now using hostinterface, instead of having its own option interface. Difference is that interface didn't had type and main sub-options, but hostinterface does.

I have been trying to dig deeper into this, but it needs further confirmation. There was no change since June in zabbix_proxy.py or test_zabbix_proxy integration tests.

Further investigation into what happened is needed. I remember adding deprecation to zabbix_proxy for these 2 specific options as they were not used by the time - perhaps this was not intended by Zabbix and got fixed?

Passing None or 1 as hostinterface.type also doesn't seem to work.

If this proves as "new" standard we need to also remove deprecation warnings.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

test_zabbix_proxy

ANSIBLE VERSION

seems it doesn't matter

OS / ENVIRONMENT / Zabbix Version

seen it in 4.0/5.0 and 5.2

STEPS TO REPRODUCE

just run ansible-test integration test_zabbix_proxy

D3DeFi avatar Dec 07 '20 10:12 D3DeFi

Disabling zabbix_proxy tests for now proposed in #280

D3DeFi avatar Dec 07 '20 10:12 D3DeFi

@sky-joker can you please double check if what I am saying is true? If yes can you please review #280 if you don't have an instant idea how cleanly fix this?

D3DeFi avatar Dec 07 '20 10:12 D3DeFi

@D3DeFi

Thank you for reporting this issue.

I confirmed that the zabbix_proxy integration test occurs the error.
But, I could confirm the error at Zabbix 5.0 only.
I tried the tests using Zabbix container latest after removing old container images.

I'm wondering why Zabbix 4.0 and 5.2 occurred the errors in your environment.
The error doesn't occur in my homelab with Zabbix 4.0 and 5.2.

sky-joker avatar Dec 09 '20 15:12 sky-joker

How did you do the test? (used the latest container image?)
Let me know.

sky-joker avatar Dec 09 '20 15:12 sky-joker

Sorry, I was mistaken.
I confirmed that the error occurs with Zabbix 4.0.

sky-joker avatar Dec 09 '20 15:12 sky-joker

I found out the error occurs version.
This issue has since the following Zabbix version.

  • Zabbix v4.0.27
  • Zabbix v5.0.6

sky-joker avatar Dec 10 '20 11:12 sky-joker

I felt the zabbix_proxy integration test failed cause is like a bug, so I created the below ticket to Zabbix Support JIRA. https://support.zabbix.com/browse/ZBX-18758

I'll continue to investigate about hostinterface too.

sky-joker avatar Dec 10 '20 14:12 sky-joker

thank you for looking into this more @sky-joker . Do we proceed with disabling tests in the meantime?

Or I can maybe split this PR so sanity checks are fixes and roles are coming through

D3DeFi avatar Dec 10 '20 14:12 D3DeFi

Let's temporarily disable the zabbix_proxy integration test. I'll merge https://github.com/ansible-collections/community.zabbix/pull/280 because I seem it hasn't a problem.

sky-joker avatar Dec 10 '20 15:12 sky-joker

@sky-joker thanks @dj-wasabi please continue with role PRs, sorry to disturb you with plugins

D3DeFi avatar Dec 10 '20 15:12 D3DeFi

@sky-joker thanks @dj-wasabi please continue with role PRs, sorry to disturb you with plugins

No worries bro! 👍

dj-wasabi avatar Dec 10 '20 15:12 dj-wasabi

Added some more details to in the comment at https://support.zabbix.com/browse/ZBX-18758. Hoping for a reply

D3DeFi avatar Dec 25 '20 09:12 D3DeFi

https://www.zabbix.com/documentation/current/manual/api/changes_5.2_-_5.4 is of interest.

klando avatar Oct 22 '21 13:10 klando

https://www.zabbix.com/documentation/current/manual/api/changes_5.2_-_5.4 is of interest.

@klando not exactly sure what line to look at there. It doesn't seem that any of them confirms that proxy was migrated to using hostinterface, but I think that at this point it is safe to assume so

D3DeFi avatar Oct 31 '21 07:10 D3DeFi

https://www.zabbix.com/documentation/current/manual/api/changes_5.2_-_5.4 is of interest.

@klando not exactly sure what line to look at there. It doesn't seem that any of them confirms that proxy was migrated to using hostinterface, but I think that at this point it is safe to assume so

correct, the changelog is not complete...

klando avatar Nov 01 '21 11:11 klando

@D3DeFi or @klando is this still valid?

pyrodie18 avatar Aug 31 '22 22:08 pyrodie18

Tests seems to be correct for zabbix_proxy module again (They were disabled but @BGmot made some good changes and everything seems to work correctly). Although the upstream bug is still not resolved, we are dropping support for 5.4 eventually and this issue is way way stale, so closing it

D3DeFi avatar Sep 06 '22 08:09 D3DeFi