2646 Commits

Author SHA1 Message Date
Jedrzej Nowak
2bf126e5cc Added systemd solar-worker.service
Change-Id: I4ef34857d5fcc70bfd1ed5477bcf0dfddc3ef573
Closes-bug: #1552628
2016-03-03 12:59:09 +01:00
Jenkins
dae395fc2e Merge "Create remote paths before syncing" 2016-03-02 14:45:40 +00:00
Jenkins
e3a4d6e3f2 Merge "Timestamp comparison in calculating time fixed" 2016-03-02 13:32:47 +00:00
Jenkins
3e88234a7a Merge "Fabric sync transport does not exit anymore" 2016-03-02 12:58:50 +00:00
Jedrzej Nowak
c87b2cef27 Create remote paths before syncing
- For rsync use simple mkdir -p {} && rsync
- For old fabric use run transport before sync to create paths

Change-Id: I268346c06666f29b13e83b4634f84c564c0c1a31
Closes-bug: #1552152
2016-03-02 13:49:54 +01:00
Bogdan Dobrelya
db632b5279 Add troubleshooting to the development guide
Also clarify user "$" or root "#" modes for
shell snippets

Change-Id: Ic5e413b8bcc3788a630452e9ce981229da23dac7
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-02 12:15:58 +01:00
Bogdan Dobrelya
58683af802 Fix riak container nested docker mounts
Fix docker mounts to allow the riak docker container
to be started nested.
Also note about nested containers in the docs.

Related-bug: #1548851
Related-bug: #1547587

Change-Id: I2fb448ac439b717eae1c3deee2cd067ac8b4f0c7
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-02 10:30:20 +01:00
Artem Silenkov
7c8e19e0d7 solar.spec install path fixed
We don't need -c as we already have directory inside tarball root.

Change-Id: Id1df52953f3908ef3eaab18ab147d25d8fc43a11
2016-03-01 21:31:01 +03:00
Jenkins
170aa1827e Merge "Describe how to create/use the builder container" 2016-03-01 12:05:19 +00:00
Bogdan Dobrelya
4aa47c1348 Describe how to create/use the builder container
Closes-bug: #1551269

Change-Id: I9b155bcbc6e96034f5f55ba2f8add89abdeabc5b
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-01 12:47:38 +01:00
Maciej Kwiek
6f85c893b3 Timestamp comparison in calculating time fixed
There were two issue here:
* end_time was not assigned a new value when solar re-started tasks.
  It caused tasks to have start_time higher than end_time until it
  ended. It is fixed by setting end_time to 0 while starting task.
* While calculating the delta and longest path time, we checked if
  end and start times were equal to 0 by strict comparison, which
  didn't work due to timestamps being floats.

Change-Id: I00057ab2707338692f080ced4603ab7303b8c9e2
Closes-bug: 1541022
2016-03-01 11:57:51 +01:00
Jenkins
3a4910e5cd Merge "Update rpm spec dependency" 2016-03-01 09:39:33 +00:00
Jenkins
24d6c3b901 Merge "Pass all args to resource and allow dumping as a yaml" 2016-02-29 16:58:50 +00:00
alexz
500d729468 Update rpm spec dependency
Change-Id: Iad3b7dad14a9d6d9c6ca36bcf263ab0c2e070a7d
2016-02-29 16:03:08 +02:00
Łukasz Oleś
290146dc83 Pass all args to resource and allow dumping as a yaml
Change-Id: I38ff41e5e145d84f118ad38c8a40ef0aa91b36ea
2016-02-27 01:36:38 +01:00
Jedrzej Nowak
80ca0e1707 Replace Bunch with Munch package
Munch is fork of Bunch. Munch is still maintained and already packaged
on Centos.

Change-Id: I4044acd4467b364bb8e68c2e02db59f60a5c8ed1
2016-02-27 00:25:03 +00:00
Jenkins
086a3e28c3 Merge "Workaround for TypeError in zerorpc Events.__del__" 2016-02-26 23:23:34 +00:00
Jedrzej Nowak
8d19958d29 Replace python-pyzmq by python-zmq in solar.spec
Change-Id: Iff7585ed3279e2d4ea8ca349b19b1017c24b3a74
2016-02-26 20:35:51 +01:00
Jedrzej Nowak
de2f683837 Fabric sync transport does not exit anymore
- Custom Executor class that handles abort_exception in fabric

Change-Id: Ief0cd4cc19d6be470a102f9c5b2205cceb75ff38
Closes-bug: #1549326
2016-02-26 13:26:14 +01:00
Jenkins
9f04c94f03 Merge "Fix parsing list of dicts" 2016-02-25 12:53:22 +00:00
Jenkins
ea85b4a18f Merge "Add rpm spec file for solar" 2016-02-24 19:05:02 +00:00
Jenkins
fc7e233b69 Merge "Fixed alignment issues in the text, corrected length." 2016-02-24 17:48:57 +00:00
Jedrzej Nowak
e4165f5623 Workaround for TypeError in zerorpc Events.__del__
Change-Id: If9a096f8c970e6f5e7449e60327ed0a0b0546366
Closes-bug: #1549384
2016-02-24 18:00:04 +01:00
Annie Lezil
5f3ee956b2 Fixed alignment issues in the text, corrected length.
Change-Id: I262f5b9852f0e530bc031ee295a336cb9c5473e8
Closes-Bug: #1547421
2016-02-24 08:59:56 -08:00
Jenkins
3f32acaf6c Merge "Move from semver to semantic_version package" 2016-02-24 15:26:12 +00:00
alexz
efad3d978c Add rpm spec file for solar
Change-Id: If87d1e3fee22d4bcab87b279a583dee6102fd0b0
2016-02-24 17:01:20 +02:00
Łukasz Oleś
6ebaf3b010 Fix parsing list of dicts
Instead of getting {input_name: [{key:value}] it was returning:
{input_name: [{input_name: {key: value}}]

Closes-bug: 1549318

Change-Id: I1af92e88c96e367f7f49f01fcad8b8a5ba1295e2
2016-02-24 15:58:54 +01:00
Jenkins
63f30e6694 Merge "Make zerorpc working with pyzmq > 13.0.2" 2016-02-24 14:49:04 +00:00
Jedrzej Nowak
3e8d9ac48e Make zerorpc working with pyzmq > 13.0.2
- there is a issue with zerorpc.gevent_zmq implementation when pyzmq >
  13.0.2 AND when gevent.patch_all() is done BEFORE importing gevent_zmq
- I added workaround that makes stuff working

Closes-bug: #1549271

Change-Id: I1951a564ace23e3150ecc6d20449036c4e4e10fc
2016-02-24 15:32:34 +01:00
Jedrzej Nowak
8766f11d96 Move from semver to semantic_version package
Change-Id: I6acae60e8aeb9b7599c1117281023b06a514b503
Closes-bug: #1549239
2016-02-24 12:59:56 +01:00
Maciej Kwiek
72876bf215 Raise an error for empty plan
If the execution graph that solar-worker retrieves from db is empty,
ValueError is raised (it's handled by zerorpc executor).

Additionally, db string used for db connection is logged on start of
solar-worker.

Change-Id: I2acafec0e94c0d2792b34d0485415782eae1b9dd
Closes-bug:1545813
2016-02-24 11:28:40 +01:00
Maciej Kwiek
ec71d71d6a No arguments should be accepted by solar-worker
argparse parses empty arguments list to ensure that anyone using
solar-worker won't pass any arguments to it.

Change-Id: I719b76565df3246c5a53239fed42d86426a25868
Closes-bug: 1547529
2016-02-24 10:36:17 +01:00
Jenkins
3de536b399 Merge "Fixed non working test on riak backend" 2016-02-23 09:36:14 +00:00
Jenkins
f96c5bf0d4 Merge "Fix no attribute: result has no s" 2016-02-22 22:40:53 +00:00
Jenkins
39490e25ce Merge "Align requirements with global-requirements.txt" 2016-02-22 22:40:38 +00:00
Jenkins
41cc0d3f61 Merge "Change sudo to become in bootstrap playbooks" 2016-02-22 22:40:32 +00:00
Łukasz Oleś
c16795c0e9 Fix no attribute: result has no s
Change-Id: I2c5eee9a23ffc7812ae350c68b33bb3abd13d24f
2016-02-22 23:24:16 +01:00
Jedrzej Nowak
6137f1fe28 Fixed non working test on riak backend
- test was renamed from test_return_siblings_on_write to
  test_conflict_resolution_called
- custom mock like context manager created because riak.bucket disallows delattr

Change-Id: I1f8ff7ca85b34609d3b743d2a97e7e2748a335b4
Closes-bug: #1545772
2016-02-22 17:51:35 +01:00
Maciej Kwiek
b52a511b22 Align requirements with global-requirements.txt
All requirements but pyzmq (which needs further debugging) are in line with global-requirements (if they
are there). Also, pinning to specific versions was removed.

Change-Id: Ic08b5fabad765abc09d8494ddc22a2a9fe1e50d7
Related-bug: 1546497
2016-02-22 15:42:41 +01:00
Jedrzej Nowak
add50899b9 Remove unused libraries
- remove tabulate + remove dead code in CLI
- remove multipledispatch + reimplement simple wrapper in __init__

Change-Id: I8503179c05477b9075845e740738f3e355a72cf5
Closes-bug: #1548314
2016-02-22 15:20:48 +01:00
Maciej Kwiek
f8f8c0d622 Change sudo to become in bootstrap playbooks
As we are using ansible 2.0, we should move from sudo to become to
avoid deprecation.

Change-Id: I7a99df005dcdcd12e9a2afdeb0c908fe2069cc57
Related-bug: 1547430
2016-02-22 10:17:16 +01:00
Jedrzej Nowak
e26f0083bb Added solar.version
- Added solar.version file, it contains pbr version_info
- Use version_info.release_string and
  version_info.version_string in docs

Change-Id: I7894e79aacc736032313f81b11fd0561344d702a
2016-02-19 09:43:18 +00:00
Jenkins
c2bb129b79 Merge "Rework conftests + sql tables are cleared on success" 2016-02-19 09:11:37 +00:00
Jenkins
e8a9b9b6c7 Merge "temporary skip 2 problematic tests on postgresql" 2016-02-19 09:04:27 +00:00
Jedrzej Nowak
8d64e2e721 Add more stuff to exclude when syncing tree in tests
Some extra speedup

Change-Id: I9acef95b4b147b39af2d1b60d27e59a11af897d9
2016-02-18 23:24:55 +00:00
Jenkins
c39c2bc130 Merge "Some speedups after adding PG" 2016-02-18 21:42:19 +00:00
Jedrzej Nowak
c32c406a9e temporary skip 2 problematic tests on postgresql
Change-Id: I7618d5b25251c0e066330d2658c66a48559e6802
Related-bug: #1546992
2016-02-18 19:17:42 +01:00
Jenkins
b538dc6dd6 Merge "Use psycogreen for PG backend" 2016-02-18 18:04:07 +00:00
Łukasz Oleś
bf5117508c Some speedups after adding PG
- ansible is running only once now
- more dynamic waiting for postgress

Change-Id: I9951312680aa2a80af201166f203bc9112cfcfb3
Partial-bug: #1546205
2016-02-18 18:36:31 +01:00
Jenkins
d0d2e87707 Merge "Fix dirs sync rsync type for Vagrantfile" 2016-02-18 15:13:38 +00:00