diff options
author | Travis Tripp <travis.tripp@hp.com> | 2014-09-12 11:55:52 -0600 |
---|---|---|
committer | Travis Tripp <travis.tripp@hp.com> | 2014-10-08 05:22:59 +0000 |
commit | cecc9497c158fbf43c26aa8943a41b4e6fcc5fed (patch) | |
tree | afc311408af352f416d48dc9cf8e1583b8ca5e93 | |
parent | 2a9934ad1950f3be8ca27a66c1bf43c8c538ceb6 (diff) | |
download | glance-cecc9497c158fbf43c26aa8943a41b4e6fcc5fed.tar.gz |
Add missing metadefs for shutdown behavior
The following Nova patch adds support for graceful shutdown
of a guest VM and allows setting timeout properties on images.
The properties should be updated in the Metadata Definitions catalog.
https://review.openstack.org/#/c/68942/
Change-Id: I58145d9d0114b3932b63263ea123c4662146d14b
Closes-bug: 1368036
(cherry picked from commit 5fcb3aa2e35e9af17cb8be9e24c6613626036f2b)
-rw-r--r-- | etc/metadefs/compute-guest-shutdown.json | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/metadefs/compute-guest-shutdown.json b/etc/metadefs/compute-guest-shutdown.json new file mode 100644 index 000000000..354ee6383 --- /dev/null +++ b/etc/metadefs/compute-guest-shutdown.json @@ -0,0 +1,21 @@ +{ + "namespace": "OS::Compute::GuestShutdownBehavior", + "display_name": "Shutdown Behavior", + "description": "These properties allow modifying the shutdown behavior for stop, rescue, resize, and shelve operations.", + "visibility": "public", + "protected": true, + "resource_type_associations": [ + { + "name": "OS::Glance::Image" + } + ], + "properties": { + "os_shutdown_timeout": { + "title": "Shutdown timeout", + "description": "By default, guests will be given 60 seconds to perform a graceful shutdown. After that, the VM is powered off. This property allows overriding the amount of time (unit: seconds) to allow a guest OS to cleanly shut down before power off. A value of 0 (zero) means the guest will be powered off immediately with no opportunity for guest OS clean-up.", + "type": "integer", + "minimum": 0 + } + }, + "objects": [] +} |