1
0
mirror of https://gerrit.ovirt.org/vdsm synced 2026-02-05 12:46:23 +01:00

43 Commits

Author SHA1 Message Date
Sandro Bonazzola
955f78122a flake8: fix E305
Fixed E305: expected 2 blank lines after class or function definition, found 1
and re-enabled the test for it in tox.

Change-Id: I4e9ef63491b6f4063880b8e2db64857cd8c826ee
Related-To: https://bugzilla.redhat.com/show_bug.cgi?id=2004412
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
2021-09-16 10:01:56 +02:00
Marcin Sobczyk
ca9e65496e build: Remove remaining usage of 'target_py' macro
We don't need to differentiate py2 and py3 builds anymore.

Change-Id: I38f31a8a4db9cc2bfc4e1e04c25480b95fa5c664
Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
2021-06-10 15:22:49 +02:00
Eyal Shenitzky
8a5ff35dbc backup: implement start_backup to support full backup
Starts a full backup for a specified VM.

start_backup creates an XML from the given parameters in the following
format:

<domainbackup mode='pull'>
    <server transport='unix' socket='/run/vdsm/backup-id.sock'/>
</domainbackup>

The XML doesn't specify any of the VM disks (will be added in a later
patch), therefore, the backup will include all of the VM disks.

Result XML from libvirt when running backupGetXMLDesc():

<domainbackup mode='pull' id='0'>
  <server transport='unix' socket='/run/vdsm/backup-id.sock'/>
    <disks>
      <disk name='vda' type='file'>
        <driver type='qcow2'/>
        <scratch file='/path/to/scratch/disk.qcow2'/>
      </disk>
      <disk name='sda' type='file'>
        <driver type='qcow2'/>
        <scratch file='/path/to/scratch/disk.qcow2'/>
      </disk>
...
  </disks>
</domainbackup>

Starts a backup for the specified VM by calling
libvirt backupBegin() job.

The path to a socket is passed to QEMU and it will create the socket.
Imageio will then connect to this socket during backup.
All the sokets are stored under VDSM_RUN_DIR/backup.

Example for VDSM log when starting a backup -
INFO  (jsonrpc/2) [api.virt] START start_backup(config={'backup_id': '123',
'disks': [...], 'from_checkpoint_id': None, 'to_checkpoint_id': None}
) from=..., flow_id=789, vmId=345

Example for successful backup operation return value-
{
  'disks':{
    '111':'nbd:unix:/var/run/vdsm/backup_sockets/111.sock:exportname=sdb',
    '222':'nbd:unix:/var/run/vdsm/backup_sockets/222.sock:exportname=sda'
  }
}

Change-Id: Ibf83077066d5cfed4f5c7551668c8e4c441f6ed5
Signed-off-by: Eyal Shenitzky <eshenitz@redhat.com>
2019-12-29 19:54:34 +02:00
Eyal Shenitzky
787556f94f storage: introduce transientdisk module
The transientdisk module created in order to provide an API for adding
a temporary disks on a temporary directory.

The module will be responsible to create the transient disks directory under -
/var/lib/vdsm/storage/transient_disks which creates when VDSM starts,
when all the transient disks will be removed from the directory,
the directory will be deleted.

This module is needed for creating "scratch" disks for the full VM backup
which is the first step in the incremental backup flow.

The creation and removal of the transient disk added as public API for
future usage, currently the API is used internally only.

Change-Id: If01c59b9185fa4eb7ce4be247605563db41303a2
Signed-off-by: Eyal Shenitzky <eshenitz@redhat.com>
2019-12-29 19:54:34 +02:00
Milan Zamazal
75c2216538 spec: Omit sequence numbers from timestamped release numbers
Commit sequence numbers make little sense when used with timestamped
release numbers.  The purpose of timestamped release numbers is to
make Vdsm updates on hosts easier during development, by always
producing newer versions that we can easily upgrade to.  But when
prefixed with a commit sequence number, switching between development
branches or different commits doesn't work this way, or we can easily
be behind upstream repos available on the system.

