The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Azure Service Fabric!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

 none
Any success with deploying containers using Standalone Service Fabric Cluster? RRS feed

  • General discussion

  • Service Fabric Version:5.5.216.0

    Nodes: 2016-Datacenter

    I have a 5-node (each node is separate VMs) standalone Service Fabric Cluster and trying to deploy a container from azurecr.io.

    Its not working and having hard time t-shooting issue, hope someone help me.

    Thanks

    Below is what I have done so far…

    • Installed Docker manually using following commands

    Install-Module -Name DockerMsftProvider -Force

    Install-Package -Name docker -ProviderName DockerMsftProvider -Force

    Restart-Computer -Force

    • Set below environment variable

    DOCKER_HOST=tcp://127.0.0.1:2375

    • Deployed the app waited couple of hours, nothing happens other this error

         Error event: SourceId='System.FM', Property='State'.

         Partition is below target replica or instance count.

         fabric:/MyContainers/RunnableContainer -1 1 68898080-f211-4b6e-97ed-d2a8d1219876

         IB mgmnt1 Up 131379058827813928

         IB mgmnt4 Up 131379058827813929

         IB mgmnt3 Up 131379058827813930

         IB mgmnt0 Up 131379058827813931

         IB mgmnt2 Up 131379058827813932

         (Showing 5 out of 5 replicas. Total available replicas: 0.)

    • I checked below Docker commands; output is empty

    docker -H localhost:2375 ps -a

    • Service Manifest file

    <ServiceManifest Name="RunnableContainerPkg" Version="1.0.0" xmlns="http://schemas.microsoft.com/2011/01/fabric" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      <ServiceTypes>

        <StatelessServiceType UseImplicitHost="true" ServiceTypeName="RunnableContainerType" />

      </ServiceTypes>

      <CodePackage Name="Code" Version="1.0.0">

        <EntryPoint>

          <ContainerHost>

            <ImageName>contoso.azurecr.io/my/RunnableContainer:latest</ImageName>

          </ContainerHost>

        </EntryPoint>

      </CodePackage>

      <Resources>

        <Endpoints>

          <Endpoint Name="RunnableContainerTypeEndpoint" Type="Input" Protocol="http" Port="80" />

        </Endpoints>

      </Resources>

    </ServiceManifest>

    • Application Manifest File

    <?xml version="1.0" encoding="utf-8"?>

    <ApplicationManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ApplicationTypeName="RiskLedger" ApplicationTypeVersion="1.0.1" xmlns="http://schemas.microsoft.com/2011/01/fabric" ___CorrelationId___="de5d59b0-1752-4cf7-a980-4edddba8935e">

      <Parameters>

        <Parameter Name="RunnableContainer_InstanceCount" DefaultValue="1" />

      </Parameters>

      <ServiceManifestImport>

        <ServiceManifestRef ServiceManifestName=" RunnableContainerPkg " ServiceManifestVersion="1.0.0" />

        <Policies>

            <ContainerHostPolicies CodePackageRef="Code">

                                            <RepositoryCredentials AccountName="XXXXXXXXX" Password="xxxxxxxxx" PasswordEncrypted="true"/>

                                            <PortBinding EndpointRef="RunnableContainerTypeEndpoint " ContainerPort="80"/>

            </ContainerHostPolicies>

        </Policies>

      </ServiceManifestImport>

        <DefaultServices>

        <Service Name="RunnableContainer">

          <StatelessService ServiceTypeName="RunnableContainerType" InstanceCount="[RunnableContainer_InstanceCount]">

            <SingletonPartition />

          </StatelessService>

        </Service>             

      </DefaultServices>

    </ApplicationManifest>


    Saturday, April 29, 2017 5:51 PM

All replies