Commit Graph
10273 Commits
Author SHA1 Message Date
Travis Nielsen 6bd401c80f Merge pull request #12975 from rook/mergify/bp/release-1.12/pr-12971
ci: remove workaround for clean disk action (backport #12971)
2023-10-04 10:50:11 -06:00
Travis Nielsen 40f0654454 Merge pull request #12980 from rook/mergify/bp/release-1.12/pr-12970
core: use crash profile in crash daemon keyring (backport #12970)
2023-10-04 10:49:22 -06:00
Travis Nielsen 9af8c8a3b0 Merge pull request #12994 from rook/mergify/bp/release-1.12/pr-12986
ci: fixing linter error (using variable 'urllib' before assignment) (backport #12986)
2023-10-04 10:49:03 -06:00
Travis Nielsen 968366f6b2 Merge pull request #12990 from rook/mergify/bp/release-1.12/pr-12988
docs: fixing some spelling issues (backport #12988)
2023-10-04 10:48:35 -06:00
Redouane Kachach 12f6b68377 ci: fixing linter error
Fixing linter error (using variable 'urllib' before assignment)
Adding logic to properly import urlencode depending on python version

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

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit aa59e3bb86)
2023-10-04 15:36:54 +00:00
Redouane Kachach 5f8c552b91 docs: fixing some spelling issues
closes: https://github.com/rook/rook/issues/12987

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit b3dd74ea20)
2023-10-03 14:06:59 +00:00
mergify[bot] 97a2fedb32 Merge pull request #12982 from rook/mergify/bp/release-1.12/pr-12981
file: Disable active standby when set to false (backport #12981)
2023-10-02 17:01:13 +00:00
travisn 619bdc3722 file: disable active standby when set to false
The activeStandby property of the filesystem CR was not
taking effect when changed from true to false. The standby
was only being enabled when true, but never applied when
changed to false.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit f7094d1d13)
2023-10-02 16:12:03 +00:00
travisn 17dbbafadc core: use crash profile in crash daemon keyring
The ceph documentation indicates to use the crash profile
instead of specifying rw for the mgr access.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit fab23d3407)
2023-10-02 13:27:34 +00:00
subhamkrai 7b0a46c07d ci: remove workaround for clean disk action
The issues are fixed from the clean disk action
repo and we shouldn't require any workaround. Also,
I'm not using git revert to revert the commit is earlier
clean disk action was mentioned in every CI which was
duplicate and now we have placed the action to composite yaml

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit e14f8c7710)
2023-09-29 15:58:14 +00:00
Travis Nielsen b6a8c5da7d Merge pull request #12966 from rook/mergify/bp/release-1.12/pr-12959
ci: fix github action free disk space  (backport #12959)
2023-09-28 09:43:56 -06:00
subhamkrai 0723bab51d ci: fix github action free disk space
Since `google-cloud-sdk` is renamed with `google-cloud-cli`,
the github action is failing to remove the older name and this
is causing ci issues. Applying changes suggested by community to
manually remove some packages to resolve the issue.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 3267576307)
2023-09-28 14:23:18 +00:00
Travis Nielsen b46dd7e78a Merge pull request #12960 from rook/mergify/bp/release-1.12/pr-12926
mgr: adding support for prometheus endpoint configuration (backport #12926)
2023-09-28 07:16:41 -06:00
Travis Nielsen 8c435feb8e Merge pull request #12964 from rook/mergify/bp/release-1.12/pr-12941
external: update healthchecker caps for rbd command (backport #12941)
2023-09-28 07:16:31 -06:00
Travis Nielsen 92a2db4a88 Merge pull request #12965 from obnoxxx/release-1.12-snyk
Release 1.12: suppress  snyk warnings for MPL-2.0 (backport #12932, #12954, and #12956)
2023-09-28 07:05:49 -06:00
travisn e878caab41 ci: suppress mpl license from snyk
The Snyk scan was failing on a warning with the
MPL 2.0 license, which is compatible with Rook.
Now the warnings are suppressed.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit b718622919)
2023-09-28 11:37:39 +02:00
Michael Adam f4111f6286 ci: fix the snyk policy to correctly ignore the MPL license issue
after  https://github.com/rook/rook/pull/12932 has been merged, we
continue to see MPL issues reported by the snyk CI runs:

https://github.com/rook/rook/actions/runs/6302663608/job/17110310884

This updates to the `.snyk` policy file to correctly ignore the MPL license issue
by using the  the proper snyk ID for this issue

According to the doc
https://docs.snyk.io/manage-risk/policies/the-.snyk-file,

the correct ID is `snyk:lic:npm:symbol:MPL-2.0`

The update to the file has been performed with the `snyk ignore`
command to ensure validity of the policy file.

Fixes: #12930

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 4a672c8c35)
2023-09-28 11:36:37 +02:00
Michael Adam 464e99a258 ci: suppress snyk MPL license warnings
Fixes: #12930

This patch introduces a  .snyk policy file that lets snyk suppress the warnings
 about  the MPL license in projects pulled in as dependencies.

Additinally, this  fixes a typo in the name of the snyk workflow
file

Signed-off-by: Michael Adam <obnox@samba.org>
Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
Co-authored-by: Blaine Gardner <b.blaine.gardner@gmail.com>
(cherry picked from commit d3bc9aafee)
2023-09-28 11:35:44 +02:00
subhamkrai 9ac3442847 external: update healthchecker caps for rbd command
when creating networkFence CR, it requires IP's to block
which we get from running `rbd status ...` command. But,
the client.healthchecker user didn't had the right caps
to run hence it was giving error. Now, adding the required
caps `profile rbd-read-only` to osd so that rbd command can
be executed.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit c78bd1cbc6)
2023-09-28 04:56:33 +00:00
Travis Nielsen 4ae0570cee Merge pull request #12961 from rook/mergify/bp/release-1.12/pr-12958
docs: krew is wrong word use kubectl instead (backport #12958)
2023-09-27 11:33:14 -06:00
subhamkrai ff4902d330 docs: krew is wrong word use kubectl instead
krew is itself a plugin and it is wrong wording
to use krew plugin intead it should be kubectl
pluging.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 47c0038136)
2023-09-27 16:23:10 +00:00
Redouane Kachach 14c46b8000 mgr: adding support for prometheus endpoint configuration
Using the new configuration parameters prometheusEndpoint and
prometheusEndpointSSLVerify users can configure dashboard to
point to their prometheus instance.

