Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D94FA200D3A for ; Wed, 15 Nov 2017 15:01:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CCF6C160BF4; Wed, 15 Nov 2017 14:01:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C3633160BEA for ; Wed, 15 Nov 2017 15:01:35 +0100 (CET) Received: (qmail 64620 invoked by uid 500); 15 Nov 2017 14:01:34 -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 64603 invoked by uid 99); 15 Nov 2017 14:01:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2017 14:01:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4CF901A0DC4 for ; Wed, 15 Nov 2017 14:01:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, KAM_EU=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=wavecom.ee Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id V2jwpiPbtJtM for ; Wed, 15 Nov 2017 14:01:29 +0000 (UTC) Received: from zimbra.wavecom.ee (zimbra.wavecom.ee [80.79.112.21]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 73EED5F2AB for ; Wed, 15 Nov 2017 14:01:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.wavecom.ee (Postfix) with ESMTP id 80096116301D0 for ; Wed, 15 Nov 2017 16:01:22 +0200 (EET) Received: from zimbra.wavecom.ee ([127.0.0.1]) by localhost (zimbra.wavecom.ee [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id u2KOCWPbTvvL for ; Wed, 15 Nov 2017 16:01:17 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by zimbra.wavecom.ee (Postfix) with ESMTP id 86D2411623BC1 for ; Wed, 15 Nov 2017 16:01:17 +0200 (EET) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra.wavecom.ee 86D2411623BC1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavecom.ee; s=4CE13546-1931-11E7-9120-AE617D650653; t=1510754477; bh=98MfvtcsjhZh5vdvNZU0Lg1Om/Gq3BIViZcot5x8DWw=; h=Date:From:To:Message-ID:MIME-Version; b=cKgYhqtFZHkqhpYEg8OokXx0Pp/NVuBR3AzDIivdhLoD+5yfA/w8Tsr+r2ERIAHcr iZe8NGadzBGpKIBlxwys7ZIqIdzR7JCMJXTxHOldMN77FoaLCi9s6sFwrdXdV621it yZ2R65colvj3Ij2hT8u42LZydVh1XfjWNKkUKlMXTQlrFG4nJqmeP794bStXsPLtjJ KXlG15EPr/2v6NXIKO0E47/dmby3VSK/yZRkkEZrC5/aQJqwCwKSh4DX8dOKIRHj+n rosS5wVDFncMp6cWvXpbfXDEfx4a4BIBsr8hPvA8Eu18P00gX29QypdAd3NcoHnGCy WezgDr/u4aJTA== X-Virus-Scanned: amavisd-new at zimbra.wavecom.ee Received: from zimbra.wavecom.ee ([127.0.0.1]) by localhost (zimbra.wavecom.ee [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id b58eKBXVyfTV for ; Wed, 15 Nov 2017 16:01:17 +0200 (EET) Received: from zimbra.wavecom.ee (zimbra.wavecom.ee [80.79.112.21]) by zimbra.wavecom.ee (Postfix) with ESMTP id 699A8116301D0 for ; Wed, 15 Nov 2017 16:01:17 +0200 (EET) Date: Wed, 15 Nov 2017 16:01:17 +0200 (EET) From: Kristian Liivak To: users Message-ID: <800509516.40971.1510754477315.JavaMail.zimbra@wavecom.ee> In-Reply-To: References: <2113733691.3318.1510422408538.JavaMail.zimbra@wavecom.ee> <06B5678A-9EFC-49C4-889F-31EC4186A0EC@shapeblue.com> <1834021422.19853.1510585612830.JavaMail.zimbra@wavecom.ee> <27F4E5E4-195E-4B7D-8BFE-DC690632339F@shapeblue.com> <2060411900.28789.1510666705657.JavaMail.zimbra@wavecom.ee> Subject: Re: set password with instance creation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [80.79.112.21] X-Mailer: Zimbra 8.7.11_GA_1854 (ZimbraWebClient - GC62 (Win)/8.7.11_GA_1854) Thread-Topic: set password with instance creation Thread-Index: /WTj5F21FKTgeQCVHz44dDzL4ePL0w== archived-at: Wed, 15 Nov 2017 14:01:37 -0000 Most cerainly :) how then i get password and ssh keys after reset. Problem = is only with instance creation. Lugupidamisega / Regards =20 Kristian Liivak Tegevjuht / Executive director WaveCom As Kotka 26, 11312 Tallinn Tel: +3726850001 Gsm: +37256850001 E-mail: kris@wavecom.ee Skype: kristian.liivak http://www.wavecom.ee http://www.facebook.com/wavecom.ee ----- Original Message ----- From: "Pierre-Luc Dion" To: "users" Sent: Wednesday, November 15, 2017 3:59:15 PM Subject: Re: set password with instance creation Hi Kristian, Does the template have "Password Enabled" checked? On Tue, Nov 14, 2017 at 8:38 AM, Kristian Liivak wrote: > Hi all > > Now i,m testing ssh keys but, no metadata or userdate folders are created > with instance creation in VR /var/www/html folder. > > When i reset keys folders are created. Just like issue with password wher= e > no password is assigned with instance creation but reset wotks fine > afterwards. > > Does anybody have similar enviroment liek mine with shared network and > these functions are operational ? > > > > Lugupidamisega / Regards > > Kristian Liivak > > Tegevjuht / Executive director > > WaveCom As > Kotka 26, 11312 Tallinn > Tel: +3726850001 > Gsm: +37256850001 > E-mail: kris@wavecom.ee > Skype: kristian.liivak > http://www.wavecom.ee > http://www.facebook.com/wavecom.ee > > ----- Original Message ----- > From: "Dag Sonstebo" > To: "users" > Sent: Monday, November 13, 2017 5:30:29 PM > Subject: Re: set password with instance creation > > Hi Kristian, > > Sounds like there may be issues with the initial password configuration. > If you=E2=80=99re confident in your testing maybe log a Jira ticket for t= his. > > With regards to passwords being reset back to a previous one =E2=80=93 we= came > across this recently (see https://issues.apache.org/ > jira/browse/CLOUDSTACK-10113 ) and wrote a patch =E2=80=93 will find out = more > info and update this thread. Please note the patch did not fix any initia= l > password set issues though. > > Regards, > Dag Sonstebo > Cloud Architect > ShapeBlue > > On 13/11/2017, 15:06, "Kristian Liivak" wrote: > > Hi all > > I performed several tests with macchinina template. > before that i restarted network with clean up option eg new VR was > created. > > But result are: VR password file is not modified after instance > creation. > Even file is not created when i first time created instance. > Shutdown instance and reset password only created VR password file an= d > it contains correct entry then > And finally next try with new instance brings back 1st instance > password enrty to VR password file wich is not correct i guess also ? > > My log is here:; ips are changed with aaa.bbb.ccc > I have only one network present. its one big /24 shared network for > all vms. Also ipv6 is present > cloudmonkey list network output is also added below. > > Thanks forward if someone is helping to clarify my issue. > > > Restarted netowrk with option cleanup. logged in to VR > root@r-377-VM:/var/cache/cloud# ls -lah > total 36K > drwxr-xr-x 3 root root 4.0K Nov 13 14:35 . > drwxr-xr-x 10 root root 4.0K Nov 13 14:29 .. > -rw-r--r-- 1 root root 29 Nov 13 14:29 boot_up_done > -rw-r--r-- 1 root root 33 Nov 13 14:28 cloud-scripts-signature > -rw-r--r-- 1 root root 754 Nov 13 14:29 cmdline > -rw-r--r-- 1 root root 33 Nov 13 14:29 disabled_svcs > -rw-r--r-- 1 root root 2 Nov 13 14:29 dnsmasq_managed_lease > -rw-r--r-- 1 root root 38 Nov 13 14:29 enabled_svcs > drwxr-xr-x 2 root root 4.0K Nov 13 14:35 processed > > Created new instance and get gui password "Password of new VM > Macchinina1 is EJ4cQ2" > Nothing changed in files /var/cache/cloud > > shutdown instance and reset succesfully password in gui"Password has > been reset to dt8sNZ" > Now i have correct file created in VR and it contains correct passwor= d > > root@r-377-VM:/var/cache/cloud# ls -lah > total 40K > drwxr-xr-x 3 root root 4.0K Nov 13 14:37 . > drwxr-xr-x 10 root root 4.0K Nov 13 14:29 .. > -rw-r--r-- 1 root root 29 Nov 13 14:29 boot_up_done > -rw-r--r-- 1 root root 33 Nov 13 14:28 cloud-scripts-signature > -rw-r--r-- 1 root root 754 Nov 13 14:29 cmdline > -rw-r--r-- 1 root root 33 Nov 13 14:29 disabled_svcs > -rw-r--r-- 1 root root 2 Nov 13 14:29 dnsmasq_managed_lease > -rw-r--r-- 1 root root 38 Nov 13 14:29 enabled_svcs > -rw-r--r-- 1 root root 21 Nov 13 14:37 passwords-aaa.bbb.ccc.2 > drwxr-xr-x 2 root root 4.0K Nov 13 14:37 processed > root@r-377-VM:/var/cache/cloud# more passwords-aaa.bbb.ccc.2 > aaa.bbb.ccc.196=3Ddt8sNZ > > powered up instance and tailed VR password file > > root@r-377-VM:/var/cache/cloud# tail -f passwords-aaa.bbb.ccc.2 > aaa.bbb.ccc.196=3Ddt8sNZ > tail: passwords-aaa.bbb.ccc.2: file truncated > > Vm have correct password. And VR password file is empty > > Next try with new instance. created. Password of new VM Macchinina2 i= s > U8jBqC,, tailed VR password file. No changes at all.. > > stopped new instance. resetted password "Password has been reset to > Y9mwzN" > > > root@r-377-VM:/var/cache/cloud# tail -f passwords-aaa.bbb.ccc.2 > aaa.bbb.ccc.196=3Ddt8sNZ > aaa.bbb.ccc.169=3DY9mwzN > > new password is there. > But now i have old instance password there again however it was gone > before ?? > > tail: passwords-aaa.bbb.ccc.2: file truncated > aaa.bbb.ccc.196=3Ddt8sNZ > > Vm started. password is changed . VR password file enrty is removed > howerver my 1st instance password is still there ? > > > > > > Cloudmonkey > > (local) =F0=9F=90=B5 > list networks > count =3D 1 > network: > id =3D 8bb0f3fa-d985-4940-834d-df00b166e01d > name =3D guest1 > acltype =3D Domain > broadcastdomaintype =3D Vlan > broadcasturi =3D vlan://17 > canusefordeploy =3D True > cidr =3D aaa.bbb.ccc.0/24 > displaynetwork =3D True > displaytext =3D guest1 > dns1 =3D 80.79.112.2 > dns2 =3D 80.79.112.20 > domain =3D ROOT > domainid =3D a3356c86-df35-11e6-9018-005056a00a77 > gateway =3D aaa.bbb.ccc.1 > ip6cidr =3D 2a01:97a0:0:7::/64 > ip6gateway =3D 2a01:97a0:0:7::1 > ispersistent =3D False > issystem =3D False > netmask =3D 255.255.255.0 > networkdomain =3D wavecom.ee > networkofferingavailability =3D Optional > networkofferingconservemode =3D True > networkofferingdisplaytext =3D Offering for Shared networks > networkofferingid =3D 601de2c9-c1e3-47a8-a08c-79896be9469f > networkofferingname =3D DefaultSharedNetworkOffering > physicalnetworkid =3D 53bcca6d-3569-4541-b4e4-20116d77e373 > related =3D 8bb0f3fa-d985-4940-834d-df00b166e01d > restartrequired =3D True > service: > name =3D Dhcp > capability: > name =3D DhcpAccrossMultipleSubnets > canchooseservicecapability =3D False > value =3D true > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > name =3D UserData > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > name =3D Dns > capability: > name =3D AllowDnsSuffixModification > canchooseservicecapability =3D False > value =3D true > specifyipranges =3D True > state =3D Setup > strechedl2subnet =3D False > subdomainaccess =3D True > tags: > traffictype =3D Guest > type =3D Shared > vlan =3D 17 > zoneid =3D fd1a23f1-49a8-445f-8ef7-caa1a7af1b4d > zonename =3D zone1 > > > > Lugupidamisega / Regards > > Kristian Liivak > CTO > > WaveCom As > Kotka 26, 11312 Tallinn Estonia > http://www.wavecom.ee > > > > Dag.Sonstebo@shapeblue.com > www.shapeblue.com > 53 Chandos Place, Covent Garden, London WC2N 4HSUK > @shapeblue > > > > ----- Original Message ----- > From: "Pierre-Luc Dion" > To: "users" > Sent: Monday, November 13, 2017 3:03:56 PM > Subject: Re: set password with instance creation > > Hi Kristian, > > Have you tried cloud-init with is configurations for cloudstack? > > > > Le 13 nov. 2017 06 h 21, "Dag Sonstebo" = a > =C3=A9crit : > > Hi Kristian, > > First thing to work out is whether this is down to your template or > ACS. > Could you try downloading the Macchinina template and see if this > works? > > http://dl.openvm.eu/cloudstack/macchinina/ > > If Macchinina does work then likelihood is something with your servic= e > configuration isn=E2=80=99t quite right. > > Regards, > Dag Sonstebo > Cloud Architect > ShapeBlue > > On 11/11/2017, 17:46, "Kristian Liivak" wrote: > > Hi there > > I=C2=B4m struggeling with template set password script. It won=C2= =B4t set > password with instance creation. > > In template logs i can see.. > Nov 11 19:32:59 localhost cloud: Got response from server > Nov 11 19:32:59 localhost cloud: VM has already saved a password > from > the password server at > > With manual try with wget > ;; > [root@centostest2 log]# wget -q -t 3 -T 20 -O - --header > "DomU_Request: > send_my_password" xx.x.xx.x.x:8080 > saved_password > > However password is set properly next time after i shutdown > instance > and choose set password. > > Is there any limitation/configuration/bug what im missing with > instance > creation ? > > Im using ver 4.10 and template is centos 7 > > Any advice or hint is most appreciated. > > Regards, > > Kristian Liivak > CTO > WaveCom As > Kotka 26, 11312 Tallinn > http://www.wavecom.ee > > > > > Dag.Sonstebo@shapeblue.com > www.shapeblue.com > 53 Chandos Place, Covent Garden, London WC2N 4HSUK > @shapeblue >