Commit Graph
13292 Commits
Author SHA1 Message Date
Humble Chirammal 750faa5747 mon: update node labels as per new key value
From kube v1.24 onwards, Kubeadm applies a "node-role" label to its
control plane Nodes.Currently this label key is node-role.kubernetes.io/master
and it will be renamed to node-role.kubernetes.io/control-plane. Kubeadm
also uses the same "node-role" as key for a taint it applies on control
plane Nodes. This taint key should also be renamed to
"node-role.kubernetes.io/control-plane".

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-06-10 08:12:04 +05:30
Travis Nielsen ac9734d532 Merge pull request #10424 from Madhu-1/cephcsi-v3.6.2
csi: update cephcsi from 3.6.1 to 3.6.2
2022-06-09 07:49:01 -06:00
Madhu Rajanna 3e70d278cb csi: update cephcsi from 3.6.1 to 3.6.2
As we have new cephcsi patch release i.e v3.6.2
updating Rook dependency to the same.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-06-09 14:52:51 +05:30
Satoru Takeuchi 831cdf3b2b Merge pull request #10333 from cybozu-go/test-add-canary-test-for-encrypted-osd
test: Fix encrypted OSDs on latest Ceph releases and add canary test for encrypted osd in host-based cluster
2022-06-09 08:17:02 +09:00
Satoru Takeuchi 6b0f539f61 test: add canary test for encrypted osd in host-based clusters
It's better to test the creation of encrypted devices in host-based clusters.
This test will reduce the potential risks of regression when modifying
the osd-creation code.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-06-08 22:34:01 +00:00
Satoru Takeuchi 66f745f11f osd: bypass ceph-conf validation failure in osd activation
"ceph.conf" must have the "fsid" global configuration to activate encrypted OSDs
after the following Ceph's PR is merged.

https://github.com/ceph/ceph/commit/25655e5a8829e001adf467511a6bde8142b0a575

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-06-08 20:41:00 +00:00
Travis Nielsen 786b326654 Merge pull request #10341 from travisn/cluster-telemetry
core: Report basic cluster and version telemetry
2022-06-08 10:49:01 -06:00
Travis Nielsen e9c8226c6e Merge pull request #10278 from parth-gr/external-sc
csi: make storage class updated with csi-users in external cluster
2022-06-08 07:48:08 -06:00
parth-gr b7c165b411 csi: make storage class updated with csi-users in external cluster
For using restricted auth users we need to update the
restricted users in the Storage class, so updating
it in the json output for external cluster

Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-08 14:49:46 +05:30
parth-gr dcba689129 csi: update restricted auth flag
remove the restriction of per rados namespace as
there can be multiple namespaces and the csi-users
can only have 1 type in a storage class

Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-08 14:21:49 +05:30
Travis Nielsen fe989ad773 core: report basic cluster and version telemetry
For the ceph telemetry report the csi version, k8s version,
and metrics from the desired state in the cephcluster CR such
as mon count, stretch cluster, number of device sets, and
so on.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-07 12:13:51 -06:00
Travis Nielsen 1acc0621af Merge pull request #10342 from Madhu-1/fix-csi-pod-network
ceph: Add holder pod if csi host networking is disabled
2022-06-07 10:16:51 -06:00
Travis Nielsen 6200195275 Merge pull request #10376 from subhamkrai/webhokk-e2e
test: add e2e test for webhook validation
2022-06-07 09:40:59 -06:00
Travis Nielsen 5d17a4089e Merge pull request #10399 from subhamkrai/format-python-files
external: format python files using tool black
2022-06-07 09:35:35 -06:00
Travis Nielsen 10efd34fd5 Merge pull request #10306 from Madhu-1/update-snap-v6
csi: update sidecar to latest release
2022-06-07 08:41:13 -06:00
Madhu Rajanna 767cfcbf09 csi: update sidecar to latest release
updating node-driver-registrar to v2.5.1 release
, nfsplugin to 4.0.0 and csi-snapshotter to v6.0.1

