-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test job specs with replicated jiva container(s) w.r.t their placements #2
Comments
Scenario 1:
Scenario 2:
Scenario 3:
Scenario 4:
Scenario 5:
|
Observation 1
# Note - this is just a snippet of the specs
group "openebs" {
count = 5
constraint {
operator = "distinct_hosts"
value = "true"
}
Task Group "openebs" (failed to place 3 allocations):
* Constraint "distinct_hosts" filtered 2 nodes
Evaluation "dbe69b48" waiting for additional capacity to place remainder Observation 2
|
vagrant@client-01:~$ nomad status ctl
ID = ctl-reps-jiva-vol
Name = ctl-reps-jiva-vol
Type = service
Priority = 50
Datacenters = dc1
Status = running
Periodic = false
Summary
Task Group Queued Starting Running Failed Complete Lost
jiva-ctlg 0 0 1 0 0 0
jiva-repg 0 0 2 0 0 0
Allocations
ID Eval ID Node ID Task Group Desired Status Created At
21b74737 be3c7310 dbfbd795 jiva-repg run running 11/25/16 09:20:04 UTC
803073c1 be3c7310 dc3199f3 jiva-repg run running 11/25/16 09:20:04 UTC
b109dd93 be3c7310 dbfbd795 jiva-ctlg run running 11/25/16 09:20:04 UTC
vagrant@client-01:~$ nomad node-status
ID DC Name Class Drain Status
dbfbd795 dc1 client-02 <none> false ready
b141e876 dc1 client-02 <none> false down
dc3199f3 dc1 client-01 <none> false ready
amit:demo$ vagrant status
Current machine states:
server-01 running (virtualbox)
client-01 running (virtualbox)
client-02 running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
amit:demo$ vagrant destroy client-02
client-02: Are you sure you want to destroy the 'client-02' VM? [y/N] y
==> client-02: Forcing shutdown of VM...
==> client-02: Destroying VM and associated drives...
vagrant@client-01:~$ nomad status ctl
ID = ctl-reps-jiva-vol
Name = ctl-reps-jiva-vol
Type = service
Priority = 50
Datacenters = dc1
Status = running
Periodic = false
Summary
Task Group Queued Starting Running Failed Complete Lost
jiva-ctlg 0 0 1 0 0 1
jiva-repg 1 0 1 0 0 1
Placement Failure
Task Group "jiva-repg":
* Constraint "distinct_hosts" filtered 1 nodes
Allocations
ID Eval ID Node ID Task Group Desired Status Created At
d87b2c49 2175598a dc3199f3 jiva-ctlg run running 11/25/16 09:30:51 UTC
21b74737 be3c7310 dbfbd795 jiva-repg stop lost 11/25/16 09:20:04 UTC
803073c1 be3c7310 dc3199f3 jiva-repg run running 11/25/16 09:20:04 UTC
b109dd93 be3c7310 dbfbd795 jiva-ctlg stop lost 11/25/16 09:20:04 UTC
amit:demo$ vagrant up client-02
Bringing machine 'client-02' up with 'virtualbox' provider...
==> client-02: Importing base box 'cbednarski/ubuntu-1404'...
==> client-02: Matching MAC address for NAT networking...
vagrant@client-02:~$ nomad node-status
ID DC Name Class Drain Status
22cfa519 dc1 client-02 <none> false ready
dbfbd795 dc1 client-02 <none> false down
b141e876 dc1 client-02 <none> false down
dc3199f3 dc1 client-01 <none> false ready
vagrant@client-02:~$ nomad status ctl
ID = ctl-reps-jiva-vol
Name = ctl-reps-jiva-vol
Type = service
Priority = 50
Datacenters = dc1
Status = running
Periodic = false
Summary
Task Group Queued Starting Running Failed Complete Lost
jiva-ctlg 0 0 1 0 0 1
jiva-repg 0 0 2 0 0 1
Allocations
ID Eval ID Node ID Task Group Desired Status Created At
17262ec7 05752784 22cfa519 jiva-repg run running 11/25/16 09:39:19 UTC
d87b2c49 2175598a dc3199f3 jiva-ctlg run running 11/25/16 09:30:51 UTC
21b74737 be3c7310 dbfbd795 jiva-repg stop lost 11/25/16 09:20:04 UTC
803073c1 be3c7310 dc3199f3 jiva-repg run running 11/25/16 09:20:04 UTC
b109dd93 be3c7310 dbfbd795 jiva-ctlg stop lost 11/25/16 09:20:04 UTC
vagrant@client-02:~$
group "jiva-repg" {
count = 2
constraint {
operator = "distinct_hosts"
}
restart {
mode = "fail"
}
# ...
} |
Assumptions:
Steps:
The text was updated successfully, but these errors were encountered: