Deprecate discovery-azure and rename it to discovery-azure-classic
As discussed at https://github.com/elastic/elasticsearch-cloud-azure/issues/91#issuecomment-229113595, we know that the current `discovery-azure` plugin only works with Azure Classic VMs / Services (which is somehow Legacy now). The proposal here is to rename `discovery-azure` to `discovery-azure-classic` in case some users are using it. And deprecate it for 5.0. Closes #19144.
This commit is contained in:
parent
0d7c11ea1d
commit
527a9c7f48
|
@ -1180,10 +1180,10 @@
|
|||
<suppress files="plugins[/\\]analysis-kuromoji[/\\]src[/\\]main[/\\]java[/\\]org[/\\]elasticsearch[/\\]index[/\\]analysis[/\\]JapaneseStopTokenFilterFactory.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]analysis-kuromoji[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]index[/\\]analysis[/\\]KuromojiAnalysisTests.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]analysis-phonetic[/\\]src[/\\]main[/\\]java[/\\]org[/\\]elasticsearch[/\\]index[/\\]analysis[/\\]PhoneticTokenFilterFactory.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]cloud[/\\]azure[/\\]AbstractAzureTestCase.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]azure[/\\]AzureMinimumMasterNodesTests.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]azure[/\\]AzureSimpleTests.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]azure[/\\]AzureTwoStartedNodesTests.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure-classic[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]cloud[/\\]azure[/\\]AbstractAzureTestCase.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure-classic[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]azure[/\\]AzureMinimumMasterNodesTests.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure-classic[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]azure[/\\]AzureSimpleTests.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-azure-classic[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]azure[/\\]AzureTwoStartedNodesTests.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-ec2[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]cloud[/\\]aws[/\\]AbstractAwsTestCase.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-ec2[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]ec2[/\\]AmazonEC2Mock.java" checks="LineLength" />
|
||||
<suppress files="plugins[/\\]discovery-gce[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]discovery[/\\]gce[/\\]GceNetworkTests.java" checks="LineLength" />
|
||||
|
|
|
@ -63,7 +63,7 @@ DEFAULT_PLUGINS = ["analysis-icu",
|
|||
"analysis-phonetic",
|
||||
"analysis-smartcn",
|
||||
"analysis-stempel",
|
||||
"discovery-azure",
|
||||
"discovery-azure-classic",
|
||||
"discovery-ec2",
|
||||
"discovery-gce",
|
||||
"ingest-attachment",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[[discovery-azure]]
|
||||
[[discovery-azure-classic]]
|
||||
=== Azure Discovery Plugin
|
||||
|
||||
The Azure Discovery plugin uses the Azure API for unicast discovery.
|
||||
The Azure Classic Discovery plugin uses the Azure Classic API for unicast discovery.
|
||||
|
||||
[[discovery-azure-install]]
|
||||
[[discovery-azure-classic-install]]
|
||||
[float]
|
||||
==== Installation
|
||||
|
||||
|
@ -11,13 +11,13 @@ This plugin can be installed using the plugin manager:
|
|||
|
||||
[source,sh]
|
||||
----------------------------------------------------------------
|
||||
sudo bin/elasticsearch-plugin install discovery-azure
|
||||
sudo bin/elasticsearch-plugin install discovery-azure-classic
|
||||
----------------------------------------------------------------
|
||||
|
||||
The plugin must be installed on every node in the cluster, and each node must
|
||||
be restarted after installation.
|
||||
|
||||
[[discovery-azure-remove]]
|
||||
[[discovery-azure-classic-remove]]
|
||||
[float]
|
||||
==== Removal
|
||||
|
||||
|
@ -25,12 +25,12 @@ The plugin can be removed with the following command:
|
|||
|
||||
[source,sh]
|
||||
----------------------------------------------------------------
|
||||
sudo bin/elasticsearch-plugin remove discovery-azure
|
||||
sudo bin/elasticsearch-plugin remove discovery-azure-classic
|
||||
----------------------------------------------------------------
|
||||
|
||||
The node must be stopped before removing the plugin.
|
||||
|
||||
[[discovery-azure-usage]]
|
||||
[[discovery-azure-classic-usage]]
|
||||
==== Azure Virtual Machine Discovery
|
||||
|
||||
Azure VM discovery allows to use the azure APIs to perform automatic discovery (similar to multicast in non hostile
|
||||
|
@ -64,7 +64,7 @@ You can use {ref}/modules-network.html[core network host settings]. For example
|
|||
|
||||
==============================================
|
||||
|
||||
[[discovery-azure-short]]
|
||||
[[discovery-azure-classic-short]]
|
||||
===== How to start (short story)
|
||||
|
||||
* Create Azure instances
|
||||
|
@ -73,7 +73,7 @@ You can use {ref}/modules-network.html[core network host settings]. For example
|
|||
* Modify `elasticsearch.yml` file
|
||||
* Start Elasticsearch
|
||||
|
||||
[[discovery-azure-settings]]
|
||||
[[discovery-azure-classic-settings]]
|
||||
===== Azure credential API settings
|
||||
|
||||
The following are a list of settings that can further control the credential API:
|
||||
|
@ -100,7 +100,7 @@ The following are a list of settings that can further control the credential API
|
|||
your_azure_cloud_service_name
|
||||
|
||||
|
||||
[[discovery-azure-settings-advanced]]
|
||||
[[discovery-azure-classic-settings-advanced]]
|
||||
===== Advanced settings
|
||||
|
||||
The following are a list of settings that can further control the discovery:
|
||||
|
@ -143,7 +143,7 @@ discovery:
|
|||
slot: production
|
||||
----
|
||||
|
||||
[[discovery-azure-long]]
|
||||
[[discovery-azure-classic-long]]
|
||||
==== Setup process for Azure Discovery
|
||||
|
||||
We will expose here one strategy which is to hide our Elasticsearch cluster from outside.
|
||||
|
@ -153,7 +153,7 @@ other. That means that with this mode, you can use elasticsearch unicast
|
|||
discovery to build a cluster, using the Azure API to retrieve information
|
||||
about your nodes.
|
||||
|
||||
[[discovery-azure-long-prerequisites]]
|
||||
[[discovery-azure-classic-long-prerequisites]]
|
||||
===== Prerequisites
|
||||
|
||||
Before starting, you need to have:
|
||||
|
@ -243,7 +243,7 @@ azure account download
|
|||
azure account import /tmp/azure.publishsettings
|
||||
----
|
||||
|
||||
[[discovery-azure-long-instance]]
|
||||
[[discovery-azure-classic-long-instance]]
|
||||
===== Creating your first instance
|
||||
|
||||
You need to have a storage account available. Check http://www.windowsazure.com/en-us/develop/net/how-to-guides/blob-storage/#create-account[Azure Blob Storage documentation]
|
||||
|
@ -396,7 +396,7 @@ This command should give you a JSON result:
|
|||
}
|
||||
----
|
||||
|
||||
[[discovery-azure-long-plugin]]
|
||||
[[discovery-azure-classic-long-plugin]]
|
||||
===== Install elasticsearch cloud azure plugin
|
||||
|
||||
[source,sh]
|
||||
|
@ -405,7 +405,7 @@ This command should give you a JSON result:
|
|||
sudo service elasticsearch stop
|
||||
|
||||
# Install the plugin
|
||||
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install discovery-azure
|
||||
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install discovery-azure-classic
|
||||
|
||||
# Configure it
|
||||
sudo vi /etc/elasticsearch/elasticsearch.yml
|
||||
|
@ -441,7 +441,7 @@ sudo service elasticsearch start
|
|||
|
||||
If anything goes wrong, check your logs in `/var/log/elasticsearch`.
|
||||
|
||||
[[discovery-azure-scale]]
|
||||
[[discovery-azure-classic-scale]]
|
||||
==== Scaling Out!
|
||||
|
||||
You need first to create an image of your previous machine.
|
||||
|
|
|
@ -13,9 +13,9 @@ The core discovery plugins are:
|
|||
|
||||
The EC2 discovery plugin uses the https://github.com/aws/aws-sdk-java[AWS API] for unicast discovery.
|
||||
|
||||
<<discovery-azure,Azure discovery>>::
|
||||
<<discovery-azure-classic,Azure discovery>>::
|
||||
|
||||
The Azure discovery plugin uses the Azure API for unicast discovery.
|
||||
The Azure Classic discovery plugin uses the Azure Classic API for unicast discovery.
|
||||
|
||||
<<discovery-gce,GCE discovery>>::
|
||||
|
||||
|
@ -33,7 +33,7 @@ A number of discovery plugins have been contributed by our community:
|
|||
|
||||
include::discovery-ec2.asciidoc[]
|
||||
|
||||
include::discovery-azure.asciidoc[]
|
||||
include::discovery-azure-classic.asciidoc[]
|
||||
|
||||
include::discovery-gce.asciidoc[]
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ The `cloud-aws` plugin has been split into two separate plugins:
|
|||
|
||||
The `cloud-azure` plugin has been split into two separate plugins:
|
||||
|
||||
* <<discovery-azure>> (`discovery-azure`)
|
||||
* <<discovery-azure-classic>> (`discovery-azure-classic`)
|
||||
* <<repository-azure>> (`repository-azure`)
|
||||
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ Proxy settings for both plugins have been renamed:
|
|||
|
||||
Cloud Azure plugin has been split in three plugins:
|
||||
|
||||
* {plugins}/discovery-azure.html[Discovery Azure plugin]
|
||||
* {plugins}/discovery-azure-classic.html[Discovery Azure plugin]
|
||||
* {plugins}/repository-azure.html[Repository Azure plugin]
|
||||
* {plugins}/store-smb.html[Store SMB plugin]
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[[modules-discovery-azure]]
|
||||
=== Azure Discovery
|
||||
[[modules-discovery-azure-classic]]
|
||||
=== Azure Classic Discovery
|
||||
|
||||
Azure discovery allows to use the Azure APIs to perform automatic discovery (similar to multicast).
|
||||
It is available as a plugin. See {plugins}/discovery-azure.html[discovery-azure] for more information.
|
||||
Azure classic discovery allows to use the Azure Classic APIs to perform automatic discovery (similar to multicast).
|
||||
It is available as a plugin. See {plugins}/discovery-azure-classic.html[discovery-azure-classic] for more information.
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.elasticsearch.gradle.LoggedExec
|
|||
|
||||
esplugin {
|
||||
description 'The Azure Discovery plugin allows to use Azure API for the unicast discovery mechanism'
|
||||
classname 'org.elasticsearch.plugin.discovery.azure.AzureDiscoveryPlugin'
|
||||
classname 'AzureDiscoveryPlugin'
|
||||
}
|
||||
|
||||
versions << [
|
|
@ -17,12 +17,11 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure;
|
||||
package org.elasticsearch.cloud.azure.classic;
|
||||
|
||||
import org.elasticsearch.ElasticsearchException;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Management;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeServiceImpl;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeServiceImpl;
|
||||
import org.elasticsearch.common.Strings;
|
||||
import org.elasticsearch.common.inject.AbstractModule;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
|
@ -31,7 +30,7 @@ import org.elasticsearch.common.logging.Loggers;
|
|||
import org.elasticsearch.common.settings.Setting;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.discovery.DiscoveryModule;
|
||||
import org.elasticsearch.plugin.discovery.azure.AzureDiscoveryPlugin;
|
||||
import org.elasticsearch.plugin.discovery.azure.classic.AzureDiscoveryPlugin;
|
||||
|
||||
/**
|
||||
* Azure Module
|
||||
|
@ -41,7 +40,7 @@ import org.elasticsearch.plugin.discovery.azure.AzureDiscoveryPlugin;
|
|||
* to AzureComputeServiceImpl.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.elasticsearch.cloud.azure.management.AzureComputeServiceImpl
|
||||
* @see AzureComputeServiceImpl
|
||||
*/
|
||||
public class AzureDiscoveryModule extends AbstractModule {
|
||||
protected final ESLogger logger;
|
||||
|
@ -77,19 +76,19 @@ public class AzureDiscoveryModule extends AbstractModule {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (isDefined(settings, Management.SUBSCRIPTION_ID_SETTING) &&
|
||||
isDefined(settings, Management.SERVICE_NAME_SETTING) &&
|
||||
isDefined(settings, Management.KEYSTORE_PATH_SETTING) &&
|
||||
isDefined(settings, Management.KEYSTORE_PASSWORD_SETTING)) {
|
||||
if (isDefined(settings, AzureComputeService.Management.SUBSCRIPTION_ID_SETTING) &&
|
||||
isDefined(settings, AzureComputeService.Management.SERVICE_NAME_SETTING) &&
|
||||
isDefined(settings, AzureComputeService.Management.KEYSTORE_PATH_SETTING) &&
|
||||
isDefined(settings, AzureComputeService.Management.KEYSTORE_PASSWORD_SETTING)) {
|
||||
logger.trace("All required properties for Azure discovery are set!");
|
||||
return true;
|
||||
} else {
|
||||
logger.debug("One or more Azure discovery settings are missing. " +
|
||||
"Check elasticsearch.yml file. Should have [{}], [{}], [{}] and [{}].",
|
||||
Management.SUBSCRIPTION_ID_SETTING.getKey(),
|
||||
Management.SERVICE_NAME_SETTING.getKey(),
|
||||
Management.KEYSTORE_PATH_SETTING.getKey(),
|
||||
Management.KEYSTORE_PASSWORD_SETTING.getKey());
|
||||
AzureComputeService.Management.SUBSCRIPTION_ID_SETTING.getKey(),
|
||||
AzureComputeService.Management.SERVICE_NAME_SETTING.getKey(),
|
||||
AzureComputeService.Management.KEYSTORE_PATH_SETTING.getKey(),
|
||||
AzureComputeService.Management.KEYSTORE_PASSWORD_SETTING.getKey());
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure;
|
||||
package org.elasticsearch.cloud.azure.classic;
|
||||
|
||||
public class AzureServiceDisableException extends IllegalStateException {
|
||||
public AzureServiceDisableException(String msg) {
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure;
|
||||
package org.elasticsearch.cloud.azure.classic;
|
||||
|
||||
public class AzureServiceRemoteException extends IllegalStateException {
|
||||
public AzureServiceRemoteException(String msg) {
|
|
@ -17,15 +17,15 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure.management;
|
||||
package org.elasticsearch.cloud.azure.classic.management;
|
||||
|
||||
import com.microsoft.windowsazure.core.utils.KeyStoreType;
|
||||
import com.microsoft.windowsazure.management.compute.models.HostedServiceGetDetailedResponse;
|
||||
import org.elasticsearch.common.settings.Setting;
|
||||
import org.elasticsearch.common.settings.Setting.Property;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.discovery.azure.AzureUnicastHostsProvider;
|
||||
import org.elasticsearch.discovery.azure.AzureUnicastHostsProvider.Deployment;
|
||||
import org.elasticsearch.discovery.azure.classic.AzureUnicastHostsProvider;
|
||||
import org.elasticsearch.discovery.azure.classic.AzureUnicastHostsProvider.Deployment;
|
||||
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure.management;
|
||||
package org.elasticsearch.cloud.azure.classic.management;
|
||||
|
||||
import com.microsoft.windowsazure.Configuration;
|
||||
import com.microsoft.windowsazure.core.Builder;
|
||||
|
@ -28,7 +28,7 @@ import com.microsoft.windowsazure.management.compute.ComputeManagementService;
|
|||
import com.microsoft.windowsazure.management.compute.models.HostedServiceGetDetailedResponse;
|
||||
import com.microsoft.windowsazure.management.configuration.ManagementConfiguration;
|
||||
import org.elasticsearch.ElasticsearchException;
|
||||
import org.elasticsearch.cloud.azure.AzureServiceRemoteException;
|
||||
import org.elasticsearch.cloud.azure.classic.AzureServiceRemoteException;
|
||||
import org.elasticsearch.common.component.AbstractLifecycleComponent;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.settings.Settings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.discovery.azure;
|
||||
package org.elasticsearch.discovery.azure.classic;
|
||||
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentSlot;
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentStatus;
|
||||
|
@ -25,10 +25,10 @@ import com.microsoft.windowsazure.management.compute.models.HostedServiceGetDeta
|
|||
import com.microsoft.windowsazure.management.compute.models.InstanceEndpoint;
|
||||
import com.microsoft.windowsazure.management.compute.models.RoleInstance;
|
||||
import org.elasticsearch.Version;
|
||||
import org.elasticsearch.cloud.azure.AzureServiceDisableException;
|
||||
import org.elasticsearch.cloud.azure.AzureServiceRemoteException;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cloud.azure.classic.AzureServiceDisableException;
|
||||
import org.elasticsearch.cloud.azure.classic.AzureServiceRemoteException;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||
import org.elasticsearch.common.Strings;
|
||||
import org.elasticsearch.common.component.AbstractComponent;
|
|
@ -17,18 +17,18 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.plugin.discovery.azure;
|
||||
package org.elasticsearch.plugin.discovery.azure.classic;
|
||||
|
||||
import org.elasticsearch.cloud.azure.AzureDiscoveryModule;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService;
|
||||
import org.elasticsearch.cloud.azure.classic.AzureDiscoveryModule;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService;
|
||||
import org.elasticsearch.common.inject.Module;
|
||||
import org.elasticsearch.common.logging.DeprecationLogger;
|
||||
import org.elasticsearch.common.logging.ESLogger;
|
||||
import org.elasticsearch.common.logging.Loggers;
|
||||
import org.elasticsearch.common.settings.Setting;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.settings.SettingsModule;
|
||||
import org.elasticsearch.discovery.DiscoveryModule;
|
||||
import org.elasticsearch.discovery.azure.AzureUnicastHostsProvider;
|
||||
import org.elasticsearch.discovery.azure.classic.AzureUnicastHostsProvider;
|
||||
import org.elasticsearch.discovery.zen.ZenDiscovery;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
|
||||
|
@ -45,7 +45,9 @@ public class AzureDiscoveryPlugin extends Plugin {
|
|||
|
||||
public AzureDiscoveryPlugin(Settings settings) {
|
||||
this.settings = settings;
|
||||
logger.trace("starting azure discovery plugin...");
|
||||
DeprecationLogger deprecationLogger = new DeprecationLogger(logger);
|
||||
deprecationLogger.deprecated("azure classic discovery plugin is deprecated. Use azure arm discovery plugin instead");
|
||||
logger.trace("starting azure classic discovery plugin...");
|
||||
}
|
||||
|
||||
@Override
|
|
@ -17,14 +17,14 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure;
|
||||
package org.elasticsearch.cloud.azure.classic;
|
||||
|
||||
import org.elasticsearch.action.admin.cluster.node.info.NodesInfoResponse;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Management;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService.Management;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.node.Node;
|
||||
import org.elasticsearch.plugin.discovery.azure.AzureDiscoveryPlugin;
|
||||
import org.elasticsearch.plugin.discovery.azure.classic.AzureDiscoveryPlugin;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
|
|
@ -17,14 +17,14 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure;
|
||||
package org.elasticsearch.cloud.azure.classic;
|
||||
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentSlot;
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentStatus;
|
||||
import com.microsoft.windowsazure.management.compute.models.HostedServiceGetDetailedResponse;
|
||||
import com.microsoft.windowsazure.management.compute.models.InstanceEndpoint;
|
||||
import com.microsoft.windowsazure.management.compute.models.RoleInstance;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeServiceAbstractMock;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeServiceAbstractMock;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.util.CollectionUtils;
|
|
@ -17,14 +17,14 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure;
|
||||
package org.elasticsearch.cloud.azure.classic;
|
||||
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentSlot;
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentStatus;
|
||||
import com.microsoft.windowsazure.management.compute.models.HostedServiceGetDetailedResponse;
|
||||
import com.microsoft.windowsazure.management.compute.models.InstanceEndpoint;
|
||||
import com.microsoft.windowsazure.management.compute.models.RoleInstance;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeServiceAbstractMock;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeServiceAbstractMock;
|
||||
import org.elasticsearch.common.inject.Inject;
|
||||
import org.elasticsearch.common.network.NetworkService;
|
||||
import org.elasticsearch.common.settings.Settings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.cloud.azure.management;
|
||||
package org.elasticsearch.cloud.azure.classic.management;
|
||||
|
||||
import org.elasticsearch.ElasticsearchException;
|
||||
import org.elasticsearch.common.component.AbstractLifecycleComponent;
|
|
@ -17,14 +17,14 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.discovery.azure;
|
||||
package org.elasticsearch.discovery.azure.classic;
|
||||
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentSlot;
|
||||
import com.microsoft.windowsazure.management.compute.models.DeploymentStatus;
|
||||
import com.sun.net.httpserver.Headers;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService;
|
||||
import org.elasticsearch.common.SuppressForbidden;
|
||||
import org.elasticsearch.common.io.FileSystemUtils;
|
||||
import org.elasticsearch.common.logging.Loggers;
|
||||
|
@ -33,7 +33,7 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.discovery.DiscoveryModule;
|
||||
import org.elasticsearch.env.Environment;
|
||||
import org.elasticsearch.node.Node;
|
||||
import org.elasticsearch.plugin.discovery.azure.AzureDiscoveryPlugin;
|
||||
import org.elasticsearch.plugin.discovery.azure.classic.AzureDiscoveryPlugin;
|
||||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
import org.elasticsearch.transport.TransportSettings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.discovery.azure;
|
||||
package org.elasticsearch.discovery.azure.classic;
|
||||
|
||||
import com.carrotsearch.randomizedtesting.annotations.Name;
|
||||
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
|
|
@ -17,11 +17,11 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.discovery.azure;
|
||||
package org.elasticsearch.discovery.azure.classic;
|
||||
|
||||
import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
|
||||
import org.elasticsearch.cloud.azure.AbstractAzureComputeServiceTestCase;
|
||||
import org.elasticsearch.cloud.azure.AzureComputeServiceTwoNodesMock;
|
||||
import org.elasticsearch.cloud.azure.classic.AbstractAzureComputeServiceTestCase;
|
||||
import org.elasticsearch.cloud.azure.classic.AzureComputeServiceTwoNodesMock;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.discovery.MasterNotDiscoveredException;
|
||||
import org.elasticsearch.discovery.zen.ZenDiscovery;
|
|
@ -17,12 +17,12 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.discovery.azure;
|
||||
package org.elasticsearch.discovery.azure.classic;
|
||||
|
||||
import org.elasticsearch.cloud.azure.AbstractAzureComputeServiceTestCase;
|
||||
import org.elasticsearch.cloud.azure.AzureComputeServiceSimpleMock;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Management;
|
||||
import org.elasticsearch.cloud.azure.classic.AbstractAzureComputeServiceTestCase;
|
||||
import org.elasticsearch.cloud.azure.classic.AzureComputeServiceSimpleMock;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService.Management;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
|
|
@ -17,12 +17,12 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.discovery.azure;
|
||||
package org.elasticsearch.discovery.azure.classic;
|
||||
|
||||
import org.elasticsearch.cloud.azure.AbstractAzureComputeServiceTestCase;
|
||||
import org.elasticsearch.cloud.azure.AzureComputeServiceTwoNodesMock;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cloud.azure.management.AzureComputeService.Management;
|
||||
import org.elasticsearch.cloud.azure.classic.AbstractAzureComputeServiceTestCase;
|
||||
import org.elasticsearch.cloud.azure.classic.AzureComputeServiceTwoNodesMock;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService.Discovery;
|
||||
import org.elasticsearch.cloud.azure.classic.management.AzureComputeService.Management;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.test.ESIntegTestCase;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# Integration tests for Azure Classic Discovery component
|
||||
#
|
||||
"Discovery Azure Classic loaded":
|
||||
- do:
|
||||
cluster.state: {}
|
||||
|
||||
# Get master node id
|
||||
- set: { master_node: master }
|
||||
|
||||
- do:
|
||||
nodes.info: {}
|
||||
|
||||
- match: { nodes.$master.plugins.0.name: discovery-azure-classic }
|
|
@ -1,13 +0,0 @@
|
|||
# Integration tests for Azure Discovery component
|
||||
#
|
||||
"Discovery Azure loaded":
|
||||
- do:
|
||||
cluster.state: {}
|
||||
|
||||
# Get master node id
|
||||
- set: { master_node: master }
|
||||
|
||||
- do:
|
||||
nodes.info: {}
|
||||
|
||||
- match: { nodes.$master.plugins.0.name: discovery-azure }
|
|
@ -209,7 +209,7 @@ fi
|
|||
install_and_check_plugin discovery gce google-api-client-*.jar
|
||||
}
|
||||
|
||||
@test "[$GROUP] install discovery-azure plugin" {
|
||||
@test "[$GROUP] install discovery-azure-classic plugin" {
|
||||
install_and_check_plugin discovery azure azure-core-*.jar
|
||||
}
|
||||
|
||||
|
@ -341,8 +341,8 @@ fi
|
|||
remove_plugin discovery-gce
|
||||
}
|
||||
|
||||
@test "[$GROUP] remove discovery-azure plugin" {
|
||||
remove_plugin discovery-azure
|
||||
@test "[$GROUP] remove discovery-azure-classic plugin" {
|
||||
remove_plugin discovery-azure-classic
|
||||
}
|
||||
|
||||
@test "[$GROUP] remove discovery-ec2 plugin" {
|
||||
|
|
|
@ -31,7 +31,7 @@ List projects = [
|
|||
'plugins:analysis-phonetic',
|
||||
'plugins:analysis-smartcn',
|
||||
'plugins:analysis-stempel',
|
||||
'plugins:discovery-azure',
|
||||
'plugins:discovery-azure-classic',
|
||||
'plugins:discovery-ec2',
|
||||
'plugins:discovery-gce',
|
||||
'plugins:ingest-geoip',
|
||||
|
|
Loading…
Reference in New Issue