Commit Graph
11109 Commits
Author SHA1 Message Date
Travis Nielsen 5723faf382 Merge pull request #14224 from rook/mergify/bp/release-1.14/pr-14214
ci: push image ci failing in ubuntu 22.04 (backport #14214)
2024-05-16 08:32:31 -06:00
subhamkrai 8339c58dd2 ci: push image ci failing in ubuntu 22.04
since we moved to ubuntu 22.04, ci push image build is failing
due wrong parameter `--platforms linux/amd64 linux/arm64,` it should
be instead `--platforms linux/amd64, linux/arm64`.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit f89540c4ef)
2024-05-16 14:30:47 +00:00
mergify[bot] 632dbefcfb Merge pull request #14218 from rook/mergify/bp/release-1.14/pr-14210
core: remove pacific specific code (backport #14210)
2024-05-16 00:37:29 +00:00
Satoru Takeuchi d50517a316 core: remove pacific specific code
Since pacific is no longer supported, we can remove pacific specific
code.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit f776c0b35e)
2024-05-15 23:45:02 +00:00
Travis Nielsen bc1d7f4520 Merge pull request #14207 from rook/mergify/bp/release-1.14/pr-14204
ci: fix pylint errors (backport #14204)
2024-05-14 14:27:30 -06:00
NymanRobin e7e3a9cc5c ci: fix pylint errors
Afte pylint was updated to version 3.2.0
a set of new errors appeared. This makes
ci passing by either fixing the problem
or ignoring it in the check

Signed-off-by: NymanRobin <robin.nyman@est.tech>
(cherry picked from commit dcec080468)
2024-05-14 20:24:30 +00:00
mergify[bot] 4d075a6cad Merge pull request #14195 from rook/mergify/bp/release-1.14/pr-14187
osd: Add cephcluster status for deprecated osds to replace (backport #14187)
2024-05-13 14:59:19 +00:00
Travis Nielsen 5a34cd9f9e osd: add cephcluster status for legacy osds to replace
LVM-based OSDs on PVCs are legacy and are not well tested.
Therefore, we add status to the cephcluster CR that at least
gives a clue that the OSDs should be replaced.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 3628e83892)
2024-05-13 14:31:14 +00:00
Travis Nielsen 8a826c95e1 Merge pull request #14179 from rook/mergify/bp/release-1.14/pr-14178
ci: add missing markdownlint CI step (backport #14178)
2024-05-09 07:12:15 -06:00
Blaine Gardner d18dcc5528 ci: add missing markdownlint CI step
The CI step that runs markdown lint accidentally got removed as part of
PR updates. Add the CI step back in.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 115e0aa430)
2024-05-08 17:20:25 +00:00
Blaine Gardner 782a93d44b Merge pull request #14176 from rook/mergify/bp/release-1.14/pr-14175
ci: update go version for govulncheck (backport #14175)
2024-05-08 10:52:19 -06:00
Blaine Gardner e6c4b7e6c3 ci: update go version for govulncheck
Update the version of Go used for govulncheck to get the latest CVE fix
present in Go v1.22.3.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit f21f3f549c)
2024-05-08 16:25:21 +00:00
Travis Nielsen 90a1dee611 Merge pull request #14170 from rook/mergify/bp/release-1.14/pr-14166
ci: update ubuntu image to 22.04 (backport #14166)
2024-05-08 08:43:44 -06:00
subhamkrai ea553c45dd ci: update ubuntu image to 22.04
updating ubuntu image to 22.04 from 20.04 which is used in ci test

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 11ce20feaf)
Signed-off-by: subhamkrai <srai@redhat.com>
2024-05-08 11:23:19 +05:30
Blaine Gardner f181a95412 Merge pull request #14172 from rook/mergify/bp/release-1.14/pr-14038
ci: add misspell linter (backport #14038)
2024-05-07 09:56:48 -06:00
Liang Zheng e617463811 ci: add misspell linter
add misspell linter to check all source codes

Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
(cherry picked from commit e76dd03f54)
2024-05-07 15:42:59 +00:00
Travis Nielsen d70e7386ba Merge pull request #14168 from rook/mergify/bp/release-1.14/pr-14167
docs: improve wording in BlockPoolRados Namespace CRD doc. (backport #14167)
2024-05-07 07:27:27 -06:00
Michael Adam d6855803a8 docs: improve wording in BlockPoolRados Namespace CRD doc
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 10df932d62)
2024-05-07 13:22:50 +00:00
Travis Nielsen 233d101c1e Merge pull request #14164 from rook/mergify/bp/release-1.14/pr-14160
mgr: fix UpdateActiveMgrLabel to retry label update on failure (backport #14160)
2024-05-06 13:44:36 -06:00
Redouane Kachach da909b6da7 mgr: fix UpdateActiveMgrLabel to retry label update on failure
fix UpdateActiveMgrLabel to retry label update on failure. Previously,
the function always returned the current manager, even if update
failed, leading to inconsistent labels. This fix ensures retries on
failures.

Fixes: https://github.com/rook/rook/issues/13601

Signed-off-by: Redouane Kachach <rkachach@ibm.com>
(cherry picked from commit ee7c71c89e)
2024-05-06 19:00:43 +00:00
Travis Nielsen 549825dc6e Merge pull request #14153 from travisn/release-1.14.3
build: update release version to v1.14.3
v1.14.3
2024-05-03 13:28:32 -06:00
Travis Nielsen e25de22c77 build: update release version to v1.14.3
For the patch release update the docs and examples
to v1.14.3

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2024-05-03 12:50:05 -06:00
mergify[bot] b681296ac5 Merge pull request #14157 from rook/mergify/bp/release-1.14/pr-14154
csi: fix missing namespace bug in csi cluster config map (backport #14154)
2024-05-03 18:40:10 +00:00
Blaine Gardner 9a58da323d csi: fix missing namespace bug in csi cluster config map
Someone testing the Multus holder pod removal feature encountered an
issue where the migration process failed to lead to a system state where
PVCs could be created successfully.

The root cause was found to be a ceph csi config map wherein the primary
CephCluster entry was lacking a value for the "namespace" field.

I observed this once in my development on the holder pod removal
feature, but I was unable to reproduce and assumed it was my own error.
Since this has been seen in a user environment, it must be that the
error is a race condition, and I am unable to determine the exact source
of the bug.

I do not believe this bug would be present if the code that updates the
CSI configmap were properly idempotent, but it has many conditions based
on prior states, and I was unable to determine how to resolve this
underlying impelementation pattern issue.

Instead, I opted to separate the `clusterKey` parameter into two clear
parts:
1. `clusterID` for when `clusterKey` is used as an analogue for
   `clusterID`
2. `clusterNamespace` for when `clusterKey` is used as an analogue for
   `clusterNamespace`

I added unit tests to ensure that SaveClusterConfig() will be able to
detect when the namespace is currently missing, and using the new
`clusterNamespace` field, it should always know what value to use as
input when correcting the bug in already-installed systems.

I also verified that this update works when the function simultaneously
removes netNamespaceFilePath entries, and that those entries are removed
properly.

Finally, manual testing also verifies the change.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 4ff881240f)
2024-05-03 18:10:30 +00:00
Travis Nielsen 7e7da0b3b6 Merge pull request #14156 from rook/mergify/bp/release-1.14/pr-14134
osd: limit storageClassDeviceSets to 63 chars (backport #14134)
2024-05-03 08:04:00 -06:00
subhamkrai 578f582c34 osd: limit storageClassDeviceSets to 63 chars
there are some cases where storageClassDeviceSets length
are more 63 chars and osd provisioned failed due to this.
with error
```
 failed to run osd provisioning job for PVC "ocs-deviceset-*-local-volume-storageclass-0-data-*": Job.batch "rook-ceph-osd-prepare-*" is invalid: [spec.template.spec.volumes[10].name: Invalid value: "ocs-deviceset-*-local-volume-storageclass-0-data-*": must be no more than 63 characters, spec.template.spec.containers[0].volumeMounts[9].name: Not found: "ocs-deviceset-*-local-volume-storageclass-0-data-*",
```

Using x-validator to limit the maxLength to the deviceClassSet.Name to
40 chars and adding code check that overall pvc name should be less than
63 chars.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 6f5cc9b01d)
2024-05-03 13:30:13 +00:00
Blaine Gardner 15ce957c4e Merge pull request #14146 from rook/mergify/bp/release-1.14/pr-14114
ci: use markdownlint to enforce mkdocs compatibility (backport #14114)
2024-05-01 17:19:27 -06:00
Travis Nielsen a1dd672e8b Merge pull request #14150 from rook/mergify/bp/release-1.14/pr-14147
mon: Disable the msgr v1 port if msgr2 is required (backport #14147)
2024-05-01 16:04:59 -06:00
Travis Nielsen 2fda1a74b6 mon: disable v1 port if msgr2 is required
The mon was listening on both v1 and v2 ports inside the daemon
even though the service endpoint would not redirect any traffic
to the v1 port. When msgr2 is required, disable the mon from
listening on the v1 port for reduced security footprint.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 954b000ba6)
2024-05-01 21:39:12 +00:00
Travis Nielsen fff583b4b3 mon: remove quincy check since quincy is min version
With the removal of Ceph Pacific support, no need to check if Quincy
is avaiable to support encryption on the wire.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 25d36c4c75)
2024-05-01 21:39:11 +00:00
Blaine Gardner 1391228b1d ci: use markdownlint to enforce mkdocs compatibility
mkdocs uses a markdown renderer that is hardcoded to 4 spaces per tab
for detecting indentation levels, including ordered- and
unordered-lists. Since we cannot easily change the renderer, begin using
a markdown linter in CI that will fail if official docs do not adhere to
the spacing rules.

As a starting point, the markdownlint config does not begin with the
default set of checks, which might overwhelm attempts to fix them.
Instead, focus on list-tab-spacing rules and a few other highly useful
checks.

markdownlint also has some gaps in its abilities that allow common Rook
doc issues to pass acceptance. However, it allows creating custom
linting plugins. Create 2 such linting plugins to check 2 things:

- all doc lines (except code blocks) must be aligned to a 4-space
  boundary, without exception. This ensures that markdown will render
  correctly with mkdocs. This unfortunately makes it possible to create
  lists that are internally aligned strangely.
- admonitions must all follow the same format of
  ```
  !!! header
      body
  ```

For the strange lists, this is allowed and renders correctly, but it
looks strange:

```md
- first bullet
- second bullet
    still second bullet
- third bullet

    has a paragraph
    of text inside

- last bullet

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit c9d99e01a0)
2024-05-01 13:52:39 -06:00
Blaine Gardner a4b4e7d319 Merge pull request #14149 from rook/mergify/bp/release-1.14/pr-14083
csi: remove out-dated prerequisites (backport #14083)
2024-05-01 13:52:07 -06:00
Praveen M 5d51cdd76e doc: update snapshot version
Signed-off-by: Praveen M <m.praveen@ibm.com>
(cherry picked from commit da8518095d)
2024-05-01 19:48:11 +00:00
Praveen M 83caca7655 csi: remove the out-dated prerequisites
Signed-off-by: Praveen M <m.praveen@ibm.com>
(cherry picked from commit 0467eb8a4c)
2024-05-01 19:48:11 +00:00
Blaine Gardner 4005730b15 Merge pull request #14148 from rook/mergify/bp/release-1.14/pr-13932
external: Restructure external cluster examples manifests (backport #13932)
2024-05-01 13:40:51 -06:00
smoshiur1237 b2d1a8df88 external: restructure external cluster examples manifests
This PR will add separate directory to handle the external manifest. Here external manifests will have same namespace (rook-ceph) for external cluster.

Signed-off-by: smoshiur1237 <moshiur.rahman@est.tech>
(cherry picked from commit dab17f72a1)
2024-05-01 18:29:48 +00:00
mergify[bot] f7127c8c4a Merge pull request #14132 from rook/mergify/bp/release-1.14/pr-14106
mon: fix mon scaledown when mons are portable (backport #14106)
2024-04-29 04:35:58 +00:00
subhamkrai 3af95231e2 mon: fix mon scaledown when mons are portable
in case of portable mons, mon scaledown was skipped
with below code
```
if mon.NodeName == "" {
			logger.Debugf("mon %q is not scheduled to a specific host", mon.DaemonName)
			continue
		}
```
which skips mon removal if mon nodeName is empty
but if mons are scale down in case of portable mons
in that case also we want to remove extra mons to match
the cephCluster configuration.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit d23a8433ed)
2024-04-25 16:40:56 +00:00
mergify[bot] 4564f9b2c9 Merge pull request #14130 from rook/mergify/bp/release-1.14/pr-14129
csi: update csi sidecars image version  (backport #14129)
2024-04-25 15:09:00 +00:00
Praveen M affdd02f1c csi: update csi sidecars' image version
Below sidecars are updated with latest available versions

csi-node-driver-registrar: v2.10.1
csi-resizer: v1.10.1
csi-provisioner: v4.0.1
csi-attacher: v4.5.1
csi-snapshotter: v7.0.2

Signed-off-by: Praveen M <m.praveen@ibm.com>
(cherry picked from commit faf7837621)
2024-04-25 08:43:50 -06:00
mergify[bot] 54275ecb1a Merge pull request #14127 from rook/mergify/bp/release-1.14/pr-14125
csi: create csi configmap if csi controller is disabled (backport #14125)
2024-04-24 15:18:36 +00:00
mergify[bot] 636e74b731 Merge pull request #14122 from rook/mergify/bp/release-1.14/pr-14115
operator: support custom dashboard service labels and annotations (backport #14115)
2024-04-24 15:13:06 +00:00
mergify[bot] 2f4ce55791 Merge pull request #14113 from rook/mergify/bp/release-1.14/pr-13769
external: add support for rados namespace for rbd ec pools (backport #13769)
2024-04-24 15:06:49 +00:00
parth-gr 91292df78b csi: create csi configmap if csi controller is disabled
Creating a cluster never succeeds if CSI driver is disabled
So to fix that we need to always create the csi configmap

closes: https://github.com/rook/rook/issues/14123

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 47ed6a8632)
2024-04-24 14:51:48 +00:00
subham rai 0074038112 Merge pull request #14121 from rook/mergify/bp/release-1.14/pr-14119
fixing typo in ceph-object-store-crd.md (backport #14119)
2024-04-24 10:46:57 +05:30
Steven Fackler a60dfda70f operator: support custom dashboard service labels and annotations
Unlike other components, the Ceph dashboard Service object could not be
configured with custom labels and annotations. This can be useful when
integrating Rook into a cluster with custom controllers similarly to how
the RGW service is customized.

Signed-off-by: Steven Fackler <sfackler@gmail.com>
(cherry picked from commit 0c38dd81c2)
2024-04-23 20:22:54 +00:00
ev cdab7999d0 docs: fixing typo in ceph-object-store-crd.md
Example cephobjectstore uses wrong field name for "dnsNames".

Signed-off-by: Adam Prycki <adam.prycki@gmail.com>
(cherry picked from commit c1e727384a)
2024-04-23 16:46:43 +00:00
parth-gr cb23a4f4d1 external: add support for rados namespace for rbd ec pools
currently addded the support for rados namesapce
for rbd ec pools upstream

closes: https://github.com/rook/rook/issues/13633

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit adf40b1944)
2024-04-22 17:14:13 +00:00
Travis Nielsen 782a4ae0ff Merge pull request #14112 from rook/mergify/bp/release-1.14/pr-14107
doc: fix external cluster document (backport #14107)
2024-04-22 10:08:43 -06:00
parth-gr 6fa4987323 doc: fix external cluster document
fixing the list numbers in external document

closes: https://github.com/rook/rook/issues/13968

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit fe30ac83ad)
2024-04-22 15:38:24 +00:00