Commit Graph

36 Commits

Author SHA1 Message Date
ervin f5e7875552 Release v1.5.3
Synergy service updates

Change-Id: Id550365a7f7498d5c2f7424706a025a32b0373a6
2017-09-20 10:28:51 +02:00
Vincent Llorens 35165c4241 Update RPM package dependencies
During a recent installation of Synergy on a standard CentOS 7 cluster
it appeared that python dependencies present in both EPEL and OpenStack
repositories were not installed correctly.
This commit makes the dependencies more explicit and result in a correct
installation procedure.

Note that since the Synergy code has not changed since the last version,
only the package "dist" version is changed.

Change-Id: I1d10fdc7e98788ce83c245aa3606351e358603e1
2017-08-23 10:44:53 +02:00
Lisa Zangrando c631a38fe6 Release v1.5.2
Synergy service updates.

Change-Id: Ice34496114b3e4e333a9af724ad48e3bb39f4676
2017-07-18 11:35:11 +02:00
ervin 16d1843455 Release v1.5.1
Update the required version of synergy-service.

Change-Id: I5425090cd7b9d896718523974c748e6c54375f8f
2017-03-21 12:24:48 +01:00
ervin 0d84f532d8 Update synergy service packaging
This fix updates the packaging of synergy service making it compliant with the indigo-2 requirements.

Change-Id: Ide701fe90c23eb4375bcdf9ff9bfd010cd7290ac
Sem-Ver: bugfix
2017-03-20 18:13:15 +01:00
ervin 88e56e5d50 Release v1.5.0
Update the required version of synergy-service.

Change-Id: Ie2b80bc0e20ac6cab9d8018c9d53da92fce10f4c
2017-03-20 12:38:47 +01:00
Vincent Llorens bf3f9e6895 simplify packaging with docker
Small tweak to the docker CLI invokation when packaging to make it less
verbose.

Related: I6a9bc7d3686a1b116d664db77f072b004b30fd25
Sem-Ver: bugfix
Change-Id: Ida07b3b439949fe83066039350647901693d4816
2017-02-21 14:58:14 +01:00
Vincent Llorens cad7bca301 remove support for SysV init and Upstart
Synergy is now expected to work on either CentOS 7 and Ubuntu 16.04.
Both of these OS ship with Systemd so we can get rid of the SysV init
and Upstart scripts we had.

Sem-Ver: bugfix
Change-Id: I8e51acc4c86ee82c2484ee09036f902156580ce0
2017-02-14 16:26:33 +01:00
Lisa Zangrando 78eb46a608 Removed all managers parameters in synergy.conf
The synergy.conf must configure just the service whereas the
managers must be configured with separate configuration files.

- removed all scheduler managers sections
- added support to read all configuration files in /etc/synergy
- removed service automatic restart after installation or update

bug #1663581
Depends-On: I7ceb140182db306567d7f7a6b5bfcf0871249a05
Sem-Ver: feature

Change-Id: I4491606402314d29363420aeb5cb943ae3a9090f
2017-02-14 15:36:28 +01:00
Vincent Llorens cb935dbcbc fix synergy erasing log file on upgrade
On CentOS 7, upgrading Synergy would cause the Synergy log file to be
overwritten. We fix this behaviour in this commit.
Note that now the Synergy log file is created during Synergy first run,
not during the first installation of Synergy.

fixes bug #1664502
Sem-Ver: bugfix

Change-Id: Id1a4fc3871a141f1d5fd0f2c95c10464e86dda8e
2017-02-14 12:52:25 +01:00
ervin 2edc9e2ef2 Release v1.4.0
Update the required version of synergy-service.

Change-Id: I8fccb21a7b36b7f1fd7142ea0f08c42feb2ff342
2017-01-30 15:51:00 +01:00
Vincent Llorens aebc4aef10 Release v1.3.0 with packaging files
Change-Id: I2bf3516b2c59b484bd738b0d1caf820084fc9f89
2016-12-07 13:14:25 +01:00
Vincent Llorens a1657004eb [packaging] make docker aware of PKG_VERSION
When packaging, we can now pass a PKG_VERSION environment variable to
docker to force which version is being packaged.
If this variable is not passed to docker, then the version is the latest
git tag.

