I am running into the same issue and I am not able to enable physical network through API also
> -----Original Message----- > From: Gavin Lee [mailto:gavin....@gmail.com] > Sent: Thursday, April 18, 2013 10:46 AM > To: dev@cloudstack.apache.org > Subject: Re: physical network is in incorrect state:Disabled > > I encountered the same issue when deploying devcloud on master branch: > > bash$python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg Traceback > (most recent call last): > File "../marvin/marvin/deployDataCenter.py", line 469, in <module> > deploy.deploy() > File "../marvin/marvin/deployDataCenter.py", line 454, in deploy > self.createZones(self.config.zones) > File "../marvin/marvin/deployDataCenter.py", line 318, in createZones > networkid = self.createnetworks([guestntwrk], zoneId) > File "../marvin/marvin/deployDataCenter.py", line 164, in createnetworks > networkcmdresponse = self.apiClient.createNetwork(networkcmd) > File "/Users/gavin_lee/projects/cs-apache/cloudstack/tools/marvin/marvin/ > cloudstackAPI/cloudstackAPIClient.py", line 1493, in createNetwork > response = self.connection.marvin_request(command, data=postdata, > response_type=response) > File "/Users/gavin_lee/projects/cs-apache/cloudstack/tools/marvin/marvin/ > cloudstackConnection.py", line 216, in marvin_request > response = jsonHelper.getResultObj(response.json(), response_type) > File "/Users/gavin_lee/projects/cs-apache/cloudstack/tools/marvin/marvin/ > jsonHelper.py", line 128, in getResultObj > raise > cloudstackException.cloudstackAPIException(responseName.replace("response" > , > ""), errMsg) > cloudstackException.cloudstackAPIException: Execute cmd: > createnetworkfailed, due to: > errorCode: 431, errorText:Specified physical network id is in incorrect > state:Disabled > > > > On Thu, Apr 18, 2013 at 10:56 AM, Isaac Chiang > <isaacchi...@gmail.com>wrote: > > > OK! thanks. > > > > > > > > On Thu, Apr 18, 2013 at 10:52 AM, Pranav Saxena > > <pranav.sax...@citrix.com > > >wrote: > > > > > I see , if possible could you create a JIRA ticket and investigate > > > on > > the > > > same . Perhaps the difference in the current master code and the > > > slightly outdated code would let you know as to what's the root > > > cause of this problem. Let me know if I can help. > > > > > > Thanks, > > > Pranav > > > > > > -----Original Message----- > > > From: Isaac Chiang [mailto:isaacchi...@gmail.com] > > > Sent: Thursday, April 18, 2013 8:19 AM > > > To: dev@cloudstack.apache.org > > > Subject: Re: physical network is in incorrect state:Disabled > > > > > > Hi Pranav: > > > I observed the from the the Javascript console. As I > > > know, after updating the service provider's status, should be > > > followed a > > request > > > call to update physical network with state=enabled. But I didn't see > > > that request now, but followed a createNetwork call. > > > > > > Regards > > > Isaac > > > > > > > > > > > > On Thu, Apr 18, 2013 at 10:40 AM, Pranav Saxena < > > pranav.sax...@citrix.com > > > >wrote: > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Gavin