How to Solve NameError: name 'availability_zone' is not defined -- nova
Solution: Import the 'availability_zone' module
# Add the following line to the top of your code
from nova.conf import availability_zone
For more information:
nova availability_zone