<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE> BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em} body{FONT-SIZE:12.1pt; COLOR:#001; FONT-FAMILY:宋体,serif;} </STYLE>
<META name=GENERATOR content="MSHTML 8.00.7600.16385"><BASE
target=_blank></HEAD>
<BODY
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"
marginwidth="0" marginheight="0"><STATIONERY>
<DIV>
<DIV><FONT face=微软雅黑><FONT face=微软雅黑><FONT face=微软雅黑><FONT
color=#000000 size=3 face=宋体>Hi all,</FONT></FONT></FONT></FONT></DIV>
<DIV><FONT color=#000000 size=3></FONT> </DIV>
<DIV><FONT face=微软雅黑><FONT face=微软雅黑>I want to inject admin password to a
libvirt/kvm instance, and I enable the config libvirt_inject_password=true on
the compute node,</FONT></FONT></DIV>
<DIV><FONT face=微软雅黑>I also find the /etc/shadow file in the instance is
changed, but when I use the adminPass to login the instance from vnc, it is
failed.</FONT></DIV>
<DIV><FONT face=微软雅黑>I find that the admin password is encrypted in
nova/virt/disk/api.py:_set_password() method,</FONT></DIV>
<DIV><FONT face=微软雅黑>evenif I </FONT><FONT face=微软雅黑>encrypt my adminPass
and replace the root password in /etc/shadow manually, I can't login the
instance with vnc.</FONT></DIV>
<DIV><FONT face=微软雅黑></FONT> </DIV>
<DIV><FONT face=微软雅黑>My questions are:</FONT></DIV>
<DIV><FONT face=微软雅黑>1) Does this admin password injection function of
libvirt driver useable? In other words, my issue is a bug or not?</FONT></DIV>
<DIV><FONT face=微软雅黑>2) Are there some special details I was losing sight
of? such as any configs should change?</FONT></DIV>
<DIV><FONT face=微软雅黑>3) Is this function depends on the libc
version?</FONT></DIV>
<DIV><FONT face=微软雅黑><FONT face=微软雅黑><FONT face=微软雅黑></FONT> </DIV>
<DIV>BTW, I'm using stable havana and booting a debian7 instance, and this is
the admin guide page of this function:</DIV>
<DIV><A
href="http://docs.openstack.org/admin-guide-cloud/content/admin-password-injection.html">http://docs.openstack.org/admin-guide-cloud/content/admin-password-injection.html</A></DIV>
<DIV> </DIV>
<DIV>thanks!</DIV>
<DIV> </DIV></FONT></FONT>
<DIV><FONT face=微软雅黑>2014-06-25 11:16 (UTC+8)</FONT></DIV>
<DIV><FONT face=微软雅黑>Wangpan</FONT></DIV></STATIONERY></DIV></BODY></HTML>