Instance Statuses and Lock Mechanism
Understanding the various states of your instances and the lock mechanism is crucial for effective management of your cloud resources.
Instance Statuses
Instances in OpenStack can be in several different states:
Active: The instance is running and ready for use.
Shutoff: The instance has been powered off. It still exists on the compute node but is not running.
Paused: The instance’s state has been temporarily stored in memory. A paused instance can be quickly resumed.
Suspended: Similar to paused, but the instance’s state is stored on disk rather than in memory.
Shelved: The instance is shut down and its resources are released, but its disk image is preserved. Useful for long-term storage of instances.
Error: The instance is in an error state. This usually requires intervention to resolve.
Build: The instance is in the process of being created.
Rescue: The instance is in rescue mode, usually for troubleshooting or recovery purposes.
Resized: The instance has been resized and is awaiting confirmation.
To view the status of an instance:
- Navigate to “Compute” > “Instances”
- The “Status” column shows the current state of each instance
Lock Mechanism
The lock mechanism in OpenStack provides a way to prevent certain operations on an instance. This is useful for protecting critical instances from accidental modification or deletion.
Locking an Instance
To lock an instance:
- Go to “Compute” > “Instances”
- Find the instance you want to lock
- In the “Actions” dropdown menu, select “Lock Instance”
Effects of Locking
When an instance is locked:
- It cannot be deleted
- It cannot be powered off or rebooted
- Its configuration cannot be changed (e.g., resize, rebuild)
- Snapshots of the instance cannot be created
However, you can still:
- View the instance’s details
- Connect to the instance (if it’s running)
- Unlock the instance (with appropriate permissions)
Unlocking an Instance
To unlock a locked instance:
- Go to “Compute” > “Instances”
- Find the locked instance
- In the “Actions” dropdown menu, select “Unlock Instance”
Note: Only users with appropriate permissions can unlock an instance. This typically includes the user who locked the instance and administrators.
Best Practices
- Use the lock mechanism for critical instances that should not be modified or deleted accidentally
- Remember to unlock instances when maintenance or modifications are needed
- Regularly review the status of your instances to ensure they are in the expected state
- If an instance is in an error state, check the instance logs and contact support if needed
Troubleshooting
- If you can’t perform an action on an instance, check if it’s locked
- For instances stuck in transitional states (like ‘build’ or ‘resize’), contact support
- Always check the instance status before performing operations to ensure the instance is in an appropriate state
For any issues with instance statuses or the lock mechanism, please don’t hesitate to contact our support team.