New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pacific: mgr/cephadm: Add snmp-gateway service support #44529
pacific: mgr/cephadm: Add snmp-gateway service support #44529
Conversation
|
The original PR provided this with a -h; The parameters accepted are shown in the help. And now you see this snmp_version, auth_protocol and privacy_protocol are missing! This makes the CLI harder to use, since you no longer see the parameter names that can be used. Also, if you set them positionally I see this; ...but adding in --privacy_protocol AES still works What's the cause of this 'regression'? |
Maybe this is due how the help is generated by pacific instead of master???? |
|
@sebastian-philipp Hmmm - so it's a 'feature' of Pacific :) I don't have an approve 'button', but if this is the case it lgtm! |
|
jenkins test make check |
|
|
build failed with |
|
jenkins test make check |
|
jenkins test make check |
d1876d5
to
b4cea91
Compare
|
This patch enables the cephadm binary to deploy an SNMP gateway based on - https://hub.docker.com/r/maxwo/snmp-notifier Fixes: https://tracker.ceph.com/issues/52920 Signed-off-by: Paul Cuzner <pcuzner@redhat.com> (cherry picked from commit 5c997ad) Conflicts: src/cephadm/cephadm
Updated docs to show snmp-gateway usage. docs provide guidance on SNMP versions supported and show CLI and yaml deployment examples. Signed-off-by: Paul Cuzner <pcuzner@redhat.com> (cherry picked from commit 91f35e1)
Adds tests to validate the deployed configuration given a known input context, and check the parameters created based on input various input scenarios Signed-off-by: Paul Cuzner <pcuzner@redhat.com> (cherry picked from commit 2ffa81b) Conflicts: src/pybind/mgr/cephadm/tests/test_services.py
Add a new snmp-gateway service to provide a bridge between Prometheus and an SNMP management platform. The gateway service uses https://github.com/maxwo/snmp_notifier to provide an SNMP v2c and SNMP V3 support. The SNMP V3 support mandates at least authentication, and also offers authentication and privacy (encryption). Fixes: https://tracker.ceph.com/issues/52920 Signed-off-by: Paul Cuzner <pcuzner@redhat.com> (cherry picked from commit c2f5e10) Conflicts: src/pybind/mgr/cephadm/module.py src/pybind/mgr/orchestrator/_interface.py src/pybind/mgr/orchestrator/module.py src/python-common/ceph/deployment/service_spec.py
Little reason to duplicate things ourselves Signed-off-by: Sebastian Wagner <sewagner@redhat.com> (cherry picked from commit 0039acc) Conflicts: src/pybind/mgr/orchestrator/module.py src/python-common/ceph/deployment/service_spec.py src/python-common/ceph/tests/test_service_spec.py
Enable us to chage defaults in the future Signed-off-by: Sebastian Wagner <sewagner@redhat.com> (cherry picked from commit 5e3cc4d)
this just broken for non-trivial urls. Don't be a bad example Signed-off-by: Sebastian Wagner <sewagner@redhat.com> (cherry picked from commit 3f47c22)
Let's keep the tests in the same package where the class is defined. Signed-off-by: Sebastian Wagner <sewagner@redhat.com> (cherry picked from commit c652ae7)
We have to validate to_json() now as well, as we have spcial enums. Otherwiese we might end up with !!python... representations. Signed-off-by: Sebastian Wagner <sewagner@redhat.com> (cherry picked from commit 303843b)
b4cea91
to
7e389ea
Compare
|
changelog:
|
Backport of #43901, #44341