I've recently met this problem while installing the nova-compute on a seperate compute node using the openstack Caracal release.In your compute node try to add these two lines in the nova.conf file
`lock_path = /var/lock/nova
state_path = /var/lib/nova`