Well , how is that possible otherwise the physical network state won't be 
updated at all . It's a part of the zoneWizard work flow . Have a look at the 
snippet below which is passing state as Enabled in zoneWizard.js - 
/*
if(args.data.zone.networkType == "Basic") {
            $.ajax({
              url: createURL("updatePhysicalNetwork&state=Enabled&id=" + 
args.data.returnedBasicPhysicalNetwork.id),
              dataType: "json",

*/



-----Original Message-----
From: Isaac Chiang [mailto:isaacchi...@gmail.com] 
Sent: Thursday, April 18, 2013 8:08 AM
To: dev@cloudstack.apache.org
Subject: Re: physical network is in incorrect state:Disabled

Hi Pranav:
            The UI doesn't send updatePhysicalNetwork call through wizard now.

Isaac


On Thu, Apr 18, 2013 at 10:32 AM, Pranav Saxena <pranav.sax...@citrix.com>wrote:

> Isaac,
>
> Could you verify if UI is making the correct call to the 
> UpdatePhysicalNetwork API with state being passed as "Enabled " ? If 
> yes , then the issue is something serious since Sanjay pointed out 
> that the db column contains state as "Disabled"  .This would mean that 
> the API is not setting the db column correctly in case there have been 
> modifications to the API code.
>
> Thanks,
> Pranav
>
> -----Original Message-----
> From: Isaac Chiang [mailto:isaacchi...@gmail.com]
> Sent: Thursday, April 18, 2013 7:54 AM
> To: dev@cloudstack.apache.org
> Subject: Re: physical network is in incorrect state:Disabled
>
> Hi all:
>           I encountered same issue. The zone installation wizard won't 
> enable the physical network now in master code.
>
> Regards
>
> Isaac
>
>
>
>
>
> On Thu, Apr 18, 2013 at 12:39 AM, Alena Prokharchyk < 
> alena.prokharc...@citrix.com> wrote:
>
> > Hi Sanjay,
> >
> > You have to enable the physical network explicitly after its 
> > creation if you configure CS using APIs. Here is the example of the command:
> >
> > http://localhost:8096/?command=updatePhysicalNetwork&id=
> > <UUID>&state=Enable
> > d
> >
> > The cloudStack UI automatically does this call for you as the last 
> > step of the zone creation.
> >
> > -Alena.
> >
> > On 4/17/13 3:40 AM, "Sanjay Tripathi" <sanjay.tripa...@citrix.com>
> wrote:
> >
> > >Hi,
> > >
> > >While setting up the environment with the latest master code, the 
> > >"createNetwork" API fails with this error message: "failed to 
> > >create a guest network for basic zone Error: Specified physical 
> > >network id is in incorrect state:Disabled". I checked the DB and 
> > >found that in physical_network table the data entry is in disabled state.
> > >
> > >Is anyone else facing the same issue, or is there any use case why 
> > >physical network is in disabled state?
> > >
> > >--Sanjay
> > >
> >
> >
> >
>

Reply via email to