Note:- with snapshotter v6.0.1 v1beta1 snapshot CRD
is not supported. If you want betav1 snapshot support
please switch to v5.x.x snapshotter.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-06-07 19:27:13 +05:30
Travis Nielsen d3e7a17db9 Merge pull request #10149 from parth-gr/ceph-quincy
build: Update examples and base image to use Ceph v17.2.0 Quincy version
2022-06-07 07:45:08 -06:00
Alexander Trost 73a77ef480 Merge pull request #10404 from subhamkrai/python-black-format 2022-06-07 12:20:45 +02:00
subhamkrai 4d92c2770a test: add e2e test for webhook validation
adding e2e test for webhook validation to test invalid
cluster, pool,objectStore, radosNamespace, subVolumeGroup CR
that will each be rejected by their admission controller.

Closes: https://github.com/rook/rook/issues/10024
Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-07 14:01:02 +05:30
subhamkrai d5bac59a74 ci: use python formatting tool black
formatting other python files using black

Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-07 13:49:14 +05:30
Madhu Rajanna 276005cfd5 csi: add holder pod if csi hostnetworking is disabled
If csi is configured not the use the
hostnetworking, deploy the holder
pod for executing the commands with nsenter.
The implementation is same as multus.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-06-07 13:09:12 +05:30
parth-gr 38dcf09843 build: update examples and base image to use ceph v17.2.0 quincy version
The operator base image has been changed to
ceph v17.2.0 quincy release version `quay.io/ceph/ceph:v17.2.0`

Closes: https://github.com/rook/rook/issues/10140
Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-07 12:55:47 +05:30
Travis Nielsen 7957de80cf Merge pull request #10116 from Madhu-1/update-sidecar-repo
csi: Change sidecar images repo to registry.k8s.io
2022-06-06 12:47:13 -06:00
Travis Nielsen 9f39dec7a9 Merge pull request #10385 from subhamkrai/better-file-name
ci: more specific ci config folder names
2022-06-06 09:57:43 -06:00
subhamkrai 54482015ec ci: more specific ci config folder names
Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-06 20:23:34 +05:30
subhamkrai 00f21c0866 external: format python files using tool black
`black` is python formatter tool which
automatically formats python files without
manual changing. just run `black <python-file>`
and done.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-06 20:01:27 +05:30
Sébastien Han bb80aba93f Merge pull request #10373 from leseb/surface-errors-better
osd: do not hide the error
2022-06-06 09:30:44 +02:00
Sébastien Han 4e10d05558 Merge pull request #10380 from leseb/csi-soft-reconcile
csi: do not block the reconcile if all clusters are not ready
2022-06-06 09:24:32 +02:00
Madhu Rajanna 15da42cf0c csi: change sidecar images repo to new link
Change sidecar images repo to registry.k8s.io
which is a redirect to k8s.gcr.io.

Ref: https://github.com/kubernetes/k8s.io/wiki/
New-Registry-url-for-Kubernetes-(registry.k8s.io)

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-06-06 11:02:38 +05:30
Satoru Takeuchi f744087342 Merge pull request #10389 from travisn/obsolete-probe
core: Remove obsolete probe helper
2022-06-06 11:46:22 +09:00
Travis Nielsen 2f88745673 core: remove obsolete probe helper
The liveness probe is applied by a more general helper
rather than the specific helpers for each daemon.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-03 13:27:39 -06:00
Travis Nielsen b5ebb2ed97 Merge pull request #10383 from xu-cheng/topology
osd: ignore the region label when it is the same as zone label in topology
2022-06-03 11:41:53 -06:00
Cheng XU 9b03d0759b osd: ignore the region label when it is the same as zone label in topology
Ceph requires all topology label being unique. And it is quite common to
have topology.kubernetes.io/region and topology.kubernetes.io/zone being set
to the same value. In this case, let's just ignore the region label.

See https://github.com/rook/rook/issues/9419#issuecomment-1144311818

