Commit Graph

203 Commits

Author SHA1 Message Date
Tony Breeds cb4c456861 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: Ie925a35847b69cac5762e1bba205b1a1364c21a1
2017-09-12 16:04:15 -06:00
OpenStack Proposal Bot c2e15c8424 Updated from global requirements
Change-Id: I4fe1acdbb9be7b564ce75e77b077f572b184cebc
2017-06-27 12:19:28 +00:00
OpenStack Proposal Bot 55befd5bb4 Updated from global requirements
Change-Id: Ib0fcfcab4506306de9d79a6a82815be7e5c72a9c
2017-05-17 03:56:00 +00:00
OpenStack Proposal Bot 3ffb78d4fe Updated from global requirements
Change-Id: Ie59d831d4b1df13d4d5b13f5b3c9b2c849dd357d
2017-05-15 00:52:13 +00:00
OpenStack Proposal Bot 89b0ba7bc4 Updated from global requirements
Change-Id: I73841299f3012dfb1c70c271c129345b8597466d
2017-04-12 04:19:30 +00:00
Jenkins dcc453a946 Merge "Add Constraints support" 2017-03-06 20:51:23 +00:00
OpenStack Proposal Bot 744feb7e26 Updated from global requirements
Change-Id: Ie9adb2abbe5001f5b2041324c999aa080b9947a5
2017-03-06 01:16:46 +00:00
ricolin 1eac0c72dc [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: If4a3ac6939b1cf73cfab3c0a7bdfbf81792dc787
2017-03-02 18:06:57 +08:00
OpenStack Proposal Bot 0df3c32a83 Updated from global requirements
Change-Id: Iba9b59355c6d63a05f2fe2bce88768bb7180cf94
2017-02-10 05:57:04 +00:00
gecong1973 c84a19efda Delete H803 from ignore list
The H803 rule have been removed from hacking since v0.10.0.
we can remove H803 from the ignore list.

Change-Id: Ib5d6f9a223f60264976c7f9902b349a69f3f9750
2017-02-03 15:31:31 +08:00
Tony Breeds 4d1c60bf5c 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 os-apply-config.

Change-Id: I792427363cda300650d2ce1c0fdab9973be7b348
2016-12-21 12:04:56 +11:00
Jenkins 1bd0206930 Merge "Show team and repo badges on README" 2016-12-01 23:17:05 +00:00
Jenkins 6774f9781d Merge "Add __ne__ built-in function" 2016-11-30 17:54:13 +00:00
Flavio Percoco 6a61d10501 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/9942e6f4ff351af895a60e4e27dd31ca\n'

Change-Id: Ief8600a452d819765931788eaeb3c3763fabad15
2016-11-25 14:23:13 +01:00
OpenStack Proposal Bot 05309c4dad Updated from global requirements
Change-Id: I1027259648719f9c7f864081f0785e16a3f32256
2016-11-16 22:00:36 +00:00
gecong1973 a68d6df930 Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining __eq__(),
one should also define __ne__() so that the operators will behave as
expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I3df4396495e3404e2c644c769693f89b7c01537a
2016-10-17 09:18:02 +08:00
Swapnil Kulkarni (coolsvap) d72c4d9afd Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Iecf6f92195cbefc5506a164920cea03454f81f77
2016-07-22 06:46:21 +00:00
OpenStack Proposal Bot 69879dad8b Updated from global requirements
Change-Id: I58e3e4c53dc7bbce3340c7a6b14dd88f1e99e526
2016-06-21 18:03:58 +00:00
OpenStack Proposal Bot 3af31b4967 Updated from global requirements
Change-Id: Ie061d116de4b8f6332783ae875f324c5eb165bef
2016-06-02 21:10:05 +00:00
OpenStack Proposal Bot 36f24df3e7 Updated from global requirements
Change-Id: Ieb1dbbfd189eec97467aff54e01ae9c09042fc0e
2016-05-30 20:44:33 +00:00
OpenStack Proposal Bot a23d5c721b Updated from global requirements
Change-Id: I17aedeeed010e73ebaaa58387c5d81e9a45113ab
2016-05-30 00:37:51 +00:00
OpenStack Proposal Bot 85be7e2fa7 Updated from global requirements
Change-Id: I26b9fefd0ac8aa2526659f13487d9c3af3d167c3
2016-04-08 00:31:35 +00:00
OpenStack Proposal Bot a023519047 Updated from global requirements
Change-Id: I394f30a90fa185a14a0cff8427906b38158f036b
2016-02-25 01:51:41 +00:00
Jenkins 2e4362d639 Merge "Deprecated tox -downloadcache option removed" 2016-02-24 22:55:23 +00:00
Andreas Jaeger 61712212b9 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 19:18:10 +01:00
Ondřej Nový 45ca3ce020 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ieefd14c646ccb53c16f175cfd5b60ae1e8d410c7
2015-12-11 23:17:40 +01:00
Jenkins 00e6302fce Merge "Change ignore-errors to ignore_errors" 2015-09-25 20:16:40 +00:00
Monty Taylor 393bb1f784 Change ignore-errors to ignore_errors
Needed for coverage 4.0

Change-Id: I41e76f02605020422cd850c0d91417e1746379bd
2015-09-21 14:41:25 +00:00
OpenStack Proposal Bot 0f3f8b85c3 Updated from global requirements
Change-Id: I484f45a51647d39a1017b0d7c092aaa472d88478
2015-09-17 12:15:37 +00:00
OpenStack Proposal Bot 2e0a2f6d8e Updated from global requirements
Change-Id: I536332746c57aa261f830f5b6734b191623e84af
2015-05-07 23:36:18 +00:00
OpenStack Proposal Bot 6e0912542b Updated from global requirements
Change-Id: I639678dfb56fb07dc0a60f8f97b54e76f7fc7ba5
2015-03-03 11:01:43 +00:00
Jenkins 752646a4ba Merge "Log warning when --boolean-key and --key are used" 2015-03-03 08:37:44 +00:00
Steve Baker 94f9819c67 Ignore top-level merge items which evaluate False
There has been recent tripleo regressions caused by heat
setting empty config as '' rather than {} which cause os-apply-config
to error on merge_configs.

This change ignores any top-level config which evaluates to False,
ignoring possible empty data including '', {}, None, []

An os-apply-config release with this fix would likely allow the current
heat pin to be removed Id134664a5df7232da0fb5d9ed62b82e12b3d54a8

Change-Id: Ia5bd99d1550f43760c064b769be3be46b3417331
Closes-Bug: #1426116
Related-Bug: #1425238
2015-02-27 09:45:39 +13:00
Jenkins 9d70d50ff3 Merge "Print JSON-compatible booleans" 2015-02-19 22:41:56 +00:00
Clint Byrum 59586b393f Log warning when --boolean-key and --key are used
These are not compatible, so log a warning when they're used together.

Change-Id: I8e72f90f9e789c413cba2e95543313c4a7bf95a3
2015-02-11 17:13:00 -08:00
Alexis Lee 1c17f543be Print JSON-compatible booleans
Given os-apply-config takes a JSON file as input and prints JSON-style
strings not Python ones, Booleans present an anomaly.

These are printed using `str(config)`, resulting in "True" and "False"
rather than the lowercase and JSON-compatible "true" and "false". This
patch corrects this.

There is some risk of breaking users but it should be trivial for them
to fix their scripts. As I write this, o-a-c is at 0.1.28, so we're
allowed breaking changes and I believe this is the last change required
to make all output JSON-compatible.

Change-Id: Ib41d3b01656fc7afc4911fd78ba7c1116aa9b1c9
2015-01-22 09:48:32 +00:00
Clint Byrum 92a9d5d011 Add --boolean-key for evaluating boolean keys
In the past if we wanted to have a boolean key we had to evaluate the
python string representation of the key which is not necessarily very
easy in shell. This allows us to replace this code:

    if [ "$(os-apply-config --key x.foo --type raw)" = "True" ] ; then
      ...
    fi

With a much more shell friendly version:

    if os-apply-config --boolean-key x.foo; then
      ...
    fi

Change-Id: Ie88663a0028596dbd2a9c25dfc4ce54a46a63e66
2015-01-14 12:53:56 -08:00
Dan Prince fcb3d0f96f Output useful JSON data
If you use os-apply-config to slice out a JSON blob on the command
line you'll get back a string formatted dump of a python
dictionary (or list). Ideally we would print out proper JSON text
so that other tooling (jq, etc) can post process things in a
useful manner.

This patch updates apply_config so that if an output key is
detected to be a dict or a list it is printed to stdout
in a JSON format.

Change-Id: Ibc8b21cd6922b8664ca71e9e6009c8573ea9d107
2014-12-16 16:54:03 +00:00
OpenStack Proposal Bot b4c5ee5995 Updated from global requirements
Change-Id: Ib99e024114239ae8abecf1425028aaf61a1ad704
2014-11-20 14:11:08 +00:00
OpenStack Proposal Bot 40eda28088 Updated from global requirements
Change-Id: I0c5fe8001eb377c3359f73b97131293fadd57171
2014-11-18 11:35:56 +00:00
OpenStack Proposal Bot f3d0a1d376 Updated from global requirements
Change-Id: I1cf6522ca502b4cbc295403342e90882b3bd26e2
2014-11-16 15:05:54 +00:00
OpenStack Proposal Bot a23fa71019 Updated from global requirements
Change-Id: Ia0aca6b3e7d1797dcca6da36889196a50acc57ea
2014-11-05 08:34:38 +00:00
Jenkins 29db0f43e8 Merge "Treat null values in JSON as being absent rather than 'None'" 2014-10-30 17:33:35 +00:00
Jenkins 312d741eaf Merge "Set owner+group from control file" 2014-10-24 09:34:30 +00:00
Jenkins 9d11d4d0a5 Merge "Allow extraction of list items" 2014-10-24 09:01:43 +00:00
Alexis Lee b541159d27 Allow extraction of list items
OAC can be used to get a key from metadata by supplying EG '--key A'.
You can also extract an item from a dict, EG '--key A.B'.
However, if A is a list, there's no way to get an item out of the list.

Extend the expression language (if that's not too grand a term) to
support this. EG '--key A.0' gets the first item out of the list A.
'--key A.1.B' gets B out of the second item of list A (which must be a
dict).

Change-Id: I406cbd2d974544ed5948e137359629184d8ee156
2014-10-21 11:31:35 +01:00
Alexis Lee bfef75d33f Set owner+group from control file
Add keys 'uid' and 'gid' to control file. The values may be UID/GIDs or
names. In either case, the value is checked against the passwd/group
database to ensure it exists.

Change-Id: I1730a126cf024755635043b1a0f70006ab22c046
2014-10-21 09:59:19 +00:00
Alexis Lee ce14b9a4c3 Extract OacFile class to separate file
Change-Id: I97448fe2b503314398db5928ec6a3bbfffe6b2be
2014-10-21 09:59:12 +00:00
Jonathan Brownell e78b8d6964 Treat null values in JSON as being absent rather than 'None'
The current method of serialization for keys containing null
values in JSON input files is that they become a part of the
metadata tree, with a value expressed as the string 'None' in
output (when invoked with --key) or when inserted into templates.

The use of 'None' creates awkward ambiguity (no way for downstream
code logic to tell if the request JSON key originally contained
the string "None" or if it was actually null), and also throws
conversion errors when requested in any type other than 'raw'.

This patch proposes that keys with null values be handled as
though they were absent from the metadata completely. (If
such a key is requested in command-line invokations using "--key"
and "--key-default", the provided default will be printed.)

Change-Id: I9288dffb13d781e0c4dd9e5be0b483c090ec2d7c
2014-10-17 14:31:50 -07:00
OpenStack Proposal Bot 43c5d433ec Updated from global requirements
Change-Id: I201c1593fc12cd2cac3db30e35483320cf0ed663
2014-10-11 15:55:47 +00:00