Application Packaging Standard

Last updated 18-Mar-2019

Provisioning

At the provisioning stage, verify if the system activates the proper provisioning method. It must create a container (VM==false) using the sync provisioning mode, and start the async provisioning when a customer requires a VM (VM==true).

../../../../_images/async-step-intro.png ../../../../_images/async-step-provision.png ../../../../_images/async-step-presentation.png ../../../../_images/async-step-deploy.png ../../../../_images/async-step-provisioning-b.png

Continue your demo project from the previous step.

Subscribe to Application Services

Create a subscription for a customer and open the customer control panel as explained in the Generic Service Management demo project.

Test Sync and Async Operations

In the customer control panel, verify that the application uses the sync and async operations as expected.

  1. Make sure the VPS Management item is available in the left-hand side navigation panel and switch to it to perform all operations with VPSes.

  2. Click New to start creating a container. For this purpose, make sure the check-box I will manage the OS Kernel is clean. Complete creation of the container.

  3. In the Servers list, notice the new VPS and verify its properties:

    • Its State is Stopped. It means, it has been created immediately using the sync method.
    • Its Provisioning status is Ready. This is one more evidence that the sync provisioning was used.
  4. Start creating a VM. For this purpose, make sure the check-box I will manage the OS Kernel is ticked.

    ../../../../_images/async-new-vm.png

    Complete creation of the VM.

  5. In the Servers list, notice the new VPS and verify its properties:

    • Its State is Creating. It means, it was not created immediately, that is the async method was used.
    • Its Provisioning status is In progress. This is one more evidence that the async provisioning was started.
    ../../../../_images/async-container-vm.png

    Click Refresh in about 30 s to verify if the State is changed for Stopped and the Provisioning status is Ready.

Verify Scheduled Tasks

In the provider control panel, navigate to Operations > Tasks and find the scheduled task engaged into creating the requested VPS. If the provisioning is completed, seek for the task on the Task Log tab.

../../../../_images/async-task-log1.png

Conclusion

This completes the APS application development cycle. You have created an application that can require the APS controller to use the async mode for the resource provisioning.

If you experienced any issues when following the project steps, you can compare your code with the similar contents in the sample package.