hashicorp / hashicorp/nomad

Unable to revert job in web UI

Open
#17,014 1 comment 0 reactions 0 assignees View on GitHub
stage/needs-investigation theme/ui type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
`v1.4.7`

### Issue
Unable to revert job with setup using Consul + ACL
Likely related to https://github.com/hashicorp/nomad/issues/15964

### Reproduction steps
- In web UI, go to the `Versions` tab in a job and click `Revert Version` button.

#### Expected Result
- Job will redeploy previous job version
#### Actual Result
![image](https://user-images.githubusercontent.com/7670127/234965134-23e9ff08-a308-4afe-aa56-9d1187737f60.png)

### Browser logs

HTTP Debugger:

```
Request URI: /v1/job/myservice/revert
Request Method: POST
Request Headers:
x-consul-token: xxxx
x-nomad-token: xxxx
Status Code: 500
Payload:
{
"JobID": "myservice",
"JobVersion": 337
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Versions tab's Revert Version action and trace the POST request to /v1/job/myservice/revert, using the Consul and Nomad ACL headers shown in the browser logs. Compare the behavior with the related issue #15964. Done means reverting through the web UI successfully redeploys the selected previous job version.

Written by the indexing model from the issue text.

Assessment

Domain
api, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.