blob: 87ee49fa4ba6a192525cb2f8869e13fce3bbc419 [file] [log] [blame]
Sean Daguee263c822014-12-05 14:25:28 -05001#!/bin/bash
2#
Dean Troyerf4bd16a2013-09-23 14:07:31 -05003# lib/nova_plugins/hypervisor-fake
4# Configure the fake hypervisor
5
6# Enable with:
7# VIRT_DRIVER=fake
8
9# Dependencies:
10# ``functions`` file
11# ``nova`` configuration
12
13# install_nova_hypervisor - install any external requirements
14# configure_nova_hypervisor - make configuration changes, including those to other services
15# start_nova_hypervisor - start any external services
16# stop_nova_hypervisor - stop any external services
17# cleanup_nova_hypervisor - remove transient data and cache
18
19# Save trace setting
Ian Wienand523f4882015-10-13 11:03:03 +110020_XTRACE_VIRTFAKE=$(set +o | grep xtrace)
Dean Troyerf4bd16a2013-09-23 14:07:31 -050021set +o xtrace
22
23
24# Defaults
25# --------
26
27
28# Entry Points
29# ------------
30
31# clean_nova_hypervisor - Clean up an installation
Ian Wienandaee18c72014-02-21 15:35:08 +110032function cleanup_nova_hypervisor {
Dean Troyerf4bd16a2013-09-23 14:07:31 -050033 # This function intentionally left blank
34 :
35}
36
37# configure_nova_hypervisor - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +110038function configure_nova_hypervisor {
Andrey Pavlov3d5f03a2016-08-10 12:46:50 +030039 iniset $NOVA_CONF DEFAULT compute_driver "fake.FakeDriver"
Dean Troyerf4bd16a2013-09-23 14:07:31 -050040 # Disable arbitrary limits
Matt Riedemann5e832d32018-06-02 12:40:58 -040041 iniset $NOVA_CONF quota driver nova.quota.NoopQuotaDriver
Dean Troyerf4bd16a2013-09-23 14:07:31 -050042}
43
44# install_nova_hypervisor() - Install external components
Ian Wienandaee18c72014-02-21 15:35:08 +110045function install_nova_hypervisor {
Dean Troyerf4bd16a2013-09-23 14:07:31 -050046 # This function intentionally left blank
47 :
48}
49
50# start_nova_hypervisor - Start any required external services
Ian Wienandaee18c72014-02-21 15:35:08 +110051function start_nova_hypervisor {
Dean Troyerf4bd16a2013-09-23 14:07:31 -050052 # This function intentionally left blank
53 :
54}
55
56# stop_nova_hypervisor - Stop any external services
Ian Wienandaee18c72014-02-21 15:35:08 +110057function stop_nova_hypervisor {
Dean Troyerf4bd16a2013-09-23 14:07:31 -050058 # This function intentionally left blank
59 :
60}
61
62
63# Restore xtrace
Ian Wienand523f4882015-10-13 11:03:03 +110064$_XTRACE_VIRTFAKE
Dean Troyerf4bd16a2013-09-23 14:07:31 -050065
66# Local variables:
67# mode: shell-script
68# End: