Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dotmesh-io/dotmesh
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/dotmesh-io/dotmesh:
  263: Google still used the default FV dir up to 1.8
  263: Made a typo! That's why it wasn't working!
  263: Log flexvolume installation
  263: Make 1.7 versions of YAML, deprecate old `dotmesh.yaml`
  #263: Ability to pass the flexvolume driver path in via k8s yaml.
  NFC: Print out the actual URL base in the unstable build job, so it's easier to find it.
  263: Forgot the `dotmesh.io~dm` in the pathname!
  263: Temporarily kill kubernetes tests, as they won't pass in this GKE-only configuration.
  263: Use /home/kubernetes/flexvolume as the FV plugin dir, for GKE.
  • Loading branch information
binocarlos committed Feb 23, 2018
2 parents e6c43fc + ee19c97 commit 3564e51
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 527 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ trigger_e2e_test:
except:
- /^release-.*$/

deploy_master_build:
deploy_unstable_build:
stage: deploy
dependencies:
- build_client_linux
Expand All @@ -279,6 +279,7 @@ deploy_master_build:
script:
- "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no releases@get.dotmesh.io mkdir -p /pool/releases/unstable/$CI_COMMIT_REF_NAME"
- "rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' -avz binaries/{Linux,Darwin} yaml releases@get.dotmesh.io:/pool/releases/unstable/$CI_COMMIT_REF_NAME"
- "echo \"Deployed to https://get.dotmesh.io/unstable/$CI_COMMIT_REF_NAME\""
except:
- /^release-.*$/

Expand Down
6 changes: 5 additions & 1 deletion cmd/dotmesh-server/pkg/main/kubernetes.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package main

import (
"log"
"os"
)

var FLEXVOLUME_DIR = "/system-usr/usr/libexec/kubernetes/kubelet-plugins/volume/exec/dotmesh.io~dm"
var FLEXVOLUME_DIR = "/system-flexvolume/dotmesh.io~dm"
var FLEXVOLUME_BIN = "dm"
var FLEXVOLUME_SOURCE = "/usr/local/bin/flexvolume"

Expand All @@ -15,6 +16,7 @@ func installKubernetesPlugin() error {
if os.Getenv("DISABLE_FLEXVOLUME") != "" {
return nil
}
log.Printf("[flexvolume] Installing driver into %s...", FLEXVOLUME_DIR)

_, err := os.Stat(FLEXVOLUME_DIR)
if os.IsNotExist(err) {
Expand All @@ -39,5 +41,7 @@ func installKubernetesPlugin() error {
return err
}

log.Printf("[flexvolume] Installed into %s.", FLEXVOLUME_DIR)

return nil
}
12 changes: 6 additions & 6 deletions cmd/dotmesh-server/pkg/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ func main() {
FilesystemMetadataTimeout: FILESYSTEM_METADATA_TIMEOUT_INT,
}

err = installKubernetesPlugin()
if err != nil {
fmt.Println(err)
os.Exit(1)
}

POOL = os.Getenv("POOL")
if POOL == "" {
POOL = "pool"
Expand Down Expand Up @@ -104,6 +98,12 @@ func main() {
}
setupLogging()

err = installKubernetesPlugin()
if err != nil {
fmt.Println(err)
os.Exit(1)
}

localPoolId, err := findLocalPoolId()
if err != nil {
out("Unable to determine pool ID. Make sure to run me as root.\n" +
Expand Down
3 changes: 2 additions & 1 deletion cmd/dotmesh-server/require_zfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ FILE=${DIR}/dotmesh_data
POOL=${USE_POOL_NAME:-pool}
POOL=$(echo $POOL |sed s/\#HOSTNAME\#/$(hostname)/)
MOUNTPOINT=${MOUNTPOINT:-$DIR/mnt}
FLEXVOLUME_DRIVER_DIR=${FLEXVOLUME_DRIVER_DIR:-/usr/libexec/kubernetes/kubelet-plugins/volume/exec}
INHERIT_ENVIRONMENT_NAMES=( "FILESYSTEM_METADATA_TIMEOUT" "DOTMESH_UPGRADES_URL" "DOTMESH_UPGRADES_INTERVAL_SECONDS")

echo "=== Using mountpoint $MOUNTPOINT"
Expand Down Expand Up @@ -202,7 +203,7 @@ docker run -i $rm_opt --privileged --name=dotmesh-server-inner \
-v /run/docker/plugins:/run/docker/plugins \
-v $MOUNTPOINT:$MOUNTPOINT:rshared \
-v /var/dotmesh:/var/dotmesh \
-v /usr:/system-usr/usr \
-v $FLEXVOLUME_DRIVER_DIR:/system-flexvolume \
-l traefik.port=6969 \
-l traefik.frontend.rule=Host:cloud.dotmesh.io \
$net \
Expand Down
256 changes: 0 additions & 256 deletions kubernetes/dotmesh-k8s-1.7.yaml

This file was deleted.

0 comments on commit 3564e51

Please sign in to comment.