How to Solve NameError: name 'service' is not defined -- nova

Solution: Import the 'service' module

# Add the following line to the top of your code
from nova import service

 

For more information:
nova service