Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E83F9175B1 for ; Wed, 18 Mar 2015 21:45:53 +0000 (UTC) Received: (qmail 27027 invoked by uid 500); 18 Mar 2015 21:45:53 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 26975 invoked by uid 500); 18 Mar 2015 21:45:53 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 26963 invoked by uid 99); 18 Mar 2015 21:45:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 21:45:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shadowsor@gmail.com designates 209.85.212.176 as permitted sender) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 21:45:49 +0000 Received: by wixw10 with SMTP id w10so51769974wix.0 for ; Wed, 18 Mar 2015 14:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=pHfzhb+vARkYN4tYKvcje0em0iYQUbk8jMGV0JBQXL8=; b=GLDylBZnoPddhUPJ6CG2X2pTVsK9D0NnlUmf8Yw6O0fwxT/8JEPU585z6dL71g+7uz EY6fgZs1lQXhO0KUwjC91owAL4wyUKyBilpEfWr0srYNR8XfOytNYGjxiW+EhixwQONm D1RQTybCfPSi3ioOA3nsbr4AU18lABlqxCRQndjDoYGX5llX9k26CoLsSdC58UgBzaZU aLBXwuO4nRljNvSYVC/hiuYXL9tBTiaBSvuSDng3o6hRC14ZAg8ebWQVTkwE8c3LA0Mp 2Rk8QJi7Dx7ngQTOeN86+jQT+OEd5KhICCSwNps01f9ZXfx+tdqjx8gNfLRN0dCeaS77 Q6mg== MIME-Version: 1.0 X-Received: by 10.194.92.169 with SMTP id cn9mr66525366wjb.61.1426715128099; Wed, 18 Mar 2015 14:45:28 -0700 (PDT) Received: by 10.28.167.19 with HTTP; Wed, 18 Mar 2015 14:45:28 -0700 (PDT) In-Reply-To: <1036217597.2138.1426707584936.JavaMail.zimbra@li.nux.ro> References: <991272011.1445.1426695916095.JavaMail.zimbra@li.nux.ro> <1526804555.1968.1426704290739.JavaMail.zimbra@li.nux.ro> <695760231.2126.1426707242063.JavaMail.zimbra@li.nux.ro> <1036217597.2138.1426707584936.JavaMail.zimbra@li.nux.ro> Date: Wed, 18 Mar 2015 14:45:28 -0700 Message-ID: Subject: Re: Root disk size support in UI - problem with instanceWizard.js From: Marcus To: "dev@cloudstack.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I don't recall. There was a big long thread about it at one point, but I wasn't paying full attention to it. On Wed, Mar 18, 2015 at 12:39 PM, Nux! wrote: > If it's to save on download sizes, I prefer John's approach to proxy and = cache via Apache HTTPd (which brings other advantages as well, like easy SS= L configuration, mod_security etc etc). > > http://theresnomon.co/2014/improving-cloudstack-ui-performance/ > > Lucian > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > > ----- Original Message ----- >> From: "Nux!" >> To: dev@cloudstack.apache.org >> Sent: Wednesday, 18 March, 2015 19:34:02 >> Subject: Re: Root disk size support in UI - problem with instanceWizard.= js > >> Marcus, >> >> Thanks, after gzipping it I can see the field! >> >> Why are we doing this? >> >> -- >> Sent from the Delta quadrant using Borg technology! >> >> Nux! >> www.nux.ro >> >> ----- Original Message ----- >>> From: "Marcus" >>> To: dev@cloudstack.apache.org >>> Sent: Wednesday, 18 March, 2015 18:55:08 >>> Subject: Re: Root disk size support in UI - problem with instanceWizard= .js >> >>> for 4.5, you'll need to gzip any js files after editing them. At least >>> that's what I've observed. You should see a .js and a .js.gz for each. >>> >>> On Wed, Mar 18, 2015 at 11:44 AM, Nux! wrote: >>>> Thanks Ian, tried your suggestions, but to no effect that I can observ= e. >>>> The root disk field does not appear on the instance creation page. >>>> >>>> Lucian >>>> >>>> -- >>>> Sent from the Delta quadrant using Borg technology! >>>> >>>> Nux! >>>> www.nux.ro >>>> >>>> ----- Original Message ----- >>>>> From: "Ian Duffy" >>>>> To: "CloudStack Dev" >>>>> Sent: Wednesday, 18 March, 2015 16:52:30 >>>>> Subject: Re: Root disk size support in UI - problem with instanceWiza= rd.js >>>> >>>>> Hey Nux, >>>>> >>>>> This is completely untested and based of reading the source code. >>>>> >>>>> Within ui/scripts/ui-custom/instanceWizard.js on line ~ 424 you shoul= d >>>>> find a call to the custom hidden function which determines whether or >>>>> not to set display =3D none on the root resize box. >>>>> >>>>> Within the ui/scripts/instanceWizard.js you'll see that the root >>>>> resize is applied if its element isn't set to display none. >>>>> >>>>> I'd suggest just setting var custom =3D false; as a quick and easy fi= x. >>>>> >>>>> https://github.com/apache/cloudstack/blob/master/ui/scripts/ui-custom= /instanceWizard.js#L424-437 >>>>> >>>>> >>>>> On 18 March 2015 at 16:25, Nux! wrote: >>>>>> Hello, >>>>>> >>>>>> In my 4.4.1 install I can use this patch[1] to specify a custom root= disk size >>>>>> for an instance[2]. This is of course very handy, enabled me to get = rid of tens >>>>>> of templates with custom sizes. >>>>>> In 4.5 this patch no longer does it's job, there is no Root Disk fie= ld appearing >>>>>> during instance creation. >>>>>> >>>>>> Can anyone have a look? >>>>>> >>>>>> [1] >>>>>> https://git-wip-us.apache.org/repos/asf?p=3Dcloudstack.git;a=3Dblobd= iff;f=3Dui/scripts/instanceWizard.js;h=3D4a740c6685e05449290f1fe378add9a6c7= 1f96ad;hp=3D646ffbf5b1922fc618bb3ad0091fe15895c24226;hb=3D8fec09ba481fbd3b8= c2a9e4d31ef06f113b037cb;hpb=3Dc1af92fcbbc183873d6519f0660b68acfb33bd44 >>>>>> [2] http://img.nux.ro/Fw3-Selection_020.png - This is a KVM only fea= ture for now >>>>>> >>>>>> -- >>>>>> Sent from the Delta quadrant using Borg technology! >>>>>> >>>>>> Nux! >> > >> > www.nux.ro