[lib] Fix compute network mode, and sql connection (cinder)