So, I would suggest completely reverting to ```Chef::Recipe::Barclamp::Inventory.get_network_by_type(nova, "admin").address``` because metadata never uses SSL so it's safe to always use an IP address. And always using the IP address will make things work the same way everywhere. But we need to document why we use an IP address there.

Therefore, this could be changed to:
```ruby
# we use an IP address here, and not nova[:fqdn] because nova-metadata doesn't use SSL
# and because it listens on this specific IP address only (so we don't want to use a name
# that could resolve to 127.0.0.1).
metadata_host = Chef::Recipe::Barclamp::Inventory.get_network_by_type(nova, "admin").address 
```