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 A18A810976 for ; Wed, 3 Jul 2013 13:22:13 +0000 (UTC) Received: (qmail 55790 invoked by uid 500); 3 Jul 2013 13:22:12 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 55737 invoked by uid 500); 3 Jul 2013 13:22:12 -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 55728 invoked by uid 99); 3 Jul 2013 13:22:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 13:22:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of daan.hoogland@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 13:22:06 +0000 Received: by mail-ie0-f177.google.com with SMTP id aq17so303591iec.8 for ; Wed, 03 Jul 2013 06:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=PdcY+FPCYjWnyfAGR3+6avP+EfZXDx4n+GDoQ9WGO/g=; b=qLvxmODGsOO2ypf8nCWxqspnKkql/H+y+bm+wxsCEadB4i5CsOzdK6D60QHXhjX/fD INXru4HfABE9edfDhmvQIE2MdW//2jbq9ocgClMe9cD18/OZcLVhfVYcPhaQD+cY7H7w mqS/iYKEpX2dT0akrtAAe0ypQEBs92AnIGHBTL/WHELjatI3TlmnmSGn+NwPYemUc7BB ETxNrt66L/WXYxntpL1mL8fLo8K8NvWT4tSzStGSY/EtBtw12NkTDSbBe7YLwl4vUUW1 0diMdeteTTg4T3MR634tgyDJsOKpShrjKfw63YApWIGg9MIp06suW2nORIYYvK6uOq9T 6E+Q== X-Received: by 10.50.62.75 with SMTP id w11mr603597igr.19.1372857705541; Wed, 03 Jul 2013 06:21:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.252.226 with HTTP; Wed, 3 Jul 2013 06:21:25 -0700 (PDT) In-Reply-To: <6717EC2E5A665A40A5AF626D7D4FA906D958D3@x2008mb1.infoblox.com> References: <6717EC2E5A665A40A5AF626D7D4FA906D958D3@x2008mb1.infoblox.com> From: Daan Hoogland Date: Wed, 3 Jul 2013 15:21:25 +0200 Message-ID: Subject: Re: DNS Network Domain To: dev Content-Type: multipart/alternative; boundary=047d7bdc10e4ddb82904e09b574a X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc10e4ddb82904e09b574a Content-Type: text/plain; charset=ISO-8859-1 I am looking into a problem a colleague noticed: a domain for a zone was propagated to the database but not to the virtual routers /etc/dnsmasq.conf and /etc/vpcdnsmasq.conf files. The domain 2.vmops-test.vmops.com is used which is a coded default. Anybody recognizes this? Is this the same/related? It seems not, since the database does contain the right value, but the result is the same. regards, Daan On Wed, Jul 3, 2013 at 3:36 AM, Soheil Eizadi wrote: > I found that the DNS Network Domain set for Basic Networking is not > getting passed down to Network Plugins. I am trying to figure out how DNS > Network Domain is suppose to work for my plugin integration. > > I was getting a NULL value for Basic Networking for the DNS Domain even > though I had set a value for it in the Wizard. After I set the value in the > database, it seems to be working but wanted to understand why it was not > set,I found code in the system that enforces this behavior, when I try to > set it from the API. > -Soheil > > More detail logs ..... > > The Domain is set in the Zone Setting to acme.com: > > list zones > count = 1 > zone: > name = testzone > .. > domain = acme.com > .. > > It does not get passed down to the attached network. > > API call "list networks" missing networkdomain field as it is NULL. > > > list networks > count = 1 > network: > id = 1065fff0-a6e2-410a-94d5-50bc72f879db > name = defaultGuestNetwork > acltype = Domain > broadcastdomaintype = Native > ..... > > > I also tried to set it using API to set the value but get exception: > > ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-20:job-20) > Unexpected exception while executing > org.apache.cloudstack.api.command.user.network.UpdateNetworkCmd > com.cloud.exception.InvalidParameterValueException: NetworkOffering and > domain suffix upgrade can be perfomed for Isolated networks only > at > com.cloud.network.NetworkServiceImpl.updateGuestNetwork(NetworkServiceImpl.java:1982) > at > com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > > Exception from here: > > > // network offering and domain suffix can be updated for Isolated > networks only in 3.0 > > if ((networkOfferingId != null || domainSuffix != null) && > network.getGuestType() != GuestType.Isolated) { > > throw new InvalidParameterValueException("NetworkOffering and > domain suffix upgrade can be perfomed for Isolated networks only"); > > } > > > I've patched the database and it works for me, trying to understand why we > have code to prevent it? > > > > list networks > > count = 1 > > network: > > id = 1065fff0-a6e2-410a-94d5-50bc72f879db > > name = defaultGuestNetwork > > ... > > networkdomain = acme.com > > .... > > > INFO [network.element.InfobloxElement] (consoleproxy-1:) > InfobloxDeviceElement called to prepare Host Name soheil-test with DNS > Domain acme.com Gateway null Netmask null with MAC 06:97:84:00:00:16 with > IPv4 172.16.197.161 > > --047d7bdc10e4ddb82904e09b574a--