The change 7301812c9e was supposed to
be a backport of e8b24805d6 but in fact
it was incomplete and didn't have required changes in
the nova::metadata class.
This change implements the missing part to backport the change
completely.
Change-Id: Ie9620ddecc1ded6659b75be6acfd7de125c9b8ba