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

Output external CAs in swarm mode with docker info #25204

Merged
merged 1 commit into from
Aug 2, 2016

Conversation

yongtang
Copy link
Member

- What I did

This fix tries to address the issue raised in #25195 where external CA configurations are not present in docker info.

- How I did it

This fix adds the output of external CAs in docker info in swarm mode.

- How to verify it

The test is done manually with:

docker run -p 8888:8888 -e CXFSSL_ADDRESS=0.0.0.0 -d fabric8/cfssl
docker swarm init --external-ca protocol=cfssl,url=http://172.17.0.2:8888

The docker info output:

 Managers: 1
 Nodes: 1
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot interval: 10000
  Heartbeat tick: 1
  Election tick: 3
 Dispatcher:
  Heartbeat period: 5 seconds
 CA configuration:
  Expiry duration: 3 months
  External CAs:
    cfssl: https://172.17.0.2:8888

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

This fix fixes #25195.

Signed-off-by: Yong Tang yong.tang.github@outlook.com

@aaronlehmann
Copy link
Contributor

LGTM

Setting milestone to 1.12.1 since the relevant issue is on the 1.12.1 milestone.

ping @dhiltgen

@thaJeztah
Copy link
Member

LGTM

@vdemeester
Copy link
Member

ah @yongtang, needs a rebase 😅

This fix tries to address the issue raised in 25195 where external
CA configurations are not present in `docker info`.

This fix adds the output of external CAs in `docker info` in swarm
mode.

The test is done manually with:
```
docker run -p 8888:8888 -e CXFSSL_ADDRESS=0.0.0.0 -d fabric8/cfssl
docker swarm init --external-ca protocol=cfssl,url=http://172.17.0.2:8888
```

The `docker info` output:
```
 Managers: 1
 Nodes: 1
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot interval: 10000
  Heartbeat tick: 1
  Election tick: 3
 Dispatcher:
  Heartbeat period: 5 seconds
 CA configuration:
  Expiry duration: 3 months
  External CAs:
    cfssl: https://172.17.0.2:8888
```

This fix fixes 25195.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@yongtang yongtang force-pushed the 25195-docker-info-ca-configuration branch from 1da502a to 995128e Compare July 30, 2016 16:15
@yongtang
Copy link
Member Author

Thanks @vdemeester rebased.

@yongtang
Copy link
Member Author

The build failure is related to "no space left":

16:16:51 Error response from daemon: Untar re-exec error: exit status 1: output: mkdir /.git/hooks: no space left on device

@diogomonica
Copy link
Contributor

LGTM

@cpuguy83 cpuguy83 merged commit 8f78dae into moby:master Aug 2, 2016
@yongtang yongtang deleted the 25195-docker-info-ca-configuration branch August 2, 2016 02:16
@tiborvass tiborvass mentioned this pull request Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker info missing swarm-mode CA configuration details
9 participants