summaryrefslogtreecommitdiffstats
path: root/src/python-common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mgr/cephadm/nvmeof: Add SPDK iobuf options field to NVMeOF configurationGil Bregman3 days1-0/+3
| | | | | | Fixes https://tracker.ceph.com/issues/69554 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* Merge pull request #60888 from ↵Adam King6 days1-1/+3
|\ | | | | | | | | | | | | ShwetaBhosale1/fix_issue_69070_only_bind_ports_on_network_parameter_spec_for_alertmanager mgr/cephadm: Add only_bind_ports_on_network spec parameter for Alertmanager Reviewed-by: Adam King <adking@redhat.com>
| * mgr/cephadm: Add only_bind_ports_on_network spec parameter for AlertmanagerShweta Bhosale2024-12-031-1/+3
| | | | | | | | | | Fixes: https://tracker.ceph.com/issues/69070 Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
* | Merge pull request #58604 from adk3798/cephadm-rgw-no-multisite-trafficAdam King6 days1-0/+3
|\ \ | | | | | | | | | | | | mgr/cephadm: allow disabling rgw_run_sync_thread through spec Reviewed-by: Redouane Kachach <rkachach@ibm.com>
| * | mgr/cephadm: allow disabling rgw_run_sync_thread through specAdam King2024-10-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is desirable for an RGW service that you don't want to send multisite sync data so the RGW daemons can focus more on handling IO. Note they may still receive mulsitie sync data unless they are removed from the zone and zonegroup replication endpoints Signed-off-by: Adam King <adking@redhat.com>
* | | mgr/cephadm/nvmeof: Add key verification field to NVMeOF configurationGil Bregman2025-01-021-0/+4
| | | | | | | | | | | | | | | | | | Fixes https://tracker.ceph.com/issues/69413 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* | | cephadm/nvmeof: fix ports when default values are overriddenAlexander Indenbaum2024-12-171-1/+1
| | | | | | | | | | | | Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
* | | cephadm/nvmeof: support per-node gateway addressesAlexander Indenbaum2024-12-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added gateway and discovery address maps to the service specification. These maps store per-node service addresses. The address is first searched in the map, then in the spec address configuration. If neither is defined, the host IP is used as a fallback. Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
* | | mgr/cephadm/nvmeof: Rewrite NVMEoF fields validation.Gil Bregman2024-12-122-127/+101
| | | | | | | | | | | | | | | | | | Fixes https://tracker.ceph.com/issues/69176 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* | | mgr/cephadm/nvmeof: Add auto rebalance fields to NVMeOF configurationGil Bregman2024-12-111-0/+15
| | | | | | | | | | | | | | | | | | Fixes https://tracker.ceph.com/issues/69176 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* | | mgr/cephadm/nvmeof: Add key encryption support to nvmeof configurationGil Bregman2024-12-051-0/+3
| | | | | | | | | | | | Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* | | python-common/ceph/cephadm: Change NVME image version to 1.4.Gil Bregman2024-12-031-1/+1
| | | | | | | | | | | | | | | | | | Fixes https://tracker.ceph.com/issues/69099 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* | | Merge pull request #60412 from ↵Adam King2024-12-021-18/+56
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | ShwetaBhosale1/fix_issue_68605_modify_structure_of_default_images cephadm: Modify the structure of the default container images Reviewed-by: Adam King <adking@redhat.com> Reviewed-by: John Mulligan <jmulligan@redhat.com> Reviewed-by: Redouane Kachach <rkachach@ibm.com>
| * | cephadm: Modify the structure of the default container imagesShweta Bhosale2024-11-221-18/+56
| | | | | | | | | | | | | | | | | | Fixes: https://tracker.ceph.com/issues/68605?next_issue_id=68599 Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
* | | python-common/ceph/deployment: Add key encryption support to nvmeof ↵Gil Bregman2024-11-251-5/+8
|/ / | | | | | | | | | | | | | | configuration Fixes https://tracker.ceph.com/issues/69036 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* | Merge pull request #60542 from adk3798/sign-generated-rgw-certsAdam King2024-11-211-0/+4
|\ \ | | | | | | | | | | | | mgr/cephadm: sign generated RGW certs Reviewed-by: Redouane Kachach <rkachach@ibm.com>
| * | mgr/cephadm: sign generated RGW certsAdam King2024-10-291-0/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the "generate_cert" field would just cause cephadm to generate self-signed certificates. This was an issue when trying to sync the secondary site in a multisite situation, resulting in ``` SL peer certificate or SSH remote key was not OK req_data->error_buf=SSL certificate problem: self-signed certificate request failed: (2200) Unknown error 2200 ``` This change makes it so the certificate are signed by cephadm's root CA cert so that users may grab that cert via "ceph orch cert-store get cert cephadm_root_ca_cert" and set that as a trusted CA cert on their secondary cluster. Additionally, we now generate a cert per RGW daemon so that we can include the hostname/addr of the node we are deploying the RGW daemon on in the cert. Signed-off-by: Adam King <adking@redhat.com>
* | Merge pull request #60587 from phlogistonjohn/jjm-more-py312-fixesAdam King2024-11-2112-27/+39
|\ \ | | | | | | | | | | | | various python 3.12 fixes Reviewed-by: Adam King <adking@redhat.com>
| * | python-common: use tox.ini envlist defaults when run via cmakeJohn Mulligan2024-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Match recent(ish) changes to CMakeLists.txt for src/pybind/mgr and stop hard-coding a list of tox envs to run when testing is triggered via cmake. Instead, automatically reuse the defaults in tox.ini. This is good because we recently changed those defaults and this change makes 'make check' run the same set of tests and checks again. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common: remove unused requirements-lint.txtJohn Mulligan2024-11-041-2/+0
| | | | | | | | | | | | | | | | | | The file is no longer used for anything. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common: update tox.ini linting environmentsJohn Mulligan2024-11-041-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the tox.ini environments that lint the sources by splitting the old lint env into one that just runs flake8 and another that runs the rstcheck tool. I strongly dislike envs that do more than one thing and make it hard to check specific files. Additionally, the main point of this change was to drop the old `requirements-lint.txt` requirements file that specified an extremely old version of flake8 that did not work correctly with python 3.12. The flake8 of src/pybind/mgr was not pinned so we now match that behavior in src/python-common, which is heavily used by the mgr modules. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/tests: update some type annotationsJohn Mulligan2024-11-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update some function typing from the old comment based style to the current type annotations style. Not only does this modernize the code but it fixes issues found by newer versions of flake8 that were flagging types only referenced in type comments as unused imports. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: disable some unused import flake8 errorsJohn Mulligan2024-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tell flake8 not to flag unused imports when those imports are part of an old-style type comment. This was done rather than updating the type annotations to the latest style because I am less familiar with this file and there are many type comments. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: fix string that should not be an f-stringJohn Mulligan2024-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a string that should not be an f-string by removing the f-string (f) prefix. Error found by newer python/flake8 version. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: rename a single letter variableJohn Mulligan2024-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename a single letter variable name that was flagged by flake8. The unique name `lbl` was chosen as it was short and didn't conflict with any existing uses of the variable `label` in this file. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: disable some unused import flake8 errorsJohn Mulligan2024-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tell flake8 not to flag unused imports when those imports are part of an old-style type comment. This was done rather than updating the type annotations to the latest style because I am less familiar with this file and there are many type comments. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: disable some unused import flake8 errorsJohn Mulligan2024-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tell flake8 not to flag unused imports when those imports are part of an old-style type comment. This was done rather than updating the type annotations to the latest style because I am less familiar with this file and there are many type comments. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: disable some unused import flake8 errorsJohn Mulligan2024-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tell flake8 not to flag unused imports when those imports are part of an old-style type comment. This was done rather than updating the type annotations to the latest style because I am less familiar with this file and there are many type comments. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: disable some unused import flake8 errorsJohn Mulligan2024-11-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tell flake8 not to flag unused imports when those imports are part of an old-style type comment. This was done rather than updating the type annotations to the latest style because I am less familiar with this file and there are many type comments. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common/deployment: update some type annotationsJohn Mulligan2024-11-041-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flake8 flagged unused imports in this file due to the use of old style type comments. This file was easy to convert to new style annotations so that was done. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
| * | python-common: fix mypy errors in earmarking.pyJohn Mulligan2024-11-041-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix various errors found by running mypy with python 3.12 on the python-common subtree. Uses a Protocol as a stand-in for actual file system integration objects. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan <jmulligan@redhat.com>
* | | cephadm/nvmeof: support no huge pages for nvmeof spdkAlexander Indenbaum2024-11-201-1/+5
| | | | | | | | | | | | | | | | | | depends on: https://github.com/ceph/ceph-nvmeof/pull/898 Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
* | | python-common/ceph/deployment: Add resource limits to nvmeof configurationGil Bregman2024-11-191-0/+42
|/ / | | | | | | | | | | Fixes https://tracker.ceph.com/issues/68967 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* / python-common: add spot in python-common for cephadm default imagesAdam King2024-10-302-0/+21
|/ | | | | | To be shared between the binary and mgr module. Signed-off-by: Adam King <adking@redhat.com>
* Merge pull request #59982 from rkachach/fix_issue_mgmt_gw_high_availabilityAdam King2024-10-241-1/+3
|\ | | | | | | | | | | | | Adding HA support for mgmt-gateway and oauth2-proxy services Reviewed-by: Adam king <adking@redhat.com> Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com> Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
| * mgr/cephadm: adding HA support for mgmt-gateway and ouath2-proxyRedouane Kachach2024-10-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | adding HA support for mgmt-gateway and ouath2-proxy. In addition, logic is add to prevent unnecessary daemons restart during mgr failover. Previously, without the management gateway, some daemons, such as Prometheus, had an explicit dependency on the manager because we needed to point to the active manager. With the management gateway, this explicit dependency is no longer necessary, as it automatically handles routing requests to the active manager. Signed-off-by: Redouane Kachach <rkachach@ibm.com>
* | python-common/ceph/deployment: Add namespace netmask parameters to nvmeof ↵Gil Bregman2024-10-221-2/+27
| | | | | | | | | | | | | | | | configuration Fixes https://tracker.ceph.com/issues/68542 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
* | orch: disk replacement enhancementGuillaume Abrioux2024-10-162-3/+11
|/ | | | | | | | | | This introduces a new `ceph orch device replace` command in order to improve the user experience when it comes to replacing the underlying device of an OSD. Fixes: https://tracker.ceph.com/issues/68456 Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
* Merge pull request #59888 from phlogistonjohn/jjm-mypy-moreAdam King2024-10-141-0/+15
|\ | | | | | | | | prepare mypy checking for newer python (3.12) Reviewed-by: Adam King <adking@redhat.com>
| * python-common: add a utils function to replace distutils.util.strtoboolJohn Mulligan2024-09-241-0/+15
| | | | | | | | | | | | | | | | As distutils is removed from python 3.12 ceph can no longer use the simple conversion function once located in that module. Add our own trivial replacement function. Signed-off-by: John Mulligan <jmulligan@redhat.com>
* | Merge pull request #59927 from rkachach/fix_issue_mgmt_gw_health_endpointAdam King2024-10-041-0/+2
|\ \ | | | | | | | | | | | | mgr/cephadm: adding health check endpoint for mgmt-gateway Reviewed-by: Adam King <adking@redhat.com>
| * | mgr/cephadm: adding health check endpoint for mgmt-gatewayRedouane Kachach2024-09-231-0/+2
| | | | | | | | | | | | Signed-off-by: Redouane Kachach <rkachach@ibm.com>
* | | earmarking: improve error handling when getxattr failsAvan Thakkar2024-09-251-5/+9
| | | | | | | | | | | | Signed-off-by: Avan Thakkar <athakkar@redhat.com>
* | | mgr/smb: earmark resolver for subvolumeAvan Thakkar2024-09-242-63/+105
| |/ |/| | | | | Signed-off-by: Avan Thakkar <athakkar@redhat.com>
* | Merge pull request #59716 from rhcs-dashboard/fix-67897-mainAashish Sharma2024-09-241-38/+71
|\ \ | |/ |/| | | | | mgr/rgwam: use realm/zonegroup/zone method arguments for period update Reviewed-by: Adam King <adking@redhat.com>
| * mgr/rgwam: use realm/zonegroup/zone method arguments for period updateAashish Sharma2024-09-231-38/+71
| | | | | | | | | | | | | | | | | | | | | | period update method currently uses default zonegroup/zone for period update commit. This PR is to use realm/zg/zone provided in the arguments for period update. Also make the realm default that is created using realm pull if it is the only realm present Fixes: https://tracker.ceph.com/issues/67897 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
* | Merge pull request #59488 from adk3798/revert-cephadm-require-nvmeof-groupAdam King2024-09-191-4/+1
|\ \ | | | | | | | | | | | | mgr/cephadm: default to empty string nvmeof group name rather than requiring it Reviewed-by: John Mulligan <jmulligan@redhat.com>
| * | Revert "mgr/orchestrator: require "group" field for nvmeof specs"Adam King2024-08-281-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f6d552d7c777f1160545188dcffa6b685b05ca8a. It was decided by the nvmeof team to stick with defaulting to an empty string rather than forcing the users onto other non-empty names when they upgrade Signed-off-by: Adam King <adking@redhat.com>
* | | Merge pull request #59694 from rkachach/fix_issue_67975Adam King2024-09-181-0/+3
|\ \ \ | | | | | | | | | | | | | | | | mgr/cephadm: open ceph-exporter when firewalld is enabled Reviewed-by: Adam King <adking@redhat.com>
| * | | mgr/cephadm: open ceph-exporter when firewalld is enabledRedouane Kachach2024-09-101-0/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | ceph-exporter port was not opened properly during daemon deployment forcing the user to open it manually. This change fixes the logic to open the port automatically. Fixes: https://tracker.ceph.com/issues/67975 Signed-off-by: Redouane Kachach <rkachach@ibm.com>