Fix ubuntu installation progress bar

Change hostname which we use in 4.0 to fqdn field for 3.2.1. Add tests.

Change-Id: I79edf4f83e5364ef38d9a21e10df8fd7d619bc1d
Closes-Bug: #1257469