Commit Graph
10111 Commits
Author SHA1 Message Date
subhamkrai 1df9dff8ce ci: update the release test timeout to 40m
recentally, upgrade tests are getting
longer than 30m to pass since reef upgrade.
So, increasing the timeout to 40m.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 07bb18feba)
2023-08-03 13:38:01 +00:00
Travis Nielsen 88a92ff77a Merge pull request #12648 from rook/mergify/bp/release-1.12/pr-12608
ci: skip mgr pod restart count upgrade 1.22.x suite (backport #12608)
2023-08-02 11:35:25 -06:00
Travis Nielsen 4e2f427df8 Merge pull request #12649 from rook/mergify/bp/release-1.12/pr-12634
ci:  fix all the canary test (backport #12634)
2023-08-02 11:35:12 -06:00
subhamkrai 1661f84179 multus: use right interface in ci validation
runner version `2.306` had the interface `net`
but somehow version `2.307.1` which is latest
doesn't have `net` it has `eth0*` so using that.

```
cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
 tunl0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth0:     446       5    0    0    0     0          0         0        0       0    0    0    0     0       0          0
sh-4.4# grep etho /proc/net/dev
sh-4.4# grep eth0 /proc/net/dev
  eth0:     446       5    0    0    0     0          0         0        0       0    0    0    0     0       0          0
sh-4.4# exit
```

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 4502ea8ee1)
2023-08-02 16:16:17 +00:00
subhamkrai fa78cd72ba ci: same ceph version in toolbox and cluster-test
Let's use same ceph version(latest Reef) in both
cluster-test and toolbox.yaml so that we don't need
to pull image twice. Alos, github action helper script
was calling `deploy_manifest_with_local_build` which
is required for operator.yaml and not for toolbox.yaml.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit b9c41fd548)
2023-08-02 16:16:16 +00:00
subhamkrai 6a3cad9a2d ci: add github action to free space in runner
adding github action to free space in runner
which will help us avoiding mon low space error

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 334a632ecd)
2023-08-02 16:16:16 +00:00
subhamkrai d55f8c853a ci: increase upgrade test timeout to 40m
with reef, we are now upgrading 2 ceph versions which
takes time to complete the ci.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit e139fd20be)
2023-08-02 16:03:46 +00:00
subhamkrai d29095421b ci: skip mgr pod restart count upgrade 1.22.x suite
for now, let's skip the mgr pod restart count
for upgrade suite 1.22.x to get the CI green
and so that we don't skip any other error in name
of mgr restart count.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 1bd4ab9d81)
2023-08-02 16:03:46 +00:00
Travis Nielsen 8ce4eea569 Merge pull request #12642 from travisn/release-1.12.1
build: Update release version to v1.12.1
v1.12.1
2023-08-01 15:10:09 -06:00
travisn dd0401e711 build: update release version to v1.12.1
For the patch release update the examples and docs

Signed-off-by: travisn <tnielsen@redhat.com>
2023-08-01 14:33:24 -06:00
Travis Nielsen 4ae7200669 Merge pull request #12641 from rook/mergify/bp/release-1.12/pr-12640
ci: Run object suite in master and release branches (backport #12640)
2023-08-01 12:25:04 -06:00
travisn 545568aa04 ci: run object suite in master and release branches
The object suite was being skipped in master and release
branches. Since the object suite was only running in PRs
it was not noticed if there were any issues in the master
branch or release branches. Now we run it in these branches
in addition to the PRs.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 8fd46a46d3)
2023-08-01 18:21:03 +00:00
Travis Nielsen 40b7568038 Merge pull request #12635 from rook/mergify/bp/release-1.12/pr-12615
docs: add note in upgrade guide about cephfs driver's breaking change (backport #12615)
2023-08-01 08:32:21 -06:00
Rakshith R 3d7b88f026 docs: add note in upgrade guide about cephfs driver's breaking change
CephCSI CephFS introduced a breaking change in v3.9.0.
This commit adds a note in upgrade guide regarding the same.

