Move timeout and attempts in setting.py

To get timeouts and attempts more flexible
in setup move it in setting.

Change-Id: Id6b43976be76a8131901e044b9d974b8d82356bf
Related-Bug: #1314522