Skip to content

Provisioning a cluster throws InvalidOperationException #91

@pmbanka

Description

@pmbanka

I tried going through the tutorial and I run into a problem in 0-provision-azure-cluster.fsx script.

Calling line 33 (let deployment = Config.ProvisionCluster()) throws InvalidOperationException:

INFO : using vm size Large
INFO : using cluster name pb-test-azure-mbrace
INFO : creating new service bus account "mbracef1de15dc"
INFO : creating new storage account "mbrace69f2095c"
INFO : Created new storage account "mbrace69f2095c"
INFO : Created new default MBrace Service Bus namespace mbracef1de15dc
INFO : deploying cloud service package package from https://github.com/mbraceproject/MBrace.Azure/releases/download/1.4.3/MBrace.Azure.CloudService-Large.cspkg to your storage account (https://mbrace69f2095c.blob.core.windows.net/deployments/MBrace.Azure.CloudService-Large.cspkg-zfncfaq8fsblcyeh9h8tax3fns)
INFO : creating cloud service "pb-test-azure-mbrace"
INFO : starting deployment "pb-test-azure-mbrace" using slot "Production" with package "https://mbrace69f2095c.blob.core.windows.net/deployments/MBrace.Azure.CloudService-Large.cspkg-zfncfaq8fsblcyeh9h8tax3fns"

val deployment : Deployment

> System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
   at System.Threading.Tasks.TaskCompletionSource`1.SetException(Exception exception)
   at [email protected](Object state) in C:\Users\eirik\Development\mbrace\MBrace.Core\src\MBrace.Core\Utils\AsyncExtensions.fs:line 145
   at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()
   at System.Threading.TimerQueue.AppDomainTimerCallback()
Stopped due to error

Despite the error, the provisioning goes on and after some time I see this when calling ShowInfo():

 Cloud Service "pb-test-azure-mbrace"                                                                                                                     

 Name                  Region        VM size  #Instances  Deployment Status  Storage Accnt   ServiceBus Accnt  Last Modified        Cluster Label 
 ----                  ------        -------  ----------  -----------------  -------------   ----------------  -------------        ------------- 
 pb-test-azure-mbrace  North Europe  Large    4           Ready              mbrace69f2095c  mbracef1de15dc    2016-12-02 17:00:37  mbrace-1.4.3  

val it : unit = ()

This is repeatable (occurred to me two times I tried it), so if you need any more information please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions