Fix console and other stuff.

Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
Chuck Short 2015-02-21 20:05:56 -05:00
parent fe1751efc5
commit dfaa33850f
3 changed files with 4 additions and 2 deletions

View File

@ -57,6 +57,8 @@ class Container(object):
console_log = os.path.join(CONF.lxd.lxd_root_dir,
instance['uuid'],
'container.console')
user = os.getuid()
utils.execute('chown', user, console_log, run_as_root=True)
with open(console_log, 'rb') as fp:
log_data, remaining = utils.last_bytes(fp, MAX_CONSOLE_BYTES)
if remaining > 0:

View File

@ -6,7 +6,7 @@ pbr>=0.6,!=0.7,<1.0
Babel>=1.3
requests>=2.2.0,!=2.4.0
oslo.config>=1.6.0 # Apache-2.0
oslo.concurrency>=0.3.0,!=0.4.0 # Apache-2.0
oslo.concurrency>=1.4.1 # Apache-2.0
oslo.utils>=1.2.0 # Apache-2.0
oslo.i18n>=1.3.0 # Apache-2.0
python-glanceclient>=0.15.0

View File

@ -3,7 +3,7 @@ name = nclxd
summary = native lxd driver for openstack
description-file =
README.rst
version - 0.1
version = 0.1
author = OpenStack
author-email = openstack-dev@lists.openstack.org
home-page = http://www.openstack.org/