Skip to content

Add UUID and server info to introspection#3474

Merged
estesp merged 1 commit intocontainerd:masterfrom
crosbymichael:uuid
Aug 6, 2019
Merged

Add UUID and server info to introspection#3474
estesp merged 1 commit intocontainerd:masterfrom
crosbymichael:uuid

Conversation

@crosbymichael
Copy link
Copy Markdown
Member

Closes #1862

This adds a new rpc to the introspection service to provide server
information with a generated UUID that is done on demand and the os and
arch of the server.

ctr output:

> sudo ctr version

Client:
  Version:  v1.2.0-802-g57821695.m
  Revision: 578216950de9c1c188708369e2a31ac6c494dfee.m

Server:
  Version:  v1.2.0-802-g57821695.m
  Revision: 578216950de9c1c188708369e2a31ac6c494dfee.m
  UUID: 92e982a9-f13e-4a2c-9032-e69b27fed454
  OS: linux
  ARCH: amd64

Signed-off-by: Michael Crosby [email protected]

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 31, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3474 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3474   +/-   ##
=======================================
  Coverage   44.24%   44.24%           
=======================================
  Files         124      124           
  Lines       13732    13732           
=======================================
  Hits         6076     6076           
  Misses       6725     6725           
  Partials      931      931
Flag Coverage Δ
#linux 48.04% <ø> (ø) ⬆️
#windows 39.86% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a49df98...6bb4560. Read the comment docs.

2 similar comments
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3474 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3474   +/-   ##
=======================================
  Coverage   44.24%   44.24%           
=======================================
  Files         124      124           
  Lines       13732    13732           
=======================================
  Hits         6076     6076           
  Misses       6725     6725           
  Partials      931      931
Flag Coverage Δ
#linux 48.04% <ø> (ø) ⬆️
#windows 39.86% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a49df98...6bb4560. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3474 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3474   +/-   ##
=======================================
  Coverage   44.24%   44.24%           
=======================================
  Files         124      124           
  Lines       13732    13732           
=======================================
  Hits         6076     6076           
  Misses       6725     6725           
  Partials      931      931
Flag Coverage Δ
#linux 48.04% <ø> (ø) ⬆️
#windows 39.86% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a49df98...6bb4560. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 31, 2019

Codecov Report

Merging #3474 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3474   +/-   ##
=======================================
  Coverage   44.25%   44.25%           
=======================================
  Files         124      124           
  Lines       13829    13829           
=======================================
  Hits         6120     6120           
  Misses       6767     6767           
  Partials      942      942
Flag Coverage Δ
#linux 48.05% <ø> (ø) ⬆️
#windows 39.79% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dce8541...9f0bc2b. Read the comment docs.

@ehazlett
Copy link
Copy Markdown
Member

LGTM

Comment thread services/introspection/service.go Outdated
Comment thread services/introspection/service.go Outdated
@AkihiroSuda
Copy link
Copy Markdown
Member

cc @tonistiigi

@tonistiigi
Copy link
Copy Markdown
Member

The uuid part sgtm . I don't understand the use case for the arch/os though. This is already in

repeated types.Platform platforms = 4 [(gogoproto.nullable) = false];
for runtime plugin for checking what platforms are supported. There it is also an array because multiple values might apply and uses type with a variant field that is required for arm(although missing osversion atm that is required for windows).

@fuweid
Copy link
Copy Markdown
Member

fuweid commented Aug 6, 2019

ping @crosbymichael

Closes containerd#1862

This adds a new rpc to the introspection service to provide server
information with a generated UUID that is done on demand and the os and
arch of the server.

ctr output:

```bash
> sudo ctr version

Client:
  Version:  v1.2.0-802-g57821695.m
  Revision: 5782169.m

Server:
  Version:  v1.2.0-802-g57821695.m
  Revision: 5782169.m
  UUID: 92e982a9-f13e-4a2c-9032-e69b27fed454
  OS: linux
  ARCH: amd64
```

Signed-off-by: Michael Crosby <[email protected]>
@crosbymichael
Copy link
Copy Markdown
Member Author

Resolved feedback

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 6, 2019

Build succeeded.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature-request] Provide unique ID for containerd state in introspection API

8 participants