Commit Graph
7368 Commits
Author SHA1 Message Date
Humble Chirammal dff0513750 ceph: use serviceAccountName as the key in ceph csi templates
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2021-08-17 09:40:12 +05:30
Blaine Gardner f907e09b8e Merge pull request #8540 from BlaineEXE/fix-golang-related-cves
build: use latest golang v1.16.7 (Go CVE-2021-34558)
2021-08-16 13:04:29 -06:00
Blaine Gardner e51c078050 Merge pull request #8541 from BlaineEXE/print-go-version-on-build
build: print go version when building
2021-08-16 12:41:50 -06:00
Blaine Gardner a83745cbcd build: print go version when building
Print the Go version when running any Go build target. This can be
helpful in making sure that we are building with the Go version we want
and expect.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-08-16 12:16:07 -06:00
Blaine Gardner 1592c9b9da build: use latest golang v1.16.7 (Go CVE-2021-34558)
Rook CephObjectStore S3 connections may be affected by CVE-2021-34558.
This is fixed in Go v1.16.6, so we update to the latest Go version
available to ensure this is fixed in future builds.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-08-16 11:43:44 -06:00
Travis Nielsen e2ea7e45e3 Merge pull request #8532 from travisn/reset-release-notes
docs: Reset the release notes for v1.8
2021-08-12 13:19:01 -06:00
Travis Nielsen 4dc15893f4 docs: reset the release notes for v1.8
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-08-12 12:19:48 -06:00
Travis Nielsen 49d645c863 Merge pull request #8528 from subhamkrai/validate-actor
ci: validate user before creating tag
2021-08-12 10:48:23 -06:00
subhamkrai 4233bb681e ci: validate user before creating tag
we need to validate create tag action
so that only authorized users can trigger
that action.

[skip-ci]

Signed-off-by: subhamkrai <srai@redhat.com>
2021-08-12 20:56:31 +05:30
Travis Nielsen 3d68f7e58a Merge pull request #8526 from subhamkrai/update-create-tag
ci: remove brackets when checking repo
2021-08-11 23:27:09 -06:00
subhamkrai 14d0c402c8 ci: remove brackets when checking repo
having brackets around if is showing
errors. this commit removes the brackets.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-08-12 10:52:19 +05:30
Travis Nielsen 5713e622da Merge pull request #7883 from alimaredia/rgw-multisite-integration-testing
ceph: RGW multisite integration testing
2021-08-11 14:29:34 -06:00
Ali Maredia 7a804ac27e ceph: tweak to types.go and additions after make crds
This commit will be squashed.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2021-08-11 13:25:44 -04:00
Ali Maredia 7b8d3fd27b ceph: change required pattern for pull realm endpoint
Ensure that the endpoint for the pull realm spec
starts with "http" or "https". Also update
object-multisite-pull-realm(-test).yaml with
updated comments.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2021-08-11 13:25:44 -04:00
Ali Maredia b6404ae2ab ceph: rgw multisite intgration testing
This test:
- starts up 2 minikube clusters
- create 2 ceph clusters
- creates object multisite CRDs on each cluster and
syncs the clusters
- writes an object to cluster 1 and reads it on
cluster 2

This commit also adds new functions in
github-action-helper.sh that aid in the multisite
test and the multi cluster mirroring test.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2021-08-11 13:25:43 -04:00
Travis Nielsen 5f64f5eb15 Merge pull request #8513 from subhamkrai/reduce-tmate-time
ci: reduce tmate session time
2021-08-11 08:17:41 -06:00
Travis Nielsen 993b82674f Merge pull request #8520 from travisn/no-arbiter-failover
ceph: Refuse to failover the arbiter mon on stretch clusters
2021-08-11 07:16:25 -06:00
Travis Nielsen 1a1fb81ec9 Merge pull request #8492 from degorenko/rgw-ca-bundle
ceph: add ability to specify ca bundle for rgw
2021-08-11 07:15:28 -06:00
subhamkrai ea4a705b1a ci: reduce tmate session time
reduce tmate session timeout to 60min for carnary test
and 30min when push/tag event.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-08-11 15:53:01 +05:30
Travis Nielsen f9f322683a ceph: refuse to failover the arbiter mon on stretch clusters
Stretch clusters in Ceph do not yet support failing over the arbiter
mon, so we now disable the arbiter mon from failing over. Soon
Ceph will support the arbiter mon failover and we will reenable
this failover feature.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-08-10 16:26:47 -06:00
Denis Egorenko fb04908315 ceph: add ability to specify ca bundle for rgw
Specify ca Bundle for RGW spec and mount inside pods.

