juju2 azure fail with error 409 network conflict

Bug #1589890 reported by Nicolas Thomas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
High
Unassigned

Bug Description

When trying to bootstrap juju2 on azure (following instruction in release note of Beta1 the only doc I found :( ):

I got this :
juju bootstrap azure azure --debug --show-log --upload-tools
2016-06-07 09:39:24 INFO juju.cmd supercommand.go:60 running juju [2.0-beta8 gc go1.6]
2016-06-07 09:39:24 DEBUG juju.cmd.juju.commands bootstrap.go:357 preparing controller with config: map[uuid:0c40a983-b91d-4511-8ef7-75e3f5cbd464 controller-uuid:0c40a983-b91d-4511-8ef7-75e3f5cbd464 type:azure name:controller]
2016-06-07 09:39:25 DEBUG juju.provider.azure environprovider.go:74 opening model "controller"
2016-06-07 09:39:25 INFO cmd cmd.go:129 Creating Juju controller "local.azure" on azure/centralus
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_D15_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F1"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F4"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F8"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F16"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS1_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS2_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS3_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS4_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS5_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS11_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS12_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS13_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS14_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_DS15_v2"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F1s"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F2s"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F4s"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F8s"
2016-06-07 09:39:26 DEBUG juju.provider.azure instancetype.go:100 found unknown VM size "Standard_F16s"
2016-06-07 09:39:26 INFO juju.cmd.juju.commands bootstrap.go:482 combined bootstrap constraints:
2016-06-07 09:39:26 INFO cmd cmd.go:129 Bootstrapping model "controller"
2016-06-07 09:39:26 DEBUG juju.environs.bootstrap bootstrap.go:157 model "controller" supports service/machine networks: false
2016-06-07 09:39:26 DEBUG juju.environs.bootstrap bootstrap.go:159 network management by juju enabled: true
2016-06-07 09:39:26 INFO cmd cmd.go:129 Starting new instance for initial controller
2016-06-07 09:39:26 DEBUG juju.provider.azure environ.go:125 creating resource group "juju-controller-model-0c40a983-b91d-4511-8ef7-75e3f5cbd464"
2016-06-07 09:39:28 DEBUG juju.provider.azure networking.go:91 creating virtual network "juju-internal-network"
2016-06-07 09:39:30 DEBUG juju.provider.azure environ.go:1090 destroying model "controller"
2016-06-07 09:39:30 DEBUG juju.provider.azure environ.go:1092 - deleting resource groups
2016-06-07 09:39:30 DEBUG juju.provider.azure environ.go:1133 - deleting resource group "juju-controller-model-0c40a983-b91d-4511-8ef7-75e3f5cbd464"
2016-06-07 09:40:20 ERROR cmd supercommand.go:448 failed to bootstrap model: creating controller resource group: creating virtual network: creating virtual network "juju-internal-network": autorest:DoErrorUnlessStatusCode PUT https://management.azure.com/subscriptions/5a013e85-417e-4126-8774-be1bd3787261/resourceGroups/juju-controller-model-0c40a983-b91d-4511-8ef7-75e3f5cbd464/providers/Microsoft.Network/virtualnetworks/juju-internal-network?api-version=2015-05-01-preview failed with 409 Conflict

First I see crete ressource group / delete ressource in a matter of second ...

There is no network at all :
ubnet
thomas@thomas-HP-Spectre-Ultrabook-PC:~$ azure network vnet list
info: Executing command network vnet list
+ Looking up virtual networks
warn: No virtual networks found
info: network vnet list command OK

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Andrew Wilkins (axwalk)
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
Andrew Wilkins (axwalk) wrote :

Nicolas, the Azure config doc for 2.0 is here:
    https://jujucharms.com/docs/devel/help-azure

I suspect that your subscription is not registered for the Azure networking provider. Can you please confirm that you've run the following commands from the release notes:
    azure provider register Microsoft.Compute
    azure provider register Microsoft.Network
    azure provider register Microsoft.Storage

(They're missing from the above doc, I'll ask the docs team to add it.)

I've just unregistered Microsoft.Network for myself, and doing so yields a 409 Conflict error similar to the one you've listed.

Changed in juju-core:
status: In Progress → Incomplete
Revision history for this message
Nicolas Thomas (thomnico) wrote :

I do confirm it is a huge documentation bug, help-azure url is not referenced in the doc AFAIK..

The azure provider commands are missing and without them nothing is possible.

The error msg raised is misleading as they should be a way to get the permission error from the provider imho.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

Nicolas, I definitely agree about the error messages. That's what we get out of the Azure SDK for Go. I think they may have improved it recently, but we're stuck on an old revision for now. I'll open a new bug to track this, and hopefully we can get some time to fix it soon.

FYI I have filed https://github.com/juju/docs/issues/1150 to update the docs.

Curtis Hovey (sinzui)
tags: added: azure-provider bootstrap
Curtis Hovey (sinzui)
tags: added: docs
Curtis Hovey (sinzui)
affects: juju-core → juju
Changed in juju:
assignee: Andrew Wilkins (axwalk) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.