Commit Graph
10288 Commits
Author SHA1 Message Date
dependabot[bot] 3db03cd9a0 build(deps): bump aws-actions/configure-aws-credentials from 3 to 4
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 3 to 4.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v3...v4)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 12:41:43 +00:00
Blaine Gardner 17bf8a04ec Merge pull request #12913 from rook/dependabot/go_modules/github.com/hashicorp/vault-1.13.7
build(deps): bump github.com/hashicorp/vault from 1.13.5 to 1.13.7
2023-09-15 16:32:52 -06:00
dependabot[bot] 17b2c0f740 build(deps): bump github.com/hashicorp/vault from 1.13.5 to 1.13.7
Bumps [github.com/hashicorp/vault](https://github.com/hashicorp/vault) from 1.13.5 to 1.13.7.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.13.5...v1.13.7)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-15 19:05:57 +00:00
Travis Nielsen a3dafbe9cf Merge pull request #12715 from sp98/osd-sleep
osd: make osd pod to sleep when osds are flapping
2023-09-15 12:24:08 -06:00
sp98 4eb9f62205 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>
2023-09-15 22:59:46 +05:30
Travis Nielsen b17a64a71f Merge pull request #12904 from travisn/darwin-arm-build
build: Avoid CRD edits when building on mac
2023-09-15 10:49:21 -06:00
Travis Nielsen 0bca2ce753 Merge pull request #12898 from obnoxxx/update-s5cmd
build: update s5cmd to version v2.2.1
2023-09-15 09:16:58 -06:00
cef43e1155 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>
2023-09-15 16:16:47 +02:00
travisn 0bf117493d 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>
2023-09-15 08:00:57 -06:00
Travis Nielsen 8da6deaafe Merge pull request #12895 from travisn/multiple-mgr
mgr: Allow more than two mgrs
2023-09-14 15:02:33 -06:00
travisn 66547d27be 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>
2023-09-14 13:29:11 -06:00
Travis Nielsen 9b19cab134 Merge pull request #12882 from biz812/feature/service-monitor-namespace
helm: Add ServiceMonitor namespace override
2023-09-13 11:12:16 -06:00
Mike Hobbs 54d7839b0d helm: add servicemonitor namespace override
The prometheus helm chart (kube-prometheus-stack) allows you to restrict
which namespaces prometheus will check for ServiceMonitor objects,
because of this is is typical to be able to configure the namespace of
your ServiceMonitors in helm charts, which is the functionality I have
added here.

Signed-off-by: Mike Hobbs <biz812g@gmail.com>
2023-09-13 14:16:07 +01:00
Travis Nielsen faa6272ca3 Merge pull request #12894 from travisn/roadmap-update
docs: Fine tune roadmap for 1.13
2023-09-12 15:41:20 -06:00
travisn 7fbc618899 docs: fine tune roadmap for 1.13
COSI is not yet ready for declaring stable while
the K8s feature is still in alpha state, despite
how stable Rook's implementation may be.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-09-12 15:30:31 -06:00
Travis Nielsen e8464bb498 Merge pull request #12886 from matthewpi/fix-ceph-exporter-ipv6
exporter: bind to all interfaces if IPv6 is enabled
2023-09-12 14:10:02 -06:00
Matthew Penner d09a43df37 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>
2023-09-12 11:39:46 -06:00
Blaine Gardner 6b6ef13562 Merge pull request #12884 from haslersn/unique-username-for-obc
object: unique username for OBC even when preceding OBC was retained
2023-09-12 10:10:06 -06:00
Sébastien Han 2b33822400 Merge pull request #12874 from travisn/roadmap-1.13
docs: Update roadmap for 1.13
2023-09-12 15:32:43 +02:00
Sebastian Hasler 041fc1a71c 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>
2023-09-11 23:31:39 +02:00
Travis Nielsen 5f509a0892 Merge pull request #12875 from travisn/pr-checklist
docs: Remove skip-ci from pr checklist
2023-09-11 10:22:01 -06:00
travisn a273a0be1b docs: remove skip-ci from pr checklist
The skip-ci label can only be added to the PRs by members of the org,
and also the label is not necessary for changes that are only
to the documentation folder.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-09-08 14:17:36 -06:00
travisn e8ca2416ac docs: update roadmap for 1.13
The roadmap doc is updated with some high level features
that are targeted for the 1.13 release.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-09-08 14:11:13 -06:00
Travis Nielsen a64f9bccf7 Merge pull request #12872 from mjnagel/docs-fixes-reef-support
helm: update docs/comments to reflect reef support
2023-09-08 12:50:43 -06:00
Micah Nagel 0ff224d453 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>
2023-09-08 12:11:58 -06:00
Travis Nielsen 0eb1a6f200 Merge pull request #12867 from rook/dependabot/go_modules/github.com/hashicorp/vault/api-1.10.0
build(deps): bump github.com/hashicorp/vault/api from 1.9.2 to 1.10.0
2023-09-07 14:42:45 -06:00
Travis Nielsen 00ce3269a3 Merge pull request #12868 from rook/dependabot/go_modules/github.com/aws/aws-sdk-go-1.45.5
build(deps): bump github.com/aws/aws-sdk-go from 1.45.2 to 1.45.5
2023-09-07 14:42:15 -06:00
Travis Nielsen ccd961bda9 Merge pull request #12829 from subhamkrai/group-dependent
ci: use dependabot group feature
2023-09-07 13:55:49 -06:00
dependabot[bot] 160b0908c2 build(deps): bump github.com/aws/aws-sdk-go from 1.45.2 to 1.45.5
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.45.2 to 1.45.5.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.2...v1.45.5)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 19:50:05 +00:00
dependabot[bot] 3800df84a6 build(deps): bump github.com/hashicorp/vault/api from 1.9.2 to 1.10.0
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.9.2 to 1.10.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/v1.10.0/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.9.2...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 19:48:47 +00:00
Blaine Gardner 17f0072d9d Merge pull request #12778 from BlaineEXE/multus-allow-cidr-spec
multus: allow using NADs without inspectable CIDRs
2023-09-07 13:42:41 -06:00
Blaine Gardner 3c43268d0a 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>
2023-09-07 10:12:55 -06:00
Travis Nielsen 7fbb4cc349 Merge pull request #12844 from lbailleul/fix_discover
Fix discover daemonset default value for discovery interval
2023-09-07 08:10:00 -06:00
Louis Bailleul e56122cbce operator: config default interval value for discovery daemon
Correctly set discoveryInterval default value by passing defaultDiscoverInterval to k8sutil.GetValue
Allow to set ROOK_DISCOVER_DEVICES_INTERVAL env var through discoveryDaemonInterval helm value

