oslo_config was moved out of the oslo namespace in oslo.config>=1.6.0.
Related-to: blueprint drop-namespace-packages
Change-Id: I30ecbf8f9de77496fcb643c7ad9738d79ad359f0
oslo.i18n uses different marker functions to separate the
translatable messages into different catalogs, which the translation
teams can prioritize translating. For details, please refer to:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack
Added hacking rules for warning, info, critical, error and exception
about checking translation for log messages and fixed for below cases only,
1. LOG.error(_(""))
2. LOG.info(_(""))
3. LOG.exception(_(""))
4. LOG.critical(_(""))
5. LOG.warning(_(""))
Below scenario is not handled in this patch,
If message is passed to LOG call using separate variable,
ex.
msg = (_("")
LOG.error(msg)
Change-Id: Idbf8779cdfc41ca1424bebcd101096bec482872f
1. Sync openstack.common modules up to latest version
from oslo-inc. The follow modules got updated:
* fileutils
* install_venv_common
* lockutils
* log
* processutils
2. Add _i18n module as the dependency for new code.
3. Remove openstack.common.test module.
Glance and dependencies now use oslotest instead.
4. Remote unused openstack.common.excutils module.
Glance now use the module from oslo.utils instead.
5. Add missing modules back to openstack-common.conf.
Below ones are still using currently. But they will
be removed when the latest policy module get synced.
* jsonutils
* strutils
Change-Id: Ibbc2cda81a4e3c13643fe5c5bf6471c3f544add7
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
The usage of /usr/bin/env ensures that the first interpreter
found in the environment's $PATH variable is used.
Change-Id: I61b27bb9a5fc1f8d2a3981472215bc0aa6a389e2
OpenStack as a whole is moving towards using testrepository and
testtools for running tests. To that end, bring Glance into line by
switching it to use testrepository to run tests.
This copies run_tests.sh and tools/colorizer.py from Nova.
This change also has some minor changes to make run_test.sh work well.
Partial fixes bug: 1179009
Fixes bug: 1271806
Change-Id: Ic265bc0d2f1528358f6e8ee5b4139f991923fc72
Signed-off-by: Steve Kowalik <steven@wedontsleep.org>
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
This syncs the common/ modules with oslo-incubator, which
brings a few hacking fixes and py3k compat fixes.
Change-Id: I948aafebd25ae0b3aad119c41d0a121c8b9c5ae8
Add the Apache headers where it was missing so the Glance
code base can be H102 compliant
Change-Id: If19841d1752f7ec364098333429ce090374e79cd
Closes-bug: #1263537
Clean up imports due to F401 and F403 checks.
F401 'module' imported but unused
F403 unable to detect undefined names with wildcard import
Change-Id: I487edb157de1a6babc7ad8a3fb65f195e476c490
In python 3 print statement is not supported, so we should use
only print() functions.
Fixes bug 1226943
Change-Id: I0ae4cc7e5996ed30c69e153ba51438c56e56c09a
This change allows Glance drive Cinder as a block storage backend to
store image data.
Before this we already use swift as an object storage backend to save
image.
Currently the patch is a partial implementation, after Cinder expose
'brick' library, 'host-volume-attaching' and 'multiple-attaching'
enhancement ready, the store will support ADD/GET/DELETE interface
finally.
blueprint: glance-cinder-driver
Change-Id: I4cdeccdb518972c0280e59c984ed6b001dafe243
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Use the new oslo.sphinx version of the OpenStack doc
theme instead of copying it into this repo.
blueprint oslo.sphinx
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change-Id: I0bd91f7bb43f97b99051fed65b75fc05d5149cc8
The minimum version of kombu in the requirements
list has been updated to ensure that compatible
kombu and msgpack libraries are used across all
projects. That update also requires an update
to anyjson.
Addresses bug #1134575
Change-Id: I1520af1315fe649f52ab62769164dc67f4396651
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.
Change-Id: Ie875bbaae191cd0719db76cc375cd97d5bf90de7
The qpid notification tests are not run if the qpid-python package
is not installed. This change adds it to the test-requires list
and removes the check for it since it should always be present.
Fixes bug 1173380
Change-Id: I2763e320e6018fde196c903f515920ad33f28aa6
When Glance is configured to run with SSL this patch will check
that the certificate and key exist, are readable, and match each
other at boot time. If any of the above conditions fail an friendly
error message is logged directing the operator at a solution.
Previously the keys were not checked until a client connected.
fixes bug: 1160529
Change-Id: I16975608f9ae40ac5b84b3caa52ed5f8e22f296e
0.7.10 has been released and is compatible with 0.7.x. Instead
of pinning to 0.7.9, simply pin to 0.7.x to avoid SQLAlchemy 0.8
Also sync the 0.7.x requirements to 0.7.8 (to be in sync with other
OpenStack core components)
Fixes: Bug #1153983
Change-Id: I6f47e7d27fcf0c7271bb2c91a4615ef0bb5e2643
Fixes bug #1128256
oslo.config has now been released to PyPI in time for Grizzly RC1 so
we can switch to using it directly.
Change-Id: I655f831718ae5f4e25e941ee206fe195214a9a91
This commit adds support for running the migrations tests
with a PostgreSQL backend.
Migration 012 was changed because PostgreSQL's constraint
drop uses a different name to identify the foreign key
to be removed. The migration now handles it properly for
both postgres and mysql.
Change-Id: Ie8850608fc5f4bccda57a0b12c3b4adc8d1f61d0
This commit makes the necessary changes to enable the migrations
tests to pass with both mysql and sqlite. However the proper mysql
database still needs to be created beforehand for the tests to run
with mysql.
The sqlalchemy alter() method breaks on sqlite when mysql is enabled
for other databases. So for sqlite testing the alter() calls are now
done manually.
This also adds the MySQL-python module to the test-requires list
so that it will get installed for CI and the virtualenv used for
unit tests.
Change-Id: Ic72476b8e6a910c25747641ef1882639019b433e
* The required attribute is not allowed in draft 4 of JSON schema
* The dependency on jsonschema can be relaxed back to all versions
Change-Id: Id0767cfe2fe46d73999563896f851ffb01aa9489
The latest jsonschema version breaks the unit tests. This commit pins
the version to be less than the latest release.
Fixes bug 1132840
Change-Id: Ib4db4782f995cee179445ca11d2b6a7f13a6b457
Update the oslo-config version in pip-requires that includes a fix that
breaks oslo.config imports.
Change-Id: Iea037215b1f89beb9480968077f1517285f2f071
Syncs:
c78b2ab Avoid using cfg in install_venv_common
So that people don't need oslo-config installed to run install_venv
Fixes bug 1130853
Change-Id: I9dfc8d8417455ff22a0d0e911c762983952c75ee
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.
Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.
Remove the 'deps = pep8==1.3.3' from tox.ini as it means all the other
deps get installed with easy_install which can't install oslo-config
from the URL.
Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).
Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc