summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2019-03-07 16:42:49 +0000
committerStephen Finucane <sfinucan@redhat.com>2019-06-20 18:23:14 +0100
commit81e4d13c321d09147d0c52377d114c8806b5244d (patch)
treee4aa9292bb38ed632664391bea7481d8fa23d1f3
parent92a432fde7967f83e9c803c6a95b8f2893a6cc35 (diff)
downloadnova-81e4d13c321d09147d0c52377d114c8806b5244d.tar.gz
conf: Rename 'configuration drive' to 'config drive'
Keeps dansmith happy. Change-Id: Ifd8537692de98ee02ff7333812d2877273a0a388 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-rw-r--r--api-ref/source/parameters.yaml2
-rw-r--r--api-ref/source/servers.inc2
-rw-r--r--doc/source/admin/support-compute.rst7
-rw-r--r--doc/source/admin/vendordata.rst2
-rw-r--r--nova/conf/configdrive.py44
-rw-r--r--nova/conf/hyperv.py43
-rw-r--r--nova/virt/powervm/tasks/storage.py2
7 files changed, 47 insertions, 55 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index 7e2a0ce0db..c1eebf5e79 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -1997,7 +1997,7 @@ code:
type: string
config_drive:
description: |
- Indicates whether a configuration drive enables metadata injection. The config_drive
+ Indicates whether a config drive enables metadata injection. The config_drive
setting provides information about a drive that the instance can mount at boot
time. The instance reads files from the drive to get information that is normally
available through the metadata service. This metadata is different from the user
diff --git a/api-ref/source/servers.inc b/api-ref/source/servers.inc
index 73bdd90285..976f353adf 100644
--- a/api-ref/source/servers.inc
+++ b/api-ref/source/servers.inc
@@ -508,7 +508,7 @@ List Servers Detailed
.. rest_method:: GET /servers/detail
-For each server, shows server details including configuration drive,
+For each server, shows server details including config drive,
extended status, and server usage information.
The extended status information appears in the OS-EXT-STS:vm_state,
diff --git a/doc/source/admin/support-compute.rst b/doc/source/admin/support-compute.rst
index fc2f513fad..1264649f73 100644
--- a/doc/source/admin/support-compute.rst
+++ b/doc/source/admin/support-compute.rst
@@ -266,10 +266,9 @@ To disable injection in libvirt, set the following in ``nova.conf``:
.. note::
- If you have not enabled the configuration drive and you want to make
- user-specified files available from the metadata server for to improve
- performance and avoid boot failure if injection fails, you must disable
- injection.
+ If you have not enabled the config drive and you want to make user-specified
+ files available from the metadata server for to improve performance and
+ avoid boot failure if injection fails, you must disable injection.
Cannot find suitable emulator for x86_64
diff --git a/doc/source/admin/vendordata.rst b/doc/source/admin/vendordata.rst
index a905e65da4..e7c1a8b4ee 100644
--- a/doc/source/admin/vendordata.rst
+++ b/doc/source/admin/vendordata.rst
@@ -116,7 +116,7 @@ As with ``StaticJSON``, the service you must configure to enable the
``DynamicJSON`` vendordata module depends on how guests are accessing
vendordata. If using the metadata service, configuration applies to either
:program:`nova-api` or :program:`nova-api-metadata`, depending on the
-deployment, while if using configuration drives, configuration applies to
+deployment, while if using config drives, configuration applies to
:program:`nova-compute`. However, configuration is otherwise the same and the
following options apply:
diff --git a/nova/conf/configdrive.py b/nova/conf/configdrive.py
index bb5cc514d8..618ec759ac 100644
--- a/nova/conf/configdrive.py
+++ b/nova/conf/configdrive.py
@@ -30,10 +30,10 @@ necessary or useful.
('vfat', 'Provided for legacy reasons and to enable live '
'migration with the libvirt driver and non-shared storage')],
help="""
-Configuration drive format
+Config drive format.
-Configuration drive format that will contain metadata attached to the
-instance when it boots.
+Config drive format that will contain metadata attached to the instance when it
+boots.
Related options:
@@ -46,24 +46,24 @@ Related options:
this is defined by ``img_config_drive`` property for that image.
* A compute node running Hyper-V hypervisor can be configured to attach
- configuration drive as a CD drive. To attach the configuration drive as a CD
- drive, set the ``[hyperv] config_drive_cdrom`` option to true.
+ config drive as a CD drive. To attach the config drive as a CD drive, set the
+ ``[hyperv] config_drive_cdrom`` option to true.
"""),
cfg.BoolOpt('force_config_drive',
default=False,
help="""
Force injection to take place on a config drive
-When this option is set to true configuration drive functionality will be
-forced enabled by default, otherwise user can still enable configuration
-drives via the REST API or image metadata properties. Launched VMs are not
-affected by this option.
+When this option is set to true config drive functionality will be forced
+enabled by default, otherwise users can still enable config drives via the REST
+API or image metadata properties. Launched instances are not affected by this
+option.
Possible values:
-* True: Force to use of configuration drive regardless the user's input in the
+* True: Force to use of config drive regardless the user's input in the
REST API call.
-* False: Do not force use of configuration drive. Config drives can still be
+* False: Do not force use of config drive. Config drives can still be
enabled via the REST API or image metadata properties.
Related options:
@@ -71,7 +71,7 @@ Related options:
* Use the 'mkisofs_cmd' flag to set the path where you install the
genisoimage program. If genisoimage is in same path as the
nova-compute service, you do not need to set this flag.
-* To use configuration drive with Hyper-V, you must set the
+* To use a config drive with Hyper-V, you must set the
'mkisofs_cmd' value to the full path to an mkisofs.exe installation.
Additionally, you must set the qemu_img_cmd value in the hyperv
configuration section to the full path to an qemu-img command
@@ -80,16 +80,16 @@ Related options:
cfg.StrOpt('mkisofs_cmd',
default='genisoimage',
help="""
-Name or path of the tool used for ISO image creation
+Name or path of the tool used for ISO image creation.
-Use the mkisofs_cmd flag to set the path where you install the genisoimage
-program. If genisoimage is on the system path, you do not need to change
-the default value.
+Use the ``mkisofs_cmd`` flag to set the path where you install the
+``genisoimage`` program. If ``genisoimage`` is on the system path, you do not
+need to change the default value.
-To use configuration drive with Hyper-V, you must set the mkisofs_cmd value
-to the full path to an mkisofs.exe installation. Additionally, you must set
-the qemu_img_cmd value in the hyperv configuration section to the full path
-to an qemu-img command installation.
+To use a config drive with Hyper-V, you must set the ``mkisofs_cmd`` value to
+the full path to an ``mkisofs.exe`` installation. Additionally, you must set
+the ``qemu_img_cmd`` value in the hyperv configuration section to the full path
+to an ``qemu-img`` command installation.
Possible values:
@@ -100,8 +100,8 @@ Possible values:
Related options:
* This option is meaningful when config drives are enabled.
-* To use configuration drive with Hyper-V, you must set the qemu_img_cmd
- value in the hyperv configuration section to the full path to an qemu-img
+* To use config drive with Hyper-V, you must set the ``qemu_img_cmd``
+ value in the hyperv configuration section to the full path to an ``qemu-img``
command installation.
"""),
]
diff --git a/nova/conf/hyperv.py b/nova/conf/hyperv.py
index d390d8df51..d9ba3c5b12 100644
--- a/nova/conf/hyperv.py
+++ b/nova/conf/hyperv.py
@@ -171,9 +171,9 @@ Possible values:
Related options:
* If the config_drive_cdrom option is False, qemu-img will be used to
- convert the ISO to a VHD, otherwise the configuration drive will
- remain an ISO. To use configuration drive with Hyper-V, you must
- set the mkisofs_cmd value to the full path to an mkisofs.exe
+ convert the ISO to a VHD, otherwise the config drive will
+ remain an ISO. To use config drive with Hyper-V, you must
+ set the ``mkisofs_cmd`` value to the full path to an ``mkisofs.exe``
installation.
"""),
cfg.StrOpt('vswitch_name',
@@ -212,44 +212,37 @@ Possible values:
cfg.BoolOpt('config_drive_cdrom',
default=False,
help="""
-Configuration drive cdrom
+Mount config drive as a CD drive.
-OpenStack can be configured to write instance metadata to
-a configuration drive, which is then attached to the
-instance before it boots. The configuration drive can be
+OpenStack can be configured to write instance metadata to a config drive, which
+is then attached to the instance before it boots. The config drive can be
attached as a disk drive (default) or as a CD drive.
-Possible values:
-
-* True: Attach the configuration drive image as a CD drive.
-* False: Attach the configuration drive image as a disk drive (Default).
-
Related options:
-* This option is meaningful with force_config_drive option set to 'True'
+* This option is meaningful with ``force_config_drive`` option set to ``True``
or when the REST API call to create an instance will have
- '--config-drive=True' flag.
-* config_drive_format option must be set to 'iso9660' in order to use
- CD drive as the configuration drive image.
-* To use configuration drive with Hyper-V, you must set the
- mkisofs_cmd value to the full path to an mkisofs.exe installation.
- Additionally, you must set the qemu_img_cmd value to the full path
- to an qemu-img command installation.
+ ``--config-drive=True`` flag.
+* ``config_drive_format`` option must be set to ``iso9660`` in order to use
+ CD drive as the config drive image.
+* To use config drive with Hyper-V, you must set the
+ ``mkisofs_cmd`` value to the full path to an ``mkisofs.exe`` installation.
+ Additionally, you must set the ``qemu_img_cmd`` value to the full path
+ to an ``qemu-img`` command installation.
* You can configure the Compute service to always create a configuration
- drive by setting the force_config_drive option to 'True'.
+ drive by setting the ``force_config_drive`` option to ``True``.
"""),
cfg.BoolOpt('config_drive_inject_password',
default=False,
help="""
-Configuration drive inject password
+Inject password to config drive.
-Enables setting the admin password in the configuration drive image.
+When enabled, the admin password will be available from the config drive image.
Related options:
* This option is meaningful when used with other options that enable
- configuration drive usage with Hyper-V, such as force_config_drive.
-* Currently, the only accepted config_drive_format is 'iso9660'.
+ config drive usage with Hyper-V, such as ``force_config_drive``.
"""),
cfg.IntOpt('volume_attach_retry_count',
default=10,
diff --git a/nova/virt/powervm/tasks/storage.py b/nova/virt/powervm/tasks/storage.py
index aa849895bc..24449a1bef 100644
--- a/nova/virt/powervm/tasks/storage.py
+++ b/nova/virt/powervm/tasks/storage.py
@@ -223,7 +223,7 @@ class DeleteDisk(task.Task):
class CreateAndConnectCfgDrive(task.Task):
- """The task to create the configuration drive."""
+ """The task to create the config drive."""
def __init__(self, adapter, instance, injected_files,
network_info, stg_ftsk, admin_pass=None):