Commit Graph
13292 Commits
Author SHA1 Message Date
Travis Nielsen 4b701da916 Merge pull request #13050 from rkachach/fix_issue_13010
docs: adding specific instructions to upgrade Rook toolbox
2023-10-18 09:06:19 -06:00
Travis Nielsen affaa3c19d Merge pull request #13057 from subhamkrai/fix-make-docs
ci: debug docs-check ci
2023-10-18 09:01:30 -06:00
Redouane Kachach 0e132f45a6 docs: adding specific instructions to upgrade Rook toolbox
Closes: https://github.com/rook/rook/issues/13010

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
2023-10-18 14:33:46 +02:00
subhamkrai b186150e1c ci: fix mkdocs deprecated imports
migrate to using mkdocs-material's material.extensions.emoji.twemoji
and material.extensions.emoji.to_svg in place of the respective
materialx.emoji.twemoji and materialx.emoji.to_svg. Also, this requires
latest version of mkdocs-material.

Signed-off-by: subhamkrai <srai@redhat.com>
2023-10-18 15:54:46 +05:30
Travis Nielsen 918b544bbe Merge pull request #13046 from wb14123/log-non-node
osd: print warning message if no matching node found for osd
2023-10-17 11:32:28 -06:00
Bin WangandTravis Nielsen 4a705b46b0 osd: print warning message if no matching node found for osd
As seen in https://github.com/rook/rook/issues/1988, it's a common
mistake to configure rook nodes with names that don't match Kubernetes's
node label. This PR prints more detailed message to help debugging
problem.

Signed-off-by: Bin Wang <bin.wang@mail.binwang.me>

Add break according to review comment

Co-authored-by: Travis Nielsen <tnielsen@redhat.com>

Update log message according to review comment

Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
2023-10-16 18:37:25 -04:00
Travis Nielsen 2421391508 Merge pull request #13045 from wb14123/dashboard-doc
doc: fix document about viewing dashboard outside of cluster
2023-10-16 11:10:14 -06:00
Travis Nielsen dfdb716bbe Merge pull request #13049 from rook/dependabot/go_modules/github-dependencies-1878a07e91
build(deps): bump the github-dependencies group with 3 updates
2023-10-16 10:07:48 -06:00
dependabot[bot] dd7a7b3f61 build(deps): bump the github-dependencies group with 3 updates
Bumps the github-dependencies group with 3 updates: [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go), [github.com/ceph/go-ceph](https://github.com/ceph/go-ceph) and [github.com/google/go-cmp](https://github.com/google/go-cmp).


Updates `github.com/aws/aws-sdk-go` from 1.45.24 to 1.45.25
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.24...v1.45.25)

