diff options
author | Dan Smith <danms@us.ibm.com> | 2013-02-04 12:12:43 -0500 |
---|---|---|
committer | Dan Smith <danms@us.ibm.com> | 2013-02-05 14:00:51 -0500 |
commit | 5d8868a4d58122dce6fdc81fa0ed17ae7fc55672 (patch) | |
tree | 534e767c153b7cdf9530c4c343c9011a043e0c94 /nova/context.py | |
parent | 139d15a40557066a39a1c2ba48c81711a9dd3730 (diff) | |
download | nova-5d8868a4d58122dce6fdc81fa0ed17ae7fc55672.tar.gz nova-5d8868a4d58122dce6fdc81fa0ed17ae7fc55672.tar.xz nova-5d8868a4d58122dce6fdc81fa0ed17ae7fc55672.zip |
Refactor server password metadata to avoid direct db usage
This refactors the set_password() method in the server_password
API extension to merely format the metadata and return it, leaving
the job of updating the database to the caller. In the API extension
case, the update can be done immediately against the database as
before. In the case of the metadata API handler and the xenapi virt
driver making the call, conductor can be used to update the instance's
system_metadata, thereby avoiding a direct database access.
Related to blueprint no-db-compute
Change-Id: I0563feaa97d768a96f950c148b1dbf51c356c4ac
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions