Subscription installation automation

This script is used to create, show and delete subscriptions.

Prerequisites

  1. OpenStack Environment

    A running OpenStack Tacker environment.Tacker CLI and OpenStack CLI must be installed and configured on the system.

  2. VNF instance is created and instantiated

  3. Notification server is reachable.

Configuration changes

The script uses a config.env file to define all necessary input parameters. User must update this file according to their system requirements before executing the script.

Script execution

  1. Make the Script and configuration file Executable

    $ chmod +x subscription.sh
    $ chmod +x config.env
    
  2. Create Subscription

    To create a new FM subscription:

    ./subscription.sh create
    
  3. Show Subscription(s)

    1. Show all subscriptions:

      ./subscription.sh show
      
    2. Show a specific subscription:

      We can check the subscription ID’s using below command

      openstack vnffm sub list --os-tacker-api-version 2
      
      ./subscription.sh show <subscription_id>
      
  4. Delete Subscription(s)

    1. Delete a specific subscription:

      ./subscription.sh delete <subscription_id>
      

      It also deletes the associated JSON file if it exists in format <id>_sample_param_file_fm_sub.json.

    2. Delete all subscriptions:

      ./subscription.sh delete
      

      It deletes all subscriptions via the Tacker CLI and removes all JSON files ending with _sample_param_file_fm_sub.json.