<div dir="ltr"><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px">Hi All,</span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px"><br></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px">I have installed OpenStack (i.e., openstack-mitaka release) on CentOS7.2 .  Used Fedora20 qcow2 cloud image for creating a VM using Dashboard.</span></p><p style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px">1)<span style="font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">      </span></span><span style="font-size:12pt;line-height:18.4px">Installed “libguestfs” on Nova compute node.</span></p><p style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px">2)<span style="font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">      </span></span><span style="font-size:12pt;line-height:18.4px">Updated these lines in  “/etc/nova/nova.conf ”</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.5in"><span style="font-size:12pt;line-height:18.4px">inject_password=true</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.5in"><span style="font-size:12pt;line-height:18.4px">inject_key=true</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.5in"><span style="font-size:12pt;line-height:18.4px">inject_partition=-1</span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px"> </span></p><p style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px">3)<span style="font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">      </span></span><span style="font-size:12pt;line-height:18.4px">Restarted nove-compute: # service openstack-nova-compute restart</span></p><p style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px">4)<span style="font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">      </span></span><span style="font-size:12pt;line-height:18.4px">Enabled setting root password in /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.5in"><span style="font-size:12pt;line-height:18.4px">OPENSTACK_HYPERVISOR_FEATURES = {</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.5in"><span style="font-size:12pt;line-height:18.4px">…..</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.5in"><span style="font-size:12pt;line-height:18.4px">‘can_set_password’: True,</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.5in"><span style="font-size:12pt;line-height:18.4px">}</span></p><p style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px">5)<span style="font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">      </span></span><span style="font-size:12pt;line-height:18.4px">Placed the below code in “Customization Script” section of the Launch Instance dialog box in OpenStack.</span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px"> </span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">#cloud-config</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">ssh_pwauth: True</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">chpasswd:</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">  list: |</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">     root: root</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">  expire: False</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">runcmd:</span></p><p class="MsoNormal" style="font-size:12.8px;text-indent:0.25in"><span style="font-size:12pt;line-height:18.4px">- [ sh, -c, echo "=========hello world'=========" ]</span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:12pt;line-height:18.4px"> </span></p><pre style="white-space:pre-wrap"><span style="font-size:12pt;font-family:Calibri,sans-serif">It appears that, when the instance was launched, cloud-init did not change the password for root user, and I was not able to log in to the instance’s console (Dashboard) using username (root) and password (root). it says “Log in incorrect”.</span></pre><pre style="white-space:pre-wrap"><span style="font-size:12pt;font-family:Calibri,sans-serif">Upon checking the boot log found that, cloud-init has executed <span style="color:black">/var/lib/cloud/instance/scripts/runcmd and printed </span>hello world. </span><span style="font-family:Calibri,sans-serif;font-size:12pt">Can anyone please let me know where I am wrong ? Thanks in advance for your support and time.</span></pre><pre style="white-space:pre-wrap"><span style="font-size:12pt;font-family:Calibri,sans-serif"> </span></pre><pre style="white-space:pre-wrap"><span style="font-size:12pt;font-family:Calibri,sans-serif">Regards,</span></pre><pre style="white-space:pre-wrap"><span style="font-size:12pt;font-family:Calibri,sans-serif">Chinmaya</span></pre></div>