Related-Issue: https://github.com/rook/rook/issues/8490
Signed-off-by: Denis Egorenko <degorenko@mirantis.com>
2021-08-10 23:18:26 +04:00
Travis Nielsen 1a8549821a Merge pull request #8516 from travisn/new-reviewers
doc: Add Santosh and Subham as reviewers
2021-08-10 11:49:37 -06:00
Travis Nielsen 2c68e9718d Merge pull request #8413 from parth-gr/ci-smokesuite
ci: fix for CephObjectStores flakiness
2021-08-10 11:48:58 -06:00
Travis Nielsen da7b6eda17 Merge pull request #8517 from parth-gr/integration-test-smoke-suite
ci: CephSmokeSuite test run on kubernetes 1.21
2021-08-10 11:48:30 -06:00
parth-gr cad1c5320a ci: CephSmokeSuite test run on kubernetes 1.21
Kubernetes 1.22 version didn't support
certificates.k8s.io v1beta1 version
reverting the k8s 1.22 version to 1.21
till the certificates.k8s.io #8364 Pr
didn't get completed
so the CI can run successfully

Signed-off-by: parth-gr <paarora@redhat.com>
2021-08-10 21:52:28 +05:30
Travis Nielsen df6b897414 docs: add Santosh and Subham as reviewers
Thanks to the contributions of Satosh and Subham for the past
year or two! They have been contributing significantly to the project
and their reviews are valued so would like to propose they be
added to the official project reviewers group for the Ceph
operator.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-08-10 08:40:51 -06:00
parth-gr b28455245d ci: fix for CephObjectStores flakiness
Integration test CephSmokeSuite fails frequently
A quick fix for it by reordering storeName,
running tlsteststore before teststore

Closes: https://github.com/rook/rook/issues/8309
Signed-off-by: parth-gr <paarora@redhat.com>
2021-08-09 14:08:32 +05:30
Sébastien Han e4ac38e555 Merge pull request #8482 from leseb/restrict-manager-cache
ceph: move scheme initialization to the same place
2021-08-06 17:45:30 +02:00
Travis Nielsen 529ec0ff7e Merge pull request #8461 from subhamkrai/automate-release-action
ci: create tag and print release notes
2021-08-06 09:41:11 -06:00
Travis Nielsen 91b7741ebb Merge pull request #8489 from leseb/rm-unused-flags
ceph: Remove unused mon timeout cli flags
2021-08-06 09:01:16 -06:00
Travis Nielsen d001ddfda3 Merge pull request #8487 from leseb/kube-1.22
ci: test on kubernetes 1.22
2021-08-06 08:56:26 -06:00
subhamkrai 8572fdb58b ci: create tag and print release notes
since we moved to github action for the release,
we maunally have to push the tag to build image.

with this change,
first, this action will set some
environment variable which will be consume by
the script to print release notes.
then,
it will ask for 1 input from
github UI(in Action tab)
tag: where we'll give the tag for the release

after creating tag it will run the script and
print release notes.

**NOTE** please verify the environment var
and release notes after the successful action run.

