Commit Graph

7059 Commits

Author SHA1 Message Date
Michael Schurter 05d42c73a8 Remove incorrect list of supported protocols
The correct list is like 5 lines up
2017-03-24 15:37:17 -07:00
Michael Schurter 0e6c564406 Improve artifact download error message
Fixes #2289

Unfortunately took more RecoverableError hijinx than I would have liked.
There might be a better way.
2017-03-24 15:26:05 -07:00
Alex Dadgar e774059725 Merge branch 'master' of github.com:hashicorp/nomad 2017-03-24 12:25:42 -07:00
Alex Dadgar bbdef03e43 Changelog 2017-03-24 12:25:34 -07:00
Alex Dadgar 73371f62dc Merge pull request #2480 from hashicorp/b-restart-panic
Fix panic when restarting non-running task
2017-03-24 12:25:00 -07:00
Alex Dadgar 7e6c08191d Fix vet 2017-03-24 12:24:47 -07:00
Alex Dadgar c3551c761e Fix panic when restarting non-running task
This PR fixes an issue that is hit when running templates with restart
mode in which the client could panic when the handle is not running.

Fixes https://github.com/hashicorp/nomad/issues/2479
2017-03-24 12:04:22 -07:00
Chris Spence f177e6b0f6 Wrong shell variable used when changing directory 2017-03-24 15:27:32 +00:00
Long Nguyen 1376773a3a added git docs to artifacts 2017-03-22 16:50:45 -04:00
Michael Schurter 87ce9bd7ed Merge pull request #2468 from moritzheiber/master
Updated logo in README.md
2017-03-22 09:47:33 -07:00
Moritz Heiber 95563798f7 Updated logo in README.md
The logo file has been moved with [d96407769a4a33901b5de66b7053e08574428698](d96407769a) by @sethvargo. Hence the logo reference in the README.md is broken. This PR fixes that.
2017-03-22 17:41:41 +01:00
Alex Dadgar 2c9641e26f Changelog 2017-03-21 12:54:14 -07:00
Alex Dadgar 40298f37a6 Merge pull request #2465 from hashicorp/b-plan-diff
Fix diff alignment and remove no change DC
2017-03-21 12:53:18 -07:00
Alex Dadgar 3b323603b5 Fix diff alignment and remove no change DC
Old Output:
```
+/- Job: "example"
    Datacenters {
  Datacenters: "dc1"
}
+/- Task Group: "cache" (1 create/destroy update)
  +/- RestartPolicy {
    +/- Attempts: "10" => "9"
        Delay:    "25000000000"
        Interval: "300000000000"
        Mode:     "delay"
  }
  +/- EphemeralDisk {
        Migrate: "false"
    +/- SizeMB:  "300" => "301"
        Sticky:  "false"
  }
  +/- Task: "redis" (forces create/destroy update)
    +   Meta[key]: "value"
    +/- Config {
          image:           "redis:3.2"
      +/- port_map[0][db]: "6379" => "6380"
    }
    +/- Resources {
          CPU:      "500"
          DiskMB:   "0"
          IOPS:     "0"
      +/- MemoryMB: "256" => "257"
    }
    +/- Service {
          Name:      "global-redis-check"
          PortLabel: "db"
      +/- Check {
            Command:       ""
            InitialStatus: ""
            Interval:      "10000000000"
            Name:          "alive"
            Path:          ""
            PortLabel:     ""
            Protocol:      ""
        +/- Timeout:       "2000000000" => "3000000000"
            Type:          "tcp"
      }
    }
```

New Output:
```
+/- Job: "example"
+/- Task Group: "cache" (1 create/destroy update)
  +/- RestartPolicy {
    +/- Attempts: "10" => "9"
        Delay:    "25000000000"
        Interval: "300000000000"
        Mode:     "delay"
      }
  +/- EphemeralDisk {
        Migrate: "false"
    +/- SizeMB:  "300" => "301"
        Sticky:  "false"
      }
  +/- Task: "redis" (forces create/destroy update)
    +   Meta[key]: "value"
    +/- Config {
          image:           "redis:3.2"
      +/- port_map[0][db]: "6379" => "6380"
        }
    +/- Resources {
          CPU:      "500"
          DiskMB:   "0"
          IOPS:     "0"
      +/- MemoryMB: "256" => "257"
        }
    +/- Service {
          Name:      "global-redis-check"
          PortLabel: "db"
      +/- Check {
            Command:       ""
            InitialStatus: ""
            Interval:      "10000000000"
            Name:          "alive"
            Path:          ""
            PortLabel:     ""
            Protocol:      ""
        +/- Timeout:       "2000000000" => "3000000000"
            Type:          "tcp"
          }
        }
```
2017-03-21 11:42:10 -07:00
Alex Dadgar df9ce2680b Fix output alignment and remove no-change DC
Old Output:

```
+/- Job: "example"
    Datacenters {
  Datacenters: "dc1"
}
+/- Task Group: "cache" (1 create/destroy update)
  +/- RestartPolicy {
    +/- Attempts: "10" => "9"
        Delay:    "25000000000"
        Interval: "300000000000"
        Mode:     "delay"
  }
  +/- EphemeralDisk {
        Migrate: "false"
    +/- SizeMB:  "300" => "301"
        Sticky:  "false"
  }
  +/- Task: "redis" (forces create/destroy update)
    +   Meta[key]: "value"
    +/- Config {
          image:           "redis:3.2"
      +/- port_map[0][db]: "6379" => "6380"
    }
    +/- Resources {
          CPU:      "500"
          DiskMB:   "0"
          IOPS:     "0"
      +/- MemoryMB: "256" => "257"
    }
    +/- Service {
          Name:      "global-redis-check"
          PortLabel: "db"
      +/- Check {
            Command:       ""
            InitialStatus: ""
            Interval:      "10000000000"
            Name:          "alive"
            Path:          ""
            PortLabel:     ""
            Protocol:      ""
        +/- Timeout:       "2000000000" => "3000000000"
            Type:          "tcp"
      }
    }
```

New Output:

```
+/- Job: "example"
+/- Task Group: "cache" (1 create/destroy update)
  +/- RestartPolicy {
    +/- Attempts: "10" => "9"
        Delay:    "25000000000"
        Interval: "300000000000"
        Mode:     "delay"
      }
  +/- EphemeralDisk {
        Migrate: "false"
    +/- SizeMB:  "300" => "301"
        Sticky:  "false"
      }
  +/- Task: "redis" (forces create/destroy update)
    +   Meta[key]: "value"
    +/- Config {
          image:           "redis:3.2"
      +/- port_map[0][db]: "6379" => "6380"
        }
    +/- Resources {
          CPU:      "500"
          DiskMB:   "0"
          IOPS:     "0"
      +/- MemoryMB: "256" => "257"
        }
    +/- Service {
          Name:      "global-redis-check"
          PortLabel: "db"
      +/- Check {
            Command:       ""
            InitialStatus: ""
            Interval:      "10000000000"
            Name:          "alive"
            Path:          ""
            PortLabel:     ""
            Protocol:      ""
        +/- Timeout:       "2000000000" => "3000000000"
            Type:          "tcp"
          }
        }
```
2017-03-21 11:31:06 -07:00
Alex Dadgar 135340fef2 Version bump 2017-03-21 09:12:49 -07:00
Michael Schurter 30b574641f Merge pull request #2462 from hashicorp/docs-0.5.5-upgrade
Mention 0.5.5 tool incompat with 0.5.4 agents
2017-03-20 16:55:25 -07:00
Michael Schurter c9641dbc67 Mention 0.5.5 tool incompat with 0.5.4 agents 2017-03-20 16:20:43 -07:00
Alex Dadgar a171a014b3 Various fixes for setting user/group of task
This PR fixes two issues:
* Folder permissions in -dev mode were incorrect and not suitable for
running as a particular user.
* Was not setting the group membership properly for the launched
process.