refer: https://github.com/ceph/ceph-csi/blob/v3.9.0/docs/ \
       ceph-csi-upgrade.md/#upgrading-cephfs

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit a2113684e4)
2023-08-01 14:16:48 +00:00
Travis Nielsen a63d8a2278 Merge pull request #12632 from rook/mergify/bp/release-1.12/pr-12631
tests: Multi cluster suite toolbox default version (backport #12631)
2023-07-31 18:32:09 -06:00
travisn e326dc7c07 tests: multi cluster suite toolbox version
The toolbox image tag was always being set from #12625
even when the image was not set in the test. If the image
is not set, skip replacing the image name to use the default
test version.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit c17724b536)
2023-07-31 23:11:48 +00:00
Travis Nielsen dd55645abb Merge pull request #12630 from rook/mergify/bp/release-1.12/pr-12625
tests: Toolbox to use same ceph image as the test (backport #12625)
2023-07-31 17:11:27 -06:00
Travis Nielsen 58b0f5f294 Merge pull request #12626 from rook/mergify/bp/release-1.12/pr-12501
osd: use cp -a command for copying init-containers binary (backport #12501)
2023-07-31 15:07:15 -06:00
travisn 31cc2c554e tests: toolbox uses same ceph image as the test
The test is currently only using the ceph version that is
included with toolbox.yaml, which may be different
from the version of the ceph cluster being tested.
Now the version will be replaced to match the desired
ceph test version.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 600068ea21)
2023-07-31 21:07:10 +00:00
travisn dd79c1f78d ci: allow commit prefixes for doc and tests
Allow for doc(s) and test(s) commit prefixes to be either
singular or plural. This is always a confusing point when
adding the commit prefix, so let's just allow both.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 3d7924dc22)
2023-07-31 21:07:09 +00:00
Travis Nielsen fdbf4a4ccd Merge pull request #12628 from rook/mergify/bp/release-1.12/pr-12534
external: added an optional flag for enabling v2 mon port (backport #12534)
2023-07-31 15:07:07 -06:00
Travis Nielsen d10988da2a Merge pull request #12629 from rook/mergify/bp/release-1.12/pr-12537
external: set RequireMsgr2 if v2 port is configured (backport #12537)
2023-07-31 15:06:55 -06:00
parth-gr d237dff985 external: set RequireMsgr2 if v2 port is configured
Currently if we use the msgr2 port,
cs-cluster-config-json looks like
"monitors":["192.59.109.11:3300","192.59.109.13:6789","192.59.109.12:6789"]

The first monitor is passed by python script and rest are
Discovered by rook operator, so if the first mon is using the v2 port
lets update the other mons also by setting up the RequireMsgr2 flag

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 2c4897f88c)
2023-07-31 19:21:43 +00:00
Nikhil-Ladha e2c92d16ce external: added an optional flag for enabling v2 mon port
Added a new flag `--v2-port-enable` to enable the v2 mon port.

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
(cherry picked from commit 5daddbe379)
2023-07-31 19:20:56 +00:00
Sheetal Pamecha 7a19548091 osd: use cp -a command for copying init-containers
remove copy-binaries cmd and related code

Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
(cherry picked from commit d86fa2abbc)
2023-07-31 18:05:28 +00:00
Blaine Gardner d1dccf5b19 Merge pull request #12620 from rook/mergify/bp/release-1.12/pr-12611
multus: revise kube config/client loading (backport #12611)
2023-07-28 12:10:25 -06:00
Blaine Gardner 15f3146cab multus: revise kube config/client loading
The previous client loader routine assumed KUBECONFIG would be set in
CLI environments. Instead, now take this approach:

1. If KUBECONFIG is set, that is the de-facto override that informs the
   tool it is being run in a CLI environment.
2. Otherwise, try creating a client from the default kube config file.
3. If that fails, assume the tool is running in a Kubernetes Pod.

This will continue supporting dev/test environments so that building the
rook container is not necessary for development. It also allows support
for highly opinionated environments (like deployed by OpenShift CSVs)
where it's not possible to install the Rook operator without also
deploying a CephCluster.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit cc9514ad6c)
2023-07-28 17:26:24 +00:00
Blaine Gardner 15f69f7347 Merge pull request #12619 from rook/mergify/bp/release-1.12/pr-12617
nfs: fix null pointer deref in generateSssdSidecarResources() (backport #12617)
2023-07-28 09:47:28 -06:00
Sachin Prabhu 22b4e5d7ea nfs: fix null pointer deref in generateSssdSidecarResources()
0a151e913 results in a bug which causes null pointer dereference when
Kerberos is not setup. This causes a failure in Unit test
TestReconcileCephNFS_addSecurityConfigsToPod

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
(cherry picked from commit 6cf4627ccd)
2023-07-28 13:57:55 +00:00
Travis Nielsen fe35e61aed Merge pull request #12554 from rook/mergify/bp/release-1.12/pr-12508
external: create ceph cluster namespace (backport #12508)
2023-07-27 12:47:29 -06:00
Travis Nielsen 3660846467 Merge pull request #12586 from rook/mergify/bp/release-1.12/pr-12572
build(deps): bump wagoid/commitlint-github-action from 5.4.1 to 5.4.3 (backport #12572)
2023-07-27 12:47:03 -06:00
Travis Nielsen b3c3cfe389 Merge pull request #12587 from rook/mergify/bp/release-1.12/pr-12562
object: update ceph cosi driver image to v0.1.1 (backport #12562)
2023-07-27 12:46:48 -06:00
Blaine Gardner d81e8e6a12 Merge pull request #12590 from rook/mergify/bp/release-1.12/pr-12560
object: do not add objectstore endpoint to zone when sync is disabled (backport #12560)
2023-07-27 11:54:27 -06:00
Blaine Gardner 4bc21d2267 Merge pull request #12606 from rook/mergify/bp/release-1.12/pr-12517
nfs: mount krb5.conf and krb5.keytab in the sssd container (backport #12517)
2023-07-27 09:06:32 -06:00
Sachin Prabhu b63ac550d2 nfs: mount krb5.conf and krb5.keytab in the sssd container
This will enable us to use GSSAPI in sssd for authentication when
connecting to the remote LDAP server.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
(cherry picked from commit 0a151e913d)
2023-07-26 22:53:11 +00:00
Blaine Gardner d81d21367b Merge pull request #12588 from rook/mergify/bp/release-1.12/pr-12575
core: force delete rook-ceph-exporter pod (backport #12575)
2023-07-26 16:45:22 -06:00
Blaine Gardner 7d75997d93 Merge pull request #12604 from rook/mergify/bp/release-1.12/pr-12563
rbd: node fencing, skip pv when pv is not backed by csi (backport #12563)
2023-07-26 16:44:56 -06:00
Alexander Trost a6bab103c3 Merge pull request #12601 from rook/mergify/bp/release-1.12/pr-12564 2023-07-26 22:31:51 +02:00
subhamkrai 98f51c2514 core: node fencing, skip pv when pv is not backed by csi
when node fencing is triggered and a negative case where
one deployment pod consuming pv not provisioned by csi
and another deployment pod with rbd rwo are on the same
node and node fencing is triggered.

In this case rook operator panics since it is trigger to get
field `pv.Spec.CSI.Driver` which will be nil.

Also, skip static pv as there is no `imageName` in the spec
rbd status command will fail.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 72386eb1d0)
2023-07-26 16:45:01 +00:00
Blaine Gardner 910eca098d Merge pull request #12589 from rook/mergify/bp/release-1.12/pr-12466
osd: configure backend store (backport #12466)
2023-07-26 10:04:42 -06:00
Blaine Gardner 690338aa1e Merge pull request #12602 from rook/mergify/bp/release-1.12/pr-12578
test: fix upgrade suite for 1.27.x version (backport #12578)
2023-07-26 09:49:05 -06:00
subhamkrai 2c5672ab65 test: fix upgrade suite for 1.27.x version
the upgrade suite for version 1.27.x is failing
due
```
debug 2023-07-24T19:11:20.264+0000 7f3395a82c80 -1 error: monitor data filesystem reached concerning levels of available storage space (available: 5% 4.4 GiB)
you may adjust 'mon data avail crit' to a lower value to make this go away (default: 5%)
```
so adding mon setting to start on `compact` also adding
other setting present in cluster-test.yaml.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit e8e8a4673a)
2023-07-26 15:48:23 +00:00
subhamkrai 73fed34bfb test: collect kube-system logs for debugging
added kube-system namespace also to collect
logs from to debug the smoke suite issue

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0ed91458dc)
2023-07-26 15:02:45 +00:00
Alexander Trost 7d5cfea91d Merge pull request #12594 from rook/mergify/bp/release-1.12/pr-12592 2023-07-26 16:15:29 +02:00
subhamkrai ec76ca6b87 build: cosi driver is missing from olm list
adding cosi driver list in olm list as it is
being missed in csv crd list generated by
other project.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 884a5c1c18)
2023-07-26 11:02:10 +00:00
Blaine Gardner a0413e3233 Merge pull request #12584 from rook/mergify/bp/release-1.12/pr-12579
ci: add detached mode in tmate (backport #12579)
2023-07-25 15:43:16 -06:00
Lucas Henry 719a8cdb50 object: do not add objectstore endpoint to zone when sync is disabled
Gateways that do not run the sync threads should not be accessible from one of
the Zone endpoint. If this is the case, the synchronization might stop working.

When the CephObjectStore has the option
`spec.gateway.disableMultisiteSyncTraffic` set to `true`, we must ensure that
the objectstore endpoint is not present in the Zone endpoint.

Signed-off-by: Lucas Henry <polyedre@disroot.org>
(cherry picked from commit 564afef4c7)
2023-07-25 21:32:28 +00:00
sp98 5d51214ad5 osd: configure backend store
Configure osd backend store from the cephCluster spec

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit c13d34f8d3)
2023-07-25 21:21:20 +00:00
sp98 4c95a180ec core: force delete rook-ceph-exporter pod
Force delete rook-ceph-exporter pod that is stuck in terminating
state due to unavailability of node.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit dd90ef5db2)
2023-07-25 21:18:33 +00:00
Jiffin Tony Thottan 049f03e684 object: update ceph cosi driver image to v0.1.1
Update the ceph cosi driver image to v0.1.1, so that it can
work on both amd and arm platforms.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 1bf33f125e)
2023-07-25 20:55:39 +00:00