AI not walking around obstacle

You can tweak your navmesh data in project settings>Engine - Navigation Mesh. Also is your navmesh updating automatically when you add obstacles? Have you build it from the toolbar Build option?