Let's drop commit sequence numbers from the timestamped release
numbers, we won't miss anything.

Change-Id: I24f9fd4428b4f29af2b6a2eebebce4ef93aa727e
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
2019-12-02 09:57:20 +01:00
Milan Zamazal
847e608603 spec: Use explicit versions
Vdsm versions are retrieved automatically from git and tags.  This
works well with most commits but doesn't cooperate very well with
tagging.

There are currently several problems with tagging:

- When a commit is tagged with a new version, the commit is built with
  the old version (before it is tagged) in Jenkins and must be
  re-built after tagging again to change its version to the new one.

- When a new stable branch is created, the very next master patch,
  once it is committed, must be tagged with a new master version.  And
  until this is done, all the master commits are built with the old
  version in Jenkins and possibly elsewhere.

- Builds from commits in different branches may have the same
  VERSION-RELEASE (minus git hash) number until the master branch is
  tagged.

These are not very serious problems, but the versioning and releasing
process is still somewhat messy.  We can improve it, by putting an
explicit version number to the spec, making version bump commits on
each release tagging, and ensuring that new versions are used even
before the tags are created.  This approach, addressed by this patch,
has the following advantages:

- Releases are clearly identified by the version bump commits and they
  are visible e.g. in ChangeLog.

- Jenkins builds new releases with proper versions immediately and
  they can be used as upstream sources without further steps.

- There are no double-version or old-version-only builds for tagged
  commits.

- The version bump commit can be tagged immediately when branching,
  without waiting for a followup commit to be merged.  We branch out
  from the preceding commit.

We also don't tag, unlike Engine, releases from master branch.  This
is confusing, especially regarding resulting upstream and downstream
versions, which deviate.  This patch doesn't address that problem, all
what is needed to start making version change commits also for
releases created from master.

Change-Id: I6433a4939d0ae790b9d77ab10fcb204a9bfedb72
Backport-To: 4.3
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
2019-11-29 15:30:20 +01:00
Marcin Sobczyk
37a76555de build: Change all shebangs to python3
Change-Id: Ib3a91ad09174ea0880335ea605f1cf1c41b25b19
Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
2019-11-29 14:26:46 +00:00
Dan Kenigsberg
8d233c0101 janitorial: drop unused files
If7e157448a stopped using build-aux/pylint-py3k-whitelist, py3k-pylintrc
and py3-blacklist.txt, but kept them in the code base.

Change-Id: Ic3e978bf4b7d0c506f7a1af09fa7934b9aba40be
Signed-off-by: Dan Kenigsberg <danken@redhat.com>
2019-10-22 11:37:06 +00:00
Michal Skrivanek
2fb2dd8680 build-aux: filter out .git
it could happen that one of the .git files match the python expression

Change-Id: I1950feb8cd5952223d0fbcf95306a82c3f6e11d6
Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>
2019-08-05 14:43:40 +00:00
Michal Skrivanek
667a535f18 build-aux: change python shebangs only on new line
avoid modifying strings just looking alike

Change-Id: Ia6626dae28c798b97ce53ab2262d879f2df00b00
Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>
2019-07-11 11:56:29 +00:00
Michal Skrivanek
cf2618f268 build-aux: increase compatibility
use POSIX compatible option for sed and bash for "echo -e"

Change-Id: Ia648d1cf4268b6385fb8b44571c5b4526e6ce37d
Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>
2019-07-09 13:17:07 +00:00
Milan Zamazal
d9dc07f3c4 spec: Allow making vdsm.spec without running configure
Currently, vdsm.spec is generated from vdsm.spec.in using values
produced by configure.  That means vdsm.spec must be generated in the
same environment as the target build environment.  This is not always
desirable, i.e. it should be possible to build a SRPMS in a different
environment or build dependencies should be available before building
the package (chicken or egg problem).  These changes are especially
needed for current automated package building infrastructures.

