I was able to test the proposed patch with devstack by booting an instance with an ubuntu cloud image with hw_qemu_guest_agent=yes and then installing the qemu-guest-agent in the instance.
Before this patch:
$ nova set-password test
New password:
Again:
$ nova get-password test
After this patch:
$ nova set-password test
New password:
Again:
$ nova get-password test
eEv1bBKyjwt5OItQG1Bw+Qk6Ur0x2s8oIYhrEtsR9zIecAoSG9OqmVsRUVYbUF68TQw4p3iMpndABcsNu
ub/B2aBgxuRqeFP5TMss/FD91kOp8bUDWJ+GthneoDGTd7cS73UfSK41hqPkqTJRouWiRksisGbJefk7cj4
uIqOBGU9vPuG+XmGXRA8nVxdw7zw5vQx78/sAKRpgt4oge3rEhSSOK7iO4L6aLx8ufOC16HgD/qpUcVu
ctf0Oiy0W2t8h0YG+eEBiGyYUGBeZVRhCb2kXyXt77QGVTvSQZqVst81B9dK5DpUGGP1NOYHRq49xo6
37blpuHpDMDO+3t70qg==
I was able to test the proposed patch with devstack by booting an instance with an ubuntu cloud image with hw_qemu_ guest_agent= yes and then installing the qemu-guest-agent in the instance.
Before this patch:
$ nova set-password test
New password:
Again:
$ nova get-password test
After this patch:
$ nova set-password test
New password:
Again:
$ nova get-password test tQG1Bw+ Qk6Ur0x2s8oIYhr EtsR9zIecAoSG9O qmVsRUVYbUF68TQ w4p3iMpndABcsNu P5TMss/ FD91kOp8bUDWJ+ GthneoDGTd7cS73 UfSK41hqPkqTJRo uWiRksisGbJefk7 cj4 XmGXRA8nVxdw7zw 5vQx78/ sAKRpgt4oge3rEh SSOK7iO4L6aLx8u fOC16HgD/ qpUcVu YG+eEBiGyYUGBeZ VRhCb2kXyXt77QG VTvSQZqVst81B9d K5DpUGGP1NOYHRq 49xo6 3t70qg= =
eEv1bBKyjwt5OI
ub/B2aBgxuRqeF
uIqOBGU9vPuG+
ctf0Oiy0W2t8h0
37blpuHpDMDO+
$ nova get-password test somekey.private
foo