Validate nova server's metadata

This prevents "foo" getting passed into the metadata.
This can happen when using get_attr() to return a dynamic value.

Change-Id: I17eab659e65a51963e510add4d71fbc90a3a3a53
Closes-bug: #1338811
Merge "Validate nova server's metadata"