Skip to main content

Overview

Instance tags are short, user-defined labels you attach to a virtual machine. They are free-form strings you can use to mark environment, owner, application tier, cost center, lifecycle stage, or any custom taxonomy your team needs. Tags are stored on the instance record itself, so they travel with the VM across reboots, snapshots, migrations, and ownership changes.
Prerequisites
  • An instance in Active, Paused, Suspended, or Stopped state.
  • Permission to update server tags (os_compute_api:os-server-tags:update_all). This is granted to project members by default.

Tag Rules

Establish a tagging convention before you scale. Decide upfront whether to use env:prod or prod, whether to use team-platform or platform, and publish the convention internally. Consistent tags pay off when filtering hundreds of VMs from the CLI or driving Terraform/Ansible from tags.

Where Tags Appear in the Dashboard

The Dashboard list page does not currently expose a tag-based search filter. To filter by tag, use the CLI procedures below — the API supports tag filtering and is the recommended path for inventory queries.

Add, Edit, and Delete Tags

All three actions — adding a new tag, replacing existing tags, and removing tags — happen inside a single dialog called Modify Instance Tags. The dialog shows the current tags as pills; you mutate the set and click Confirm, and the platform applies the new set in one operation.

Add Tags

1

Open the Modify Instance Tags dialog

Navigate to Compute > Instances. On the row of the instance you want to tag, open the More menu and click Modify Instance Tags.
2

Type a tag and press Enter

In the tag input field, type the tag value and press Enter. The tag becomes a pill in the list. Repeat for each tag you want to add.The dialog enforces:
  • Maximum 50 tags per instance.
  • Maximum 60 characters per tag.
  • No forward slash / or comma ,.
  • No duplicate (case-insensitive) tags.
Invalid tags are rejected immediately with an inline error message.
3

Save the changes

Click Confirm. The platform updates the VM’s tag set and the dialog closes.
The new tags appear in the Tags column and on the instance detail page within a few seconds.

Edit Tags

Editing a tag means removing the old value and adding the new value — there is no in-place rename.
1

Open Modify Instance Tags

From Compute > Instances, open the More menu on the row and click Modify Instance Tags.
2

Remove the old value

Click the X on the tag you want to rename. The pill is removed from the list. The change is not saved until you click Confirm.
3

Type the new value

Type the new tag value and press Enter.
4

Save

Click Confirm. Both changes — the removal and the addition — apply in one update.
The instance’s Tags column shows the new value and no longer shows the old one.

Delete Tags

You can remove a single tag or clear every tag from a VM.
1

Open Modify Instance Tags

From Compute > Instances, open the More menu on the row and click Modify Instance Tags.
2

Remove tags

  • To remove a single tag, click the X on its pill.
  • To remove every tag, click X on each pill until the list is empty.
3

Save

Click Confirm. The selected tags are deleted from the VM.
The instance no longer shows the removed tags.
Tag changes apply immediately. There is no undo. Removing a tag that is used by an automation system (Terraform, Ansible inventory, monitoring rules) can cause that automation to lose track of the VM. Verify your downstream tooling before bulk-removing tags in production.

Key-Value Pairs

Tags in the Dashboard are plain strings (one label per pill). Some teams need true key=value pairs — for example, env=production, team=payments, cost-center=R&D-12 — so they can branch automation, dashboards, or RBAC rules on the value of a key rather than scanning a flat list. Today on Polystack:
Server metadata and instance tags are two different stores under the hood. Tags are unordered string labels; metadata is a key-value dictionary. They can coexist on the same VM and serve complementary purposes.

Add Key-Value Pairs from the CLI

Source credentials
Output prints each key='value' pair on its own line.
Use tags for fast yes/no filtering — “is this VM in the production group?”. Use key-value metadata when the value matters — “which environment is this VM in?” or “who owns this VM?”. Many teams use both: a coarse production tag for filtering and env=production metadata for display.

Where You Can Use Tags

Tags are not exclusive to instances. The Polystack Platform attaches the same flat-string tag concept to several resource types so you can apply the same naming convention across the whole cluster.
Resources marked “use metadata instead” never had a string-tag concept on this platform — their key-value metadata is the only labelling mechanism. Resources with native tags also support metadata if you need both.

Actions You Can Perform Using Tags

Tags become powerful when you use them as a key for filtering, automation, and reporting. The same tag set drives multiple workflows.

Filter the Instance Inventory by Tag

The Compute API understands four tag filter parameters. The openstack CLI exposes them as flags on openstack server list.
Combine --tag and --not-tag-any to get clean inventory slices — for example “production but not deprecated”. The same combination via the API drives audit reports and automation triggers.

Drive Automation From Tags

Most infrastructure tools can read instance tags directly and use them as the grouping key.
The Polystack Dashboard does not currently expose a tag filter in its instance search bar. For ad-hoc filtering inside the Dashboard, use the column-picker to display the Tags column and search by name, then visually scan the tags. For programmatic inventory queries, use the CLI flags above.

Use Tags as Lifecycle Markers

A common pattern is to tag VMs with their intended lifetime, then run a periodic job that lists VMs with the relevant tag and acts on them.

Common Tagging Patterns


Troubleshooting

The action is only available when the VM is in Active, Paused, Suspended, or Stopped state. If the instance is Building, Error, Resizing, or in any other transient state, wait for it to settle and try again.
The tag contains a forbidden character. Forward slash / and comma , are not allowed because they conflict with the API’s list separator. Use a hyphen, underscore, or colon instead — for example env-prod or env_prod instead of env/prod.
Tags are case-insensitive. Production and production are considered the same tag. The dialog rejects the second entry. Pick a single canonical casing and stick with it.
The list view caches results for a few seconds. Refresh the page or re-run openstack server list to pick up the latest values. If the delay persists for more than a minute, contact your administrator — the cache layer may need to be cleared.
Your project role does not include os_compute_api:os-server-tags:update_all. Ask your administrator to grant the member role on the project that owns the VM.

Next Steps

Launch an Instance

Create new instances and tag them at boot time.

Server Groups

Group instances by placement policy.

Instance Snapshots

Snapshot tagged instances for backup and rollback.

Resource Optimizer

Use tags to scope optimization actions to specific workloads.