Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Set/Unset Maintenance Mode Using the OpenStack CLI
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Toggling maintenance mode from the UI can be tedious if the operation is to be performed for multiple hosts. Since maintenance mode for a host simply involves disabling the nova-compute service, this can be achieved via the OpenStack CLI.
Environment
- Platform9 Managed OpenStack - All Versions
- OpenStack CLI
Procedure
- Source the admin RC file for your environment.
xxxxxxxxxx$ source [your_rc_filename]- Get a list of available compute services.
xxxxxxxxxx$ openstack compute service list- Disable the nova-compute binary on the host you want to put in maintenance mode.
xxxxxxxxxx$ openstack compute service set --disable --disable-reason [optional_reason] [host] nova-compute- Verify that the service is disabled.
xxxxxxxxxx$ openstack compute service list | grep [host]- To disable maintenance mode, simply enable the nova-compute binary/service again.
xxxxxxxxxx$ openstack compute service set --enable [host] nova-compute- Optional: Verify the status of the host from the UI. Login as Admin -> Infrastructure Tab

Screen_Shot_2020-01-13_at_2.44.47_PM.png
Note: If The maintenance mode column is not showing on the UI, click on the 'Gear icon' next to the search bar and select 'Maintenance Mode'.
Additional Information
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message