Skip to content
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

Add NodeName to the alloc/job status outputs. #4516

Closed
wants to merge 1 commit into from

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Jul 17, 2018

Currently when operators need to log onto a machine where an alloc
is running they will need to perform both an alloc/job status
call and then a call to discover the node name from the node list.

This updates both the job status and alloc status output to include
the node name within the information to make operator use easier.

Closes #2359
Closes #1180

Output Examples:

$ jrasell-nomad job status example

Allocations
ID        Node ID   Node Name                        Task Group  Version  Desired  Status   Created  Modified
e4ea34e6  55d16017  XXXXXXX-XXXXXX.xxxxxxx.xxxx.xxx  cache       0        run      running  8s ago   7s ago
$ jrasell-nomad alloc status e4ea34e6

ID                  = e4ea34e6
Eval ID             = 23fef345
Name                = example.cache[0]
Node ID             = 55d16017
Node Name           = XXXXXXX-XXXXXX.xxxxxxx.xxxx.xxx

Currently when operators need to log onto a machine where an alloc
is running they will need to perform both an alloc/job status
call and then a call to discover the node name from the node list.

This updates both the job status and alloc status output to include
the node name within the information to make operator use easier.

Closes hashicorp#2359
Cloess hashicorp#1180
@shantanugadgil
Copy link
Contributor

My most frequent use case is to ssh into the node.
Would it be possible to also show the IP address of the node?

@jippi
Copy link
Contributor

jippi commented Jul 17, 2018

@shantanugadgil you should use nomad-helper attach for that ;)

@shantanugadgil
Copy link
Contributor

@jippi ... Wow!!! Just ... Wow!!! 🙇

@arshjohar
Copy link
Contributor

Thanks for the PR. We merged a PR that should display Node Name for job status and alloc status commands. Closing this one.

@arshjohar arshjohar closed this Jan 23, 2019
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants