VM Service Tagging (For ITS managed VMs only)

Introduction

The ITS Private Cloud platform introduces a new “VM Service tagging” feature, which is now a mandatory attribute for ITS managed VMs and it allows ITS VM owners to more easily manage and identify the VM’s role with its associated services.

By using the Cloud Portal or CLI or directly to the API, ITS VM admins can tag the services to their VMs by simply selecting a matching service from a pre-populated list of components which is automatically imported from the ITS System Status Page by the Cloud API. 

The following how-to guides you through the process of tagging virtual machines with services via the Portal and Command Line interface

Step-by-step guide - Cloud Portal

Existing VM

  1. Login to https://cloud-portal.eis.utoronto.ca

  2. Look for the VM to edit and click the button.

  3. From the VM action section (bottom), click on the ADMIN tab and look for the SERVICE field.

  4. Each item in the dropdown menu is composed of the Service Group/Service just like the System Status website, for instance, lets assume the following VM is part of the ITS Private Cloud Infrastructure/Virtual Server Service:

    1. Cloud Portal
      System Status
  5. Click the Update button and confirm the changes:

  6. A new change request will be submitted.

New VM

  1. Login to https://cloud-portal.eis.utoronto.ca

  2. Click on the  button to request a virtual machine.

  3. Fill out the Virtual Machine specification as required.

  4. In the Admin tab look for the Service field. Each item in the dropdown menu is composed of the Service Group/Service just like the System Status website, for instance, lets assume the following VM is part of the ITS Private Cloud Infrastructure/Virtual Server Service:

  5. Click on the button CREATE.

  6. A New virtual machine request will be submitted.

Step-by-step guide - Command Line Interface

Existing VM

  1. Login to https://vss-cli.eis.utoronto.ca with your VSS Credentials or use your local VSS CLI install.

  2. Initialize VSS CLI with vss-cli configure mk or skip this step if you have already configured the CLI:

    vss-cli configure mk Username []: username Password: Repeat for confirmation:
  3. Each service item in the is composed of the Service Group/Service just like the System Status website, for instance, lets assume the Vm to tag is part of the ITS Private Cloud Infrastructure/Virtual Server Service.

  4. We can use the vss-cli service ls command to search for the service:

    vss-cli service ls -f label=Private ID LABEL NAME GROUP ---- ------------------------------------------------------- ------ -------------------------------- 56 ITS Private Cloud Infrastructure/UTORbackup ITS Private Cloud Infrastructure 57 ITS Private Cloud Infrastructure/Virtual Server Service ITS Private Cloud Infrastructure
  5. To tag a vm, the command vss-cli compute vm set {name-or-vm-id} vss-service {service-name-or-id}

    vss-cli compute vm set {name-or-vm-id} vss-service "ITS Private Cloud Infrastructure/Virtual Server Service"
  6. A new change request will be submitted.

New VM

  1. Login to https://vss-cli.eis.utoronto.ca with your VSS Credentials or use your local VSS CLI install.

  2. Initialize VSS CLI with vss-cli configure mk or skip this step if you have already configured the CLI:

  3. Each service item in the is composed of the Service Group/Service just like the System Status website, for instance, lets assume the Vm to tag is part of the ITS Private Cloud Infrastructure/Virtual Server Service.

  4. We can use the vss-cli service ls command to search for the service:

  5. All subcommands in the vss-cli compute vm mk support the --vss-service 

     

  6. Any of the previous commands will submit a new Virtual machine request.







University of Toronto - Since 1827