Change a way for creating data dir in case of OVN.
Change a way for creating data dir in case of OVN.

Calculate the sudo usage with local variable.

Change-Id: I39dff770ff296dc06395acdb430a9cfe1722a30f

openstack-dev/devstack,openstack-dev/devstack,nawawi/openstack,nawawi/openstack