Closed ncode closed 3 years ago
Nomad Versions: 1.0.3 and head Firecracker: v0.22.4
How to reproduce:
test01-dc1.nomad
job "test01-dc1" { datacenters = ["dc1"] type = "service" group "test01-dc1" { restart { attempts = 0 mode = "fail" } task "firecracker" { artifact { source = ".../vmlinux-5.4.0-rc5.tar.gz" destination = "." } artifact { source = ".../centos-7-x86_64_rootfs.tar.gz" destination = "." } driver = "firecracker-task-driver" config { Vcpus = 2 Mem = 128 Network = "test01-dc1" } } } }
/etc/cni/conf.d/test01-dc1.confdefault
{ "name": "test01-dc1", "cniVersion": "0.4.0", "plugins": [ { "type": "macvlan", "master": "br0", "ipam": { "type": "static", "addresses": [ { "address": "192.168.0.30/24", "gateway": "192.168.0.30" } ] } }, { "type": "firewall" }, { "type": "portmap", "capabilities": { "portMappings": true } }, { "type": "tc-redirect-tap" } ] }
Steps: 1 - Start the job 2 - Wait for it to initialize 3 - Stop the job 4 - List the job and it will list as dead 5 - Check the allocation and the vm will still be running
How to reproduce:
test01-dc1.nomad
/etc/cni/conf.d/test01-dc1.confdefault
Steps: 1 - Start the job 2 - Wait for it to initialize 3 - Stop the job 4 - List the job and it will list as dead 5 - Check the allocation and the vm will still be running