From users-return-28712-apmail-cloudstack-users-archive=cloudstack.apache.org@cloudstack.apache.org Thu Sep 7 18:52:55 2017 Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D86F619E8B for ; Thu, 7 Sep 2017 18:52:55 +0000 (UTC) Received: (qmail 1529 invoked by uid 500); 7 Sep 2017 18:52:55 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 1471 invoked by uid 500); 7 Sep 2017 18:52:54 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 1459 invoked by uid 99); 7 Sep 2017 18:52:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2017 18:52:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3D5C3C63C5 for ; Thu, 7 Sep 2017 18:52:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id OdP8n-Z9twfJ for ; Thu, 7 Sep 2017 18:52:49 +0000 (UTC) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.161.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A0F535FAF3 for ; Thu, 7 Sep 2017 18:52:48 +0000 (UTC) Received: by mail-yw0-f171.google.com with SMTP id r85so1755043ywg.1 for ; Thu, 07 Sep 2017 11:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=dLEgdOunK4PXX3obBNsCaLRs3y+14V0gnIDD7oOg/Mc=; b=pEu38NpHyYXqHzmIe62UXZsrgdtnTgJIRyF0pqvKAeX+/JKLcJgub55PeHS3/qtt6n F5YZRgltsntStLTcg14XGIhnpzehf0YiR0RamBQvcioHKaBGk4iJilDdMBk0VPQVF7Uh Dur4OP4giNBDR/53/Mi9uhYcQDdOp+RdD5D500cUfSL9jG5Vh7DlWCLwmI5+GrbRLfDy HhJWR/BiuRKMyXo3MmEj9wIxW5s0yIGipjd3l78Xi42XBPjHO3FDBudFi0a3ZYlN3qzc BDai6Dty2eAh/Np4VM9FvJ8dssDdz6b2RCw8vCdYHB6vs6m1W68KzzXAvVABWdYhbDLg TDgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=dLEgdOunK4PXX3obBNsCaLRs3y+14V0gnIDD7oOg/Mc=; b=omXUtrJsmqjgW+bEoj4wTZgEsq8xByb/jfn+jRfT7KQlnX05d5W7DDQtdmSTOpoyM/ NSyZOfOrJxIcsslFRNHRv3tRtLmMQedMnrtKoIoP+8VmOPgomvh2iUV3walI7ImD0nb2 czbFDyW2CBJzzf/ZP/WZxKMHBHK8OjpNJ58WSLVgrPSQ+oAmo7NrjAwbB5PnIh7AlX6v DY0/ZVnxVaeZlRenisPnWqzW9SowSoNpcxN2X7g0i2Ym7MwFEjPzh7K3ITkDDHjZQlVO pe+92N21/l7yO63beSWQ1E3quFvP/ivhGpmaU2j74IG2GU+y6pdXngj8/EMlN/oOUnJ2 7m3g== X-Gm-Message-State: AHPjjUjOx22wRvdifGH0IYftYJBZPLGW/izsTkTEzjCv7kzhqa9Er441 27IRsSeWx/O7wP9fI41AzdT4eTiGpw== X-Google-Smtp-Source: AOwi7QBMZdWMmj8uEJpY3VoVpRuflWpJPDM4ijkhoZeCKCSDaePsOFa2ezkzztloWmnGXKFcfi9kSCQdCjW/FI78z/M= X-Received: by 10.37.38.65 with SMTP id m62mr297311ybm.102.1504810368002; Thu, 07 Sep 2017 11:52:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.199.66 with HTTP; Thu, 7 Sep 2017 11:52:27 -0700 (PDT) In-Reply-To: References: From: Sebastian Gomez Date: Thu, 7 Sep 2017 20:52:27 +0200 Message-ID: Subject: Re: cloud-set-guest-password working with systemctl To: users@cloudstack.apache.org Content-Type: multipart/alternative; boundary="94eb2c190a64708dec05589df75b" --94eb2c190a64708dec05589df75b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Could you share them, please? Yes, I agree, perhaps our doc needs an update. Thanks in advanced. Atentamente, Sebasti=C3=A1n G=C3=B3mez On Thu, Sep 7, 2017 at 12:38 PM, Pierre-Luc Dion wrote: > Hi, > > On my side we use cloud-init in all our Linux templates. We got it to wor= k > for password, password-reset, sshkey and sshkey-reset. It also support > user-data, and provide an easy way to manage a different user than root. > > I think our community documentation need an update on this topic... > > Cheers, > > Le 28 ao=C3=BBt 2017 5:29 PM, "Sebastian Gomez" a =C3= =A9crit : > > I had the same problem like Marc and I could not resolve it on Ubuntu > 16.04. > I followed the cloudstack steps to set it up, but the script is not runni= ng > well on our environment. > > If I execute the script from command line, it works fine. During the boot > process, there is any problem on systemd and DHCP conjunction, and VR is > not reachable to reply this request. > > On the other hand, I found many different versions of this OLD script, an= d > I remember that we had to use other community version also for Ubuntu > 14.04. I noticed that this is a very old script, and has not been modifie= d > for years. > As you proposed, I'm trying to do it via cloud-init. Just landed from > holidays I will finish this integration. > > To do a so simply task like setting up a simple template is becoming a > nightmare, so *I would like to know how people *is setting Ubuntu templat= es > up? > - SSL key pairs? would be a good way, but Cloudstack 4.9.2 does not allow > to manage SSL key pairs using the GUI, only via API, so this is not a way > for not advanced users. > - Default user/password? > > > I can't believe that we are the only two buddies with this problem. > > > > Regards. > > > > > Atentamente, > Sebasti=C3=A1n G=C3=B3mez > > On Mon, Aug 7, 2017 at 3:36 PM, Pierre-Luc Dion > wrote: > > > 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=C3=BBt 2017 09:33, "Syed Ahmed" a =C3=A9c= rit : > > > >> 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.garcia@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 "CloudStac= k > >> > 4.9.2.0" version. > >> > > >> > > >> > Unfortunately we detected that some of the features we had, no longe= r > >> 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 > >> > =E2=97=8F cloud-set-guest-password.service - LSB: Init file for Pass= word > >> 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:0= 9 > >> CEST; > >> > 39min ago > >> > Docs: man:systemd-sysv-generator(8) > >> > > >> > Aug 03 16:08:58 Ubuntu16PassKO systemd[1]: Starting LSB: Init file f= or > >> > 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=3Dexited > >> > status=3D4* > >> > Aug 03 16:09:09 Ubuntu16PassKO systemd[1]: *Failed to start LSB: *In= it > >> 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 . =C3=80rea de Serveis TIC > >> > Tel=C3=A8fon: 93.405.43.57 > >> > > >> > [image: UPCnet] > >> > > >> > ---------------------------------------------------------- > >> > Aquest correu electr=C3=B2nic pot contenir informaci=C3=B3 confidenc= ial o > >> legalment > >> > protegida i est=C3=A0 exclusivament dirigit a la persona o entitat > >> destinat=C3=A0ria. > >> > Si vost=C3=A8 no =C3=A9s el destinatari final o persona encarregada = de > >> recollir-lo, > >> > no est=C3=A0 autoritzat a llegir-lo, retenir-lo, modificar-lo, > distribuir-lo, > >> > copiar-lo ni a revelar el seu contingut. Si ha rebut aquest correu > >> > electr=C3=B2nic per error, li preguem que informi al remitent i elim= ini del > >> seu > >> > sistema el missatge i el material annex que pugui contenir. > >> > Gr=C3=A0cies per la seva col.laboraci=C3=B3. > >> > ---------------------------------------------------------- > >> > > >> > *** 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 *** > >> > ---------------------------------------------------------- > >> > > >> > > > --94eb2c190a64708dec05589df75b--