Return-Path: X-Original-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 052A9D199 for ; Thu, 2 Aug 2012 18:47:43 +0000 (UTC) Received: (qmail 28909 invoked by uid 500); 2 Aug 2012 18:47:42 -0000 Delivered-To: apmail-incubator-cloudstack-users-archive@incubator.apache.org Received: (qmail 28876 invoked by uid 500); 2 Aug 2012 18:47:42 -0000 Mailing-List: contact cloudstack-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-users@incubator.apache.org Delivered-To: mailing list cloudstack-users@incubator.apache.org Received: (qmail 28867 invoked by uid 99); 2 Aug 2012 18:47:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 18:47:42 +0000 X-ASF-Spam-Status: No, hits=-0.4 required=5.0 tests=RCVD_IN_IADB_DOPTIN_LT50,RCVD_IN_IADB_LISTED,RCVD_IN_IADB_SPF,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of benk@aweber.com designates 207.106.239.69 as permitted sender) Received: from [207.106.239.69] (HELO smtp.aweber.com) (207.106.239.69) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 18:47:37 +0000 Received: from dev-mbp-benk.ofc.lair (unknown [10.128.0.120]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.aweber.com (Postfix) with ESMTPSA id 621D2FC1C0 for ; Thu, 2 Aug 2012 14:47:16 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Copying templates between availability zones From: AWeber - Benjamin Krein In-Reply-To: Date: Thu, 2 Aug 2012 14:47:16 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <527AF101-FEA1-4191-A9A9-4494AC239BAA@aweber.com> References: <5CE10D86-D60F-4A57-A104-EB61F25EC0AE@aweber.com>,<2EE87463-1E09-4819-B646-24567D255019@aweber.com> To: cloudstack-users@incubator.apache.org X-Mailer: Apple Mail (2.1278) I think I just found my issues. I actually did something very similar = to what Nitin suggests below to track it down. The problem is that = we're using basic networking & have the private network setup with the = same gateway & subnet as the public network. When the storage VM comes = up the public network gets setup first but then when the private network = comes up on eth2 it clobbers the gateway & sets it to the eth2 = interface. So when the copy is initiated between the storage VMs it = happens across the private network but the /var/www/html/copy/.htaccess = file only allows the public IP of the other SSVM, thus the 403 errors.=20= -- Benjamin Krein On Aug 2, 2012, at 2:29 PM, Nitin Mehta wrote: > Can you see the first log for this template initiation ? It should be = logged with DownloadCommand and should have the url of the source ssvm's = template. Then you can try going to the destination SSVM and try = downloading that url.=20 > See what issues you get. I would also check the iptable rules to see = if the destination ssvm is blocked from accessing the source ssvm and = also if there is any .htaccess file in the apache directories forbidding = the download of template > Refer to = http://wiki.cloudstack.org/pages/viewpage.action?pageId=3D9601278 for = help as well. >=20 > Thanks, > -Nitin > ________________________________________ > From: AWeber - Benjamin Krein [benk@aweber.com] > Sent: Thursday, August 02, 2012 11:25 PM > To: cloudstack-users@incubator.apache.org > Subject: Re: Copying templates between availability zones >=20 > On Aug 2, 2012, at 1:50 PM, AWeber - Benjamin Krein wrote: >=20 >> When I try to copy a template from one availability zone to another = the webui says it succeeds, but the copy never shows up & I see this in = the management log: >>=20 >> 2012-08-02 17:44:00,935 DEBUG [agent.transport.Request] = (Timer-6:null) Seq 12-1476463345: Sending { Cmd , MgmtId: 161334717904, = via: 12, Ver: v1, Flags: 100011, = [{"storage.DownloadProgressCommand":{"jobId":"7b468191-a7dc-41bf-8453-9e39= b01b5fba","request":"GET_STATUS","hvm":true,"description":"Ubuntu10.04.4 = 64-bit = (5GB)","checksum":"393d4aebf205603314affb8cd4d58d64","auth":{"userName":"c= loud","password":"XXXXXXXXXXXXX"},"maxDownloadSizeInBytes":53687091200,"id= ":205,"url":"https://10-1-6-126.realhostip.com/copy/SecStorage/52659020-ee= 26-38cc-bca1-d037e65522a5/template/tmpl/2/205//50cfbdf4-1ae5-43ee-af9d-df9= e73f56593.qcow2","format":"QCOW2","accountId":2,"name":"50cfbdf4-1ae5-43ee= -af9d-df9e73f56593","secUrl":"nfs://myhost.internal.net/storage/cloud-sec2= ","wait":0}}] } >>=20 >> 2012-08-02 17:44:00,977 DEBUG [agent.transport.Request] = (AgentManager-Handler-1:null) Seq 12-1476463345: Processing: { Ans: , = MgmtId: 161334717904, via: 12, Ver: v1, Flags: 10, = [{"storage.DownloadAnswer":{"jobId":"7b468191-a7dc-41bf-8453-9e39b01b5fba"= ,"downloadPct":0,"errorString":" HTTP Server returned 403 (expected 200 = OK) = ","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/16d441= cf-f675-343b-884e-2ea5677773e8/template/tmpl/2/205/dnld4460230303792654544= tmp_","templateSize":0,"templatePhySicalSize":0,"result":false,"wait":0}}]= } >>=20 >> I do not see the 403 in the Apache logs of the storage VMs. I can = select "Download Template" from the actions & successfully download the = qcow through the webui. >=20 >=20 > I should also note that I see the above log lines over and over again = even after making the initial request. It's almost like the initial = request is stuck & no other requests are actually doing anything. I've = tried destroying/rebuilding the storage VMs & restarting the = cloud-management service followed by re-running cloud-setup-management = several times to no avail. >=20 > I've also set the global 'secstorage.allowed.internal.sites' to match = our internal subnet (10.1.0.0/16) which you can see that the storage VM = request is in along with the secondary storage, agents, etc. >=20 >=20 > -- > Benjamin Krein