This patch replaces the current configure variables with default
values.  While this duplicates some of the values already defined in
configure.ac, the benefit of having a ready to use spec file
outweighs the maintenance cost of the duplication.  The default values
can be overridden by passing corresponding --define command line
options to rpmbuild.

We cannot have a completely working autonomous vdsm.spec, because
package version and release are defined dynamically, by running
scripts from the source directory.  A spec file doesn't know the
location of the source directory when generating a SRPM and thus can't
run pkg-version script from it.  There are the following ways to have
a complete spec file:

- Running configure and make.

- Using build-aux/make-dist script (with or without running
  configure beforehand).

- Using vdsm.spec.in directly and defining vdsm_version and
  vdsm_release macros on rpmbuild command line, e.g.:

   rpmbuild -bs -D 'vdsm_version 4.40.0' -D 'vdsm_release 1' vdsm.spec.in

  The source tarball must be generated manually in this case.

Change-Id: I3ee44a76c8120dc6e8f17f75be62e25fdba1336d
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
2019-06-21 16:06:01 +00:00
Marcin Sobczyk
7c63e2bb89 makefile: Added 'fix-python-shebangs' dist hook
This patch introduces a dist hook, that will replace all occurences of
'#!/usr/bin/python[23]?' shebangs with ones that use
'VDSM_TARGET_PY_MAJOR_VERSION' variable. The hook doesn't modify your
tree - it works in the dist directory, which is then archived.

Warning! Currently a lot of our are scripts are *not* yet
py3-compatible - this is a build-oriented change only.

Change-Id: I807e8982fbca0027f138d9c8a9732625c2cc159a
Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
2019-05-22 04:02:50 -04:00
Marcin Sobczyk
12332af3fd build-aux: Extracted 'list-all-python-files' script
Extracted 'list-all-python-files' script out of 'pylint-py3k-whitelist'.
Additionally, the output of the listing has been sorted and ensured
to be deprived of duplicates.

