Removed copyright from empty files

According to policy change in HACKING:
http://docs.openstack.org/developer/hacking/#openstack-licensing
empty files should no longer contain copyright notices.

Change-Id: I1f825add9036623ef626b48c66206ac2b452c592
Partial-Bug: #1262424
Adjust logging levels and usage to follow standards

A few of our logging levels and messages should be
updated to better reflect the oslo logging standards
created at https://wiki.openstack.org/LoggingStandards
so update some of them to not report error when its really
warning level and not report warning when debug is better.

Change-Id: I8abdb1bcfa2893c6b97eda7e85ac779e456966b8
Move flow states to developers documentation

- Move Flow States documentation from wiki to development docs
- Add Retry States section

Change-Id: Ie60dbbae9290ed3a49e6e58037a1a977a83850d8
Add Retry to developers documentation

Change-Id: I1e97af1f2e5d34b3e403c8c06d56f5d6157a7402
Small documentation fix

Change-Id: I31959cd9ea0465bf9aabb3a222cb45630cde8f66
Add more tests for resumption with retry

Cover cases where crash happens at different point of atom
failure processing.

Change-Id: I3ba1cacbcec2a052e91f508debf3fef9b04c3d42
Avoid shutting down of a passed executor

For the case where an executor is being provided we
should not shutdown the executor on-behalf of the
provider since they would likely expect that they
can still use the executor elsewhere. If the executor
is shutdown then further usage is not possible.

Change-Id: Ia83d8c2f1df06200e32e9b0c7340f32e74fd5d85
Add a timeout object that can be interrupted

Add and use this object to make it so that the worker
executor notifier can run and also be interrupted when
its owning thread is finished (thus allowing it to be
finished before the timeout is reached).

Change-Id: Ice9f3b74b894dd7a76ab94ba4561b9405eba0206
Drop obsolete test_unordered_flow

Action engine tests were modified to keep few cases covered.

Change-Id: Ibfcdd5378605532a4eb3fb1a43a70532a771ea16
Drop indexing operator from linear flow

It is not needed. Also, using it complicates transitioning
to another pattern (e.g. graph flow) and encourages bad
programming practices.

Change-Id: I9d0a4646a27df1a11ed436f26a0cb074b717647e
Linear flow: mark links and rework unit tests

- add 'invariant': True to all links produced by linear flow;
- write new unit tests for basic functionality of linear flow
  pattern;
- remove some simple now-redundant unit tests from
  test_flow_dependencies.

Change-Id: I1f4fa8a1dfc61485555a10e8d0629a67aab1997f
Unit tests for unordered flow

This change adds unit tests that check unordered flow methods
without loading it into engine and executing it.

Change-Id: I665b6fe070759061edf7a7da4f117c0269c9c3cf
Merge "Small documentation fix"
Merge "Adjust logging levels and usage to follow standards"
Rewrite assertion for same elements in sequences

New version is able to compare sequences whith elements that are not
hashable and cannot be compared (so that sorted() does not work).
For that, a utility function that caluclates difference between two
sequences was added. This function was also used in retry.ForEachBase.

The assertion was also renamed to assertItemsEqual, which matches
same assertion that was added in python 2.7.

Change-Id: I2b1b811190e9dc51718e4ca17ffc5c9015c34dc4
Rework graph flow unit tests

This commit adds unit tests that check graph flow methods without
executing or flattening it. Now-redundant tests from other test
suites are deleted.

Change-Id: I8dafe0f9b295428831eddb3f9fd48f042d2f1ffc
tests: Fix WaitForOneFromTask constructor parameter introspection

Strings are iterable, so the check in WaitForOneFromTask was
effectively useless. This lead to TypeErrors (caught by transition
notifier) when it tried to find None in 'task1'.

Change-Id: I3e91029f7b7cb960d6ca84490de76b5e044bc238
Merge "Removed copyright from empty files"
Merge "Drop indexing operator from linear flow"
Flattening improvements

- remove extraneous locking from flattener;
- don't add 'flatten': True to edge data: it means nothing currently
  as all the edges get it;
- improve unit tests for flattening:
  - check retry was correctly set with assertIs instead of assertEqual;
  - check exact source, destination and attributes of resulting
    graph edges;
  - cover more error paths;
- minor code cleanups.

Change-Id: Iab23e245cdc834e2cdcb4b7011e13be59aca754a