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
02c5d3a9
Commit
02c5d3a9
authored
Mar 19, 2018
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typos and added deprecated to old api. Added Frankfurt region
parent
3c7bf5b1
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
26 additions
and
13 deletions
+26
-13
PlannerService.java
...main/java/nl/uva/sne/drip/api/service/PlannerService.java
+1
-1
ProvisionService.java
...in/java/nl/uva/sne/drip/api/service/ProvisionService.java
+0
-1
CloudConfigurationController0.java
...a/sne/drip/api/v0/rest/CloudConfigurationController0.java
+1
-0
DeployController0.java
...n/java/nl/uva/sne/drip/api/v0/rest/DeployController0.java
+2
-1
PlannerController0.java
.../java/nl/uva/sne/drip/api/v0/rest/PlannerController0.java
+3
-2
ProvisionController0.java
...ava/nl/uva/sne/drip/api/v0/rest/ProvisionController0.java
+1
-0
UserController0.java
...ain/java/nl/uva/sne/drip/api/v0/rest/UserController0.java
+1
-0
UserPublicKeysController0.java
...l/uva/sne/drip/api/v0/rest/UserPublicKeysController0.java
+1
-0
UserScriptController0.java
...va/nl/uva/sne/drip/api/v0/rest/UserScriptController0.java
+2
-1
DeployController.java
...in/java/nl/uva/sne/drip/api/v1/rest/DeployController.java
+1
-1
PlannerController.java
...n/java/nl/uva/sne/drip/api/v1/rest/PlannerController.java
+2
-2
ansible_playbook.py
drip-deployer/ansible_playbook.py
+4
-2
ansible_setup.sh
drip-deployer/ansible_setup.sh
+3
-1
OS_Domain_AMI
drip-provisioner/etc/OS_Domain_AMI
+4
-1
etc.tar.gz
etc.tar.gz
+0
-0
No files found.
drip-api/src/main/java/nl/uva/sne/drip/api/service/PlannerService.java
View file @
02c5d3a9
...
...
@@ -292,7 +292,7 @@ public class PlannerService {
private
String
getBestDomain
(
String
cloudProvider
)
{
switch
(
cloudProvider
.
trim
().
toLowerCase
())
{
case
"ec2"
:
return
"
Virginia
"
;
return
"
Frankfurt
"
;
case
"egi"
:
return
"CESNET"
;
}
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/service/ProvisionService.java
View file @
02c5d3a9
...
...
@@ -455,7 +455,6 @@ public class ProvisionService {
logger
.
info
(
"Got provisioner response"
);
return
parseCreateResourcesResponse
(
response
.
getParameters
(),
provisionRequest
,
null
,
true
,
true
);
}
}
private
ProvisionResponse
callProvisioner1
(
ProvisionRequest
provisionRequest
)
throws
IOException
,
TimeoutException
,
JSONException
,
InterruptedException
,
Exception
{
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/CloudConfigurationController0.java
View file @
02c5d3a9
...
...
@@ -51,6 +51,7 @@ import org.springframework.web.bind.annotation.RequestBody;
@RestController
@RequestMapping
(
"/user/v0.0/switch/account/configure"
)
@Component
@Deprecated
public
class
CloudConfigurationController0
{
@Autowired
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/DeployController0.java
View file @
02c5d3a9
...
...
@@ -39,7 +39,7 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* This controller is responsible for deploying a cluster on provis
oned
* This controller is responsible for deploying a cluster on provis
ioned
* resources.
*
* @author S. Koulouzis
...
...
@@ -48,6 +48,7 @@ import org.springframework.web.bind.annotation.RequestBody;
@RequestMapping
(
"/user/v0.0/switch/deploy"
)
@Component
@PreAuthorize
(
"isAuthenticated()"
)
@Deprecated
public
class
DeployController0
{
@Autowired
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/PlannerController0.java
View file @
02c5d3a9
...
...
@@ -41,14 +41,15 @@ import org.springframework.http.MediaType;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* This controller is responsible for planing the type of resources to be
* provis
op
ned based on a TOSCA description.
* This controller is responsible for plan
n
ing the type of resources to be
* provis
io
ned based on a TOSCA description.
*
* @author S. Koulouzis
*/
@RestController
@RequestMapping
(
"/user/v0.0/switch/plan"
)
@Component
@Deprecated
public
class
PlannerController0
{
@Autowired
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/ProvisionController0.java
View file @
02c5d3a9
...
...
@@ -61,6 +61,7 @@ import org.springframework.web.bind.annotation.RequestBody;
@RequestMapping
(
"/user/v0.0/switch/provision"
)
@Component
@PreAuthorize
(
"isAuthenticated()"
)
@Deprecated
public
class
ProvisionController0
{
@Autowired
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/UserController0.java
View file @
02c5d3a9
...
...
@@ -43,6 +43,7 @@ import org.springframework.web.bind.annotation.RequestBody;
@RestController
@RequestMapping
(
"/manager/v0.0/switch/account"
)
@Component
@Deprecated
public
class
UserController0
{
@Autowired
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/UserPublicKeysController0.java
View file @
02c5d3a9
...
...
@@ -48,6 +48,7 @@ import org.springframework.web.bind.annotation.RequestBody;
@RestController
@RequestMapping
(
"/user/v0.0/switch/provision"
)
@Component
@Deprecated
public
class
UserPublicKeysController0
{
@Autowired
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/UserScriptController0.java
View file @
02c5d3a9
...
...
@@ -33,13 +33,14 @@ import org.springframework.web.bind.annotation.ResponseBody;
/**
* This controller is responsible for handling user scripts. These user can be
* used by the provisoner to run on the created VMs.
* used by the provis
i
oner to run on the created VMs.
*
* @author S. Koulouzis
*/
@RestController
@RequestMapping
(
"/user/v0.0/switch/provision"
)
@Component
@Deprecated
public
class
UserScriptController0
{
@Autowired
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v1/rest/DeployController.java
View file @
02c5d3a9
...
...
@@ -45,7 +45,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestParam
;
/**
* This controller is responsible for deploying a cluster on provis
oned
* This controller is responsible for deploying a cluster on provis
ioned
* resources.
*
* @author S. Koulouzis
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v1/rest/PlannerController.java
View file @
02c5d3a9
...
...
@@ -42,8 +42,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestParam
;
/**
* This controller is responsible for planing the type of resources to be
* provis
op
ned based on a TOSCA description.
* This controller is responsible for plan
n
ing the type of resources to be
* provis
io
ned based on a TOSCA description.
*
* @author S. Koulouzis
*/
...
...
drip-deployer/ansible_playbook.py
View file @
02c5d3a9
...
...
@@ -72,12 +72,14 @@ def install_prerequisites(vm,return_dict):
sftp
.
chdir
(
'/tmp/'
)
install_script
=
file_path
+
"/"
+
"ansible_setup.sh"
sftp
.
put
(
install_script
,
"ansible_setup.sh"
)
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo hostname ip-
%
s"
%
(
vm
.
ip
.
replace
(
'.'
,
'-'
)))
sshout
=
stdout
.
read
()
logger
.
info
(
"stdout: "
+
sshout
)
logger
.
info
(
"stderr: "
+
stderr
.
read
())
stdin
,
stdout
,
stderr
=
ssh
.
exec_command
(
"sudo sh /tmp/ansible_setup.sh"
)
stdout
.
read
()
logger
.
info
(
"stdout: "
+
stdout
.
read
())
logger
.
info
(
"stderr: "
+
stderr
.
read
())
logger
.
info
(
"Ansible prerequisites installed on: "
+
(
vm
.
ip
))
except
Exception
as
e
:
...
...
drip-deployer/ansible_setup.sh
View file @
02c5d3a9
...
...
@@ -3,6 +3,8 @@ killall apt
rm
/var/lib/dpkg/lock
dpkg
--configure
-a
apt-get update
apt-get
-y
upgrade
export
DEBIAN_FRONTEND
=
noninteractive
apt-get
-o
Dpkg::Options::
=
"--force-confold"
upgrade
-q
-y
--force-yes
apt-get
-y
install
software-properties-common python openssh-server
sudo
service ssh restart
\ No newline at end of file
drip-provisioner/etc/OS_Domain_AMI
View file @
02c5d3a9
...
...
@@ -3,4 +3,7 @@ Ubuntu 14.04&&California&&ami-915f5cf1
Ubuntu 16.04&&Virginia&&ami-41e0b93b
Ubuntu 16.04&&California&&ami-79aeae19
Ubuntu 16.04&&Ohio&&ami-2581aa40
Ubuntu 14.04&&Ohio&&ami-f0f8d695
\ No newline at end of file
Ubuntu 14.04&&Ohio&&ami-f0f8d695
Ubuntu 16.04&&Frankfurt&&ami-af79ebc0
etc.tar.gz
0 → 100644
View file @
02c5d3a9
File added
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