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
2bff1450
Commit
2bff1450
authored
Jan 28, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added WhetherCreateVPC property from ec2
parent
5c85c1d6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
13 deletions
+44
-13
CloudsStormVMs.java
...ava/nl/uva/sne/drip/model/cloud/storm/CloudsStormVMs.java
+18
-0
workspace.xml
drip-planner/.idea/workspace.xml
+8
-12
pom.xml
drip-provisioner/pom.xml
+6
-0
CloudStormService.java
...n/java/nl/uva/sne/drip/provisioner/CloudStormService.java
+10
-1
CloudsStormVMs.yml
openAPI/schema/CloudStorm/CloudsStormVMs.yml
+2
-0
No files found.
drip-commons/src/main/java/nl/uva/sne/drip/model/cloud/storm/CloudsStormVMs.java
View file @
2bff1450
...
@@ -17,6 +17,20 @@ import javax.validation.Valid;
...
@@ -17,6 +17,20 @@ import javax.validation.Valid;
public
class
CloudsStormVMs
{
public
class
CloudsStormVMs
{
/**
* @return the whetherCreateVPC
*/
public
Boolean
getWhetherCreateVPC
()
{
return
whetherCreateVPC
;
}
/**
* @param whetherCreateVPC the whetherCreateVPC to set
*/
public
void
setWhetherCreateVPC
(
Boolean
whetherCreateVPC
)
{
this
.
whetherCreateVPC
=
whetherCreateVPC
;
}
/**
/**
* @return the sliceName
* @return the sliceName
*/
*/
...
@@ -81,6 +95,10 @@ public class CloudsStormVMs {
...
@@ -81,6 +95,10 @@ public class CloudsStormVMs {
@Valid
@Valid
private
List
<
CloudsStormVM
>
vms
=
null
;
private
List
<
CloudsStormVM
>
vms
=
null
;
@JsonProperty
(
"WhetherCreateVPC"
)
@Valid
private
Boolean
whetherCreateVPC
;
@JsonProperty
(
"SEngineClass"
)
@JsonProperty
(
"SEngineClass"
)
@Valid
@Valid
private
String
sEngineClass
=
null
;
private
String
sEngineClass
=
null
;
...
...
drip-planner/.idea/workspace.xml
View file @
2bff1450
...
@@ -2,11 +2,7 @@
...
@@ -2,11 +2,7 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/../TOSCA/application_example_updated.yaml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../TOSCA/application_example_updated.yaml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/requirements.txt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/requirements.txt"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../sure_tosca-flask-server/sure_tosca/service/tosca_template_service.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../sure_tosca-flask-server/sure_tosca/service/tosca_template_service.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../sure_tosca-flask-server/sure_tosca/test/test_default_controller.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../sure_tosca-flask-server/sure_tosca/test/test_default_controller.py"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -273,26 +269,26 @@
...
@@ -273,26 +269,26 @@
</state>
</state>
<state
x=
"792"
y=
"334"
width=
"827"
height=
"663"
key=
"FileChooserDialogImpl/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1578326180157"
/>
<state
x=
"792"
y=
"334"
width=
"827"
height=
"663"
key=
"FileChooserDialogImpl/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1578326180157"
/>
<state
x=
"1043"
y=
"437"
width=
"530"
height=
"598"
key=
"FileChooserDialogImpl/67.34.2493.1406@67.34.2493.1406"
timestamp=
"1575907769017"
/>
<state
x=
"1043"
y=
"437"
width=
"530"
height=
"598"
key=
"FileChooserDialogImpl/67.34.2493.1406@67.34.2493.1406"
timestamp=
"1575907769017"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.bottom"
timestamp=
"15801
35261557
"
>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.bottom"
timestamp=
"15801
44167395
"
>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.bottom/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646320"
/>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.bottom/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646320"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.bottom/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
35261557
"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.bottom/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
44167395
"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.center"
timestamp=
"15801
35261557
"
>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.center"
timestamp=
"15801
44167393
"
>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.center/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646318"
/>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.center/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646318"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.center/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
35261557
"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.center/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
44167393
"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.left"
timestamp=
"15801
35261556
"
>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.left"
timestamp=
"15801
44167390
"
>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.left/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646317"
/>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.left/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646317"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.left/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
35261556
"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.left/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
44167390
"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.right"
timestamp=
"15801
35261557
"
>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.right"
timestamp=
"15801
44167394
"
>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.right/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646319"
/>
<state
width=
"1825"
height=
"341"
key=
"GridCell.Tab.0.right/67.34.1853.1046@67.34.1853.1046"
timestamp=
"1580127646319"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.right/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
35261557
"
/>
<state
width=
"2465"
height=
"341"
key=
"GridCell.Tab.0.right/67.34.2493.1406@67.34.2493.1406"
timestamp=
"15801
44167394
"
/>
<state
width=
"2465"
height=
"407"
key=
"GridCell.Tab.1.bottom"
timestamp=
"1580077545495"
>
<state
width=
"2465"
height=
"407"
key=
"GridCell.Tab.1.bottom"
timestamp=
"1580077545495"
>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
<screen
x=
"67"
y=
"34"
width=
"2493"
height=
"1406"
/>
</state>
</state>
...
...
drip-provisioner/pom.xml
View file @
2bff1450
...
@@ -71,6 +71,12 @@
...
@@ -71,6 +71,12 @@
<artifactId>
commons-math3
</artifactId>
<artifactId>
commons-math3
</artifactId>
<version>
3.6.1
</version>
<version>
3.6.1
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.apache.maven.shared
</groupId>
<artifactId>
maven-shared-utils
</artifactId>
<version>
3.1.0
</version>
<type>
jar
</type>
</dependency>
</dependencies>
</dependencies>
...
...
drip-provisioner/src/main/java/nl/uva/sne/drip/provisioner/CloudStormService.java
View file @
2bff1450
...
@@ -50,6 +50,7 @@ import nl.uva.sne.drip.sure.tosca.client.ApiException;
...
@@ -50,6 +50,7 @@ import nl.uva.sne.drip.sure.tosca.client.ApiException;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FilenameUtils
;
import
org.apache.commons.io.FilenameUtils
;
import
org.apache.commons.math3.ml.distance.EuclideanDistance
;
import
org.apache.commons.math3.ml.distance.EuclideanDistance
;
import
org.apache.maven.shared.utils.io.DirectoryScanner
;
/**
/**
*
*
...
@@ -322,7 +323,15 @@ class CloudStormService {
...
@@ -322,7 +323,15 @@ class CloudStormService {
rootKeyPairCredential
.
setProtocol
(
"ssh"
);
rootKeyPairCredential
.
setProtocol
(
"ssh"
);
Map
<
String
,
String
>
rootKeys
=
new
HashMap
<>();
Map
<
String
,
String
>
rootKeys
=
new
HashMap
<>();
rootKeys
.
put
(
"private_key"
,
Converter
.
encodeFileToBase64Binary
(
rootKeyPairFolder
+
File
.
separator
+
"id_rsa"
));
rootKeys
.
put
(
"private_key"
,
Converter
.
encodeFileToBase64Binary
(
rootKeyPairFolder
+
File
.
separator
+
"id_rsa"
));
rootKeys
.
put
(
"public_key"
,
Converter
.
encodeFileToBase64Binary
(
rootKeyPairFolder
+
File
.
separator
+
"id_rsa.pub"
));
DirectoryScanner
scanner
=
new
DirectoryScanner
();
scanner
.
setIncludes
(
new
String
[]{
"**/*.pub"
});
scanner
.
setBasedir
(
rootKeyPairFolder
+
File
.
separator
);
scanner
.
setCaseSensitive
(
false
);
scanner
.
scan
();
String
[]
fileNames
=
scanner
.
getIncludedFiles
();
rootKeys
.
put
(
"public_key"
,
Converter
.
encodeFileToBase64Binary
(
rootKeyPairFolder
+
File
.
separator
+
File
.
separator
+
fileNames
[
0
]));
rootKeyPairCredential
.
setKeys
(
rootKeys
);
rootKeyPairCredential
.
setKeys
(
rootKeys
);
String
userKyePairFolder
=
tempInputDirPath
+
TOPOLOGY_RELATIVE_PATH
;
String
userKyePairFolder
=
tempInputDirPath
+
TOPOLOGY_RELATIVE_PATH
;
...
...
openAPI/schema/CloudStorm/CloudsStormVMs.yml
View file @
2bff1450
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
object
type
:
object
WhetherCreateVPC
:
type
:
"
boolean"
sliceName
:
sliceName
:
type
:
"
string"
type
:
"
string"
duration
:
duration
:
...
...
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