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

63 Commits

Author SHA1 Message Date
Madhu Rajanna
4d75627bc3 populate vendor/ from Gopkg.lock without updating it first
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-09-03 10:10:35 +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
John Mulligan
cba33fe48f makefile: add a target that only builds the binaries
The current all/build targets do quite a bit more than compile
the golang binaries. This change adds a new target "binaries"
that builds the server and cli binaries.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2018-07-09 09:26:07 +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
John Mulligan
30390198d4 makefile: support generating sources via a standalone target
I tried to run 'make test' out of a clean repo and it failed
due to missing source files that were being generated as
part of the build. I have tweaked the Makefile so that a
new target 'generated' is a prerequisite for the tests and
build.
In the future we might consider switching to calling something
like 'go generate' here. But I'm trying to keep this change
small.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2018-05-22 16:11:47 -04:00
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
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
Michael Adam
149c822dc2 test: move gometalinter test into test-script
This test script is invoked by the test.sh runner,
so it can be removed from the verify target.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 03:05:23 +02:00
Michael Adam
d8eb6821b2 test: add test script for running unit tests
This new test script 100-gotest.sh, adopted from heketi,
replaces the original go test line from the "test" make target.

It has the capability of reacting to environment variables:
stopping as soon as an error is hit, creating test coverage
reports, etc.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 03:05:23 +02:00
Michael Adam
fb80550b10 Makefile: run the test.sh wrapper from the test target
Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 03:05:23 +02:00
Michael Adam
3192031c88 Makefile: add "check-reqs" dependency to (func)test targets
Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 03:05:23 +02:00
Michael Adam
11ccd1321b Makefile: create a separate target for functional tests
This lets "test" only run the unit tests and
a new target "functest" will run the functional tests.

Signed-off-by: Michael Adam <obnox@redhat.com>
2018-04-24 03:05:15 +02:00
Kaushal M
76496280b2 Update specfile and fix a couple of rpmbuild warnings
- Specfile has been updated to build Fedora packages without bundled
dependencies
- Specfile has been updated to fix issues for EL7 builds. Fixes #596.
- The Makefile has been updated to set proper mode for non-executable
files on `make install`
2018-03-13 13:30:36 +05:30
Kaushal M
c5071db798 Selective fast builds 2018-02-15 17:22:29 +05:30
Sheena Artrip
0b83e6beb5 Setup dep usage in make to allow env, like proxy settings 2018-02-02 14:38:46 -08:00
Kaushal M
dabac2fa99 Update rpm spec to use make correctly 2018-01-12 15:52:37 +05:30
Kaushal M
2daa1eb280 Merge remote-tracking branch 'origin/master' into update-build-scripts 2018-01-12 14:37:16 +05:30
Kaushal M
836b6dad81 Support DESTDIR for make install 2018-01-12 11:02:21 +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
Aravinda VK
20a881b04b bash_completion: Added error handling
Fixes: #467
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-01-10 17:23:34 +05:30
Aravinda VK
2b27c16d0c cli: Add Bash completion support
Fixes: #467
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-01-10 17:23:34 +05:30
Rishubh Jain
705be9e217 Update Makefile
#445
2017-11-22 09:31:00 +00:00
Kaushal M
a40220cd20 Update templates directory path 2017-11-14 19:09:31 +05:30
Kaushal M
d30e587841 Move bin/glustercli to top-level glustercli package 2017-11-14 18:18:13 +05:30
Kaushal M
6d8a10c671 Move bin/glusterd2 to top-level glusterd2 package 2017-11-14 18:17:05 +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
ff012c9d35 Skip vendored packages during make test
Needed because Go1.8 doesn't do it automatically. Go1.9 is fine though.
2017-11-08 13:17:25 +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
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
63f19075f3 Fix e2e tests for templates and update centos-ci.sh 2017-10-10 20:00:10 +05:30
Kaushal M
105b91273f Improve Makefile build and install targets 2017-10-10 20:00:10 +05:30
Aravinda VK
a42eca9f77 cli: Gluster new CLI using glusterd2 REST APIs
Updates: #205
Signed-off-by: Aravinda VK <mail@aravindavk.in>
2017-08-22 11:57:03 +05:30
Kaushal M
2f1e67e591 Enable functional tests 2017-06-29 12:58:47 +05:30
Kaushal M
6206f4f3ea Merge branch 'master' into plugins 2017-05-11 12:39:35 +05:30
Kaushal M
50819c6f22 Use tags 'novirt noaugeas' when testing as well 2017-05-05 15:13:57 +05:30
Kaushal M
76a31d3bae Add new make vendor-install target...
`make vendor-install` installs the pinned packages from `glide.lock`,
performing the same function as the previous `make vendor-update`.

Now `make vendor-update` updates vendored packages to the latest
available versions.

Both commands, strip the `vendor/` from any vendored packages.
2017-05-05 14:36:32 +05:30
Aravinda VK
6d52427f92 plugins: Glusterd2 Plugins Infrastructure
This is initial code which enables creation of plugins for glusterd2.

Plugin interface is

type GlusterdPlugin interface{
    Name() string
    SunRPCProgram() sunrpc.Program
    RestRoutes() route.Routes
    RegisterStepFuncs()
}

Plugin can register sunrpc procedure, REST route and can register step
functions required for Transaction(Transaction APIs are not stable
yet)

Included hello plugin, which plugs following REST routes into
glusterd2 REST server.

GET  /v1/hello
POST /v1/hello

To add new Plugin,

- Create a plugin package and add to import and plugin list in the
  file `$SRC/plugins/plugins.go`
- Create a struct and implement the above interfaces

To disable building plugins,

    PLUGINS=no make

Closes #131
Signed-off-by: Aravinda VK avishwan@redhat.com
2017-04-11 16:44:22 +05:30
Prashanth Pai
0e54b21ac8 Enforce golint check during make verify
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2016-11-30 20:38:27 +05:30
Prashanth Pai
d0a69688dc Bump up minimum go version required to 1.6
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2016-11-28 11:45:45 +05:30
Kaushal M
d444d1ec3c Add scripts to build and release GD2
- The Makefile has been updated to use these scripts to build, install
  and release
- Run `make release` to create build, create and sign a release archive,
  useful for releasing on Github.
2016-10-18 18:41:59 +05:30
Kaushal M
42f64f9910 Don't require protoc3 for builds.
protoc-v3 is only required when generating go code from `.proto`s.
2016-09-29 10:26:07 +05:30
Kaushal M
3810d5671a Merge branch 'master' into grpc 2016-09-24 16:47:57 +05:30
Kaushal M
5559375074 Merge branch 'master' into begin-releases 2016-09-22 15:08:45 +05:30