Change-Id: I8863d6a101e8d85573d8547bab1a667060648018
2016-12-06 15:15:04 +00:00
Vincent Llorens fbf53d25ad Update changelogs and system package versions
Change-Id: If18e6decc4b21ddaa230c4be3819dfe1c24cf5f4
2016-11-09 15:37:35 +01:00
Vincent Llorens cc9eaff9b5 fix packaging with docker and its documentation
- pbr was not installed, but is now required.
- clean .eggs directory
- update packaging doc for CentOS

Sem-Ver: bugfix
Change-Id: I6a1ec486847a28f76283b8acb96c56af6a5e4e4c
2016-10-27 14:30:24 +00:00
Vincent Llorens e1ed6abec2 Remove versions for required packages
Requirement versions were set in the first place to limit the
buginess. However, after some time it appears that it made more
harm than good, as discussed in:
https://review.openstack.org/#/c/388003/

In this commit we remove the versions for all the requirements.

In the future, if a specific dependency version if causing some issue
we should reintroduce the version for this dependency to block the
unstable version.

Sem-Ver: bugfix
Change-Id: Ia42509bf2bf9012cc03c8bb25b84f465425e2aad
2016-10-27 11:20:04 +02:00
Vincent Llorens fd03bffe99 fix missing "requests" from the requirements
Also add it the spec file for RPM packaging.

Sem-Ver: bugfix
Change-Id: Ie32a7a9ce4b5d653410993dc14b4953dd3535a38
2016-10-25 15:37:06 +02:00
Jenkins b50e3fddbe Merge "fix wrong version of eventlet" 2016-10-21 12:08:39 +00:00
Vincent Llorens b0f1c13b9e fix docker packaging for CentOS
It was missing git, which is necessary since we now rely on it to get
the current version of synergy-service.

Change-Id: Ifd334dd646ca9e9629e9224163f01380c2e5f1b6
Sem-Ver: bugfix
2016-10-21 13:40:07 +02:00
Vincent Llorens 906ab1f7fc fix wrong version of eventlet
The required version for CentOS was 0.18, but only 0.17 is available
in the repositories.

Change-Id: I94ced14b0f0c520e431c7ef2fd94c11d6721af9c
Sem-Ver: bugfix
2016-10-21 11:21:26 +00:00
Vincent Llorens 524918a027 fix docs for packaging with Ubuntu
Change-Id: I9ab22416c8302e340bef027761a4538c8501bc98
Sem-Ver: bugfix
2016-10-20 15:58:59 +02:00
Vincent Llorens 4755163104 fix to get the synergy version when packaging
Commit 670f608252 introduced this bug.
We previously relied on the "version: " line of setup.cfg, but this
was removed due to using pbr.

We now get the synergy version from the git tag.

Change-Id: I31fc9215269b05acabba8c4288af540f4de9c0c4
Sem-Ver: bugfix
2016-10-18 11:48:14 +00:00
Vincent Llorens 2e15008a9e fix required packages when packaging
- ubuntu Dockerfile didn't have the Ubuntu OpenStack repository.

- required version of setuptools was too high wrt the versions
  available for CentOS and Ubuntu.

Change-Id: I7ab657e53e48658c08c02020256be97cd5d3af66
Sem-Ver: bugfix
2016-10-18 13:04:42 +02:00
Vincent Llorens 7fc4a13865 RPM: don't output errors on uninstallation
As per RPM documentation, it is advised to not clutter the output
when removing packages.

This commit fixes this by redirecting the errors to /dev/null,
effectively getting rid of errors like:
```
userdel: synergy mail spool (/var/spool/mail/synergy) not found
userdel: synergy home directory (/home/synergy) not found
groupdel: group 'synergy' does not exist
```

