diff --git a/oam/etc/Columnstore.xml b/oam/etc/Columnstore.xml
index 3729f2593..f9ecbc116 100644
--- a/oam/etc/Columnstore.xml
+++ b/oam/etc/Columnstore.xml
@@ -443,10 +443,6 @@
unassigned
mariadb1
unassigned
- unassigned
- unassigned
- unassigned
- unassigned
autoassign
unassigned
unassigned
@@ -466,8 +462,6 @@
0
unassigned
n
- unassigned
- unassigned
3306
unassigned
/dev/xvd
diff --git a/oamapps/mcsadmin/mcsadmin.cpp b/oamapps/mcsadmin/mcsadmin.cpp
index d4ceeb76c..b5100265e 100644
--- a/oamapps/mcsadmin/mcsadmin.cpp
+++ b/oamapps/mcsadmin/mcsadmin.cpp
@@ -4863,16 +4863,6 @@ int processCommand(string* arguments)
}
catch(...) {}
- if ( cloud == "amazon-vpc" )
- {
- string AmazonSubNetID = oam::UnassignedName;
- try{
- oam.getSystemConfig("AmazonSubNetID", AmazonSubNetID);
-
- cout << "AmazonSubNetID = " << AmazonSubNetID << endl;
- }
- catch(...) {}
- }
}
cout << endl;
diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp
index efaa7c436..640c9fd03 100644
--- a/oamapps/postConfigure/postConfigure.cpp
+++ b/oamapps/postConfigure/postConfigure.cpp
@@ -153,7 +153,6 @@ bool thread_remote_installer = true;
string singleServerInstall = "1";
string reuseConfig ="n";
string oldFileName;
-string AmazonRegion;
string glusterCopies;
string glusterInstalled = "n";
string hadoopInstalled = "n";
@@ -833,7 +832,6 @@ int main(int argc, char *argv[])
//amazon install setup check
bool amazonInstall = false;
- string amazonSubNet = oam::UnassignedName;
string cloud = oam::UnassignedName;
system("aws --version > /tmp/amazon.log 2>&1");
@@ -870,43 +868,41 @@ int main(int argc, char *argv[])
cout << "NOTE: Amazon AWS CLI Tools are installed and allow MariaDB ColumnStore to create Instances and ABS Volumes" << endl << endl;
while(true) {
- string enable = "y";
- prompt = "Do you want to have ColumnStore use the Amazon AWS CLI Tools [y,n] (y) > ";
- pcommand = callReadline(prompt.c_str());
+ string enable = "y";
+ prompt = "Do you want to have ColumnStore use the Amazon AWS CLI Tools [y,n] (y) > ";
+ pcommand = callReadline(prompt.c_str());
- if (pcommand) {
- if (strlen(pcommand) > 0) enable = pcommand;
- callFree(pcommand);
+ if (pcommand) {
+ if (strlen(pcommand) > 0) enable = pcommand;
+ callFree(pcommand);
- if (enable == "n") {
- amazonInstall = false;
+ if (enable == "n") {
+ amazonInstall = false;
- try {
- sysConfig->setConfig(InstallSection, "Cloud", "disable");
- }
- catch(...)
- {};
+ try {
+ sysConfig->setConfig(InstallSection, "Cloud", "disable");
+ }
+ catch(...)
+ {};
+ break;
+ }
+ }
+
+ if ( enable != "y" )
+ {
+ cout << "Invalid Entry, please enter 'y' for yes or 'n' for no" << endl;
+ if ( noPrompting )
+ exit(1);
+ }
break;
- }
}
-
- if ( enable != "y" )
- {
- cout << "Invalid Entry, please enter 'y' for yes or 'n' for no" << endl;
- if ( noPrompting )
- exit(1);
- }
- break;
- }
- }
+ }
else
cout << "NOTE: Configured to have ColumnStore use the Amazon AWS CLI Tools" << endl << endl;
if ( amazonInstall )
{
- bool noKey = false;
-
string cmd = installDir + "/bin/MCSgetCredentials.sh >/dev/null 2>&1";
int rtnCode = system(cmd.c_str());
if ( WEXITSTATUS(rtnCode) != 0 ) {
@@ -921,55 +917,13 @@ int main(int argc, char *argv[])
exit(1);
}
- sleep(1);
-
- //get subnetID
- try {
- amazonSubNet = sysConfig->getConfig(InstallSection, "AmazonSubNetID");
- }
- catch(...)
- {}
-
- if ( amazonSubNet == oam::UnassignedName )
- {
- //check if this is a vpc system by checking for subnet setup
- amazonSubNet = oam.getEC2LocalInstanceSubnet();
- // cout << "amazonSubNet = " << amazonSubNet << endl;
- if ( amazonSubNet == "failed" || amazonSubNet == "" )
- {
- amazonSubNet = oam::UnassignedName;
- cloud = "amazon-ec2";
- }
- else
- {
- cloud = "amazon-vpc";
- }
-
- //set subnetID
- try {
- sysConfig->setConfig(InstallSection, "AmazonSubNetID", amazonSubNet);
- }
- catch(...)
- {}
- }
- else
- cloud = "amazon-vpc";
-
try {
- sysConfig->setConfig(InstallSection, "Cloud", cloud);
+ sysConfig->setConfig(InstallSection, "Cloud", "amazon-vpc");
}
catch(...)
{}
}
- else
- {
- try {
- sysConfig->setConfig(InstallSection, "Cloud", oam::UnassignedName);
- }
- catch(...)
- {}
- }
-
+
if ( pmwithum )
cout << endl << "NOTE: Local Query Feature is enabled" << endl;
@@ -993,6 +947,7 @@ int main(int argc, char *argv[])
cout << endl;
+ // prompt for system name
setSystemName();
cout << endl;
diff --git a/tools/configMgt/autoConfigure.cpp b/tools/configMgt/autoConfigure.cpp
index bb02d6d43..6dcc59487 100644
--- a/tools/configMgt/autoConfigure.cpp
+++ b/tools/configMgt/autoConfigure.cpp
@@ -147,20 +147,7 @@ int main(int argc, char *argv[])
{}
bool build40 = false;
- if ( !CoreFileFlag.empty() )
- build40 = true;
-
- //build 4.0.1 flag
- string AmazonSubNetID;
- try {
- AmazonSubNetID = sysConfigNew->getConfig(InstallSection, "AmazonSubNetID");
- }
- catch(...)
- {}
-
- bool build401 = false;
- if ( !AmazonSubNetID.empty() )
- build401 = true;
+ bool build401 = true;
//set install config flag
try {
@@ -1283,18 +1270,13 @@ int main(int argc, char *argv[])
//
if (build3) {
//setup cloud parameters
- string x509Cert;
- string x509PriKey;
string UMStorageType;
- string rpw;
string PMInstanceType;
string UMInstanceType;
string UMSecurityGroup;
string UMVolumeSize;
string PMVolumeSize;
string AmazonAutoTagging;
- string AmazonRegion;
- string AmazonZone;
string AmazonVPCNextPrivateIP;
string AmazonDeviceName;
string UMVolumeType;
@@ -1305,20 +1287,14 @@ int main(int argc, char *argv[])
try {
cloud = sysConfigOld->getConfig(InstallSection, "Cloud");
- x509Cert = sysConfigOld->getConfig(InstallSection, "AmazonX509Certificate");
- x509PriKey = sysConfigOld->getConfig(InstallSection, "AmazonX509PrivateKey");
UMStorageType = sysConfigOld->getConfig(InstallSection, "UMStorageType");
- rpw = sysConfigOld->getConfig(InstallSection, "rpw");
PMInstanceType = sysConfigOld->getConfig(InstallSection, "PMInstanceType");
UMInstanceType = sysConfigOld->getConfig(InstallSection, "UMInstanceType");
UMSecurityGroup = sysConfigOld->getConfig(InstallSection, "UMSecurityGroup");
UMVolumeSize = sysConfigOld->getConfig(InstallSection, "UMVolumeSize");
PMVolumeSize = sysConfigOld->getConfig(InstallSection, "PMVolumeSize");
AmazonAutoTagging = sysConfigOld->getConfig(InstallSection, "AmazonAutoTagging");
- AmazonRegion = sysConfigOld->getConfig(InstallSection, "AmazonRegion");
- AmazonZone = sysConfigOld->getConfig(InstallSection, "AmazonZone");
AmazonVPCNextPrivateIP = sysConfigOld->getConfig(InstallSection, "AmazonVPCNextPrivateIP");
- AmazonSubNetID = sysConfigOld->getConfig(InstallSection, "AmazonSubNetID");
AmazonDeviceName = sysConfigOld->getConfig(InstallSection, "AmazonDeviceName");
UMVolumeType = sysConfigOld->getConfig(InstallSection, "UMVolumeType");
UMVolumeIOPS = sysConfigOld->getConfig(InstallSection, "UMVolumeIOPS");
@@ -1355,13 +1331,10 @@ int main(int argc, char *argv[])
cloud = oam::UnassignedName;
if ( cloud == "amazon")
cloud = "amazon-ec2";
- if ( AmazonSubNetID.empty() )
- AmazonSubNetID = oam::UnassignedName;
if ( AmazonVPCNextPrivateIP.empty() )
AmazonVPCNextPrivateIP = oam::UnassignedName;
try {
- sysConfigNew->setConfig(InstallSection, "AmazonSubNetID", AmazonSubNetID);
sysConfigNew->setConfig(InstallSection, "AmazonVPCNextPrivateIP", AmazonVPCNextPrivateIP);
}
catch(...)
@@ -1373,18 +1346,13 @@ int main(int argc, char *argv[])
try {
sysConfigNew->setConfig(InstallSection, "Cloud", cloud);
- sysConfigNew->setConfig(InstallSection, "AmazonX509Certificate", x509Cert);
- sysConfigNew->setConfig(InstallSection, "AmazonX509PrivateKey", x509PriKey);
sysConfigNew->setConfig(InstallSection, "UMStorageType", UMStorageType);
- sysConfigNew->setConfig(InstallSection, "rpw", rpw);
sysConfigNew->setConfig(InstallSection, "PMInstanceType", PMInstanceType);
sysConfigNew->setConfig(InstallSection, "UMInstanceType", UMInstanceType);
sysConfigNew->setConfig(InstallSection, "UMSecurityGroup", UMSecurityGroup);
sysConfigNew->setConfig(InstallSection, "UMVolumeSize", UMVolumeSize);
sysConfigNew->setConfig(InstallSection, "PMVolumeSize", PMVolumeSize);
sysConfigNew->setConfig(InstallSection, "AmazonAutoTagging", AmazonAutoTagging);
- sysConfigNew->setConfig(InstallSection, "AmazonRegion", AmazonRegion);
- sysConfigNew->setConfig(InstallSection, "AmazonZone", AmazonZone);
sysConfigNew->setConfig(InstallSection, "AmazonDeviceName", AmazonDeviceName);
sysConfigNew->setConfig(InstallSection, "UMVolumeType", UMVolumeType);