forked from cs3org/reva
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cs3org:master' into ceph-fixes
- Loading branch information
Showing
80 changed files
with
6,169 additions
and
820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,4 @@ toolchain/ | |
logs_test/ | ||
|
||
tmp/ | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bugfix: fixed permission mapping to EOS ACLs | ||
|
||
This is to remove "m" and "q" flags in EOS ACLs | ||
for regular write shares (no re-sharing). | ||
|
||
https://github.com/cs3org/reva/pull/4667 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Enhancement: differentiate quota for user types in EOS | ||
|
||
We now assign a different initial quota to users depending | ||
on their type, whether PRIMARY or not. | ||
|
||
https://github.com/cs3org/reva/pull/4720 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bugfix: do not use version folders for xattrs in EOS | ||
|
||
This was a workaround needed some time ago. We revert now | ||
to the standard behavior, xattrs are stored on the files. | ||
|
||
https://github.com/cs3org/reva/pull/4520 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bugfix: auth: increase verbosity of oidc parsing errors | ||
|
||
This is to help further debugging of auth issues. | ||
An unrelated error reporting was also fixed. | ||
|
||
https://github.com/cs3org/reva/pull/4599 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Bugfix: Fix ulimits for EOS container deployment | ||
|
||
https://github.com/cs3org/reva/pull/4620 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Bugfix: ocm: fixed domain not having a protocol scheme | ||
|
||
This PR fixes a bug in the OCM open driver that causes it to be unable to probe | ||
OCM services at the remote server due to the domain having an unsupported | ||
protocol scheme. in this case domain doesn't have a scheme and the changes in | ||
this PR add a scheme to the domain before doing the probe. | ||
|
||
https://github.com/cs3org/reva/pull/4790 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Enhancement: ocm: support bearer token access | ||
|
||
This PR adds support for accessing remote OCM 1.1 shares via bearer token, | ||
as opposed to having the shared secret in the URL only. | ||
In addition, the OCM client package is now part of the OCMD server package, | ||
and the Discover methods have been all consolidated in one place. | ||
|
||
https://github.com/cs3org/reva/pull/4670 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bugfix: eos: fixed error reporting for too large recycle bin listing | ||
|
||
EOS returns E2BIG, which internally gets converted to PermissionDenied | ||
and has to be properly handled in this case. | ||
|
||
https://github.com/cs3org/reva/pull/4591 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
|
||
Add styles or override variables from the theme here. | ||
|
||
*/ | ||
|
||
$primary: #29a7df; | ||
$secondary: #ED6A5A; | ||
$dark: #131516; | ||
$enable-gradients: false; | ||
$enable-rounded: false; | ||
$enable-shadows: false; | ||
$td-enable-google-fonts: true; | ||
$google_font_name: "Roboto"; | ||
$google_font_family: "Roboto:300,300i,400,400i,700,700i"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
--- | ||
title: "Setting up Reva with CephFS" | ||
linkTitle: "Setting up Reva with CephFS" | ||
weight: 10 | ||
description: > | ||
Setting up Reva with a CephFS cluster | ||
--- | ||
|
||
This is a guide on how to set up Reva in your local environment and connect it to an existing CephFS cluster. | ||
|
||
For questions on this tutorial plase refer to https://github.com/cs3org/reva/discussions/4610 | ||
|
||
### 1. CephFS setup | ||
You need to have an existing CephFS installation in the machine where you will deploy Reva. | ||
Even though is not needed for Reva to have CephFS mounted on the machine where Reva will run, we highly recommend it | ||
as it will make grasping the concepts much easier. | ||
|
||
For this tutorial, we have a Ceph mount exposed under the mountpoint `/cephfs`. | ||
|
||
``` | ||
$ cat /etc/fstab | grep cephfs | ||
cernbox@.cernbox=/ /cephfs ceph rbytes | ||
``` | ||
|
||
``` | ||
$ df -h | grep ceph | ||
10.81.22.151:6789,10.81.22.161:6789,10.81.22.171:6789:/ 1.3P 650G 1.2P 1% /cephfs | ||
``` | ||
|
||
The ceph configuration lives under `/etc/ceph`. | ||
|
||
``` | ||
$ tree /etc/ceph/ | ||
/etc/ceph/ | ||
├── ceph.client.cernbox.keyring | ||
├── ceph.conf | ||
└── rbdmap | ||
``` | ||
|
||
Your cluster details will differ, this is just an example configuration file. | ||
``` | ||
$ cat /etc/ceph/ceph.conf | ||
[global] | ||
auth_client_required=cephx | ||
fsid=f5195e24-158c-11ee-b338-5ced8c61b074 | ||
mon_host=[v2:10.81.22.151:3300/0,v1:10.81.22.151:6789/0],[v2:10.81.22.161:3300/0,v1:10.81.22.161:6789/0],[v2:10.81.22.171:3300/0,v1:10.81.22.171:6789/0] | ||
``` | ||
|
||
``` | ||
cat /etc/ceph/ceph.client.cernbox.keyring | ||
[client.cernbox] | ||
key = mycephsecretkey== | ||
``` | ||
|
||
With this information we can start setting up Reva. | ||
|
||
|
||
|
||
## Reva setup | ||
|
||
|
||
Follow the steps here: | ||
https://reva.link/docs/getting-started/build-reva/ | ||
|
||
We also need the libcephfs library, depending on your OS the command to install will change, here is how you install it for Fedora 39: | ||
``` | ||
dnf install libcephfs* -y | ||
``` | ||
|
||
At this step you shoudl have a local clone of the Reva software: | ||
|
||
``` | ||
git clone https://github.com/cs3org/reva | ||
cd reva | ||
make revad-ceph | ||
make reva | ||
./cmd/revad/revad -v | ||
``` | ||
|
||
You can copy the binaries (`reva` is the client cli and `revad` is the daemon) to a default location so is available in your PATH: | ||
``` | ||
cp ./cmd/revad/revad /usr/local/bin/revad | ||
cp ./cmd/reva/reva /usr/local/bin/reva | ||
``` | ||
|
||
|
||
### Creating test users | ||
CephFS relies on the UNIX uid and guid attributes to perform access control. | ||
For this example, we'll create `einstein` user with `uid=4000`: | ||
|
||
``` | ||
$ sudo useradd -u 4000 einstein | ||
$ id einstein | ||
uid=4000(einstein) gid=4000(einstein) groups=4000(einstein) | ||
``` | ||
### Create configuration files | ||
|
||
For this tutorial, we'll use two files: | ||
- `revad.toml` (main configuration file to run reva, preconfigured for Ceph cluster) | ||
- `test_users.json` (configuration used to store users, only `einstein` is configured) | ||
|
||
These files are available at https://github.com/cs3org/reva/tree/master/examples/cephfs | ||
|
||
Copy the `revad.toml` to `/etc/revad/revad.toml`, the default location where the reva binary will load its configuration. | ||
Copy the `test_users.json` file to `/etc/revad/test_users.json` to match the configuration from `/etc/revad/revad.toml`. | ||
Create directory where reva will log its outpout: `mkdir -p /var/log/revad`. | ||
|
||
### Run revad | ||
Ideally you would use an init system like systemd or docker to run it, for this tutorial we run it manually: | ||
``` | ||
$ nohup revad & | ||
``` | ||
|
||
Let's take a look at the logs: | ||
|
||
``` | ||
tail /var/log/revad/revad.log | ||
``` | ||
|
||
### Connect to revad | ||
|
||
The Reva daemon listens on port `9143` (configured in `/etc/revad/revad.toml`) | ||
Let's use the reva client cli to connect to it: | ||
|
||
``` | ||
$ reva -host localhost:9143 -insecure login basic | ||
username: einstein | ||
password: | ||
OK | ||
$ reva whoami | ||
``` | ||
|
||
|
||
|
Oops, something went wrong.