.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-08-06 16:00:25 +05:30
Sébastien Han 2d55e69416 ceph: move scheme initialization to the same place
Let's initialize the schemes in a single place instead of doing it
when each controller initializes.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-08-06 11:33:10 +02:00
Sébastien Han 07d14a93a2 ceph: remove cli unused flags
I don't know why these flags are there but it's not like we run the
operator with them and with a different value.
So removing for clarity.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-08-06 11:05:20 +02:00
Sébastien Han 1fc616587f Merge pull request #8504 from travisn/helm-doc-clarify
docs: Clarify that helm charts are optional
2021-08-06 10:03:47 +02:00
Sébastien Han d7ce570644 Merge pull request #8495 from leseb/fix-retry
ci: break if no errors on build
2021-08-06 08:41:16 +02:00
Travis Nielsen 2d4d4d53c4 docs: clarify that helm charts are optional
With the v1.7 release and the Cluster helm chart, this
clarifies that the helm charts are still completely
optional, but are intended only to simplify deployment
for those who choose to use them.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-08-05 16:53:40 -06:00
Satoru Takeuchi a24ccfc26b Merge pull request #8491 from cybozu-go/ceph-fix-example-of-cluster-on-local-pvc
ceph: fix example of cluster on local pvc
2021-08-06 05:58:29 +09:00
Sébastien Han d9bc338e2b Merge pull request #8361 from subhamkrai/release-note-script.sh
ceph: Get PR title and user info for release notes
2021-08-05 18:35:42 +02:00
Travis Nielsen bffd75275e Merge pull request #8473 from subhamkrai/update-go-fmt
build: update go fmt version
2021-08-05 10:33:47 -06:00
Sébastien Han 6582fdce97 ci: break if no errors on build
No wonder why the build has been taking longer... We were building 3
times.
We just got at least 2 minutes back of build time thanks to this fix.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-08-05 15:40:48 +02:00
Satoru Takeuchi cf106c8e56 ceph: fix example of cluster on local pvc
`cluster-on-local-pvc.yaml` doesn't work due to missing topologyKey.
In addition, it's better to add the example of `topologySpreadConstraints`
for K8s >= 1.18 users.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-08-05 12:29:40 +00:00
Sébastien Han bb4e572d2f Merge pull request #8465 from parth-gr/import-rbd-mirror
ceph: use mktemp file in ImportRBDMirrorBootstrapPeer
2021-08-05 09:44:43 +02:00
Sébastien Han 796f6d12c8 ci: test on kubernetes 1.22
1.22 just got released. We now bump our tests one version higher too.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-08-05 09:39:05 +02:00
Sébastien Han df432fd822 Merge pull request #8475 from leseb/rm-net-type
ceph: remove old network types
2021-08-04 18:45:45 +02:00
subhamkraiandTravis Nielsen 12de60e4a0 ceph: get pr tile and user for release note
this commit include script which will help
the person who is creating release note
to get all the pr number with title and owner
in required order for the release notes. In the
past, it was manual step.

Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: subhamkrai <srai@redhat.com>
2021-08-04 20:19:43 +05:30
subhamkrai 7161afbb70 build: update go fmt version
till now we were using older go fmt version(1.11).
From now, go fmt version will be same as golang version

Signed-off-by: subhamkrai <srai@redhat.com>
2021-08-04 20:17:02 +05:30
parth-gr 48918c7cf0 ceph: use mktemp file in ImportRBDMirrorBootstrapPeer
Do not point to a made-up file in /tmp
Use ioutil.TempFile() for creating a token file

Closes: https://github.com/rook/rook/issues/8446
Signed-off-by: parth-gr <paarora@redhat.com>
2021-08-04 19:22:34 +05:30
Travis Nielsen cc16b60f5f Merge pull request #8381 from subhamkrai/osd-placement-merge
ceph: add an option to enable/disable merge all placement
2021-08-04 07:23:33 -06:00
Sébastien Han 1ddf28144a Merge pull request #8459 from humblec/cephfs-fsgroup
ceph: set default FsGroupChangePolicy value to 'None'
2021-08-04 11:03:41 +02:00