backport some Quantum issues from 4.0
disable name resolving for ping command
catch 'Unauthorized: bad credentials'
Catch 400-{'message': ''}
Merge pull request #801 from xenolog/bug/1248744

Backport retry connections to Quantum API