summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorPádraig Brady <pbrady@redhat.com>2013-01-16 17:52:38 +0000
committerPádraig Brady <pbrady@redhat.com>2013-01-21 23:14:13 +0000
commitf379db545cf63f4ec854df748a1b7d256dc9bad4 (patch)
treef09f8adf9db9aad67d5ecd862ce7be2f4af40b41 /nova/virt
parenta4d608fa33b328d7ed77c7f9c40ffbb43c0ade6b (diff)
fix misspellings in logs, comments and tests
Flagged with: https://github.com/lyda/misspell-check Run with: git ls-files | misspellings -f - Fixes bug: 1100083 Change-Id: Icf1f844fea8ad0a1101d1dc64b9a126608e9536e
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/firewall.py2
-rw-r--r--nova/virt/hyperv/volumeops.py2
-rw-r--r--nova/virt/images.py2
-rw-r--r--nova/virt/libvirt/driver.py2
-rw-r--r--nova/virt/libvirt/firewall.py4
-rw-r--r--nova/virt/libvirt/imagecache.py2
-rw-r--r--nova/virt/powervm/operator.py2
-rw-r--r--nova/virt/vmwareapi/network_util.py2
-rw-r--r--nova/virt/xenapi/driver.py2
-rw-r--r--nova/virt/xenapi/vm_utils.py2
10 files changed, 11 insertions, 11 deletions
diff --git a/nova/virt/firewall.py b/nova/virt/firewall.py
index bbc6034bd..ad38cd9a4 100644
--- a/nova/virt/firewall.py
+++ b/nova/virt/firewall.py
@@ -146,7 +146,7 @@ class IptablesFirewallDriver(FirewallDriver):
self.iptables = linux_net.iptables_manager
self.instances = {}
self.network_infos = {}
- self.basicly_filtered = False
+ self.basically_filtered = False
self.iptables.ipv4['filter'].add_chain('sg-fallback')
self.iptables.ipv4['filter'].add_rule('sg-fallback', '-j DROP')
diff --git a/nova/virt/hyperv/volumeops.py b/nova/virt/hyperv/volumeops.py
index 192d6834c..b69cf7bf1 100644
--- a/nova/virt/hyperv/volumeops.py
+++ b/nova/virt/hyperv/volumeops.py
@@ -183,7 +183,7 @@ class VolumeOps(baseops.BaseOps):
"SELECT * FROM Msvm_ResourceAllocationSettingData \
WHERE ResourceSubType LIKE 'Microsoft Physical Disk Drive'\
AND Parent = '" + scsi_controller.path_() + "'")
- #Slots starts from 0, so the lenght of the disks gives us the free slot
+ #Slots starts from 0, so the length of the disks gives us the free slot
return len(volumes)
def detach_volume(self, connection_info, instance_name, mountpoint):
diff --git a/nova/virt/images.py b/nova/virt/images.py
index 9788a2b42..018badecf 100644
--- a/nova/virt/images.py
+++ b/nova/virt/images.py
@@ -123,7 +123,7 @@ class QemuImgInfo(object):
if len(line_pieces) != 6:
break
else:
- # Check against this pattern occuring in the final position
+ # Check against this pattern in the final position
# "%02d:%02d:%02d.%03d"
date_pieces = line_pieces[5].split(":")
if len(date_pieces) != 3:
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
index 9931f8e4c..ddd5540f1 100644
--- a/nova/virt/libvirt/driver.py
+++ b/nova/virt/libvirt/driver.py
@@ -2768,7 +2768,7 @@ class LibvirtDriver(driver.ComputeDriver):
:param instance_ref:
nova.db.sqlalchemy.models.Instance object
instance object that is migrated.
- :param network_info: instance network infomation
+ :param network_info: instance network information
:param block_migration: if true, post operation of block_migraiton.
"""
# Define migrated instance, otherwise, suspend/destroy does not work.
diff --git a/nova/virt/libvirt/firewall.py b/nova/virt/libvirt/firewall.py
index c47056ff2..3323b8f1d 100644
--- a/nova/virt/libvirt/firewall.py
+++ b/nova/virt/libvirt/firewall.py
@@ -228,11 +228,11 @@ class IptablesFirewallDriver(base_firewall.IptablesFirewallDriver):
def setup_basic_filtering(self, instance, network_info):
"""Set up provider rules and basic NWFilter."""
self.nwfilter.setup_basic_filtering(instance, network_info)
- if not self.basicly_filtered:
+ if not self.basically_filtered:
LOG.debug(_('iptables firewall: Setup Basic Filtering'),
instance=instance)
self.refresh_provider_fw_rules()
- self.basicly_filtered = True
+ self.basically_filtered = True
def apply_instance_filter(self, instance, network_info):
"""No-op. Everything is done in prepare_instance_filter."""
diff --git a/nova/virt/libvirt/imagecache.py b/nova/virt/libvirt/imagecache.py
index 50fac9bb4..8f677b482 100644
--- a/nova/virt/libvirt/imagecache.py
+++ b/nova/virt/libvirt/imagecache.py
@@ -77,7 +77,7 @@ CONF.import_opt('instances_path', 'nova.compute.manager')
def get_info_filename(base_path):
- """Construct a filename for storing addtional information about a base
+ """Construct a filename for storing additional information about a base
image.
Returns a filename.
diff --git a/nova/virt/powervm/operator.py b/nova/virt/powervm/operator.py
index b25a96159..5a4a2938b 100644
--- a/nova/virt/powervm/operator.py
+++ b/nova/virt/powervm/operator.py
@@ -55,7 +55,7 @@ def get_powervm_disk_adapter():
class PowerVMOperator(object):
"""PowerVM main operator.
- The PowerVMOperator is intented to wrapper all operations
+ The PowerVMOperator is intended to wrap all operations
from the driver and handle either IVM or HMC managed systems.
"""
diff --git a/nova/virt/vmwareapi/network_util.py b/nova/virt/vmwareapi/network_util.py
index a3b20137d..d2bdad0c1 100644
--- a/nova/virt/vmwareapi/network_util.py
+++ b/nova/virt/vmwareapi/network_util.py
@@ -38,7 +38,7 @@ def get_network_with_the_name(session, network_name="vmnet0"):
vm_networks_ret = hostsystems[0].propSet[0].val
# Meaning there are no networks on the host. suds responds with a ""
# in the parent property field rather than a [] in the
- # ManagedObjectRefernce property field of the parent
+ # ManagedObjectReference property field of the parent
if not vm_networks_ret:
return None
vm_networks = vm_networks_ret.ManagedObjectReference
diff --git a/nova/virt/xenapi/driver.py b/nova/virt/xenapi/driver.py
index 0acc360e8..04ab2674c 100644
--- a/nova/virt/xenapi/driver.py
+++ b/nova/virt/xenapi/driver.py
@@ -506,7 +506,7 @@ class XenAPIDriver(driver.ComputeDriver):
:params instance_ref:
nova.db.sqlalchemy.models.Instance object
instance object that is migrated.
- :params network_info: instance network infomation
+ :params network_info: instance network information
:params : block_migration: if true, post operation of block_migraiton.
"""
# TODO(JohnGarbutt) look at moving/downloading ramdisk and kernel
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py
index debba4f02..52a5f37b2 100644
--- a/nova/virt/xenapi/vm_utils.py
+++ b/nova/virt/xenapi/vm_utils.py
@@ -1510,7 +1510,7 @@ def fetch_bandwidth(session):
def compile_metrics(start_time, stop_time=None):
"""Compile bandwidth usage, cpu, and disk metrics for all VMs on
this host.
- Note that some stats, like bandwith, do not seem to be very
+ Note that some stats, like bandwidth, do not seem to be very
accurate in some of the data from XenServer (mdragon). """
start_time = int(start_time)