Commit Graph

211 Commits

Author SHA1 Message Date
Tony Breeds 3089470ed3 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I1fb999f1eb1225ebd6f0040c55d5f557933169a0
2017-09-12 16:07:12 -06:00
ChangBo Guo(gcb) 1bd761df8e Update URLs in documents according to document migration
Change-Id: I587c575a1adc7f9156b8e6667b650296ce3680e4
2017-07-12 23:19:00 +08:00
Akihiro Motoki eb7ef1567d rearrange existing documentation to fit the new standard layout
Change-Id: Ieded73a772471f6b2a32b489b4e3fc33a3daf33e
2017-07-08 22:27:12 +00:00
Akihiro Motoki 8ed910128d Switch from oslosphinx to openstackdocstheme
Change-Id: Iccb9d585485ecd0181c71c08de920f4836f0d774
2017-07-08 22:27:10 +00:00
Jenkins dfc92e32e7 Merge "Remove pbr warnerrors in favor of sphinx check" 2017-07-05 12:47:41 +00:00
OpenStack Proposal Bot b2647a200e Updated from global requirements
Change-Id: I9c79b8f836e5dfc40972e53df09e0135302a74b4
2017-06-27 12:20:28 +00:00
Vu Cong Tuan cdf5755886 Remove pbr warnerrors in favor of sphinx check
This change removes the now unused "warnerrors" setting,
which is replaced by "warning-is-error" in sphinx
releases >= 1.5 [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/
2017-March/113085.html

Change-Id: I0e6a90bec74b932bd21a97dee94127d6c631169b
2017-06-12 08:46:36 +07:00
OpenStack Proposal Bot 00cc60e04b Updated from global requirements
Change-Id: Id65a66a432e7806330cf8c8f6e37f23e6525f370
2017-06-10 13:35:38 +00:00
OpenStack Proposal Bot 6e925e85bc Updated from global requirements
Change-Id: I079270f7147db916d307f56da770f76abd431855
2017-06-02 22:05:34 +00:00
OpenStack Proposal Bot 42638f2bf3 Updated from global requirements
Change-Id: I2a35b4851cccfa4fbb4c6c0414ffc0bbcb0c154b
2017-05-17 13:48:10 +00:00
ChangBo Guo(gcb) ec8f632fe5 Trivial: Remove testscenarios from test-requirements.txt
We don't use testscenarios anywhere, need remove it.

Change-Id: I6fcda519942f3fd4340bc8a5d92ad25db16eec14
2017-03-28 23:31:35 +08:00
Jenkins fc5b2a9995 Merge "Allow rootwrap-daemon to timeout and exit" 2017-03-07 14:32:10 +00:00
OpenStack Proposal Bot d089ff3ee9 Updated from global requirements
Change-Id: Icc4d85ffa994730d7c53fe9099cda6f7bb4783c1
2017-03-03 00:03:18 +00:00
Jenkins a9ad4ec0f9 Merge "Don't open subdirectories rootwrap filter directories" 2017-03-02 21:58:29 +00:00
ricolin 3d3d3237c8 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Iec7cc46234bf60e66701c64e2b1d520771dc14f3
2017-03-02 18:16:09 +08:00
IWAMOTO Toshihiro 6285b63572 Allow rootwrap-daemon to timeout and exit
If the client side abnormally exits, its rootwrap daemon cannot
receive a shutdown message and will be left forever. Let it timeout
and exit to save such cases.

Change-Id: I783717b5fa019371747b98bf92965b6e689603f6
Related-bug: #1658973
Related-bug: #1658977
Related-bug: #1663458
2017-03-02 10:58:04 +09:00
Stephen Ma 0694fbc7a9 Don't open subdirectories rootwrap filter directories
A rootwrap filter directory may contain subdirectories. The rootwrap
daemon will crash when it tries to load filters from subdirectories.
So subdirectories should be skipped.

Change-Id: I4f618734300bf5eb81282fbf8fc213f995a4fe59
2017-02-28 04:34:00 -08:00
Jenkins 0fa59b04e8 Merge "Avoid importing Linux specific modules on Windows" 2017-02-25 19:53:56 +00:00
Claudiu Belu 847c28abcf Avoid importing Linux specific modules on Windows
oslo.rootwrap currently imports a few Linux-specific modules, which
means that any services importing oslo.rootwrap modules will fail to
start on Windows (e.g.: neutron-ovs-agent).

Change-Id: I229c311939facdffdcde484f590e980102024b5a
Closes-Bug: #1661326
2017-02-23 16:46:50 +00:00
Jenkins 1335a543be Merge "Remove support for py34" 2017-02-13 17:00:20 +00:00
Jenkins 1f60ecbb9d Merge "Always check cmd which does not exist" 2017-02-13 08:04:42 +00:00
XianChaobo a76f5daad9 Always check cmd which does not exist
In daemon mode, if run a cmd which does not exist,
it will raise an Exception. But when we install the
cmd later and run cmd, it still raise an Exception.
The only work around right now is to restart the
daemon, with this change, we can avoid restarting
the daemon

Closes-Bug: #1663216
Change-Id: I6f6ff540ed103f0fec329d6264bdac26493c8fad
2017-02-13 09:45:30 +08:00
OpenStack Proposal Bot 991aa5c79d Updated from global requirements
Change-Id: Ie7ea94760357df38c2da5c5ac343ab578a2d68bf
2017-02-10 05:57:55 +00:00
melissaml 7a418520aa Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due
to the change from Ubuntu Trusty to Xenial, where only python3.5
is available. There is no need to continue to keep these settings.

Change-Id: I1100dfbd3af361af33438263771ce7bf45d5bef0
2017-02-09 20:02:19 +08:00
Jenkins 506cfee9b1 Merge "pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)" 2017-02-07 02:23:07 +00:00
Jenkins 77196a7124 Merge "Update reno for stable/ocata" 2017-02-06 20:50:21 +00:00
Davanum Srinivas 82755ebbc2 pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz)
We need to pass into VersionInfo what one would expect from running:
 setup.py --name

 Right now we pass in say oslo_context and pbr fails if there is no .git in
  the python source tree

  Closes-Bug: #1662266