Change-Id: I845a0e404f68b17ffeaec24694175c1bed922ea1
Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
2019-05-22 04:02:50 -04:00
Nir Soffer
a2d2c6c698 build: Add optional rpm timestamp
To install vdsm from source, the best way is to do:

   rm -rf ~/rpmbuild/RPMS
   make rpm
   (cd ~/rpmbuild/RPMS && dnf upgrade */*.rpm)

This upgrades the installed packages from your build, and correctly
fetch new dependencies added by the current vdsm version.

But there is a big issue - if you fix your code and build again, upgrade
may fail since the git commit hash may be considered older than the
installed package git commit hash. A developer can work around this by
using "downgrade" or "reinstall" but it is pretty annoying.

Fix this issue by adding a timestamp before the git commit hash. Here is
an example package name:

    vdsm-4.40.0-115.201903241356.git8e34445b2.fc28.x86_64.rpm

The timestamp is enabled only if vdsm is configured with
--enable-timestamp, so it does affect packages built in the CI.

To enable timestamps run:

    ./autogen.sh --enable-timestamp

Change-Id: I5d07103138d0cb4f93d1c5cefb80ab30c3b91d4e
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2019-03-24 17:47:24 +02:00
Dan Kenigsberg
95681d96e4 py3: drop build-aux/vercmp form blacklist
Change-Id: I43f10c2e8447a366f97231d8e22c9494c1340803
Signed-off-by: Dan Kenigsberg <danken@redhat.com>
2018-11-07 08:02:48 -05:00
Marcin Sobczyk
938cd6799d build: Fix VPATH builds for '.in' files
Several targets' paths had nested directories
(i.e. './usr/share/man/man8/vdsmd.8'). When doing in-tree builds
everything was fine, because the directory with source '.in' file
existed. However, when doing out-of-tree builds, the directory
of the output file doesn't exist and we have to create it by ourselves.

Change-Id: I77d4c0e649f9a2744665223f457ce93a4081716c
Bug-Url: https://bugzilla.redhat.com/1297808
Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
2018-09-24 11:45:13 +02:00
Marcin Sobczyk
8f24a85845 py3: Introduced 'pylint-py3k' make target
A 'pylint-py3k' make target has been added along with a helper script
to provide a list of Python files. Files known to be incompatible at the
moment are placed in 'py3-blacklist.txt'. The rationale behind this change
is to avoid introducing new incompatibilities in development process.

Depends on: https://gerrit.ovirt.org/#/c/94253/

Change-Id: I719f3a6a906356d2fe54be128da58509e73ce07a
Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
2018-09-21 04:38:13 -04:00
Irit Goihman
82bcde2583 python: change python scripts to python2
starting from fc25, python3 will be default, and
/usr/bin/python path will point to python3.
All interpreter paths in python scripts were changed
to python2.
This is a quick fix in order to ensure the scripts will
continue to run without errors.
All scripts should be py3 compatible in the future.

Signed-off-by: Irit Goihman <igoihman@redhat.com>
Change-Id: Ie8eaefe5f7e0831c362546733a2fa9301b7f9ad6
2016-11-30 07:41:48 -05:00
pkliczewski
d5b0ab77e1 utils: build cert paths in single place
We make sure that all the references to certificates location are in
single place. As part of this fix we remove trust store path from
configuration which is not needed anymore.

Change-Id: I58dd3a5f7c1503fc38b6c6a204c036c06d09941b
Signed-off-by: pkliczewski <piotr.kliczewski@gmail.com>
Reviewed-on: https://gerrit.ovirt.org/52354
Continuous-Integration: Jenkins CI
Reviewed-by: Yaniv Bronhaim <ybronhei@redhat.com>
Tested-by: Irit Goihman <igoihman@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2016-10-31 07:20:34 -04:00
Douglas Schilling Landgraf
ae5522d0b1 vdsm reg: clean up
Reviewing the vdsm spec found some remaining of vdsm reg
deprecated in early 3.6 versions.

Change-Id: I9f83b9e18ca24df4553e5b39e5b862759b9ac1b4
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Reviewed-on: https://gerrit.ovirt.org/62463
Reviewed-by: Yaniv Bronhaim <ybronhei@redhat.com>
Reviewed-by: Piotr Kliczewski <piotr.kliczewski@gmail.com>
Continuous-Integration: Jenkins CI
2016-08-21 06:22:41 -04:00
Irit Goihman
49493d317b tox: fail make process if required tox version isn't installed.
Over RHEL 7.2 yum contains only tox-1.4.2 which doesn't fit to vdsm
requirements.
We require to install tox with pip currently.

This patch validates tox and its version and fails the make process if tox
is older than 2.1.1

tox check was removed from configure.ac and now it's existence will be
checked only during the build process.

Change-Id: I665025dacdd5346a5e021ac98e864f7b6461917c
Signed-off-by: Irit Goihman <igoihman@redhat.com>
Reviewed-on: https://gerrit.ovirt.org/59306
Continuous-Integration: Jenkins CI
Reviewed-by: Nir Soffer <nsoffer@redhat.com>
Reviewed-by: Yaniv Bronhaim <ybronhei@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2016-07-19 07:15:41 -04:00
Milan Zamazal
a09b4ad150 build: Make sure run_tests*.sh scripts are executable
Generated script tests/run_tests_local.sh is not executable after
`make clean; make' is run.  This bug was introduced by commit 6e6f89b7,
but there is probably nothing wrong with that commit, it just introduces
removal of some files including run_tests_local.sh.  The problem is
tests/run_tests*.sh files are not set as executable if they are
recreated any time later.

This patch tries to solve the problem by making the following changes:

- tests/run_tests*.sh are no longer handled in configure.ac.  They are
  not config files and such a use of AC_OUTPUT is obsolete anyway.
- New tests/Makefile.am rule is introduced ensuring generated
  run_tests*.sh files are set as executable.
- top_srcdir substitution is added to Makefile.subs to make the inserted
  relative paths in the generated files always correct.
- run_tests_local.sh is moved to *_SCRIPTS target in tests/Makefile.am.

There may be other solutions of the problem but whatever solution is
chosen, it should be checked that tests/run_tests*.sh files are
executable and the paths inside the generated files are right in all the
following situations:

- After running ./autogen.sh + make in a fresh git directory.
- After `rm tests/run_tests*.sh; make'.
- After `(cd tests; rm run_tests*.sh; make)'.

Change-Id: Ibc1e3dc8ace7f69801b765262352903020cc8aef
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-on: https://gerrit.ovirt.org/55949
Reviewed-by: Piotr Kliczewski <piotr.kliczewski@gmail.com>
Continuous-Integration: Jenkins CI
Reviewed-by: Tomas Golembiovsky <tgolembi@redhat.com>
Reviewed-by: Yaniv Bronhaim <ybronhei@redhat.com>
Reviewed-by: Nir Soffer <nsoffer@redhat.com>
2016-06-27 03:59:07 -04:00
Francesco Romani
658dc6912d build: pkgversion: minimum release should be 1
For stable branches, we should never have release < 1.
E.g. we should avoid

v4.y.z-0

instead we should have

v4.y.z-1

Change-Id: Idace2ac53d6aafe674c7ad11f611d0de54fcbe5f
Signed-off-by: Francesco Romani <fromani@redhat.com>
Reviewed-on: https://gerrit.ovirt.org/59395
Continuous-Integration: Jenkins CI
Reviewed-by: Nir Soffer <nsoffer@redhat.com>
Reviewed-by: Piotr Kliczewski <piotr.kliczewski@gmail.com>
2016-06-17 11:16:42 -04:00
Federico Simoncelli
6fd14dd0e7 sp: remove automatic storage pool reconnection
On startup the storage pool directory (/rhev/data-center/<spUUID>)
is removed by __cleanStorageRepository preventing the automatic
reconnection (_connectStoragePool) from actually taking place.
Since vdsm has been running for quite some time (years) without the
automatic reconnection we can safely remove it.

Change-Id: Ia57afc04db02b6c15633d09349a55b3ff5ae7fda
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/21424
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2013-12-23 12:44:45 -05:00
Mark Wu
a3d410b1a7 Remove '/run/vdsm' from vdsm-tmpfiles.d.conf
'/var/run' is symlink of '/run', so the dir '/run/vdsm' also be
created when the tempfiles service create '/var/run/vdsm'. And
we don't use '/run/vdsm' directly, so we don't need care about it.

Change-Id: I3872ed37850142d81dd324f38f7f018168f6850c
Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Reviewed-on: http://gerrit.ovirt.org/16905
Reviewed-by: Yaniv Bronhaim <ybronhei@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2013-07-18 04:10:33 -04:00
Douglas Schilling Landgraf
82c5ef6742 vdsm: /usr/lib/tmpfiles.d/vdsm.conf
tmpfiles.d is a service in Fedora 15 and later for managing temporary files and
runtime directories for daemons. Directories /var/run and /var/lock are symlinks
into the /run tmpfs filesystem. As such, they are created empty on every reboot.
For files intended to be placed into those directories, this should normally
not pose any problems. For directories, however, we often need to create the
directories ahead of time. This is best done using the tmpfiles.d mechanism.

Change-Id: Iea9ec4b7ba1e362c1141c4e0cb734d2b1520dbfd
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/15707
Reviewed-by: Yaniv Bronhaim <ybronhei@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2013-07-16 02:56:58 -04:00
Yaniv Bronhaim
812fe75e4b Supervdsm as external service
Creating supervdsmd and set dependencies between vdsm and supervdsm
services

Change-Id: I290a584f38129406cd390fdd1d3d1aad9f829a60
Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/11051
Reviewed-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2013-05-29 10:42:50 -04:00
Federico Simoncelli
c4aae5f0c2 version: upstream dirty is nightly
Previously the upstream dirty builds were released using a pre-release
versioning (prefixing a 0). This doesn't fit the release process in
which the upstream builds are nightly.

More information on pre-releases at:

http://fedoraproject.org/wiki/Packaging:NamingGuidelines#Pre-Release_packages

In this patch:

* remove the leading 0 used for pre-releases (instead of nightly)
* remove vdsm.spec on make clean
* use any tag (not just the annotated ones) to identify the release

Change-Id: Ibbf52173ccaa4a4eb0de5aa2cf61f821ba1fa215
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/14954
Reviewed-by: Kiril Nesenko <knesenko@redhat.com>
Tested-by: Kiril Nesenko <knesenko@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2013-05-22 07:13:00 -04:00
Adam Litke
105879c639 build: Use correct equality operator for /bin/test
According to the man page for 'test', the correct token to use for string
equality is '=', not '=='.  '==' works for the bash builtin version but we
should not depend on it (especially since the pkg-version shebang calls for
/bin/sh).  This fixes the build on my Ubuntu system.

Change-Id: I26c317392a55881f96cb4859db822ecd28cc1a65
Signed-off-by: Adam Litke <agl@us.ibm.com>
Reviewed-on: http://gerrit.ovirt.org/7834
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2012-09-06 17:30:44 -04:00
Federico Simoncelli
16cb74b719 Ship the version file with the tarballs
Shipping the VERSION file allows running the autoreconf tool also from a
tarball package (no need of the entire git repository).

In this patch:
* generate and ship the VERSION file
* move, unify (and ship) version.sh and release.sh in pkg-version
* use the VERSION file when the git repository is not available
  (eg: tarball)

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
Change-Id: I8b72a1740803a9401e4b5a4504a4faa07c29f2b9
Reviewed-on: http://gerrit.ovirt.org/7295
Reviewed-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Reviewed-by: Alon Bar-Lev <alonbl@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
Tested-by: Dan Kenigsberg <danken@redhat.com>
2012-08-24 07:46:30 -04:00
Dan Kenigsberg
c411f32302 Revert "add configure variable vdsmcoredumpdir for /var/log/core"
This reverts commit 6106db0db4 as it broke rpm building on el6.

Change-Id: Iadd3b77f73e3a21fabd7f800eeb93aa3140d20c9
Reviewed-on: http://gerrit.ovirt.org/5709
Tested-by: Yeela Kaplan <ykaplan@redhat.com>
Reviewed-by: Yeela Kaplan <ykaplan@redhat.com>
Reviewed-by: Igor Lvovsky <ilvovsky@redhat.com>
2012-06-26 09:11:43 -04:00
Xu He Jie
6106db0db4 add configure variable vdsmcoredumpdir for /var/log/core
Change-Id: I94ac220078f8a00fbdd8aba6125bedda44a77d15
Signed-off-by: Xu He Jie <xuhj@linux.vnet.ibm.com>
Reviewed-on: http://gerrit.ovirt.org/5150
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2012-06-25 04:06:58 -04:00
Xu He Jie
f79fa0dd09 Move the creation of /data/updates out of init script
Move the creation of /data/updates out of init script,
make init script more simple.

* move the creation of /data/updates to vdsm_reg/vdsm-reg-setup.in
  vdsm-reg-setup can create '/data/updates' after host register to engine.

* remove /data/updates after vdsm rpm uninstalled

Change-Id: I9f8617fdaca3110791a93bb3a5906f30ace2499d
Signed-off-by: Xu He Jie <xuhj@linux.vnet.ibm.com>
Reviewed-on: http://gerrit.ovirt.org/4025
Reviewed-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2012-05-13 02:12:45 -04:00
Saggi Mizrahi
acfe53407b Fix build-aux version scripts so that internal tags don't confuse them
Change-Id: I63844a8b859fec2a84ee180eba0bbfb2fd2223fe
Signed-off-by: Saggi Mizrahi <smizrahi@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/3484
Tested-by: Peter V. Saveliev <peet@redhat.com>
Reviewed-by: Federico Simoncelli <fsimonce@redhat.com>
2012-04-12 10:35:19 -04:00
Federico Simoncelli
eac9e980ae VDSMBRIDGE doesn't need a special expansion
Change-Id: I4cf3d31357a61beabbcdea141cb815a108fa3f2a
Reviewed-on: http://gerrit.ovirt.org/1888
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
Tested-by: Dan Kenigsberg <danken@redhat.com>
2012-02-14 16:53:28 -05:00
Federico Simoncelli
d7a34211cc Move all the substitution at make time
Moving all the substitution at make time we can avoid the double pass
on the .in.in files.

Change-Id: I1f6956350971a88294559039e4ff00fce2637c78
Reviewed-on: http://gerrit.ovirt.org/1034
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
Tested-by: Federico Simoncelli <fsimonce@redhat.com>
2012-01-16 16:19:36 -05:00
Federico Simoncelli
04efb95723 Compile python files using automake
In this patch:
* Use the PYTHON macro to compile python files
* Remove the redhat-rpm-config build dependency
* Move the vdsm sos plugin into its own directory to avoid the custom
  file renaming and to use the PYTHON macro
* Update the gitignore file and the copyright in the touched files
* Add the all-local target to force the substitutions in the python
  files
* Unify the macro substitution in build-aux/Makefile.subs

Change-Id: I7dce5c317605b84ec883feb04bfc83c5f64d921b
Reviewed-on: http://gerrit.ovirt.org/708
Tested-by: Federico Simoncelli <fsimonce@redhat.com>
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2012-01-02 11:16:46 -05:00
Federico Simoncelli
25d25100db Revise the release versioning
In this patch:
* revise the release versioning according to fedora guidelines

Change-Id: I1f7b267a3ea9f415219fec0d45d4e4dad8eadb70
Reviewed-on: http://gerrit.ovirt.org/218
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
Tested-by: Dan Kenigsberg <danken@redhat.com>
2011-11-30 07:55:37 -05:00
Federico Simoncelli
4a69d23514 Strip gerrit headers from changelog
Change-Id: Ie3c09ee32e85a2f8044a4b96570d08557bfd8728
Reviewed-on: http://gerrit.usersys.redhat.com/846
Tested-by: Federico Simoncelli <fsimonce@redhat.com>
Reviewed-by: Saggi Mizrahi <smizrahi@redhat.com>
Reviewed-by: Ayal Baron
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
2011-09-05 17:32:42 +03:00
Daniel P. Berrange
b0f4966373 Automatically generate ChangeLog file during make dist
This adds a script that will automatically generate the ChangeLog
file content from the git changelog. This is performed only when
running 'make dist', via an automake hook

* .gitignore: Don't ignore the entire of build-aux/
* Makefile.am: Add hook to generate ChangeLog
* build-aux/gitlog-to-changelog: Script for generating ChangeLog
  from GIT history

Change-Id: If2a947d6ee31178d799f9e7bcbbbfe9cee0ba170
Reviewed-on: http://gerrit.usersys.redhat.com/840
Reviewed-by: Federico Simoncelli <fsimonce@redhat.com>
Tested-by: Federico Simoncelli <fsimonce@redhat.com>
Reviewed-by: Saggi Mizrahi <smizrahi@redhat.com>
2011-08-22 17:58:06 +03:00
Federico Simoncelli
e03608ba14 Introduce new version system for VDSM
Change-Id: I9b9efb781a59bc1179bdb1b10b9ec17b7d08fbc1
Reviewed-on: http://gerrit.usersys.redhat.com/752
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
Tested-by: Dan Kenigsberg <danken@redhat.com>
2011-08-03 16:51:06 +03:00
Federico Simoncelli
7acf090f18 Initial support for autoconf
Change-Id: Id3fa9b33559e6a7721faa417752da6b7ba1f4c10
Reviewed-on: http://gerrit.usersys.redhat.com/711
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
Tested-by: Dan Kenigsberg <danken@redhat.com>
2011-08-03 16:50:25 +03:00