Change-Id: I41508c13e971b3740d3e37448b62d5a9b841db37
2016-10-04 16:59:30 +02:00
Vincent Llorens 6d82831a8b fix eventlet and dateutil required versions
As of now, in CentOS, eventlet v0.18 is available ; in Ubuntu,
dateutil is only at version 2.2.

Change-Id: I1123261146c713dcf843788dc9101c6b7fd1ba00
2016-09-27 14:20:09 +02:00
ervin 07b77461a2 Release v1.1.0
Change-Id: I5e28616b130376cb8f179d016c3a9908282afbc0
2016-09-22 11:20:59 +02:00
Vincent Llorens 450e106f03 Use dependency pinning
For CentOS7, we use dependency pinning in the spec file. Note that we
don't do it for Ubuntu as it will use the dependency versions from the
requirements.txt.

We now use the compatible release operator [1] to define versions in
the requirements.txt.

This commit also removes non relevant warnings when uninstalling
Synergy.

[1]: https://www.python.org/dev/peps/pep-0440/#compatible-release

Change-Id: Icb1dd16d7d8d7246914058a11534bcd099b1f18c
2016-09-13 15:14:44 +02:00
Vincent Llorens 0e70c4636e Streamline packaging with docker
We get rid of the build_env.sh script that need to be changed after
each release.

This commit also:
- remove unecessary files when packaging (.tox etc...)
- fix CentOS Dockerfile to get the OpenStack repo

Change-Id: Idd8c4004e2ddca33fb779c13a895e2e0afdb9651
2016-09-08 15:39:44 +02:00
Vincent Llorens 07bb3cf427 Bump version to 1.0.1
Change-Id: I41c9795f4ebc928caebdc9fb8733562f9c0c9d67
2016-07-26 11:08:07 +02:00
Vincent Llorens ab8f265408 bump to version 1.0.0
Change-Id: Iffec6cf759e482b1e60ecc2b8dc03bd65858b660
2016-06-17 14:40:13 +02:00
Vincent Llorens 4bd94d9fbd add synergy CLI to bin/
Rename bin/synergy to bin/synergy-service.
Add the synergy client command as bin/synergy.

Impact changes to the packaging.

Change-Id: If3b6c3799906a40481c5e0fb4c67de2f6a0ccba9
2016-06-07 12:08:04 +02:00
Vincent Llorens 790ff84f4e fix CentOS packaging documentation
Change-Id: I5bfd5e724ed79123ed0fddee9df00f698f7979ee
2016-06-01 13:34:55 +02:00
Vincent Llorens ab0c9821f1 bump version & changelog for release v0.2
Change-Id: I2a4bcade9e33f51e9f8122400f2f3b1dfe760f22
2016-04-29 17:14:00 +02:00
Vincent Llorens 1989964add freeze the OpenStack version for CentOS
This only applies to the builder made using the Dockerfile.

Change-Id: I8cf1485c41fb3b7c86f0a57732f0dfdd5a3a556b
2016-04-29 15:31:19 +02:00
Vincent Llorens 3433f08a68 fix code that prevented the package from running
Change-Id: I7ff560c533098bc412a110c313a19445d4e02100
2016-04-28 17:44:31 +02:00
Vincent Llorens c2588f9972 import project from launchpad git repo
In addition to importing the project, this commit also includes fixes
to pass PEP8 and unit tests on OpenStack CI.

Commit history that was imported from the launchpad project:

. The first commit's message is:
first Synergy implementation

. This is the 2nd commit message:

added README file

. This is the 3rd commit message:

added new logging configuration support

. This is the 4th commit message:

added new logging configuration support

. This is the 5th commit message:

Synergy repository restructured

. This is the 6th commit message:

Synergy repository restructured

. This is the 7th commit message:

TimeManager

. This is the 8th commit message:

first service implementation

. This is the 9th commit message:

package synergy.managers.scheduler removed

. This is the 10th commit message:

Keystone and MYSQL configuration removed

. This is the 11th commit message:

Clean up setup.py

- remove all directory creation, chmoding, etc. This will be handled by
  the system package.

- rename `scripts` as `bin` to follow best practices.

