The Mock IaaS feature in Stratos simulates the basic features that Stratos requires from an IaaS. Thereby, providing a cost effective way of trying out Stratos.

The Mock IaaS is started in a distributed setup only when testing Stratos products in a clustering setup. 

Install Stratos with the Mock IaaS in a single JVM setup

Follow the instructions below to install Stratos with the Mock IaaS in a single JVM setup:

  1. Ensure that all the following prerequisites have been met based on your environment and IaaS.

    You only need to install Maven, JDK, Git and Apache ActiveMQ when working on a Mock IaaS.

    Error rendering macro 'excerpt-include'

    No link could be created for '4.1.x Install Stratos with EC2 in a Testing Environment'.

  2. Navigate to the <apache-stratos-version-SNAPSHOT>/bin/ directory, which is in the unzipped Stratos distribution.

    cd <apache-stratos-version-SNAPSHOT>/bin/
  3. Start Stratos. 

    ./stratos.sh

Install Stratos with the Mock IaaS in a distributed setup

The Mock IaaS is started in a distributed setup only when it is needed to test  clustering. When Mock IaaS is started in a distributed setup, Stratos Manager (SM), Cloud Controller (CC), Auto-scaler (AS) and the Mock IaaS are started on separate servers.  Follow the instructions below to install Stratos with the Mock IaaS in a distributed setup, which utilizes multiple Java virtual machines (JVMs):

  1. Ensure that all the following prerequisites have been met based on your environment and IaaS.

    You only need to install Maven, JDK, Git and Apache ActiveMQ when working on a Mock IaaS.

    Error rendering macro 'excerpt-include'

    No link could be created for '4.1.x Install Stratos with EC2 in a Testing Environment'.

  2. Configure and start the Mock IaaS.
    Follow the instructions below to configure and start the Mock IaaS. 

    1. Configure the Cloud Controller (CC).

      Update the Stratos host and port of the Mock iaaS API endpoint in the  <apache-stratos-version-SNAPSHOT>/repository/conf/cloud-controller.xml  file, and comment the IaaS provider details that are not being used.

       <iaasProvider type="mock" name="Mock">
                  <className>org.apache.stratos.cloud.controller.iaases.mock.MockIaas</className>
                  <provider>mock</provider>
                  <identity svns:secretAlias="cloud.controller.mock.identity">identity</identity>
                  <credential svns:secretAlias="cloud.controller.mock.credential">credential</credential>
                  <property name="api.endpoint" value="https://localhost:9443/mock-iaas/api" />
              </iaasProvider>
      	</iaasProviders>

      The default Startos host is localhost and the port is 9443. However, when the CC port offset is 1, the Stratos port should be changed to 9444. 

    2. Navigate to the   <apache-stratos-version-SNAPSHOT>/bin/   directory, which is in the unzipped Stratos distribution.

      cd <apache-stratos-version-SNAPSHOT>/bin/
    3. Start the Stratos distribution with the mock-iaas server profile.

      ./stratos.sh -Dprofile=mock-iaas
  3. Install Stratos Manager, Cloud Controller and Auto-scaler on separate Java virtual machines. For more information, see Installing Stratos in a Distributed Setup Using the Installer.

  • No labels