Change-Id: I9bdf6a792cb18432268e6aaaa509e25119775597
2017-02-06 12:49:21 -05:00
Ralf Haferkamp 458d79b61a [daemon] Close inherited filedescriptors after forking
We don't want to keep listening on the parent's sockets (e.g. when
started by neutron-openvswitch agent) after forking the rootwrap
daemon.

Closes-Bug: #1658973
Change-Id: I3e364e9d3ad4e2fcd6f4d8f52f847ec9fa944572
2017-01-25 09:44:41 +01:00
OpenStack Release Bot 47682cb601 Update reno for stable/ocata
Change-Id: Icec53c9449b24d3d15021fc852a9d9b3f228789f
2017-01-20 19:15:49 +00:00
Jenkins 698ce0b516 Merge "Relax default strict option under python3.x for configparser" 2016-12-23 05:00:55 +00:00
Davanum Srinivas 7a2610d6d6 Relax default strict option under python3.x for configparser
Looks like things changed in 3.2:
"In previous versions of configparser behaviour matched strict=False."
from:
https://docs.python.org/3/library/configparser.html

Closes-Bug: #1652157

Change-Id: Iffb058b72b14b7535c501d5bf03b8f3576443b34
2016-12-22 17:27:40 -05:00
Tony Breeds 9e96313690 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove oslo.rootwrap.

Change-Id: Ie14167eced0bba29f7d4e30f815785641c1da6c0
2016-12-13 15:39:31 +11:00
Flavio Percoco 8046106ea7 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/be32d1e9078b77255769827fe4d55c99\n'

Change-Id: I734a910040b4254cdda8b8bb1391a701f8267614
2016-11-25 13:09:20 +01:00
Jenkins c2f337b9b6 Merge "Enable release notes translation" 2016-11-09 18:32:53 +00:00
OpenStack Proposal Bot dad7ba43ac Updated from global requirements
Change-Id: I7f40a6f9ca05d56762d1292c2f4ed78ea33d9430
2016-11-02 15:39:24 +00:00
OpenStack Proposal Bot c6a933532e Updated from global requirements
Change-Id: Ie7f35b36e28a14a3214d607e7e0c8e54030ff317
2016-10-22 01:26:12 +00:00
howardlee ccef06cd5b [TrivialFix] Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)'
Change-Id: I11e5f2db80249f5ff8275da97458e9455319ddfe
2016-10-20 16:13:27 +08:00
Thomas Bechtold 16c22e9b1a Fix running unknown commands in daemon mode
Running a unknown command (which is mentioned in the filter
but not available on the filesystem) leads currently to an exception.
Make sure that the return codes for both, daemon and non-daemon mode
are equal when running the same command.
Also add functional tests for this case.

