Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It looks the 100K is controlled by the following code on compute node.

I changed the MAX_CONSOLE_BYTES on driver.py source file, and restarted openstack-nova-compute.service, then it works.

But I don't see MAX_CONSOLE_BYTES in any nova configuration files.

/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py

MAX_CONSOLE_BYTES = 100 * units.Ki
...
                with libvirt_utils.file_open(path, 'rb') as fp:
                    log_data, remaining = utils.last_bytes(fp,
                                                           MAX_CONSOLE_BYTES)
                    if remaining > 0:
                        LOG.info(_LI('Truncated console log returned, '
                                     '%d bytes ignored'), remaining,
                                 instance=instance)
                    return log_data