Fix spelling (#6185)

* Fix spelling

* Update services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java

Co-authored-by: SadiJr <sadijacinto@gmail.com>

Co-authored-by: Rohit Yadav <rohityadav89@gmail.com>
Co-authored-by: SadiJr <sadijacinto@gmail.com>
This commit is contained in:
John Bampton 2022-04-16 05:25:11 +10:00 committed by GitHub
parent 3ac91aa452
commit c265df965e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 68 additions and 68 deletions

View File

@ -1014,13 +1014,13 @@ public class ClusteredAgentManagerImpl extends AgentManagerImpl implements Clust
}
} else {
s_logger.debug("Agent " + hostId + " can't be transfered yet as its request queue size is " + attache.getQueueSize() + " and listener queue size is "
s_logger.debug("Agent " + hostId + " can't be transferred yet as its request queue size is " + attache.getQueueSize() + " and listener queue size is "
+ attache.getNonRecurringListenersSize());
}
}
} else {
if (s_logger.isTraceEnabled()) {
s_logger.trace("Found no agents to be transfered by the management server " + _nodeId);
s_logger.trace("Found no agents to be transferred by the management server " + _nodeId);
}
}
}
@ -1060,7 +1060,7 @@ public class ClusteredAgentManagerImpl extends AgentManagerImpl implements Clust
}
if (result) {
s_logger.debug("Successfully transfered host id=" + hostId + " to management server " + futureOwnerId);
s_logger.debug("Successfully transferred host id=" + hostId + " to management server " + futureOwnerId);
finishRebalance(hostId, futureOwnerId, Event.RebalanceCompleted);
} else {
s_logger.warn("Failed to transfer host id=" + hostId + " to management server " + futureOwnerId);

View File

@ -446,7 +446,7 @@ CREATE TABLE `cloud`.`external_load_balancer_devices` (
`is_dedicated` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if device/appliance is provisioned for dedicated use only',
`is_inline` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if load balancer will be used in in-line configuration with firewall',
`is_managed` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if load balancer appliance is provisioned and its life cycle is managed by by cloudstack',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external load balancer device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external load balancer device',
`parent_host_id` bigint unsigned COMMENT 'if the load balancer appliance is cloudstack managed, then host id on which this appliance is provisioned',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_lb_devices_host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
@ -463,7 +463,7 @@ CREATE TABLE `cloud`.`external_firewall_devices` (
`device_state` varchar(32) NOT NULL DEFAULT 'Disabled' COMMENT 'state (enabled/disabled/shutdown) of the device',
`is_dedicated` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if device/appliance meant for dedicated use only',
`allocation_state` varchar(32) NOT NULL DEFAULT 'Free' COMMENT 'Allocation state (Free/Allocated) of the device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external firewall device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external firewall device',
`capacity` bigint unsigned NOT NULL DEFAULT 0 COMMENT 'Capacity of the external firewall device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_firewall_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,

View File

@ -107,8 +107,8 @@ ALTER TABLE `cloud`.`network_offerings` ADD COLUMN `shared_source_nat_service` i
CREATE TABLE IF NOT EXISTS `cloud`.`op_host_transfer` (
`id` bigint unsigned UNIQUE NOT NULL COMMENT 'Id of the host',
`initial_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transfered from',
`future_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transfered to',
`initial_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transferred from',
`future_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transferred to',
`state` varchar(32) NOT NULL COMMENT 'the transfer state of the host',
`created` datetime NOT NULL COMMENT 'date created',
PRIMARY KEY (`id`),

View File

@ -211,7 +211,7 @@ CREATE TABLE `cloud`.`external_nicira_nvp_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which nicira nvp device is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this nicira nvp device',
`device_name` varchar(255) NOT NULL COMMENT 'name of the nicira nvp device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external nicira nvp device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external nicira nvp device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_nicira_nvp_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_external_nicira_nvp_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE

View File

@ -29,7 +29,7 @@ CREATE TABLE `cloud`.`external_nicira_nvp_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which nicira nvp device is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this nicira nvp device',
`device_name` varchar(255) NOT NULL COMMENT 'name of the nicira nvp device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external nicira nvp device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external nicira nvp device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_nicira_nvp_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_external_nicira_nvp_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE
@ -165,7 +165,7 @@ CREATE TABLE `cloud`.`s3` (
`https` tinyint unsigned DEFAULT NULL COMMENT ' Flag indicating whether or not to connect over HTTPS',
`connection_timeout` integer COMMENT ' The amount of time to wait (in milliseconds) when initially establishing a connection before giving up and timing out.',
`max_error_retry` integer COMMENT ' The maximum number of retry attempts for failed retryable requests (ex: 5xx error responses from services).',
`socket_timeout` integer COMMENT ' The amount of time to wait (in milliseconds) for data to be transfered over an established, open connection before the connection times out and is closed.',
`socket_timeout` integer COMMENT ' The amount of time to wait (in milliseconds) for data to be transferred over an established, open connection before the connection times out and is closed.',
`created` datetime COMMENT 'date the s3 first signed on',
PRIMARY KEY (`id`),
CONSTRAINT `uc_s3__uuid` UNIQUE (`uuid`)
@ -304,7 +304,7 @@ CREATE TABLE `cloud`.`external_bigswitch_vns_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which bigswitch vns device is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this bigswitch vns device',
`device_name` varchar(255) NOT NULL COMMENT 'name of the bigswitch vns device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external bigswitch vns device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external bigswitch vns device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_bigswitch_vns_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_external_bigswitch_vns_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE
@ -1536,7 +1536,7 @@ CREATE TABLE IF NOT EXISTS `cloud`.`baremetal_dhcp_devices`(
`pod_id` bigint unsigned DEFAULT NULL COMMENT 'Pod id where this dhcp server in',
`device_type` varchar(255) DEFAULT NULL COMMENT 'type of the external device',
`physical_network_id` bigint unsigned DEFAULT NULL COMMENT 'id of the physical network in to which external dhcp device is added',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id coresponding to the external dhcp device',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id corresponding to the external dhcp device',
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -1544,7 +1544,7 @@ ALTER TABLE `cloud`.`baremetal_dhcp_devices` CHANGE COLUMN `nsp_id` `nsp_id` big
ALTER TABLE `cloud`.`baremetal_dhcp_devices` CHANGE COLUMN `pod_id` `pod_id` bigint unsigned DEFAULT NULL COMMENT 'Pod id where this dhcp server in';
ALTER TABLE `cloud`.`baremetal_dhcp_devices` CHANGE COLUMN `device_type` `device_type` varchar(255) DEFAULT NULL COMMENT 'type of the external device';
ALTER TABLE `cloud`.`baremetal_dhcp_devices` CHANGE COLUMN `physical_network_id` `physical_network_id` bigint unsigned DEFAULT NULL COMMENT 'id of the physical network in to which external dhcp device is added';
ALTER TABLE `cloud`.`baremetal_dhcp_devices` CHANGE COLUMN `host_id` `host_id` bigint unsigned DEFAULT NULL COMMENT 'host id coresponding to the external dhcp device';
ALTER TABLE `cloud`.`baremetal_dhcp_devices` CHANGE COLUMN `host_id` `host_id` bigint unsigned DEFAULT NULL COMMENT 'host id corresponding to the external dhcp device';
CREATE TABLE IF NOT EXISTS `cloud`.`baremetal_pxe_devices` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
@ -1553,7 +1553,7 @@ CREATE TABLE IF NOT EXISTS `cloud`.`baremetal_pxe_devices` (
`pod_id` bigint unsigned DEFAULT NULL COMMENT 'Pod id where this pxe server in, for pxe per zone this field is null',
`device_type` varchar(255) DEFAULT NULL COMMENT 'type of the pxe device',
`physical_network_id` bigint unsigned DEFAULT NULL COMMENT 'id of the physical network in to which external pxe device is added',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id coresponding to the external pxe device',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id corresponding to the external pxe device',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -1561,7 +1561,7 @@ ALTER TABLE `cloud`.`baremetal_pxe_devices` CHANGE COLUMN `nsp_id` `nsp_id` bigi
ALTER TABLE `cloud`.`baremetal_pxe_devices` CHANGE COLUMN `pod_id` `pod_id` bigint unsigned DEFAULT NULL COMMENT 'Pod id where this pxe server in, for pxe per zone this field is null';
ALTER TABLE `cloud`.`baremetal_pxe_devices` CHANGE COLUMN `device_type` `device_type` varchar(255) DEFAULT NULL COMMENT 'type of the pxe device';
ALTER TABLE `cloud`.`baremetal_pxe_devices` CHANGE COLUMN `physical_network_id` `physical_network_id` bigint unsigned DEFAULT NULL COMMENT 'id of the physical network in to which external pxe device is added';
ALTER TABLE `cloud`.`baremetal_pxe_devices` CHANGE COLUMN `host_id` `host_id` bigint unsigned DEFAULT NULL COMMENT 'host id coresponding to the external pxe device';
ALTER TABLE `cloud`.`baremetal_pxe_devices` CHANGE COLUMN `host_id` `host_id` bigint unsigned DEFAULT NULL COMMENT 'host id corresponding to the external pxe device';
#drop tables as the feature is not a part of 4.2
DROP TABLE IF EXISTS `cloud`.`host_updates`;

View File

@ -116,7 +116,7 @@ CREATE TABLE `cloud`.`s3` (
`https` tinyint unsigned DEFAULT NULL COMMENT ' Flag indicating whether or not to connect over HTTPS',
`connection_timeout` integer COMMENT ' The amount of time to wait (in milliseconds) when initially establishing a connection before giving up and timing out.',
`max_error_retry` integer COMMENT ' The maximum number of retry attempts for failed retryable requests (ex: 5xx error responses from services).',
`socket_timeout` integer COMMENT ' The amount of time to wait (in milliseconds) for data to be transfered over an established, open connection before the connection times out and is closed.',
`socket_timeout` integer COMMENT ' The amount of time to wait (in milliseconds) for data to be transferred over an established, open connection before the connection times out and is closed.',
`created` datetime COMMENT 'date the s3 first signed on',
PRIMARY KEY (`id`),
CONSTRAINT `uc_s3__uuid` UNIQUE (`uuid`)
@ -278,7 +278,7 @@ CREATE TABLE `cloud`.`external_bigswitch_vns_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which bigswitch vns device is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this bigswitch vns device',
`device_name` varchar(255) NOT NULL COMMENT 'name of the bigswitch vns device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external bigswitch vns device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external bigswitch vns device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_bigswitch_vns_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_external_bigswitch_vns_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE
@ -1603,7 +1603,7 @@ CREATE TABLE `cloud`.`baremetal_dhcp_devices` (
`pod_id` bigint unsigned DEFAULT NULL COMMENT 'Pod id where this dhcp server in',
`device_type` varchar(255) DEFAULT NULL COMMENT 'type of the external device',
`physical_network_id` bigint unsigned DEFAULT NULL COMMENT 'id of the physical network in to which external dhcp device is added',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id coresponding to the external dhcp device',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id corresponding to the external dhcp device',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -1614,7 +1614,7 @@ CREATE TABLE `cloud`.`baremetal_pxe_devices` (
`pod_id` bigint unsigned DEFAULT NULL COMMENT 'Pod id where this pxe server in, for pxe per zone this field is null',
`device_type` varchar(255) DEFAULT NULL COMMENT 'type of the pxe device',
`physical_network_id` bigint unsigned DEFAULT NULL COMMENT 'id of the physical network in to which external pxe device is added',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id coresponding to the external pxe device',
`host_id` bigint unsigned DEFAULT NULL COMMENT 'host id corresponding to the external pxe device',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1164,7 +1164,7 @@ CREATE TABLE `cloud`.`external_cisco_vnmc_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which cisco vnmc device is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this cisco vnmc device',
`device_name` varchar(255) NOT NULL COMMENT 'name of the cisco vnmc device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external cisco vnmc device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external cisco vnmc device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_cisco_vnmc_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_external_cisco_vnmc_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE

View File

@ -272,7 +272,7 @@ CREATE TABLE `cloud`.`external_brocade_vcs_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which brocade vcs switch is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this brocade vcs switch',
`device_name` varchar(255) NOT NULL COMMENT 'name of the brocade vcs switch',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external brocade vcs switch',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external brocade vcs switch',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_brocade_vcs_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_external_brocade_vcs_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE

View File

@ -391,7 +391,7 @@ CREATE TABLE IF NOT EXISTS `cloud`.`external_bigswitch_bcf_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which bigswitch bcf device is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this bigswitch bcf device',
`device_name` varchar(255) NOT NULL COMMENT 'name of the bigswitch bcf device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external bigswitch bcf device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external bigswitch bcf device',
`hostname` varchar(255) NOT NULL COMMENT 'host name or IP address for the bigswitch bcf device',
`username` varchar(255) NOT NULL COMMENT 'username for the bigswitch bcf device',
`password` varchar(255) NOT NULL COMMENT 'password for the bigswitch bcf device',

View File

@ -687,7 +687,7 @@ public class VmwareManagerImpl extends ManagerBase implements VmwareManager, Vmw
// this time-out check was disabled
// "until we have found out a VMware API that can check if there are pending tasks on the subject VM"
// but as we expire jobs and those stale worker VMs stay around untill an MS reboot we opt in to have them removed anyway
// but as we expire jobs and those stale worker VMs stay around until an MS reboot we opt in to have them removed anyway
Instant start = Instant.ofEpochMilli(startTick);
Instant end = start.plusSeconds(2 * (AsyncJobManagerImpl.JobExpireMinutes.value() + AsyncJobManagerImpl.JobCancelThresholdMinutes.value()) * SECONDS_PER_MINUTE);
Instant now = Instant.now();

View File

@ -2575,7 +2575,7 @@ public class VmwareStorageProcessor implements StorageProcessor {
HostMO hostMo = vmMo.getRunningHost();
List<NetworkDetails> networks = vmMo.getNetworksWithDetails();
// tear down all devices first before we destroy the VM to avoid accidently delete disk backing files
// tear down all devices first before we destroy the VM to avoid accidentally delete disk backing files
if (VmwareResource.getVmState(vmMo) != PowerState.PowerOff) {
vmMo.safePowerOff(_shutdownWaitMs);
}

View File

@ -623,7 +623,7 @@ public class NetScalerControlCenterResource implements ServerResource {
}
} catch (Exception e) {
s_logger.error("Failed to get bytes sent and recived statistics due to " + e);
s_logger.error("Failed to get bytes sent and received statistics due to " + e);
throw new ExecutionException(e.getMessage());
}

View File

@ -3560,7 +3560,7 @@ public class NetscalerResource implements ServerResource {
}
}
} catch (final Exception e) {
s_logger.error("Failed to get bytes sent and recived statistics due to " + e);
s_logger.error("Failed to get bytes sent and received statistics due to " + e);
throw new ExecutionException(e.getMessage());
}

View File

@ -63,7 +63,7 @@ mount_local() {
qemu-nbd -d /dev/nbd0p1 &> /dev/null
sleep 0.5
qemu-nbd -d /dev/nbd0 &> /dev/null
printf "Faild to mount qcow2 image\n"
printf "Failed to mount qcow2 image\n"
return 3
fi
return $?

View File

@ -36,7 +36,7 @@
<version>${project.version}</version>
</dependency>
<!--
Apache Portable Runtime implementation of SSL protocol, which is compatible with broken MS RDP SSL suport.
Apache Portable Runtime implementation of SSL protocol, which is compatible with broken MS RDP SSL support.
NOTE: tomcat-native package with /usr/lib/libtcnative-1.so library is necessary for APR to work.
-->
<dependency>

View File

@ -61,7 +61,7 @@ public class AwtBellAdapter extends BaseElement {
Element source = new FakeSource("source") {
{
incommingBufLength = 0;
incomingBufLength = 0;
delay = 1000;
numBuffers = 3;
}

View File

@ -80,7 +80,7 @@ public class Sequence extends Tag {
// If tag is required, then throw exception
if (!tags[i].optional) {
throw new RuntimeException("[" + this + "] ERROR: Required tag is missed: " + tags[i] + ". Unexected tag type: " + typeAndFlags + ". Data: " + buf
throw new RuntimeException("[" + this + "] ERROR: Required tag is missed: " + tags[i] + ". Unexpected tag type: " + typeAndFlags + ". Data: " + buf
+ ".");
} else {
// One or more tags are omitted, so skip them
@ -91,7 +91,7 @@ public class Sequence extends Tag {
}
if (i >= tags.length || !tags[i].isTypeValid(typeAndFlags)) {
throw new RuntimeException("[" + this + "] ERROR: No more tags to read or skip, but some data still left in buffer. Unexected tag type: "
throw new RuntimeException("[" + this + "] ERROR: No more tags to read or skip, but some data still left in buffer. Unexpected tag type: "
+ typeAndFlags + ". Data: " + buf + ".");
}
}

View File

@ -529,7 +529,7 @@ public class ClientNtlmsspPubKeyAuth extends OneTimeSwitch implements NtlmConsta
(byte)0x03, (byte)0x82, (byte)0x01, (byte)0x0f, // Bit string, length: 271 bytes
(byte)0x00, // Pading
(byte)0x00, // Padding
(byte)0x30, (byte)0x82, (byte)0x01, (byte)0x0a, // Sequence
(byte)0x02, (byte)0x82, (byte)0x01, (byte)0x01, // Integer, length: 257 bytes

View File

@ -64,7 +64,7 @@ public class ServerDemandActivePDU extends BaseElement {
// TS_SHARECONTROLHEADER::pduSource = 0x03ea (1002)
int pduSource = buf.readSignedShortLE();
if (pduSource != 1002)
throw new RuntimeException("Unexepcted source of demand active PDU. Expected source: 1002, actual source: " + pduSource + ".");
throw new RuntimeException("Unexpected source of demand active PDU. Expected source: 1002, actual source: " + pduSource + ".");
// (4 bytes): A 32-bit, unsigned integer. The share identifier for the
// packet (see [T128] section 8.4.2 for more information regarding share

View File

@ -93,7 +93,7 @@ public class ServerMCSAttachUserConfirmPDU extends OneTimeSwitch {
byte[] packet = new byte[] {(byte)0x2E, // MCS user confirm (001011..,
// 0xb), InitiatorPresent: 1
// (......01, 0x1)
(byte)0x00, // RT successfull (0000...., 0x0)
(byte)0x00, // RT successful (0000...., 0x0)
// Initiator: 1001+3 = 1004
(byte)0x00, (byte)0x03,};

View File

@ -46,13 +46,13 @@ public class ServerX224DataPdu extends BaseElement {
int type = buf.readUnsignedByte(); // High nibble: type, low nibble:
if ((type & 0xf0) != X224_TPDU_DATA)
throw new RuntimeException("[" + this + "] ERROR: Unexepcted X224 packet type. Expected packet type: " + X224_TPDU_DATA
throw new RuntimeException("[" + this + "] ERROR: Unexpected X224 packet type. Expected packet type: " + X224_TPDU_DATA
+ " (X224_TPDU_DATA), actual packet type: " + type + ", buf: " + buf + ".");
int options = buf.readUnsignedByte();
if ((options & X224_TPDU_LAST_DATA_UNIT) != X224_TPDU_LAST_DATA_UNIT)
throw new RuntimeException("Unexepcted X224 packet options. Expected options: " + X224_TPDU_LAST_DATA_UNIT
throw new RuntimeException("Unexpected X224 packet options. Expected options: " + X224_TPDU_LAST_DATA_UNIT
+ " (X224_TPDU_LAST_DATA_UNIT), actual packet options: " + options + ", buf: " + buf + ".");
ByteBuffer payload = buf.readBytes(buf.length - buf.cursor);

View File

@ -52,7 +52,7 @@ public class BaseElement implements Element {
/**
* Recommended size for incoming buffer in pull mode.
*/
protected int incommingBufLength = -1;
protected int incomingBufLength = -1;
protected Map<String, DataSource> inputPads = new HashMap<String, DataSource>();
protected Map<String, DataSink> outputPads = new HashMap<String, DataSink>();
@ -393,7 +393,7 @@ public class BaseElement implements Element {
{
verbose = true;
numBuffers = 10;
incommingBufLength = 3;
incomingBufLength = 3;
delay = 100;
}
};

View File

@ -37,7 +37,7 @@ public interface DataSource {
void pushBack(ByteBuffer buf);
/**
* Hold data temporary to use at next pull. Don't return abything untill given
* Hold data temporary to use at next pull. Don't return abything until given
* amount of data will be read from source, because data will be pushed back
* anyway.
*

View File

@ -101,7 +101,7 @@ public class InputStreamSource extends BaseElement {
}
// Create buffer of recommended size and with default offset
ByteBuffer buf = new ByteBuffer(incommingBufLength);
ByteBuffer buf = new ByteBuffer(incomingBufLength);
if (verbose)
System.out.println("[" + this + "] INFO: Reading data from stream.");

View File

@ -137,7 +137,7 @@ public class OutputStreamSink extends BaseElement {
{
verbose = true;
numBuffers = 3;
incommingBufLength = 5;
incomingBufLength = 5;
delay = 100;
}
};

View File

@ -312,7 +312,7 @@ public class PipelineImpl implements Pipeline {
// Create elements
pipeline.add(new FakeSource("source") {
{
incommingBufLength = 3;
incomingBufLength = 3;
numBuffers = 10;
delay = 100;
}

View File

@ -108,7 +108,7 @@ public class Queue extends BaseElement {
{
delay = 100;
numBuffers = 10;
incommingBufLength = 10;
incomingBufLength = 10;
}
};
@ -116,7 +116,7 @@ public class Queue extends BaseElement {
{
delay = 100;
numBuffers = 10;
incommingBufLength = 10;
incomingBufLength = 10;
}
};

View File

@ -357,7 +357,7 @@ public class SyncLink implements Link {
* must be only one pull loop per thread.
*
* Pull loop will start after event STREAM_START. This link and source element
* incomming links will be switched to pull mode before pull loop will be
* incoming links will be switched to pull mode before pull loop will be
* started using event LINK_SWITCH_TO_PULL_MODE.
*/
@Override
@ -412,7 +412,7 @@ public class SyncLink implements Link {
throw new RuntimeException("[" + this + "] ERROR: Cannot drop link in pull mode.");
if (cacheBuffer != null)
throw new RuntimeException("[" + this + "] ERROR: Cannot drop link when cache conatains data: " + cacheBuffer + ".");
throw new RuntimeException("[" + this + "] ERROR: Cannot drop link when cache contains data: " + cacheBuffer + ".");
source.dropLink(this);
sink.dropLink(this);

View File

@ -78,7 +78,7 @@ public class AprSocketSink extends BaseElement {
socketWrapper.upgradeToSsl();
break;
case LINK_SWITCH_TO_PULL_MODE:
throw new RuntimeException("[" + this + "] ERROR: Unexpected event: sink recived LINK_SWITCH_TO_PULL_MODE event.");
throw new RuntimeException("[" + this + "] ERROR: Unexpected event: sink received LINK_SWITCH_TO_PULL_MODE event.");
default:
super.handleEvent(event, direction);
}

View File

@ -98,7 +98,7 @@ public class AprSocketSource extends BaseElement {
try {
// Create buffer of recommended size and with default offset
ByteBuffer buf = new ByteBuffer(incommingBufLength);
ByteBuffer buf = new ByteBuffer(incomingBufLength);
if (verbose)
System.out.println("[" + this + "] INFO: Reading data from stream.");

View File

@ -77,7 +77,7 @@ public class FakeSource extends BaseElement {
* Initialize data.
*/
public ByteBuffer initializeData() {
ByteBuffer buf = new ByteBuffer(incommingBufLength);
ByteBuffer buf = new ByteBuffer(incomingBufLength);
// Set first byte of package to it sequance number
buf.data[buf.offset] = (byte)(packetNumber % 128);
@ -106,7 +106,7 @@ public class FakeSource extends BaseElement {
Element fakeSource = new FakeSource("source 3/10/100") {
{
verbose = true;
incommingBufLength = 3;
incomingBufLength = 3;
numBuffers = 10;
delay = 100;
}

View File

@ -88,7 +88,7 @@ public class MockServer implements Runnable {
// Compare actual data with expected data
if (actualDataLength != packet.data.length) {
throw new AssertionError("Actual length of client request for packet #" + (i + 1) + " (\"" + packet.id + "\")"
+ " does not match length of expected client request. Actual length: " + actualDataLength + ", expected legnth: " + packet.data.length
+ " does not match length of expected client request. Actual length: " + actualDataLength + ", expected length: " + packet.data.length
+ ".");
}

View File

@ -457,7 +457,7 @@ public class ConsoleProxy {
s_logger.info("Added viewer object " + viewer);
reportLoadChange = true;
} else {
// protected against malicous attack by modifying URL content
// protected against malicious attack by modifying URL content
if (ajaxSession != null) {
long ajaxSessionIdFromUrl = Long.parseLong(ajaxSession);
if (ajaxSessionIdFromUrl != viewer.getAjaxSessionId())
@ -516,7 +516,7 @@ public class ConsoleProxy {
ConsoleProxyAuthenticationResult authResult = authenticateConsoleAccess(param, false);
if (authResult == null || !authResult.isSuccess()) {
s_logger.warn("External authenticator failed authencation request for vm " + param.getClientTag() + " with sid " + param.getClientHostPassword());
s_logger.warn("External authenticator failed authentication request for vm " + param.getClientTag() + " with sid " + param.getClientHostPassword());
throw new AuthenticationException("External authenticator failed request for vm " + param.getClientTag() + " with sid " + param.getClientHostPassword());
}
@ -566,7 +566,7 @@ public class ConsoleProxy {
try {
authenticationExternally(param);
} catch (Exception e) {
s_logger.error("Authencation failed for param: " + param);
s_logger.error("Authentication failed for param: " + param);
return null;
}
s_logger.info("Initializing new novnc client and disconnecting existing session");

View File

@ -40,7 +40,7 @@ public class ConsoleProxyHttpHandlerHelper {
map.put(name, value);
} else {
if (s_logger.isDebugEnabled())
s_logger.debug("Invalid paramemter in URL found. param: " + param);
s_logger.debug("Invalid parameter in URL found. param: " + param);
}
}

View File

@ -149,7 +149,7 @@ public class PremiumSecondaryStorageManagerImpl extends SecondaryStorageManagerI
}
if (!suspendAutoLoading) {
// this is to avoid surprises that people may accidently see two SSVMs being launched, capacity expanding only happens when we have at least the primary SSVM is up
// this is to avoid surprises that people may accidentally see two SSVMs being launched, capacity expanding only happens when we have at least the primary SSVM is up
if (alreadyRunning.size() == 0) {
s_logger.info("Primary secondary storage is not even started, wait until next turn");
return new Pair<AfterScanAction, Object>(AfterScanAction.nop, null);

View File

@ -1129,7 +1129,7 @@ public class SecondaryStorageManagerImpl extends ManagerBase implements Secondar
s_logger.debug("Management server cidr list is " + mgmt_cidr);
buf.append(" mgmtcidr=").append(mgmt_cidr);
} else {
s_logger.error("Inavlid management server cidr list: " + mgmt_cidr);
s_logger.error("Invalid management server cidr list: " + mgmt_cidr);
}
buf.append(" localgw=").append(dest.getPod().getGateway());
buf.append(" private.network.device=").append("eth").append(deviceId);

View File

@ -1139,7 +1139,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
}
return new File(destFile.getAbsolutePath());
} catch (IOException e) {
s_logger.debug("Faild to get url:" + url + ", due to " + e.toString());
s_logger.debug("Failed to get url: " + url + ", due to " + e.toString());
throw new CloudRuntimeException(e);
}
}

View File

@ -1948,8 +1948,8 @@ CREATE TABLE `cloud`.`swift` (
CREATE TABLE `cloud`.`op_host_transfer` (
`id` bigint unsigned UNIQUE NOT NULL COMMENT 'Id of the host',
`initial_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transfered from',
`future_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transfered to',
`initial_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transferred from',
`future_mgmt_server_id` bigint unsigned COMMENT 'management server the host is transferred to',
`state` varchar(32) NOT NULL COMMENT 'the transfer state of the host',
`created` datetime NOT NULL COMMENT 'date created',
PRIMARY KEY (`id`),
@ -2138,7 +2138,7 @@ CREATE TABLE `cloud`.`external_load_balancer_devices` (
`is_dedicated` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if device/appliance is provisioned for dedicated use only',
`is_inline` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if load balancer will be used in in-line configuration with firewall',
`is_managed` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if load balancer appliance is provisioned and its life cycle is managed by by cloudstack',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external load balancer device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external load balancer device',
`parent_host_id` bigint unsigned COMMENT 'if the load balancer appliance is cloudstack managed, then host id on which this appliance is provisioned',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_lb_devices_host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
@ -2155,7 +2155,7 @@ CREATE TABLE `cloud`.`external_firewall_devices` (
`device_state` varchar(32) NOT NULL DEFAULT 'Disabled' COMMENT 'state (enabled/disabled/shutdown) of the device',
`is_dedicated` int(1) unsigned NOT NULL DEFAULT 0 COMMENT '1 if device/appliance meant for dedicated use only',
`allocation_state` varchar(32) NOT NULL DEFAULT 'Free' COMMENT 'Allocation state (Free/Allocated) of the device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external firewall device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external firewall device',
`capacity` bigint unsigned NOT NULL DEFAULT 0 COMMENT 'Capacity of the external firewall device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_firewall_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
@ -2459,7 +2459,7 @@ CREATE TABLE `cloud`.`external_nicira_nvp_devices` (
`physical_network_id` bigint unsigned NOT NULL COMMENT 'id of the physical network in to which nicira nvp device is added',
`provider_name` varchar(255) NOT NULL COMMENT 'Service Provider name corresponding to this nicira nvp device',
`device_name` varchar(255) NOT NULL COMMENT 'name of the nicira nvp device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id coresponding to the external nicira nvp device',
`host_id` bigint unsigned NOT NULL COMMENT 'host id corresponding to the external nicira nvp device',
PRIMARY KEY (`id`),
CONSTRAINT `fk_external_nicira_nvp_devices__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
CONSTRAINT `fk_external_nicira_nvp_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE

View File

@ -2674,7 +2674,7 @@ RFB.messages = {
},
extendedClipboardProvide(sock, formats, inData) {
// Deflate incomming data and their sizes
// Deflate incoming data and their sizes
let deflator = new Deflator();
let dataToDeflate = [];

View File

@ -619,7 +619,7 @@ parse_cmd_line() {
KEY=$(echo $i | cut -d= -f1)
VALUE=$(echo $i | cut -d= -f2)
echo -en ${COMMA} >> ${CHEF_TMP_FILE}
# Two lines so values do not accidently interpretted as escapes!!
# Two lines so values do not accidentally interpretted as escapes!!
echo -n \"${KEY}\"': '\"${VALUE}\" >> ${CHEF_TMP_FILE}
COMMA=",\n\t"
case $KEY in

View File

@ -1579,7 +1579,7 @@ class TestRvRRedundancy(cloudstackTestCase):
if retry == 0:
self.fail("New router creation taking too long, timed out")
def wait_untill_router_stabilises(self):
def wait_until_router_stabilises(self):
retry=4
while retry > 0:
routers = Router.list(
@ -1588,7 +1588,7 @@ class TestRvRRedundancy(cloudstackTestCase):
listall=True
)
retry = retry-1
self.info("waiting untill state of the routers is stable")
self.info("waiting until state of the routers is stable")
if routers[0].redundantstate != 'UNKNOWN' and routers[1].redundantstate != 'UNKNOWN':
return
elif retry==0:
@ -1610,7 +1610,7 @@ class TestRvRRedundancy(cloudstackTestCase):
#clean up the network to make sure it is in proper state.
self.network.restart(self.apiclient,cleanup=True)
time.sleep(self.testdata["sleep"])
self.wait_untill_router_stabilises()
self.wait_until_router_stabilises()
old_primary_router, old_backup_router = self.get_primary_and_backupRouter()
self.info("old_primary_router:"+old_primary_router.name+" old_backup_router"+old_backup_router.name)
#chek if the network is in correct state