Updates `github.com/ceph/go-ceph` from 0.23.0 to 0.24.0
- [Release notes](https://github.com/ceph/go-ceph/releases)
- [Changelog](https://github.com/ceph/go-ceph/blob/master/docs/release-process.md)
- [Commits](https://github.com/ceph/go-ceph/compare/v0.23.0...v0.24.0)

Updates `github.com/google/go-cmp` from 0.5.9 to 0.6.0
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-16 12:22:42 +00:00
Bin Wang 25d89d2b68 doc: fix document about viewing dashboard outside of cluster
https://github.com/rook/rook/pull/11845 added dynamic label `mgr_role`.
The example yaml files are updated but this doc is missed.

I think it would be better to refer to `deploy/examples` but I find all
other places are not doing that. So keep it inlined to be consistent.

Signed-off-by: Bin Wang <bin.wang@mail.binwang.me>
2023-10-15 23:00:06 -04:00
Travis Nielsen 1dae1aa59e Merge pull request #13036 from BlaineEXE/test-notsecret
test: mark unit test secrets as not secret
2023-10-13 10:15:55 -06:00
Travis Nielsen f26f334578 Merge pull request #13032 from BlaineEXE/update-libopenstorage-secrets-lib
build: update to latest libopenstorage/secrets lib
2023-10-12 13:01:35 -06:00
Blaine Gardner 55d106b993 build: update to latest libopenstorage/secrets lib
Update to the latest version of libopenstorage/secrets which does not
have a dependency on Hashicorp Vault libraries that are licensed under
the Business Source License (BUSL-1.1). The latest version of the
library has been modified to use Vault's open source API that is
licensed under Mozilla Public License (MPL-2.0).

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2023-10-12 11:52:29 -06:00
Blaine Gardner 38c262c004 Merge pull request #13028 from Madhu-1/fix-cosi-doc
cosi: fix problem in cosi document
2023-10-12 11:42:18 -06:00
Travis Nielsen 76e4464ab3 Merge pull request #12165 from cybozu-go/osd-prevent-to-fallback-to-lvm-mode-in-osd-on-lvm-creation
osd: prevent to fallback to lvm mode in osd on lvm creation
2023-10-12 11:08:51 -06:00
Travis Nielsen 75d8a79aac Merge pull request #13041 from iamniting/scc
Enhance SCC Function to Support Multiple Namespaces
2023-10-12 10:54:37 -06:00
Travis Nielsen b1c7d46e15 Merge pull request #13037 from rook/dependabot/go_modules/golang.org/x/net-0.17.0
build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0
2023-10-12 09:34:35 -06:00
Nitin Goyal 86afa591ba security: enhance SCC Function to Support Multiple Namespaces
Currently, the function receives a single namespace string and appends
it to the users. This approach is insufficient when dealing with
multiple CephClusters running in different namespaces, as there will be
only one SCC. This update modifies the function to create users for all
specified namespaces, ensuring compatibility with multiple namespaces.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
2023-10-12 19:56:19 +05:30
Travis Nielsen e0ab3220bd Merge pull request #13039 from Madhu-1/fix-csi-mountinfo
csi: fix indentation for mountinfo
2023-10-12 07:19:19 -06:00
Madhu Rajanna a2e0b0c46b cosi: fix problem in cosi document
Fixed a wording problem and moved the
app pod to default namespace where secret
was created and also removed the init container
from the sample as the busybox doesnt
have setup-aws-credentials CLI pre-installed.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2023-10-12 09:13:12 +02:00
Madhu Rajanna 9f2b7d572d csi: fix indentation for mountinfo
Fixed the indentation for the mountinfo
or else an emptyDir is getting created
for it.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2023-10-12 09:01:26 +02:00
dependabot[bot] ed8992f978 build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 23:18:24 +00:00
Blaine Gardner 3c7499facf test: mark unit test secrets as not secret
There are 2 cases of randomly generated secrets copied into Rook's unit
test code that have been flagged by Gitleaks. Add a comment to both
cases to help the tool understand that these aren't real production
secrets -- just unit test stand-ins.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2023-10-11 16:42:29 -06:00
Satoru Takeuchi 6fee3c9ff4 osd: prevent to fallback to lvm mode in osd on lvm creation
Rook creates raw mode OSD as possible and falls back to lvm mode if necessary.
This logic doesn't work if only supports raw mode.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2023-10-11 22:36:53 +00:00
Blaine Gardner a48d5f2a80 Merge pull request #13031 from sp98/osd-script-update
osd: use bash script if restart interval is > 0
2023-10-11 11:47:27 -06:00
Travis Nielsen 2f68c6b189 Merge pull request #13033 from travisn/assimilate-dir
mon: Write the assimilate-conf config to a valid operator working directory
2023-10-11 10:07:21 -06:00
sp98 ffd69291f1 osd: use bash script if restart interval is > 0
If `FlappingRestartIntervalHours` for OSD is > 0 in the cephCluster CR,
then start OSD inside a bash script.

Signed-off-by: sp98 <sapillai@redhat.com>
2023-10-11 11:38:26 +05:30
travisn 5359c4f4f5 mon: write assimilate config to operator dir
The /tmp dir is not always available in some environments.
The only directories the operator should rely on
are the directories that are in its pod spec.
For assimilate-conf now we use the /var/lib/rook
directory to generate files since we know it is
a valid emptydir mounted into the operator pod.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-10-10 16:10:30 -06:00
Travis Nielsen 703f594f4c Merge pull request #12860 from parth-gr/mds-liveness
mds: improve the mds liveness probe calls
2023-10-10 08:21:00 -06:00
parth-gr 3d4036547c ci: check mds liveness probe unit test from the CI run
Signed-off-by: parth-gr <paarora@redhat.com>
2023-10-10 18:56:36 +05:30
Travis Nielsen 5c312c58f5 Merge pull request #13011 from Madhu-1/fix-13009
csi: add mountinfo path for cephfs daemonset
2023-10-09 10:46:48 -06:00
Travis Nielsen e03f8eaf81 Merge pull request #13020 from rook/dependabot/go_modules/github-dependencies-fb30ef1fab
build(deps): bump the github-dependencies group with 1 update
2023-10-09 09:12:39 -06:00
Travis Nielsen c1c16ee7fd Merge pull request #13021 from rook/dependabot/go_modules/golang.org/x/sync-0.4.0
build(deps): bump golang.org/x/sync from 0.3.0 to 0.4.0
2023-10-09 09:12:02 -06:00
dependabot[bot] 47bdc285fa build(deps): bump golang.org/x/sync from 0.3.0 to 0.4.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.3.0 to 0.4.0.
- [Commits](https://github.com/golang/sync/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 13:01:22 +00:00
dependabot[bot] 8fe6f5f360 build(deps): bump the github-dependencies group with 1 update
Bumps the github-dependencies group with 1 update: [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go).

- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.19...v1.45.24)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 13:01:08 +00:00
Travis Nielsen d5b100b6bc Merge pull request #13008 from rkachach/fix_issue_minikube_docs
docs: fixing typos
2023-10-06 12:28:41 -06:00
Madhu Rajanna 54ce2a96da csi: add mountinfo path for cephfs daemonset
If mountinfo path is available cephcsi will
try to recover the fuse client. adding the
support for the same in Rook.

fixes: #13009

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2023-10-06 11:16:23 +02:00
Redouane Kachach e32ece275c docs: fixing typos
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
2023-10-05 20:17:15 +02:00
Blaine Gardner 29fa7771f8 Merge pull request #12998 from travisn/exporter-logging
exporter: Change verbose info to debug logs
2023-10-05 11:28:45 -06:00
Travis Nielsen 43aff900fb Merge pull request #13002 from Juneezee/refactor/redundant-len-check
core: remove redundant `len` check
2023-10-05 11:07:54 -06:00
Travis Nielsen 38c4bd2369 Merge pull request #13001 from parth-gr/external-healtchker
external: fix client.healthchecker user keyring return
2023-10-05 09:29:34 -06:00
parth-gr 98125c78b9 ci: add a test to check the script result in idempotent output
Signed-off-by: parth-gr <paarora@redhat.com>
2023-10-05 19:48:38 +05:30
Travis Nielsen a8cd8c45e4 Merge pull request #12984 from rkachach/fix_issue_enhancing_minikube_docs
docs: improving minikube setup documentation
2023-10-05 07:20:02 -06:00
Eng Zer Jun 77bff6a07c core: remove redundant len check
From the Go specification [1]:

  "1. For a nil slice, the number of iterations is 0."
  "3. If the map is nil, the number of iterations is 0."

`len` returns 0 if the slice or map is nil [2]. Therefore, checking
`len(v) > 0` before a loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range
[2]: https://pkg.go.dev/builtin#len

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-05 20:16:46 +08:00
parth-gr bf5252e139 external: fix client healhchecker user keyring return
if the client.health checker already exited it was
returning extra information, It was making the structure and
return JSON non idempotent output, So fixed
that problem by returning a single value

Signed-off-by: parth-gr <paarora@redhat.com>
2023-10-05 16:04:13 +05:30
Mahesh Shetty 518537113b operator: add tolerations for rook-ceph operator deployment
This addresses #12660. As discussed in the issue when zone failure
happens and if the operator running in that zone, then it takes the
default toleration of 300 seconds. We want to override this default
toleration seconds to 5 seconds so that operator gets redeployed
immediately

Signed-off-by: Mahesh Shetty <mashetty@redhat.com>
2023-10-05 15:52:47 +05:30
Blaine Gardner 04c9f98954 Merge pull request #12968 from BlaineEXE/multus-validation-allow-node-types
multus: allow node profiles in validation test
2023-10-04 15:42:51 -06:00
Blaine Gardner 0c721e05d5 multus: allow node profiles in validation test
Add the ability to specify node profiles in the multus validation test.

This addresses a few points of early feedback on the validation tool.
Statements below critique the tool's behavior before this patch.
1. The tool assumes all daemons are on public and cluster network, which
   means users who have a significantly smaller cluster net (a
   design choice) cannot run a single test to determine if Rook is
   likely to install correctly.
2. The tool does not have placement options to select only a subset of
   Kubernetes nodes to run validation on.
3. Users of multus seem to have a dedicated pool of storage nodes more
   often than the average Rook install. This makes sense for security-
   and perforance-minded users. The tool cannot run a single test to
   verify storage-only and general-workload nodes at one time.

These points are addressed by allowing users to specify configurations
for different "NodeTypes."

Each NodeType config has options for selecting the number of OSDs as
well as the number of other (non-OSD) Ceph daemons. This limits the
unnecessary exhaustion of cluster network addresses from critique 1.

Each NodeType config has its own placement (critique 2).

Users can define as many NodeTypes as needed to test the network for
their planned CephCluster. Specifically, this allows the tool to test
storage-only nodes and generalized-workload nodes at the same time. An
arbitrary number of NodeTypes are allowed to support even more highly
specialized cluster setups, such as multiple tiers of storage nodes
where some storage-only nodes may run more OSDs than others.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2023-10-04 15:26:35 -06:00
Blaine Gardner 7d7d1ba509 Merge pull request #12997 from BlaineEXE/gh-action-golang-cache
ci: make use of caching in actions/setup-go
2023-10-04 15:25:33 -06:00
Blaine Gardner bf9e5dc1f5 ci: make use of caching in actions/setup-go
The GH action to set up Golang (actions/setup-go) has cache
functionality. For cache hits, this saves ~2 minutes for each run. In
order for the cache to hit, caching must not be disabled, and the code
must be checked out before setting up Golang.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2023-10-04 13:41:56 -06:00