Fixes https://github.com/hashicorp/nomad/issues/2160
2017-03-20 14:21:13 -07:00
Michael Schurter 128feb8e14 Merge pull request #2459 from sprutner/patch-1
Update index.html.md
2017-03-20 13:50:43 -07:00
sprutner 6b06939f6a Update index.html.md
grammar
2017-03-20 13:48:04 -07:00
Alex Dadgar d99849dc26 Merge pull request #2456 from vlm/master
ensuring bin directory exists before copying
2017-03-19 22:39:36 -07:00
Lev Walkin 4bb5b74489 ensuring bin directory exists before copying 2017-03-17 17:23:15 -07:00
Alex Dadgar 135fdb0e7b changelog 2017-03-17 11:27:10 -07:00
Michael Schurter 9235e8eabb Merge pull request #2455 from hashicorp/doc-load-upgrade
Mention #2361 in upgrade notes.
2017-03-17 10:52:44 -07:00
Michael Schurter a22bf82596 Mention #2361 in upgrade notes. 2017-03-17 09:52:18 -07:00
Alex Dadgar 855c306ded Merge pull request #2442 from jen20/deps-test-vault
build: Add Vault as an external test dependency
2017-03-16 15:10:05 -07:00
Alex Dadgar 20bbe30051 Merge pull request #2452 from jen20/deps-update-gopsutil
deps: Update github.com/shirou/gopsutil/...
2017-03-16 15:09:22 -07:00
Michael Schurter ba674adc38 Merge pull request #2454 from hashicorp/b-fix-gc-test
Fix test deadlock due to alloc runner not running
2017-03-16 14:34:04 -07:00
Michael Schurter 39a8ce6cdb Fix test deadlock due to alloc runner not running
Don't actualy call AllocRunner.Run() because that executes so much
unneeded code for this test. Manually close the waitCh to simulate Run()
exiting.
2017-03-16 13:22:08 -07:00
James Nugent 9514c324f8 deps: Update github.com/shirou/gopsutil/...
This adds support for Illumos for memory and host information, which
allows the fingerprinting tests to pass. It also contains fixes for
FreeBSD.
2017-03-15 18:18:39 -05:00
Sean Chittenden 33019eca7c
Tweak docs to note that a `port` will wire up both a TCP and UDP port. 2017-03-15 16:10:01 -07:00
Alex Dadgar 9bfeac3c1d Update the vault config on website 2017-03-15 16:08:15 -07:00
Seth Vargo 9c47d07c3e Merge pull request #2450 from hashicorp/sethvargo/sizing
Broken things fixed
2017-03-15 15:13:08 -07:00
Seth Vargo 9975e0f25a
Update container 2017-03-15 14:39:35 -07:00
Seth Vargo ca0feb3a8c
Fix monospace font size 2017-03-15 14:17:02 -07:00
Alex Dadgar 07b33eeb9d Merge branch 'master' of github.com:hashicorp/nomad 2017-03-15 11:30:28 -07:00
Alex Dadgar 23c4030fc4 Fix some website stuff 2017-03-15 11:29:36 -07:00
Seth Vargo a9663cc5f6
Add header links 2017-03-14 18:56:42 -07:00
Michael Schurter 9f8067e340 Fix test by adding new env vars 2017-03-14 17:15:12 -07:00
Alex Dadgar d220d9405b return the recoverable err 2017-03-14 16:33:36 -07:00
Alex Dadgar abce18749d Fix tests that exec nomad 2017-03-14 16:04:33 -07:00
Alex Dadgar b474c0d2a3
Release v0.5.5 2017-03-14 14:57:30 -07:00
Alex Dadgar c1fd58d11e Bump version 2017-03-14 14:51:11 -07:00
Alex Dadgar 40d0f3ce7d Flush logs on err 2017-03-14 14:48:39 -07:00
Alex Dadgar 177bd14718 rename cpu_total_compute and docs 2017-03-14 14:15:49 -07:00
Alex Dadgar 1afba8d6e2 changelog 2017-03-14 13:59:02 -07:00
Alex Dadgar 4e4666f15d Merge pull request #2447 from hashicorp/f-arm-misc
F arm misc
2017-03-14 13:58:03 -07:00
Alex Dadgar 5f7bf577cd Docker doesn't need to init the stats helper 2017-03-14 13:41:57 -07:00
Alex Dadgar a1a7941dec Various fixes
This PR:
* Uses Go 1.8 executable lookup
* Stores any err message from stats init method
* Allows overriding of Cpu Compute for hosts where it can't be detected
2017-03-14 12:56:31 -07:00