Signed-off-by: Cheng XU <git@xuc.me>
2022-06-03 10:13:22 -07:00
Sébastien Han 219e017564 osd: do not hide the error
Return the error instead of hiding it, err could be non-nil for a lot of
reasons, eg: a canceled context or a non-existing object.

Signed-off-by: Sébastien Han <seb@redhat.com>
2022-06-03 11:00:10 +02:00
Sébastien Han 95b2e60679 csi: do not block the reconcile if all clusters are not ready
If some clusters don't have their monitors up and running, we don't have
a clusterInfo (internal detail struct). We don't want to block the csi
controller reconcile if all the clusters are not ready. So let's proceed
with the elements that are ready and reconcile again to see if others
have made progress.

Signed-off-by: Sébastien Han <seb@redhat.com>
2022-06-03 10:59:31 +02:00
Sébastien Han dc525d2121 Merge pull request #10386 from subhamkrai/update-cni
ci: add new cni flag in minikube start
2022-06-03 08:50:19 +02:00
Sébastien Han eb08db40e9 Merge pull request #10350 from subhamkrai/support-py2
external-script: remove signature import
2022-06-03 08:49:58 +02:00
subhamkrai 6c3f3438a2 ci: add new cni flag in minikube start
adding cni flag in minikube start command
since it is required for multus ci.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-03 10:48:19 +05:30
Satoru Takeuchi 2ba0fe2c4d Merge pull request #10382 from travisn/canary-tests
build: Flannel flag to minikube is causing test failures
2022-06-03 08:28:57 +09:00
Travis Nielsen 7a938090a1 build: flannel flag to minikube is causing test failures
The minikube node is staying in NotReady state and preventing
the operator from even starting in the canary and other suites
that use the setup-cluster-resources action.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-02 15:33:57 -06:00
Travis Nielsen 134b41a8d6 Merge pull request #10309 from parth-gr/external-fqdn1
rgw: make fqdn rgw converted to ip everywhere
2022-06-02 09:08:38 -06:00
Travis Nielsen c8013aac3a Merge pull request #10362 from travisn/pool-deletion
pool: Delete ceph pool when blockpool cr is deleted
2022-06-01 12:32:11 -06:00
Travis Nielsen e3ca5bfbcc pool: delete ceph pool when blockpool cr is deleted
During deletion of a CephBlockPool CR, the underlying ceph
pool was not being deleted. During the deletion sequence
this is due to the spec being refreshed upon a call to
check for dependents in ReportDeletionNotBlockedDueToDependents().
The pool name was then coming up blank during the deletion
request and rook of course then wasn't finding the pool
to delete.

Now Rook properly sets the pool name in the named spec
every time it is converted internally from a CephBlockPool
type to a NamedPoolSpec.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-01 10:20:57 -06:00
Travis Nielsen 832cebc4c1 Merge pull request #10349 from subhamkrai/doc-latest-change
docs: update doc path according to new doc change
2022-06-01 09:25:44 -06:00
subhamkrai 49a35a9311 docs: update doc path according to new doc change
we need to update the referred doc path
according to our latest doc change.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-01 20:17:44 +05:30
Travis Nielsen 23eaa62f72 Merge pull request #10345 from caffeinism/patch-1
docs: add prepareosd to placement
2022-06-01 08:30:01 -06:00
Travis Nielsen dd3547ffa9 Merge pull request #10351 from subhamkrai/add-tag
bot: add `external` as commitlint tags
2022-06-01 08:22:34 -06:00
Kim Minjong 8f713e22dc docs: add prepareosd to placement
Add prepareosd entry to cluster.yaml docs.
Add prepareosd as an example of placement (commented out)

Signed-off-by: Kim Minjong <make.dirty.code@gmail.com>
2022-06-01 21:13:03 +09:00
subhamkrai e80b57135b bot: add external as commitlint tags
Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-01 08:56:52 +05:30
Travis Nielsen f7930455c4 Merge pull request #10343 from Madhu-1/stop-action-when-pr-updated
ci: stop inprogress jobs when pr is updated
2022-05-31 09:16:10 -06:00