. This is the 12th commit message:

Fix systemd unit file

- remove all the directory creation since it will be done by the system
  package.

. This is the 13th commit message:

Move synergy source to parent directory

Follow the standard of having the source package directory at the root.

This also make it easier to work with setuptools.

. This is the 14th commit message:

Add dependencies in setup.py

. This is the 15th commit message:

Add RPM spec file for packaging

. This is the 16th commit message:

debian/ubuntu package

. This is the 17th commit message:

add oslo.log as a requirement

. This is the 18th commit message:

deb pkg: explicit naming for oslo.*

. This is the 19th commit message:

rename deb package to python-synergy-service

. This is the 20th commit message:

fix debian package configure step

. This is the 21st commit message:

remove unecessary init & upstart scripts

We will target Ubuntu >= 15.04 and EL >= 7. Both use systemd by default,
so we do not need initv and upstart scripts.

. This is the 22nd commit message:

changed license field: GPL->Apache 2

. This is the 23rd commit message:

change license to Apache 2 for rpm & deb

. This is the 24th commit message:

rename python package to "synergy-service"

This is the name that will be used on PyPI.

. This is the 25th commit message:

oslo_log dependence removed

. This is the 26th commit message:

remove oslo.log dependency from packaging

. This is the 27th commit message:

remove oslo package renaming

Both python-oslo-* and python-oslo.* are supported on Ubuntu >= 15.04,
but only python-oslo.* are supported on Ubuntu 14.04.

. This is the 28th commit message:

fix oslo imports for Ubuntu14.04

This concerns 2 python packages:
- oslo config
- oslo messaging

Both packages cannot be imported using their "oslo_PKG" name in Ubuntu
14.04.

These packages can be imported on both Ubuntu 14.04 and 15.04 using
"oslo.PKG".

. This is the 29th commit message:

fix manager config setup

We check for manager in the conf file using the oslo config package.

Previously, we relied on a private variable to list the managers.
However, this private variable is not present on the oslo.config
packaged shipped with ubuntu 14.04.

In this commit we change the way we list managers to be compatible with
both Ubuntu 14.04 and 15.04.

. This is the 30th commit message:

Revert "fix oslo imports for Ubuntu14.04"

This reverts commit 6ee3b4d54765993d165169a56d54efdfb2653c89.
We are going to use try/except imports to deal with oslo{.,_}PKG

. This is the 31st commit message:

use try/except imports for oslo{.,_} packages

The oslo packages are imported using "oslo.PKG" for versions < 2.0.0,
but are imported using "oslo_PKG" for versions >= 2.0.0.

We use try/except statements to try to import "oslo_PKG" first, and fail
over to "oslo.PKG".

. This is the 32nd commit message:

add packaging README

. This is the 33rd commit message:

add cleaning functions in packaging scripts

This way when a container as finished building, when can easily do a
rebuild with: docker start -a -i container_id

. This is the 34th commit message:

various fixes on packaging

- deb: postinst depends on "adduser" package
- deb: add upstart & systemv init scripts in deb package
- deb: postrm purge now removes init script
- deb: override lintian error about systemd/init script
- rpm: fix the cleaning stage
- rpm: fix /var/lib/synergy not being created and preventing systemd
  from starting the synergy service

. This is the 35th commit message:

use entry points to discover managers

Also add the TimerManager to the manager entry point.

fix centos docker builder

The .git repo would not get cleaned up after a failed build, resulting
in incapacity of starting the container again.

add base files for OpenStack CI

Most of the files were created with cookiecutter.
http://docs.openstack.org/infra/manual/creators.html#preparing-a-new-git-repository-using-cookiecutter

fix centos docker builder

The .git repo would not get cleaned up after a failed build, resulting
in incapacity of starting the container again.

fix setup.py failing to build due to pbr

rename service to "synergy"

Previously it was either "python-synergy-service" or "synergy"
depending on the platform.

Change-Id: Iebded1d0712a710d9f71913144bf82be31e6765b
2016-04-27 16:29:13 +02:00