closes: #12876

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit c763935436)
2023-09-27 14:10:23 +00:00
Blaine Gardner 3dd76e061e Merge pull request #12942 from rook/mergify/bp/release-1.12/pr-12921
docs: Review the teardown guide for updated guidelines (backport #12921)
2023-09-22 10:31:14 -06:00
travisn 9fbd192799 docs: review the teardown guide for updated guidelines
The teardown guide is updated with the guidelines to use
third person wording and be more concise. Also, remove
the list of CRDs from the example that easily becomes
outdated as the list changes from release to release.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 40d4eedb83)
2023-09-22 16:09:33 +00:00
mergify[bot] 7c657e3f70 Merge pull request #12936 from rook/mergify/bp/release-1.12/pr-12924
osd: support encrypted OSD on partiton (backport #12924)
2023-09-20 23:26:51 +00:00
Satoru Takeuchi 57eb4ae827 osd: support encrypted OSD on partiton
Let's use raw mode for encrypted OSD. This mode supports encrypted
OSD on partition.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 093125904b)
2023-09-20 22:32:19 +00:00
mergify[bot] c83e99abd3 Merge pull request #12928 from rook/mergify/bp/release-1.12/pr-12329
helm: clusterrole to add objectbucketclaims to user facing roles (backport #12329)
2023-09-19 19:04:20 +00:00
mergify[bot] b79553176f Merge pull request #12927 from rook/mergify/bp/release-1.12/pr-12922
test: update multus canary test (backport #12922)
2023-09-19 18:24:04 +00:00
Cyril Jouve 7796295a91 helm: obc rbac aggregation to user facing roles
add view & edit ClusterRole for obc.

the roles are added to the default user facing roles
view / edit / admin respectively using k8s ClusterRole aggregation.

feature disabled for backward compatibility
and controlled with rbacAggregate.enableOBCs.

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
(cherry picked from commit 45d897b8b3)
2023-09-19 18:13:17 +00:00
Blaine Gardner 79333c9d6c test: update multus canary test
Update the multus canary test to reflect modern knowledge about how it
should be configured.

No longer test for the network device in OSD pods. Pods will utterly
fail to start if Multus is unable to attach interfaces.
Instead, look to the OSD map to test the connections more wholistically.
OSDs must have map IPs that include both public and cluster network.
This implicitly tests that the interfaces exist in the Pod, and it
additionally verifies other details, like Ceph `*_network` configs are
set propertly.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 3e2e906ea7)
2023-09-19 17:29:45 +00:00
Blaine Gardner 9fa0745a3b Merge pull request #12912 from rook/mergify/bp/release-1.12/pr-12715
osd: make osd pod to sleep when osds are flapping (backport #12715)
2023-09-15 13:48:09 -06:00
sp98 639b1ae25a osd: make osd pod to sleep when osds are flapping
When OSDs flap, ceph stops the OSD daemon if its marked down greater than
5 times in 600 seconds. But OSD pod restarts and marks the OSD `up` again.
This causes the PGs mapped to these OSDs to peer. While the PGs are peering,
IO to these PGs are blocked.

So we need to ensure that if ceph is marking OSD `down` due to flapping, OSD pod
should not restart to mark the OSDs `up` again.

This PR adds a sleep to the OSD pod if the container returned with a 0 exit code
Default behavior is to sleep for 6 hrs. But user can configure it from the
ceph cluster spec.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit 4eb9f62205)
2023-09-15 18:24:50 +00:00
Travis Nielsen e662d75329 Merge pull request #12911 from rook/mergify/bp/release-1.12/pr-12904
build: Avoid CRD edits when building on mac (backport #12904)
2023-09-15 11:32:38 -06:00
travisn f97d3a8a0b build: avoid crd edits when building on mac
On mac development machines, the crds are being left in a
state of change with the description removed and the
OBC CRDs removed from crds.yaml and resources.yaml.
By skipping the related env vars, these resources
are no longer left unexpectedly modified.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 0bf117493d)
2023-09-15 16:50:19 +00:00
Travis Nielsen d8b736e58e Merge pull request #12910 from rook/mergify/bp/release-1.12/pr-12898
build: update s5cmd to version v2.2.1 (backport #12898)
2023-09-15 10:10:28 -06:00
Michael Adam a5f07a1543 build: update s5cmd to version v2.2.1
This is the latest available version.
The previously used version v2.0.0 was very outdated.

Fixes: #12883

Co-authored-by: subham rai subhamkrai <srai@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Subham Rai subhamkrai <srai@redhat.com>
  signed-off-by: Travis Nielsen <tnielsen@redhat.com>
    Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit cef43e1155)
2023-09-15 15:17:41 +00:00
mergify[bot] c1d25e71e7 Merge pull request #12906 from rook/mergify/bp/release-1.12/pr-12895
mgr: Allow more than two mgrs (backport #12895)
2023-09-14 23:17:13 +00:00
Travis Nielsen 559f6605cc Merge pull request #12908 from travisn/release-1.12.4
build: Update the release version to v1.12.4
v1.12.4
2023-09-14 16:59:46 -06:00
travisn 3eb06d1f05 build: update the release version to v1.12.4
For the patch release update the docs and examples
to v1.12.4.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-09-14 16:01:40 -06:00
travisn 19ffd749e0 mgr: allow more than two mgrs
While two mgrs is considered sufficient, more mgr daemons are
now allowed in case the admin wants even more fault tolerance
to the active mgr going down, in case multiple mgrs go down.
Up to five mgr pods will be allowed. All mgrs will be in
standby mode except one active mgr. All mgr pods have a sidecar
that will update their respective pod specs with the active
or passive label.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 66547d27be)
2023-09-14 21:03:43 +00:00
Travis Nielsen 41004d8d2f Merge pull request #12831 from rook/mergify/bp/release-1.12/pr-12791
core: restart ceph daemons when network updated (backport #12791)
2023-09-12 16:23:59 -06:00
Travis Nielsen 7e64b9c144 Merge pull request #12873 from rook/mergify/bp/release-1.12/pr-12872
helm: update docs/comments to reflect reef support (backport #12872)
2023-09-12 16:22:46 -06:00
Travis Nielsen 7468605992 Merge pull request #12893 from rook/mergify/bp/release-1.12/pr-12886
exporter: bind to all interfaces if IPv6 is enabled (backport #12886)
2023-09-12 16:19:49 -06:00
Matthew Penner 9744c97227 exporter: bind to all interfaces if IPv6 is enabled
Previously ceph-exporter would only bind to IPv4 interfaces. Now if the
CephCluster is configured with `dualStack: true` and/or `ipFamily: IPv6`
an additional flag (`--addrs ::`) will be added to the ceph-exporter
container to make it listen both IPv6 and IPv4 interfaces.

Signed-off-by: Matthew Penner <me@matthewp.io>
(cherry picked from commit d09a43df37)
2023-09-12 20:10:55 +00:00
mergify[bot] f8035e561f Merge pull request #12892 from rook/mergify/bp/release-1.12/pr-12884
object: unique username for OBC even when preceding OBC was retained (backport #12884)
2023-09-12 17:01:41 +00:00
Sebastian Hasler 38958ecce2 object: unique username for OBC even when preceding OBC was retained
For an OBC's name we cannot simply use the OBC's namespace and name,
because they can be reused, while the preceding bucket might be
retained by reclaimPolicy. (Commit 2733375ca4 also didn't solve
this issue, as it is an intra-cluster issue.) Therefore we instead
use the OBC's UID which should be unique within the cluster and
across clusters.

Signed-off-by: Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
(cherry picked from commit 041fc1a71c)
2023-09-12 16:11:06 +00:00
Micah Nagel 60170feb83 helm: update docs to reflect reef support
some helm comments incorrectly indicate ceph v18 is not supported

Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>
(cherry picked from commit 0ff224d453)
2023-09-08 18:51:27 +00:00
Blaine Gardner 522b49bbd1 Merge pull request #12866 from rook/mergify/bp/release-1.12/pr-12778
multus: allow using NADs without inspectable CIDRs (backport #12778)
2023-09-07 15:07:40 -06:00
Blaine Gardner 8b72dfa020 multus: detect network CIDRs via canary
Change how Rook detects network CIDRs for Multus networks. The IPAM
configuration is only defined as an arbitrary string JSON blob with a
"type" field and nothing more. Rook's detection of CIDRs for whereabouts
had already grown out of date since the initial implementation.
Additionally, Rook did not support DHCP IPAM, which is a reasonable
choice for users. And more, Rook did not support CNI plugin chaining,
which further complicates NADs. Based on the CNI spec, network chaning
can result in any changes to network CIDRs from the first-given plugin.

All these problems make it more and more difficult for Rook to support
Multus by inspecting the NAD itself to predict network CIDRs. Instead,
it is better for Rook to treat the CNI process as a black box. To
preserve legacy functionality of auto-detecting networks and to make
that as robust as possible, change to a canary-style architecture like
that used for Ceph mons, from which Rook will detect the network CIDRs
if possible.

Also allow users to specify overrides for CIDR ranges. This allows Rook
to still support esoteric and unexpected NAD or network configurations
where a CIDR range is not detectable or where the range detected would
be incomplete. Because it may be impossible for Rook to understand the
network CIDRs wholistically while residing only on a portion of the
network, this feature should have been present from Multus's inception.

Improving CIDR auto-detection and allowing users to specify overrides
for auto-detected CIDRs rounds out Rook's Multus support for CephCluster
(core/RADOS) installations. No further architectural changes should be
needed for CephClusters as regards application of public/cluster network
CIDRs for Multus networks.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 3c43268d0a)
2023-09-07 19:43:17 +00:00
mergify[bot] c560c244e1 Merge pull request #12863 from rook/mergify/bp/release-1.12/pr-12844
Fix discover daemonset default value for discovery interval (backport #12844)
2023-09-07 16:07:56 +00:00