Change-Id: I20004c3c370d004b5b76f4c8f8ab167d0949fabf
Closes-Bug: #1632768
2016-10-18 06:50:44 +02:00
Andreas Jaeger d59692cda6 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: Ib1a145799101da6196445e8ed78ba70863df30e2
2016-10-06 20:43:14 +02:00
Tony Xu e93f837005 Update homepage with developer documentation page
Change-Id: I0f51789550ba2bc55f783f7ae1e2bdb91608b235
2016-09-24 14:11:53 +08:00
Jenkins a1487259fd Merge "Add reno for release notes management" 2016-09-14 16:20:10 +00:00
Jenkins a0f8377b3a Merge "Enhance _program() and _program_path()" 2016-09-01 10:20:24 +00:00
Jenkins 9a9e411c43 Merge "Remove discover from test-requirements" 2016-08-31 07:54:57 +00:00
Victor Stinner 04e2cd00d7 Enhance _program() and _program_path()
* _program_path() now uses shutil.which() if available
  (Python 3.3 and newer)
* Convert _program_path() to static method (self is not needed)
* Explain when os.readlink("/proc/pid/exe") result can contain NUL
  byte followed by junk data
* PATH environment variable: use os.defpath if PATH is not set
  (as shutil.which())
* Update test_KillFilter_renamed_exe() for Python 3 using
  shutil.which(): mock also os.path.exists() and os.access()
* test_KillFilter_upgraded_exe(), test_KillFilter_renamed_exe(): use
  @mock.patch() decorator
* Cleanup the code

Change-Id: I91a7a8505380d4aeae7b2c0b3199e25b17b96888
2016-08-19 12:45:21 +02:00
yan.haifeng a46b731c8a Fix parameters of assertEqual are misplaced
Many assertEqual sentences don't follow assertEqual(expected, actual),
These misplaces have 2 impacts:
1, giving confusing messages when some tests failed.
2, mislead other developers, new test modules may follow these wrong pattern.

This patch fix all of them.

Change-Id: I4adfc98d6eecd5ea117d725775b2476b237212d9
Closes-Bug: #1604213
2016-08-02 14:25:52 +08:00
Swapnil Kulkarni (coolsvap) 5d96b8665e Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Ifb46b956bf22ae7ab0fd317e0667158ac36ba88c
2016-07-22 06:42:06 +00:00
Sean Dague 37c2a041d3 always allow privsep-helper as a command
To support the seamless transition from oslo.rootwrap to oslo.privsep
across multiple projects: nova, neutron, cinder, and libraries os-vif,
os-brick we need to be able to execute privsep-helper as root from
rootwrap.

Rootwrap's use of etc (by default) for rules makes the upgrade path
very manual for operators. Given that every project is going to add
the same privsep-helper rule at some point over the next few cycles,
instead of making every project have to have a manual update process,
we just whitelist privsep-helper. This will immediately make it
available for all, and upgrades become far more seamless.

Change-Id: If8b60f2d671b9d12c58226019d787917efaedd9c
2016-07-20 15:56:31 -07:00
Yatin Kumbhare 5e5ed2e133 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.

Change-Id: I7c1ce52e6d1427e797d4a002d0ee0543e11dd92b
2016-07-12 17:01:41 +05:30
Kirill Bespalov 1c110e0398 Add reno for release notes management
An initial patch to add reno and create a base directory for
release notes

Change-Id: I14222756c84e0d2161fea5f4df75d78cd00dccb4
2016-06-30 09:59:31 +00:00
OpenStack Proposal Bot 3a70d2ead1 Updated from global requirements
Change-Id: Ia4c6330cf6bd02e670b07e92353cf9559fa57637
2016-06-21 18:04:35 +00:00