Has Syed is saying its most likely because of systemd. Have you try to use cloud-init? It work well but need some tuning for password and sshkey reset...
Le 7 août 2017 09:33, "Syed Ahmed" <sah...@cloudops.com> a écrit : > Hi, > > Is the password server mentioned in the logs 192.168.155.1 reachable? The > password server is hosted on the VR. Sometimes, restarting the network will > reboot the VR and fix this. If not let us know, we'll help you out. > > Thanks, > -Syed > > On Fri, Aug 4, 2017 at 9:33 AM, Marc Poll Garcia < > marc.poll.gar...@upcnet.es > > wrote: > > > Hello everyone, > > > > last days we are experiencing some issues on our "Ubuntu 16.04" template, > > created step by step following this tutorial: > > > > http://docs.cloudstack.apache.org/projects/cloudstack- > > administration/en/4.8/templates/_create_linux.html > > > > It is happening on "Ubuntu 16.04.2 LTS \n \l" system and "CloudStack > > 4.9.2.0" version. > > > > > > Unfortunately we detected that some of the features we had, no longer > work, > > such as the changing password one. > > > > After several test and reviewing it more deeply, i see that it works > > "intermittently" and the service sometimes does not start on boot: > > > > /etc/init.d/cloud-set-guest-password status > > ● cloud-set-guest-password.service - LSB: Init file for Password > Download > > Client > > Loaded: loaded (/etc/init.d/cloud-set-guest-password; bad; vendor > > preset: enabled) > > Active: *failed* (Result: exit-code) since Thu 2017-08-03 16:09:09 > CEST; > > 39min ago > > Docs: man:systemd-sysv-generator(8) > > > > Aug 03 16:08:58 Ubuntu16PassKO systemd[1]: Starting LSB: Init file for > > Password Download Client... > > Aug 03 16:08:58 Ubuntu16PassKO cloud-set-guest-password[1062]: * > Starting > > cloud cloud-set-guest-password > > Aug 03 16:09:09 Ubuntu16PassKO cloud[1252]: DHCP file > > (/var/lib/dhcp/dhclient-ens160.leases) exists. No need to restart > > dhclient. > > Aug 03 16:09:09 Ubuntu16PassKO cloud[1256]: Using DHCP lease from > > /var/lib/dhcp/dhclient-ens160.leases > > Aug 03 16:09:09 Ubuntu16PassKO cloud[1263]: Found password server IP > > 192.168.155.1 in /var/lib/dhcp/dhclient-ens160.leases > > Aug 03 16:09:09 Ubuntu16PassKO cloud[1264]: Sending request to password > > server at 192.168.155.1 > > Aug 03 16:09:09 Ubuntu16PassKO systemd[1]: > > cloud-set-guest-password.service: *Control process exited, code=exited > > status=4* > > Aug 03 16:09:09 Ubuntu16PassKO systemd[1]: *Failed to start LSB: *Init > file > > for Password Download Client. > > Aug 03 16:09:09 Ubuntu16PassKO systemd[1]: > > cloud-set-guest-password.service: Unit entered failed state. > > Aug 03 16:09:09 Ubuntu16PassKO systemd[1]: > > cloud-set-guest-password.service: Failed with result 'exit-code'. > > > > > > LSB part from the script: > > > > root@Uprovav1:~# head -n20 /etc/init.d/cloud-set-guest-password > > > > #!/bin/bash > > > > # > > > > # Init file for Password Download Client > > > > # > > > > ### BEGIN INIT INFO > > > > # Provides: cloud-set-guest-password > > > > # Required-Start: $local_fs $syslog $network > > > > # Required-Stop: $local_fs $syslog $network > > > > # Default-Start: 2 3 4 5 > > > > # Default-Stop: 0 1 6 > > > > # Short-Description: Init file for Password Download Client > > > > ### END INIT INFO > > > > > > Is it happening to anyone else? Is there another compatible version from > > this script? > > > > Or maybe we have to adapt it to the new "systemctl" > > > > Thanks in advance. > > > > -- > > Marc Poll Garcia > > Technology Infrastructure . Àrea de Serveis TIC > > Telèfon: 93.405.43.57 > > > > [image: UPCnet] > > > > ---------------------------------------------------------- > > Aquest correu electrònic pot contenir informació confidencial o legalment > > protegida i està exclusivament dirigit a la persona o entitat > destinatària. > > Si vostè no és el destinatari final o persona encarregada de recollir-lo, > > no està autoritzat a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, > > copiar-lo ni a revelar el seu contingut. Si ha rebut aquest correu > > electrònic per error, li preguem que informi al remitent i elimini del > seu > > sistema el missatge i el material annex que pugui contenir. > > Gràcies per la seva col.laboració. > > ---------------------------------------------------------- > > > > *** Si us plau, no m'imprimeixis. Vull seguir sent digital *** > > *** Por favor, no me imprimas. Quiero seguir siendo digital *** > > *** Please, don't print me. I want to remain digital *** > > ---------------------------------------------------------- > > >