[Openstack-operators] Change admin password on already running instance

Ajiva Fan aji.zqfan at gmail.com
Wed Feb 6 02:45:28 UTC 2013


i have this question too.

since kvm as hypervisor in my case, i'm wondering if this api only
available on xen?

On 2/6/13, Abel Lopez <alopgeek at gmail.com> wrote:
> Just a thought, but if you're using the API in this manner to change the
> admin password, one would assume that you have something inside the VM to
> respond to it, like cloud-init, or something, then perhaps it wouldn't take
> effect until the next reboot (or manual run)
>
>
> On Feb 5, 2013, at 7:59 AM, Alexandra Kisin wrote:
>
>>
>> Hi,
>>
>> Is there any way to use OpenStack API to change admin (root) password on
>> already running instance ?
>> Which special configuration should be done on compute node or controller
>> or
>> basic image to make it work ?
>> I've tried to run
>>
>> curl -v -H 'X-Auth-Token: 3d9bd4afb993447d8a428d2ec10fcf11' -H
>> "Content-Type: application/json" -H "Accept: application/json" -X POST "
>> http://localhost:8774/v2.0/3bb69a4204334bfc98e0199cb33000ea/servers/c7108f77-98e7-4fd2-b53d-b1e1f36fde40/action
>>
>> " -d '{"changePassword":{"adminPass":"welcome"}}'
>>
>> And I'm getting HTTP 202 which seems to be ok.
>> But actually the root password of the instance was not changed.
>>
>> Thank you.
>>
>> Alexandra Kisin
>> Servers & Network group, IBM R&D Labs in Israel
>> Unix & Virtualization Team
>>
>>
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>



More information about the OpenStack-operators mailing list