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

89 Commits

Author SHA1 Message Date
Kaushal M
755eff7f5f build: Use random build id
Using Git hash leaves all built binaries (glusterd2 & glustercli) with
the same build-id, which causes rpmbuild to fail.
2018-12-11 13:56:26 +05:30
Victor Brunko
1f9801cf7b Scripts: Add gnu-tar via brew during the install-reqs. 2018-09-03 09:49:00 +05:30
Prashanth Pai
52747ea517 Bump up golang version required to 1.9.x
The latest golang version is 1.10.3. We are bumping golang version
to the previous stable version that is present as a package in base
repo on centos 7.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-08-03 19:58:51 +05:30
Prashanth Pai
7a8cfd81e3 etcd: Bump up etcd version required to 3.3.9
We specifically need fixes related to auto compaction of etcd keyspace.
These fixes are in an etcd version > v3.3.3

More here:
https://github.com/coreos/etcd/blob/master/Documentation/op-guide/maintenance.md

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-08-03 19:58:51 +05:30
Prashanth Pai
b1bae6f698 Bump up version of dep
...as we were using a really old version

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-08-03 19:58:51 +05:30
Madhu Rajanna
0190411220 Enable Rest Authentication by default
if a restauth key is missing in config
file or if restauth is set to true,
glusterd2 will do token authentication.

Authentication can be disabled by
by setting restauth key in the configuration
to false.

updated test cases to use authentication
if auth file is present

added default rest authentication in glustercli

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-10 13:52:48 +05:30
Prashanth Pai
dd2a8f7507 Remove 'workdir' config in favour of 'localstatedir'
For all practical purposes, in real usage and in tests, the configurable
paths `workdir` and `localstatedir` are set to the same directory which
defaults to `/var/lib/glusterd2` or `/user/local/var/lib/glusterd2`

Unlike glusterd1, glusterd2 does not daemonize itself. The working
directory of the process can be meaningfully set to either current
working directory from where glusterd2 process is started or to
`localstatedir` where glusterd2 stores all its data. We choose the
latter.

This change also reduces ambiguity for users and one less thing to
configure.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-02 09:44:30 +05:30
Kaushal M
fd723b6ea4 Update version/specfile for 4.1.0-rc0
Also, fix release script to place generated source tarballs in release
directory.
2018-06-04 20:44:31 +05:30
Aravinda VK
049ba9f8ed config: removed default configuration file
To view the default values run `glusterd2 --help`

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-24 19:05:25 +05:30
Kaushal M
846f4a1e49 Merge remote-tracking branch 'origin/master' into nightly-rpms 2018-05-22 12:24:39 +05:30
Aravinda VK
a565046e6f Configuration improvements
If `PREFIX` is `/usr` then `logdir`, `rundir` and `localstatedir`
should not contain the prefix.

**Global default configuration**: Based on the `--prefix` used during
installation/make global config should be installed in
`$PREFIX/etc/glusterfs/glusterd2.toml`. All the default values from
code should be moved to this file.

**Removed logic to pick config file from current directory**: Since
Glusterd2 will be run as daemon or background process, automatically
picking config file from current directory will add confusion to
users. For development, if global config file not exists then it loads
config file from the current directory.

**Config file as argument**: Glusterd2 applies global configurations
first and then applies this configuration to overwrite the values
if any.

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-22 11:41:24 +05:30
Kaushal M
fec67454e1 Add script to build nightly-rpms 2018-05-21 18:35:18 +05:30
Michael Adam
dc87500993 scripts: fix shellcheck warnings in build.sh
SC2086: Double quote to prevent globbing and word splitting.
SC2046: Quote this to prevent word splitting.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
bb35a34b02 scripts: fix shellcheck warnings in check-go.sh
SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
SC1117: Backslash is literal in "\(". Prefer explicit escaping: "\\(".
SC1117: Backslash is literal in "\(". Prefer explicit escaping: "\\)".

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
98d9e5e665 scripts: fix shellcheck warnings in check-protoc.sh
SC1117: Backslash is literal in "\(". Prefer explicit escaping: "\\(".
SC1117: Backslash is literal in "\)". Prefer explicit escaping: "\\)".
SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
a700d0cce0 scripts: fix shellcheck warnings in dist.sh
SC2086: Double quote to prevent globbing and word splitting.
SC2046: Quote this to prevent word splitting.
SC1117: Backslash is literal in "\.". Prefer explicit escaping: "\\.".

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
44198770a8 scripts: fix possible splitting and globbing error in gen-gd2conf.sh
Shellcheck:
SC2086: Double quote to prevent globbing and word splitting.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
7f8e773fe1 scripts: fix shellcheck warnings in install-reqs.sh
SC2155: Declare and assign separately to avoid masking return values.
SC2053: Quote the rhs of == in [[ ]] to prevent glob matching.
SC2086: Double quote to prevent globbing and word splitting.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
1cda63fe3f scripts: fix shellcheck errors and warnings in release.sh
SC2046: Quote this to prevent word splitting.
SC2086: Double quote to prevent globbing and word splitting.
SC2162: read without -r will mangle backslashes.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
8d1cb29f48 scripts: quote array in check-reqs.sh for safety
This is how shellcheck complains:

SC2068: Double quote array expansions to avoid re-splitting elements.
SC2086: Double quote to prevent globbing and word splitting.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Michael Adam
db02c84b05 scripts: fix typo in variable name (found by shellcheck)
SC2153: Possible misspelling: REQ_PROTO_VERSION may not be assigned,
but REQ_PROTOC_VERSION is.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 10:34:31 +02:00
Kaushal M
28f94bbe13 Merge branch 'master' into test-infra 2018-04-24 12:50:29 +05:30
Michael Adam
57eea00513 test: move the script/lint-check.go to test/020-golint.sh
This removes the now-empty verify target.
The linting and formatting checks are now
at the 020 level in the test directory.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 03:05:23 +02:00
Prashanth Pai
efbd6531d4 gometalinter: Install released binary package
...as against installing from source and polluting the machine's
$GOPATH/src

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-04-23 15:28:08 +05:30
Aravinda VK
ae0fe1b65a Default configuration for glusterd2 when run using systemctl
systemctl enable glusterd2
    systemctl start glusterd2
    systemctl status glusterd2

Limited config file extension to `TOML` to avoid confusions with
multiple config extensions.

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-02-27 12:39:33 +05:30
Kaushal M
c5071db798 Selective fast builds 2018-02-15 17:22:29 +05:30
Prashanth Pai
b6de216151 Remove hello plugin and bootstrap script
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-02-14 08:46:51 +05:30
Prashanth Pai
23e5a679c5 Import sunrpc into pkg
This is an as-is import of sunrpc codec without introducing any
functional code changes. There are few opportunities for cleanup and
optimizations and that'll be done in future.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-02-09 11:17:36 +05:30
Kaushal M
8d2c12ee42 Fix release script 2018-01-12 16:01:58 +05:30
Kaushal M
c37545c7c2 Remove templates from build and install
Not currently required with volgen2. May be reintroduced later on.
2018-01-12 10:47:14 +05:30
Prashanth Pai
140023520b Merge branch 'master' into ctx-plumbing-take1 2017-11-21 16:48:37 +05:30
Aravinda VK
7ea56c6dfe Fix plugin initial template generator after code refactor
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2017-11-21 16:19:54 +05:30
Prashanth Pai
07366cb177 Do some initial context plumbing
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2017-11-21 15:52:58 +05:30
Kaushal M
a40220cd20 Update templates directory path 2017-11-14 19:09:31 +05:30
Kaushal M
f073be279a Use go build -i 2017-11-13 20:48:11 +05:30
Kaushal M
af3182dc30 Move volgen to bin/glusterd2/volgen 2017-11-13 20:44:56 +05:30
Kaushal M
3564440911 Merge branch 'master' into refactor-pkgs-mergetest 2017-11-13 15:48:44 +05:30
Kaushal M
9c8d98f9bf Fix release script to properly build vendored dist archive 2017-11-09 17:10:10 +05:30
Kaushal M
87f7b5ed19 Fix specfile
Also, remove `set -x` from dist.sh
2017-11-09 16:52:53 +05:30
Kaushal M
3176f4ce59 Include VERSION in archive
...forgot about it when switching to git-archive.
2017-11-09 14:42:03 +05:30
Kaushal M
523a721019 Stop creating TMPDIR 2017-11-09 13:45:17 +05:30
Kaushal M
2042257c66 Use git-archive to create dist archives 2017-11-09 13:37:34 +05:30
Kaushal M
3e314e1a93 make dist/dist-vendor targets and other make changes
make dist creates source tarballs of the GD2 source directory.
make dist-vendor creates tarballs including the vendor directory.

The generated tarballs contain a VERSION file, which is used by the
build script to set proper versions, gitsha and build-ids when building
GD2 from tarballs.
2017-11-07 18:21:41 +05:30
Kaushal M
31d7f301a0 Update build for new binary packages
Also, use a common build script for both glusterd2 and glustercli.
2017-11-02 21:52:20 +05:30
Kaushal M
a68fd566f0 chmod +x dep 2017-11-02 20:54:40 +05:30
Kaushal M
6d4ccbcc00 Remove remaining glide references 2017-11-02 20:44:10 +05:30
Kaushal M
ee54a7cea9 Switch to dep
'dep' is the official dependency management experiment of the Golang
community. It is expected to become the official tool and the latest
glide release encourages users to switch to dep.

Some quick help,
- `dep ensure` installs dependencies that have been locked
- `dep ensure -upate` updates dependencies to the latest versions and
updates the lock file
- `dep ensure -add <package>` adds a new package.

`make vendor-install` and `make vendor-update` still work as expected.

[1]: https://github.com/golang/dep
[2]: https://github.com/Masterminds/glide/releases/tag/v0.13.0
2017-11-02 19:54:43 +05:30
Prashanth Pai
1f66311d9f Remove mgmt
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2017-10-28 17:27:46 +05:30
Kaushal M
32c1d14e94 Update release script 2017-10-27 12:57:07 +05:30
Kaushal M
95fb70ca9a Merge remote-tracking branch 'origin/master' into volgen-2.0 2017-10-13 16:59:14 +05:30