2017-10-30 20:39:15 +00:00
|
|
|
{{#gutter-menu class="page-body"}}
|
|
|
|
<section class="section">
|
2018-01-05 20:59:36 +00:00
|
|
|
<h1 data-test-title class="title">
|
2017-10-30 21:16:08 +00:00
|
|
|
Allocation {{model.name}}
|
|
|
|
<span class="bumper-left tag {{model.statusClass}}">{{model.clientStatus}}</span>
|
|
|
|
<span class="tag is-hollow is-small no-text-transform">{{model.id}}</span>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="boxed-section is-small">
|
2018-01-05 20:59:36 +00:00
|
|
|
<div data-test-allocation-details class="boxed-section-body inline-definitions">
|
2017-10-30 21:16:08 +00:00
|
|
|
<span class="label">Allocation Details</span>
|
|
|
|
<span class="pair job-link"><span class="term">Job</span>
|
2018-01-05 20:59:36 +00:00
|
|
|
{{#link-to "jobs.job" model.job (query-params jobNamespace=model.job.namespace.id) data-test-job-link}}{{model.job.name}}{{/link-to}}
|
2017-10-30 21:16:08 +00:00
|
|
|
</span>
|
|
|
|
<span class="pair node-link"><span class="term">Client</span>
|
2018-01-05 20:59:36 +00:00
|
|
|
{{#link-to "clients.client" model.node data-test-client-link}}{{model.node.shortId}}{{/link-to}}
|
2017-10-30 21:16:08 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-30 20:39:15 +00:00
|
|
|
|
2017-10-31 04:02:40 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
2017-10-30 20:39:15 +00:00
|
|
|
Tasks
|
|
|
|
</div>
|
2017-10-31 04:02:40 +00:00
|
|
|
<div class="boxed-section-body is-full-bleed">
|
|
|
|
{{#list-table
|
|
|
|
source=sortedStates
|
|
|
|
sortProperty=sortProperty
|
|
|
|
sortDescending=sortDescending
|
2018-01-05 20:59:36 +00:00
|
|
|
class="is-striped" as |t|}}
|
2017-10-31 04:02:40 +00:00
|
|
|
{{#t.head}}
|
2018-05-10 00:09:07 +00:00
|
|
|
<th class="is-narrow"></th>
|
2017-10-31 04:02:40 +00:00
|
|
|
{{#t.sort-by prop="name"}}Name{{/t.sort-by}}
|
|
|
|
{{#t.sort-by prop="state"}}State{{/t.sort-by}}
|
|
|
|
<th>Last Event</th>
|
|
|
|
{{#t.sort-by prop="events.lastObject.time"}}Time{{/t.sort-by}}
|
|
|
|
<th>Addresses</th>
|
|
|
|
{{/t.head}}
|
|
|
|
{{#t.body as |row|}}
|
2018-06-06 21:25:48 +00:00
|
|
|
<tr
|
|
|
|
data-test-task-row={{row.model.task.name}}
|
|
|
|
onclick={{action "taskClick" row.model.allocation row.model}}
|
|
|
|
class="is-interactive">
|
2018-05-10 00:09:07 +00:00
|
|
|
<td class="is-narrow">
|
|
|
|
{{#if (not row.model.driverStatus.healthy)}}
|
2018-05-13 03:01:51 +00:00
|
|
|
<span data-test-icon="unhealthy-driver" class="tooltip text-center" aria-label="{{row.model.driver}} is unhealthy">
|
2018-05-10 00:09:07 +00:00
|
|
|
{{x-icon "warning" class="is-warning"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-name>
|
2018-06-07 18:31:06 +00:00
|
|
|
{{#link-to "allocations.allocation.task" row.model.allocation row.model class="is-primary"}}
|
2018-03-14 23:39:42 +00:00
|
|
|
{{row.model.name}}
|
2017-10-31 04:02:40 +00:00
|
|
|
{{/link-to}}
|
|
|
|
</td>
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-state>{{row.model.state}}</td>
|
|
|
|
<td data-test-message>
|
2018-01-19 15:38:57 +00:00
|
|
|
{{#if row.model.events.lastObject.message}}
|
|
|
|
{{row.model.events.lastObject.message}}
|
2017-10-31 04:02:40 +00:00
|
|
|
{{else}}
|
|
|
|
<em>No message</em>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2018-01-05 20:59:36 +00:00
|
|
|
<td data-test-time>{{moment-format row.model.events.lastObject.time "MM/DD/YY HH:mm:ss"}}</td>
|
|
|
|
<td data-test-ports>
|
2017-10-31 04:02:40 +00:00
|
|
|
<ul>
|
2018-06-04 22:34:16 +00:00
|
|
|
{{#with row.model.resources.networks.firstObject as |network|}}
|
|
|
|
{{#each network.reservedPorts as |port|}}
|
|
|
|
<li data-test-port>
|
|
|
|
<strong>{{port.Label}}:</strong>
|
|
|
|
<a href="http://{{network.ip}}:{{port.Value}}" target="_blank">{{network.ip}}:{{port.Value}}</a>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
{{#each network.dynamicPorts as |port|}}
|
|
|
|
<li>
|
|
|
|
<strong>{{port.Label}}:</strong>
|
|
|
|
<a href="http://{{network.ip}}:{{port.Value}}" target="_blank">{{network.ip}}:{{port.Value}}</a>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
{{/with}}
|
2017-10-31 04:02:40 +00:00
|
|
|
</ul>
|
|
|
|
</td>
|
2017-10-30 20:39:15 +00:00
|
|
|
</tr>
|
2017-10-31 04:02:40 +00:00
|
|
|
{{/t.body}}
|
|
|
|
{{/list-table}}
|
2017-10-30 20:39:15 +00:00
|
|
|
</div>
|
2017-10-31 04:02:40 +00:00
|
|
|
</div>
|
2018-05-03 19:31:25 +00:00
|
|
|
|
|
|
|
{{#if model.hasRescheduleEvents}}
|
2018-05-04 21:31:04 +00:00
|
|
|
<div class="boxed-section" data-test-reschedule-events>
|
2018-05-03 19:31:25 +00:00
|
|
|
<div class="boxed-section-head is-hollow">
|
|
|
|
Reschedule Events
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
2018-05-04 22:03:00 +00:00
|
|
|
{{reschedule-event-timeline allocation=model}}
|
2018-05-03 19:31:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-10-30 20:39:15 +00:00
|
|
|
</section>
|
|
|
|
{{/gutter-menu}}
|