Skip to content

Commit 8daaeca

Browse files
committed
Merge pull request #153 from fogbow/develop
Removing @ignore from test
2 parents 9024cd8 + cf0383a commit 8daaeca

File tree

55 files changed

+2525
-973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2525
-973
lines changed

bin/fogbow-create-reverse-tunnel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
2+
ifconfig eth0 mtu 1420 | true
23
IS_OPENSSH=$(ssh -ver 2>&1 | grep OpenSSH)
4+
IS_NEW_OPENSSH=$(ssh -V 2>&1 | grep OpenSSH)
35
IS_DROPBEAR=$(ssh -ver 2>&1 | grep Dropbear)
4-
if [ -n "$IS_OPENSSH" ]; then
6+
if [ -n "$IS_OPENSSH" ] || [ -n "$IS_NEW_OPENSSH" ]; then
57
SSH_OPTIONS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=30"
68
elif [ -n "$IS_DROPBEAR" ]; then
79
SSH_OPTIONS="-y -K 30"
@@ -12,6 +14,7 @@ cat > /bin/fogbow-autossh << EOL
1214
autossh() {
1315
while true; do
1416
echo "Starting tunnel in port $REMOTE_PORT"
17+
echo "Command: ssh $SSH_OPTIONS -N -R 0.0.0.0:$REMOTE_PORT:localhost:22 #TOKEN_ID#@#TOKEN_HOST# -p #TOKEN_HOST_SSH_PORT#"
1518
ssh $SSH_OPTIONS -N -R 0.0.0.0:$REMOTE_PORT:localhost:22 #TOKEN_ID#@#TOKEN_HOST# -p #TOKEN_HOST_SSH_PORT#
1619
sleep 5
1720
done

manager.conf.example

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@ compute_one_flavor_small={mem=128, cpu=1}
1111
compute_one_flavor_medium={mem=256, cpu=2}
1212
compute_one_flavor_large={mem=512, cpu=4}
1313
compute_one_network_id=1
14-
compute_one_image_fogbow-linux-x86=0
14+
15+
# Settings used by ONE compute plugin to register new images in the cloud
16+
# ID of datastore to register the image
17+
compute_one_datastore_id=1
18+
# To register a new image, the image file needs to be in the some machine where ONE is running
19+
# If the fogbow manager is running in a different machine, set the SSH properties to transfer the image
20+
# Or if the fogbow manager is in the same machine, leave it blank
21+
compute_one_ssh_host=127.0.0.1
22+
compute_one_ssh_port=22
23+
compute_one_ssh_username=fogbow
24+
# The SSH try to access using private key, set the path to ssh id_rsa file
25+
compute_one_ssh_key_file=/home/fogbow/.ssh/id_rsa
26+
# Set the directory to copy images in remote host
27+
compute_one_ssh_target_temp_folder=/tmp/images
1528

1629
compute_class=org.fogbowcloud.manager.core.plugins.openstack.OpenStackOCCIComputePlugin
1730
compute_openstack_v2api_url=http://localhost:8182
@@ -36,7 +49,6 @@ compute_glancev2_url=http://localhost:9292
3649
compute_novav2_flavor_small=1
3750
compute_novav2_flavor_medium=2
3851
compute_novav2_flavor_large=3
39-
compute_novav2_image_fogbow-linux-x86=cadf2e29-7216-4a5e-9364-cf6513d5f1fd
4052
compute_novav2_network_id=ea51ed0c-0e8a-448d-8202-c79777109ffe
4153

4254
local_identity_class=org.fogbowcloud.manager.core.plugins.openstack.KeystoneIdentityPlugin
@@ -58,6 +70,8 @@ cert_path=
5870
scheduler_period=30000
5971
token_update_period=300000
6072
instance_monitoring_period=120000
73+
served_request_monitoring_period=120000
74+
garbage_collector_period=240000
6175

6276
ssh_tunnel_public_host=150.165.80.1
6377
ssh_tunnel_private_host=10.0.0.1

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@
130130
</build>
131131

132132
<dependencies>
133+
<dependency>
134+
<groupId>org.apache.commons</groupId>
135+
<artifactId>commons-compress</artifactId>
136+
<version>1.9</version>
137+
</dependency>
133138
<dependency>
134139
<groupId>org.jamppa</groupId>
135140
<artifactId>jamppa</artifactId>

src/main/java/org/fogbowcloud/manager/core/ConfigurationConstants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public class ConfigurationConstants {
3333
public static final String SCHEDULER_PERIOD_KEY = "scheduler_period";
3434
public static final String INSTANCE_MONITORING_PERIOD_KEY = "instance_monitoring_period";
3535
public static final String TOKEN_UPDATE_PERIOD_KEY = "token_update_period";
36+
public static final String SERVED_REQUEST_MONITORING_PERIOD_KEY = "served_request_monitoring_period";
37+
public static final String GARBAGE_COLLECTOR_PERIOD_KEY = "garbage_collector_period";
3638

3739
//ssh properties TODO change these properties names to TOKEN_HOST_...
3840
public static final String SSH_PRIVATE_HOST_KEY = "ssh_tunnel_private_host";

0 commit comments

Comments
 (0)