Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
5b580630
Commit
5b580630
authored
Oct 27, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logging messages
parent
7f3ee619
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Consumer.java
...in/java/nl/uva/sne/drip/drip/provisioner/v1/Consumer.java
+7
-1
No files found.
drip-provisioner/src/main/java/nl/uva/sne/drip/drip/provisioner/v1/Consumer.java
View file @
5b580630
...
...
@@ -57,6 +57,7 @@ import provisioning.database.EC2.EC2Database;
import
provisioning.database.EGI.EGIDatabase
;
import
provisioning.database.UserDatabase
;
import
provisioning.engine.TEngine.TEngine
;
import
provisioning.request.RecoverRequest
;
import
provisioning.request.ScalingRequest
;
import
topologyAnalysis.TopologyAnalysisMain
;
import
topologyAnalysis.dataStructure.SubTopologyInfo
;
...
...
@@ -215,6 +216,9 @@ public class Consumer extends DefaultConsumer {
if
(
tam
!=
null
)
{
tEngine
.
deleteAll
(
tam
.
wholeTopology
,
userCredential
,
userDatabase
);
}
if
(
ex
.
getMessage
().
equals
(
"A VM failed to start. Deleteing all topology"
))
{
}
throw
ex
;
}
finally
{
// if (tam != null) {
...
...
@@ -486,7 +490,7 @@ public class Consumer extends DefaultConsumer {
}
private
Message
buildTopologuResponse
(
TopologyAnalysisMain
tam
,
String
tempInputDirPath
,
String
userPublicKeyName
,
String
userPrivateName
)
throws
IOException
{
String
tempInputDirPath
,
String
userPublicKeyName
,
String
userPrivateName
)
throws
IOException
,
Exception
{
String
topologyUserName
=
tam
.
wholeTopology
.
userName
;
String
charset
=
"UTF-8"
;
...
...
@@ -619,6 +623,8 @@ public class Consumer extends DefaultConsumer {
paramValue
+=
sub
.
userName
+
" "
;
// paramValue += tempInputDirPath + File.separator + sub.subTopology.accessKeyPair.SSHKeyPairId + File.separator + "id_rsa";
paramValue
+=
vm
.
role
+
"\n"
;
}
else
if
(
vm
==
null
||
!
sub
.
status
.
equals
(
"running"
))
{
throw
new
Exception
(
"A VM failed to start. Deleteing all topology"
);
}
}
// String accessKeyPath = tempInputDirPath + File.separator + sub.subTopology.accessKeyPair.SSHKeyPairId + File.separator + "id_rsa";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment