Commit Graph
8245 Commits
Author SHA1 Message Date
Satoru Takeuchi cbb690e371 Merge pull request #9780 from rook/mergify/bp/release-1.8/pr-9701
osd: re-enable raw mode on disk (backport #9701)
2022-02-24 20:34:39 +09:00
Satoru Takeuchi 143e0828c8 osd: re-enable raw mode on disk
We can re-enable raw mode OSD on disk if Ceph version is at least v16.2.6.

https://github.com/ceph/ceph/pull/42469

Closes: https://github.com/rook/rook/issues/9659

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-02-24 09:41:27 +00:00
mergify[bot] 7225f5c4c8 Merge pull request #9801 from rook/mergify/bp/release-1.8/pr-9682
core: eliminate unnecessary code (backport #9682)
2022-02-24 09:35:47 +00:00
Satoru Takeuchi 5b1e6763c7 core: eliminate unnecessary code
We can eliminate the OSD creation code for Ceph < v15.2.0 because Nautilus(v14.2.z)
is no longer supported. In other words, we can now expect that all newly-created
OSDs on PVC are raw mode.

Please note that the existing lvm mode OSDs on PVCs still be supported after this change.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 2d8f9b67c6)
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-02-24 08:42:15 +00:00
mergify[bot] ec8c949d7e Merge pull request #9798 from rook/mergify/bp/release-1.8/pr-9790
helm: Allow setting priority class on operator and toolbox (backport #9790)
2022-02-24 02:29:36 +00:00
Travis Nielsen 6655b82965 helm: allow setting priority class on operator and toolbox
The operator and toolbox pods were not configurable for
their priority class in the helm chart. Now the settings
are exposed in the values.yaml.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1d1de69f3e)
2022-02-23 21:35:35 +00:00
mergify[bot] 26bc14521b Merge pull request #9796 from rook/mergify/bp/release-1.8/pr-9794
monitoring: making alert firing timeout and the doc timeout same (backport #9794)
2022-02-23 17:05:49 +00:00
Arun Kumar Mohan 1296a28f34 monitoring: making alert firing timeout and the doc timeout same
Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
(cherry picked from commit 054d009af6)
2022-02-23 16:39:11 +00:00
mergify[bot] d0648e79f9 Merge pull request #9795 from rook/mergify/bp/release-1.8/pr-9781
test: collect fuller logs for CI tests (backport #9781)
2022-02-23 16:25:02 +00:00
Blaine Gardner da7b04ba1a test: fix helm suite conflicting artifact
Two test jobs were collecting artifacts to the same artifact name, which
can cause race conditions and failures to upload artifacts.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 7a7d278ab4)
2022-02-23 15:59:19 +00:00
Blaine Gardner f8247c9cad test: collect fuller logs for CI tests
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 9a5d43761d)
2022-02-23 15:59:18 +00:00
mergify[bot] 54eb1b2e29 Merge pull request #9793 from rook/mergify/bp/release-1.8/pr-9791
docs: Correct VAULT_BACKEND_PATH (backport #9791)
2022-02-23 13:34:09 +00:00
parth-gr e72c6d664c docs: correct vault backend path
Based on my testing with the guide above,
the original value in the sample code here:
`VAULT_BACKEND_PATH: rook/ver1`
...did not work and resulted in
a Vault path error when Rook attempted
to provision the OSD filesystem.
When I simplified it to:
`VAULT_BACKEND_PATH: rook`
... then it worked.

I also took the opportunity to add
a comment/clarification about the `VAULT_ADDR` URL.

Co-authored-by: Shahak Nagiel <snagiel@yahoo.com>
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit cbc9bbff32)
2022-02-23 13:06:04 +00:00
mergify[bot] f9d6dd522a Merge pull request #9785 from rook/mergify/bp/release-1.8/pr-9773
docs: fix broken links in ceph-object-multisite.md (backport #9773)
2022-02-22 18:15:45 +00:00
Jiffin Tony Thottan 21856633b9 docs: fix broken links in ceph-object-multisite.md
The docs have links pointing /design directory in the codebase which
hidden in https://rook.io so change them to rook github repo links.

Fixes: #9768
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
(cherry picked from commit 1f13938bdc)
2022-02-22 17:47:15 +00:00
Sébastien Han 93ea67d6e4 Merge pull request #9779 from rook/mergify/bp/release-1.8/pr-9777
docs: Warn in quickstart guide about using a vm (backport #9777)
2022-02-22 09:13:45 +01:00
mergify[bot] f897ba7a0f Merge pull request #9783 from rook/mergify/bp/release-1.8/pr-9645
helm: fix csiAddons enabled flag (backport #9645)
2022-02-22 05:46:03 +00:00
Shinya Hayashi bb9b3a1998 helm: fix csiAddons enabled flag
We should use csiAddons.enabled to check whether csiAddons is used.

Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
(cherry picked from commit c82099c107)
2022-02-22 05:20:53 +00:00
Travis Nielsen 8dbac95324 docs: warn in quickstart about using a vm
If Rook is run on a developer machine, devices may accidentally
be consumed by rook and cause data loss.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit eb4ac1d6c9)
2022-02-21 21:44:01 +00:00
Blaine Gardner 9b21dba035 Merge pull request #9775 from rook/mergify/bp/release-1.8/pr-9765
docs: clarify teardown disk zap section (backport #9765)
2022-02-21 08:39:50 -07:00
Blaine Gardner 7d24a86b9b docs: clarify teardown disk zap section
Users have reported some problems understanding the teardown
"Zapping Devices" section. Break the section in to per-disk and
all-disks-on-host parts, and clarify that they are not one-size-fits-all
scripts.

Resolves #9542
Resolves #9764

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 325eda655c)
2022-02-21 15:15:47 +00:00
mergify[bot] 123bd6e51a Merge pull request #9761 from rook/mergify/bp/release-1.8/pr-9746
osd: Return error if fail to list osds in prepare job (backport #9746)
2022-02-17 17:47:49 +00:00
Travis Nielsen bf2222da0c osd: return error if fail to list osds in prepare job
The OSD prepare job was succeeding even if the OSDs failed to be listed
by ceph-volume. These errors should be returned and fail the job, resulting
in a retry to retrieve the OSDs. Otherwise, the failure is masked and
the admin needs to dig through logs to find why the OSDs were not configured
on that node.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit d4b8fa19b2)
2022-02-17 10:22:18 -07:00
mergify[bot] 1eb1042164 Merge pull request #9763 from rook/mergify/bp/release-1.8/pr-9760
core: various external mode enhancements (backport #9760)
2022-02-17 16:09:27 +00:00
Sébastien Han 6722d697f8 core: remove unnecessary secret validation
We don't need to validate the name of Ceph-CSI secret, simply because
the names can be different. The default example have default names but
since the secret can be created by the administrator we should not
assume anything. This check will fail if the secret names are different
for whatever reason. This is especially true for external mode. In
converged mode Rook creates the secrets on its own if needed to ease the
integration with the default StorageClass examples.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 0143a8f8ee)
2022-02-17 15:44:57 +00:00
Sébastien Han 793f999887 core: move clusterInfo discovery in converged cluster
The external code has its own mechanism to look up the clusterInfo so
let's move this to the non-external condition to clarify the code.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 47b8bb989e)
2022-02-17 15:44:57 +00:00
Sébastien Han 48feb7d4aa core: check for canceled context in external mode
This is fixing a potential race where the context is canceled and the
external cluster is trying to fetch the cluster info. If the context is
canceled then the loop will be stuck forever. Now we check for the
canceled context and return appropriately.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit fdcad15b87)
2022-02-17 15:44:56 +00:00
mergify[bot] b778ff1695 Merge pull request #9759 from rook/mergify/bp/release-1.8/pr-9758
ceph: remove rbd_default_features setting (backport #9758)
2022-02-17 14:56:27 +00:00
Madhu Rajanna 37ca1255ae core: remove rbd_default_features setting
Instead of setting the default values in the Rook
we should use the defaults provided by the ceph
it self. This configuration is causing problem
for the rbd image creation, this is not allowing
the rbd images to have default image features
which comes with librbd.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit f482b1ceba)
2022-02-17 14:30:40 +00:00
mergify[bot] 6676c2d4fa Merge pull request #9756 from rook/mergify/bp/release-1.8/pr-9511
docs: add multus known limitations (backport #9511)
2022-02-17 09:51:21 +00:00
Sébastien Han a7f61bbd88 docs: add multus known limitations
Add doc to explain why some daemons are not listening to the NAD.

Closes: https://github.com/rook/rook/issues/9488
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit a25dd4ec4c)
2022-02-17 09:26:31 +00:00
mergify[bot] 2348ecf853 Merge pull request #9753 from rook/mergify/bp/release-1.8/pr-9609
csi: modify upgrade flag in external cluster (backport #9609)
2022-02-16 14:52:47 +00:00
mergify[bot] 9bf7e3510e Merge pull request #9744 from rook/mergify/bp/release-1.8/pr-9690
test: update bucket notification integration test with http server (backport #9690)
2022-02-16 13:07:00 +00:00
Jiffin Tony Thottan b32014dc34 test: update bucket notification integration test with http server
Add test cases to check notification is received by http server. For
this a sample http server https://github.com/thotz/pythonwebserver is
used.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 438cf6abf1)
2022-02-16 17:28:12 +05:30
parth-gr 3fdd9b4aab csi: make use of common user creation method
refactor the code so we can use common csi user
creation method

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 3e64525b62)
2022-02-16 10:10:59 +00:00
parth-gr 1d53e78141 csi: modify upgrade flag in external cluster
The upgrade function doesn't seem to be that smart
for now so it can update the new auth caps listed
with the existing one, it only compares the value of
the current cap with the MIN_USER_CAP_PERMISSIONS,

Modified the upgrade flag functionality so we can use
this while upgrading the cluster clients

Closes: https://github.com/rook/rook/issues/9589

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 9b20b475cf)
2022-02-16 10:10:59 +00:00
mergify[bot] ada4e6d5db Merge pull request #9752 from rook/mergify/bp/release-1.8/pr-9728
object: fix backend path for transit engine for rgw kms (backport #9728)
2022-02-16 09:48:38 +00:00
Jiffin Tony Thottan 54ae1b1789 object: fix backend path for transit engine for rgw kms
The backend path was added with additional `transit` to it.
Also added PR test case to check transit engine

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 0b4cdb992b)
2022-02-16 09:21:49 +00:00
mergify[bot] 012c802df0 Merge pull request #9745 from rook/mergify/bp/release-1.8/pr-9718
osd: Write log message when node is being skipped (backport #9718)
2022-02-15 15:42:39 +00:00
Travis Nielsen 27a2d34b39 osd: write log message when node is being skipped
When a node is being skipped for creation of OSDs, log a message
that indicates whether it was from the node being unschedulable,
the node is not ready, or the node does not meet the placement
criteria specified in the cluster CR.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 4570204a1d)
2022-02-15 15:15:19 +00:00
mergify[bot] 3dba59e426 Merge pull request #9739 from rook/mergify/bp/release-1.8/pr-9713
csi: cleanup csi driver resources when zero cephclusters exist (backport #9713)
2022-02-15 05:31:43 +00:00
Rakshith R 2027e7f8ef csi: cleanup csi driver resources when zero cephclusters exist
This commit modifies ceph-csi controller to be able to cleanup
ceph-csi deployment,daemonset,services & csidriver objects
when no cephcluster exists.

It makes the following changes:
- redundant check for tp.DriverNamePrefix is removed.
- retry to start drivers within reconcile loop is removed,
  controller will retry in case of error now.
- stopDrivers() will now return error in case of failure.
- predicate delete func will now respond to cephcluster deletion.
- CSI resources will be cleaned up when cephcluster does not exist.

Fixes: #9697

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 1e9920fb85)
2022-02-14 20:31:41 +00:00
mergify[bot] 44a324f834 Merge pull request #9738 from rook/mergify/bp/release-1.8/pr-9735
csi: add comment after namespace (backport #9735)
2022-02-14 16:44:57 +00:00
subhamkrai ea20e13bc7 csi: add comment after namespace
adding comment after namespace to identify if
it cluster namespace or operator namespace.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 5b49d36167)
2022-02-14 16:16:59 +00:00
mergify[bot] 17fa2ca577 Merge pull request #9737 from rook/mergify/bp/release-1.8/pr-9734
rgw: fix variable assignment (backport #9734)
2022-02-14 14:45:21 +00:00
Sébastien Han d233fd2293 rgw: fix variable assignment
We need to explicitly assign the ceph version within each scope since
one function returns a pointer and one is not.
Previously, the `desiredCephVersion` was recreated in the scope of the
`else` and thus a new variable `desiredCephVersion` was initialized (see
the `:=`).
Now, each scope creates and assign to clusterInfo a `desiredCephVersion`
value.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 7f32461b8f)
2022-02-14 14:18:55 +00:00
Sébastien Han c6a69a53bb Merge pull request #9730 from rook/mergify/bp/release-1.8/pr-9724
object: do not check for upgrade on external mode (backport #9724)
2022-02-14 11:03:34 +01:00
Sébastien Han dfe0601005 object: do not check for upgrade on external mode
The object child controller should not compare versions if the object
store is external. The current version comparison is using the
cmdreporter to check the ceph version of the image in the CephCluster spec.
In external mode, this image is not set so the cmdreporter fails.
Also, this check is only valid for converged mode, so external mode
should be skipped.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 856b14e60a)
2022-02-11 08:33:44 +00:00
Travis Nielsen 33ab3f1cb3 Merge pull request #9726 from travisn/release-1.8.5
build: Update release version to v1.8.5
v1.8.5
2022-02-10 12:11:25 -07:00
Travis Nielsen e41e081427 build: update release version to v1.8.5
With the patch release the example manifests and docs are
updated to v1.8.5

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-10 11:08:24 -07:00