Commit Graph
8257 Commits
Author SHA1 Message Date
mergify[bot] 30003849a3 Merge pull request #9815 from rook/mergify/bp/release-1.8/pr-9814
build: Update ceph base image to v16.2.7-20220216 (backport #9814)
2022-02-28 21:58:20 +00:00
Travis Nielsen bde6d64308 build: update ceph base image to v16.2.7-20220216
The latest ceph image should be used for the base of
the rook image to pick up the latest security releases.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit a98678585a)
2022-02-28 21:27:17 +00:00
mergify[bot] bc83a7b694 Merge pull request #9813 from rook/mergify/bp/release-1.8/pr-9804
osd: Purge job will remove all pvcs for the osd (backport #9804)
2022-02-28 18:39:06 +00:00
Travis Nielsen 9285c2dd84 osd: purge job will remove all pvcs for the osd
The purge job is intended to clean up all the resources
related to an OSD that is to be removed. An OSD with
a metadata, wal, and data PVC was only cleaning up the
data PVC. Now the metadata and wal PVCs will also be
cleaned up.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit b3ca0f1b87)
2022-02-28 18:09:03 +00:00
mergify[bot] 380fa7c223 Merge pull request #9812 from rook/mergify/bp/release-1.8/pr-9729
csi: default to ReadWriteOnceWithFSType for cephfs (backport #9729)
2022-02-28 15:31:18 +00:00
Humble Chirammal e324059a0d csi: default to ReadWriteOnceWithFSType for cephfs
```
ReadWriteOnceWithFSType: Indicates that volumes will be examined
to determine if volume ownership and permissions should be modified
to match the pod's security policy. Changes will only occur if the
fsType is defined and the persistent volume's accessModes contains
ReadWriteOnce.
```

In between considering we are giving 0777 permission on nodestage
of cephfs shares, we defaulted to NONE. However giving worldwide
permission to the volume is not the right thing and it has been
fixed in cephfs via https://github.com/ceph/ceph-csi/pull/2847

This commit brings it back to the value which is also in parity
with RBD driver.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit 6561bdaf53)
2022-02-28 15:05:15 +00:00
Satoru Takeuchi 2035def1a4 Merge pull request #9811 from rook/mergify/bp/release-1.8/pr-9807
osd: Remove osd with purge instead of destroy (backport #9807)
2022-02-28 17:05:50 +09:00
Travis Nielsen bb6b90a4a7 osd: remove osd with purge instead of destroy
The osd destroy command leaves the osd id in use instead
of fully purging the osd id. If the osd id is not also
removed, it gives the impression that there is still
something that needs to be cleaned up from the old osd.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 879bde4416)
2022-02-27 23:13:46 +00:00
Travis Nielsen 0f71201bf3 Merge pull request #9805 from travisn/release-1.8.6
build: Update release version to v1.8.6
v1.8.6
2022-02-24 14:23:49 -07:00
Travis Nielsen d15cd5e300 build: update release version to v1.8.6
With the patch release we update the examples and docs to v1.8.6.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-24 13:48:17 -07:00
mergify[bot] de5a459076 Merge pull request #9803 from rook/mergify/bp/release-1.8/pr-9799
file: Allow filesystem removal even with failures (backport #9799)
2022-02-24 17:43:50 +00:00
Travis Nielsen 2dc4fb2759 file: allow filesystem removal even with failures
If the filesystem is in a bad state such as never being
created successfully in the first place, the filesystem
removal will continuously fail and prevent the CR from
being removed. Thus, we treat the filesystem removal
as a best effort and log the issue instead of failing
the uninstall reconcile.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1f8f71b396)
2022-02-24 17:16:27 +00:00
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