Signed-off-by: Louis Bailleul <louis.bailleul@pgs.com>
2023-09-07 10:28:13 +01:00
Travis Nielsen bf2211b22e Merge pull request #12861 from subhamkrai/add-check-crd-csv
build: add check to validate crd in csv
2023-09-06 10:32:30 -06:00
subhamkrai 1b652f8176 build: add check to validate crd in csv
In the past we had few cases where the new crd
was missed adding in metadata-common.yaml file.
So, now we'll check if crds.yaml and metadata-common.yaml
crd name are matching.

Signed-off-by: subhamkrai <srai@redhat.com>
2023-09-06 19:37:25 +05:30
Travis Nielsen 3e248bf9a3 Merge pull request #12840 from smuth4/fix/discovery-cm
helm: move discovery daemon settings into the configmap
2023-09-05 17:18:57 -06:00
Travis Nielsen e3c2b6449f Merge pull request #12846 from rook/dependabot/go_modules/github.com/aws/aws-sdk-go-1.45.2
build(deps): bump github.com/aws/aws-sdk-go from 1.44.329 to 1.45.2
2023-09-05 11:46:44 -06:00
Travis Nielsen 8b9faac1aa Merge pull request #12849 from rook/dependabot/github_actions/actions/checkout-4
build(deps): bump actions/checkout from 3 to 4
2023-09-05 11:38:57 -06:00
Travis Nielsen 3cf2388b42 Merge pull request #12847 from rook/dependabot/go_modules/k8s.io/cli-runtime-0.28.1
build(deps): bump k8s.io/cli-runtime from 0.28.0 to 0.28.1
2023-09-05 11:37:54 -06:00
Travis Nielsen 0ae3800929 Merge pull request #12770 from sp98/osd-migration-part2
osd: replace existing OSDs to use new store
2023-09-05 08:57:20 -06:00
dependabot[bot] 14f0a9e772 build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 12:33:02 +00:00
dependabot[bot] 7db40eb300 build(deps): bump k8s.io/cli-runtime from 0.28.0 to 0.28.1
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) from 0.28.0 to 0.28.1.
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.28.0...v0.28.1)

---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 12:26:15 +00:00
dependabot[bot] 53839de365 build(deps): bump github.com/aws/aws-sdk-go from 1.44.329 to 1.45.2
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.329 to 1.45.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.329...v1.45.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 12:25:49 +00:00
Stephen Muth 37d8de0993 helm: move discovery daemon settings into configmap
This allows the rook mgr module to check if the discovery daemon is enabled. The udev blacklist setting was also moved just to keep similar settings in the same place.

Signed-off-by: Stephen Muth <smuth4@gmail.com>
2023-09-02 19:27:38 -04:00
Travis Nielsen ded675e758 Merge pull request #12825 from weirdwiz/service-monitor-port
monitoring: set port for servicemonitor for ceph-exporter
2023-09-01 11:58:41 -06:00
Travis Nielsen 3468a4a43f Merge pull request #12816 from obnoxxx/simplify-workflow
Simplify docs-check workflow by extracting functionality
2023-09-01 11:32:00 -06:00
Michael AdamandTravis Nielsen c8c97bb8a1 docs: mention make check-helm-docs and make docs in the contributing guide
Signed-off-by: Michael Adam <obnox@samba.org>
Co-authored-by: : Michael Adam <obnox@samba.org>
signed-off-by: Travis Nielsen <tnielsen@redhat.com>
Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
2023-09-01 18:17:02 +02:00
Michael Adam 04670d3f76 ci: simplify the docs-check workflow by extracting functionality
This simplifies the docs-check workflow definition by extracting  functionality
directly coded into the workflow file into new make targets 'check-docs'
and 'check-helm-docs' and replacing the code in the workflow file by the simple invocation of
new make targets. As a side effect, it makes it easily possible for a
developer to check locally if they forgot to commit any autogenerated
docs.

Signed-off-by: Michael Adam <obnox@samba.org>
2023-09-01 18:17:02 +02:00
sp98 11b8d10a5a osd: replace existing OSDs to use new store
This follow up the #12507
- fixes replacing of encrypted OSDs.
- Updates OSD status at the end of reconcile

Signed-off-by: sp98 <sapillai@redhat.com>
2023-09-01 21:07:38 +05:30