1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 21:45:43 +01:00

9 Commits

Author SHA1 Message Date
Aravinda VK
552d07b7d9 lvm and fs utils code refactor
Moved lvm related functions from `$SRC/glusterd2/snapshot/lvm`
and `$SRC/plugins/device/deviceutils/` to `$SRC/pkg/lvmutils`

Also moved fs related functions from `plugins/deviceutils` to
`$SRC/pkg/fsutils`.

Fixes: #1187
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-11-22 22:38:37 +05:30
Madhu Rajanna
3c9ca8411b log errors with log.WithError()
during error logging we should log
with WithError()

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-08-09 14:29:28 +05:30
Madhu Rajanna
312ae58167 add QSH to the jwt token to avoid URL tampering
A query string hash (QSH) is an important technique
to prevent URL tampering and secure HTTP requests,
When a Client makes a request without a QSH claim,
or with a bad QSH claim (one that doesn’t match
the request), then the glusterd2 will respond with
HTTP status 401 Unauthorized

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-08-06 17:14:06 +05:30
Aravinda VK
5427a32251 Added extra information to os/exec errors
The err string returned by `exec.Command.{Run,Output}` will
not contains `stderr`, Output in log/CLI will just display `exited with
status 1`. This patch adds the content of `stderr` along with the error
message.

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-06-25 17:15:16 +05:30
Prashanth Pai
5516dccedd volume-create: Fix few outstanding issues
* Separated brick validation step from the step which modified it by
  setting xattrs.
* Added rollback functions.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-02-21 12:08:04 +05:30
Sheena Artrip
c9beeb8441 Support ipv6-only hosts 2018-02-02 17:54:39 -08:00
Kaushal M
2e22efa375 Fix utils build
gomvpkg expands source files with cgo, which prevents packges from being
built.
2017-11-13 16:02:08 +05:30
Kaushal M
380e007991 Move errors to pkg/errors 2017-11-02 22:10:13 +05:30
Kaushal M
0cd3c18467 Move utils to pkg/utils 2017-11-02 22:06:52 +05:30