Change hardcoded attr names in _resolve_attribute

This patch changes hardcoded attribute names in
_resolve_attribute to attribute_schema values.
Besides that, it fixes name of attribute in nova_keypair.

Change-Id: I33f599e91e79fccadafcab0e311464d7c54a9973
Merge "Change hardcoded attr names in _resolve_attribute"