Symptoms:
In the nova-vspc/0.log in VMware Integrated OpenStack you will see the following error message:
XXXX-XX-XXTXX:XX:XXZ future: <Task finished coro=<VspcServer.handle_telnet() done, defined at /usr/lib/python3.7/site-packages/vspc/server.py:198> exception=OSError(28, 'No space left on device')>: OSError: [Errno 28] No space left on device: '/var/log/vspc/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 ERROR asyncio Traceback (most recent call last):
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 ERROR asyncio File "/usr/lib/python3.7/site-packages/vspc/server.py", line 213, in handle_telnet
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 ERROR asyncio self.save_to_log(uuid, data)
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 ERROR asyncio File "/usr/lib/python3.7/site-packages/vspc/server.py", line 195, in save_to_log
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 ERROR asyncio with open(fpath, 'ab') as f:
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 ERROR asyncio OSError: [Errno 28] No space left on device: '/var/log/vspc/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 ERROR asyncio ^[[00m
XXXX-XX-XXTXX:XX:XXZ XXXX-XX-XX XX:XX:XX.XXX 1 INFO vspc.server [-] ('XXX.xx.xx.x', XXXXX) connected^[[00m
VMware Integrated Openstack 7.x
The persistent volume for console logs has a max size of 2GB by default. There is no rotation of logs or deletion with instances.
We can increase the size of the persistent volume by following these steps:
Workaround:
As a workaround we can delete log files on the persistent volume container that are taking up too much space.
Impact/Risks:
Before following the steps given make sure the customer has recent backups of their VMware Integrated OpenStack deployment. The resolution and workaround will both delete current console logs.
Note verify that the customer agrees to the deletion of the current console logs held on the container.