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

13 Commits

Author SHA1 Message Date
Xiubo Li
f54d320bee spec: fix rpms build errors
Problems:
--------
$ make rpms
[...]
warning: bogus date in %changelog: Sun Apr 3 2019
error: %changelog not in descending chronological order
make: *** [rpms] Error 1

/usr/bin/install -c -m 644 gluster-block.logrotate               \
	/data/gluster-block/build/rpmbuild/BUILDROOT/gluster-block-0.3-1.x86_64/etc/logrotate.d/gluster-block;
/usr/bin/install: cannot stat 'gluster-block.logrotate': No such file or directory

Solution:
--------
Correct the date in the changelog and update the date to when the
PR is merged.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-04-26 15:13:33 +05:30
Michael Adam
c772b8ffe8 spec: create and package /var/log/gluster-block/
Usually, the daemon creates the log directory.
But when it fails to start, and the log directory
has not been pre-created, then the client will
segfault instead of logging useful errors.

Change-Id: I55b5c9fcd2a9a97dba47e87a826606d48f8ac8bd
Signed-off-by: Michael Adam <obnox@redhat.com>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-04-02 10:59:27 +05:30
Prasanna Kumar Kalever
8d34b29e1e tests: add simple gfapi access test
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
2019-04-02 10:37:21 +05:30
Prasanna Kumar Kalever
3541885b7d gluster-block: install wait-for-bricks.sh
This patch:
* install wait-for-bricks.sh (source install and rpm install)
* change install path of gluster-block-caps.info
* increase the systemd unit start timeout from default(1min 30sec) to 10min

depends on #98

Tested-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2018-07-18 11:40:00 +05:30
Ji-Hyeon Gim
feb517ae13 dist: supports initd for non-systemd distros
Problem
    gluster-blockd supports systemd officially but many legacy distros
    want to use initd

Resolve
    includes initd scripts for non-systemd distros

Change-Id: I8495e8d9abbef6d26ac7dc8dbbe6d07e7713f537
Signed-off-by: Ji-Hyeon Gim <potatogim@gluesys.com>
2017-09-21 19:30:27 +09:00
Niels de Vos
e5c78e1a42 build: do not require 'git' to find the version
While looking into packaging gluster-block for Fedora, I noticed that
'git' is used to determine the version. The downloads from GitHub are
not archives that have been created with 'make dist', and hence
./autogen.sh is still needed to be run.

./autogen.sh generates all the needed bits, including the ./configure
script that tries to figure out the version. If ./configure runs in a
non-git directory, no version can be found.

In order to solve this, I'm adding a VERSION file in the root of the
project. If this file exists, it is used to fetch the version, instead
of trying to run git. The basic usage for RPM packaging in distributions
can then be:

  echo %{version} > VERSION
  ./autogen.sh
  %configure

Note that the VERSION file is not needed for building from a git
repository. However, this file can get packaged in the 'make dist'
tarball so that building from the tarball does not require git.

Change-Id: Ied378c7071ee4a108a1e946dccbb7f223b7aeb9f
Updates: #25
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2017-09-19 12:15:30 +00:00
Prasanna Kumar Kalever
d2d014c660 NEWS: initial release
Change-Id: Ieaa644063e088f27fe1102a351335d65ffb54efc
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-02-27 08:01:32 -05:00
Prasanna Kumar Kalever
15cdf7708b INSTALL: add install guide
Change-Id: Icfb21f3134b9dc3817638ca48c1b0b92438cef1d
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-02-27 04:51:09 -05:00
Prasanna Kumar Kalever
23c424c01b docs: add man page for gluster-block cli
Change-Id: Iff9d693ce4478582ddbbbe487b00d71f456929f8
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-02-27 04:03:12 -05:00
Niels de Vos
58a376a080 build: pass "--with systemd" to rpmbuild if needed
In case ./configure detects that the environment is using systemd, the
"make install" step will copy the gluster-block.service file to the
right location. However, the RPMs do not include this file by default,
so adding a "--with systemd" to rpmbuild/mock is needed (until there is
some form of auto-detection in the .spec).

Change-Id: Id64fa664f5b2a3d3c4675b2ad7a54d415a54281a
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2017-02-25 16:27:04 +05:30
Niels de Vos
ceb5a8a96b build: cleaner build RPMs with "make rpms"
There is no need to copy all the files everywhere, this can be
controlled with --define options to rpmbuild.

Also add a "make srpm" target for building the source RPM that can then
be built with 'mock' or uploaded to build systems from different
distributions.

Change-Id: Ib66bfe9b981fd9bf12f997d416ff3b9f53da90d8
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2017-02-25 16:26:46 +05:30
Niels de Vos
cf23c6e162 build: refactor
- tcmu-runner and targetcli are not build dependencies

- use pkg-config to get libgfapi build parameters

- cleanup .spec file

Change-Id: Ib1451f7a375438cd2e78ae4137d1d02e01516fbd
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2017-02-25 16:22:22 +05:30
Prasanna Kumar Kalever
23b1245579 gluster-block: migrate build to libtoolz and create rpm
Till now we had simple makefile for checking dependencies and building.

Using libtoolz will give more control on dependency checks and
flexibility.

This patch also introduce rpm build feature.

Compiling:
$ ./autogen.sh
$ ./configure
$ make -j
$ make install

Building RPMS:
$ make rpms

Running:
$ systemctl start gluster-blockd.service

Using CLI:
$ gluster-block help

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-02-07 13:29:05 +05:30