Bug 1430438 - [RFE]Allow configuration of IP ranges used by docker
Summary: [RFE]Allow configuration of IP ranges used by docker
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-08 15:22 UTC by Yurii Prokulevych
Modified: 2018-10-10 19:06 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-10 19:06:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1671142 0 None None None 2017-03-08 15:22:10 UTC

Description Yurii Prokulevych 2017-03-08 15:22:11 UTC
Description of problem:
-----------------------
Docker installed on undercloud uses default(?) IP address range 172.17.0.0/16.

systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2017-03-08 04:00:02 EST; 5h 59min ago
     Docs: http://docs.docker.com
 Main PID: 15767 (dockerd-current)
   CGroup: /system.slice/docker.service
           ├─15767 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --authorization-plugin=rhel-push-plugin --exec-opt native.cgroupdriv...
           └─15775 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim --metrics-interval=0 --start-timeout 2m --state-dir /var/run/...

Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.181039234-05:00" level=info msg="[graphdriver] using prior storage driver \"devicemapper\""
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.182710112-05:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.183626954-05:00" level=info msg="Loading containers: start."
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.197319629-05:00" level=info msg="Firewalld running: false"
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.319463913-05:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. ... IP address"
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.355351163-05:00" level=info msg="Loading containers: done."
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.355471987-05:00" level=info msg="Daemon has completed initialization"
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.355487205-05:00" level=info msg="Docker daemon" commit="96d83a5/1.12.6" graphdriver=devicemapper version=1.12.6
Mar 08 04:00:02 undercloud-0.redhat.local systemd[1]: Started Docker Application Container Engine.
Mar 08 04:00:02 undercloud-0.redhat.local dockerd-current[15767]: time="2017-03-08T04:00:02.361225200-05:00" level=info msg="API listen on /var/run/docker.sock"

This might collide with IP ranges when deploying OC with network isolation.

It would be great to have a way to specify IP range to use within docker during undercloud installation.

Comment 1 Red Hat Bugzilla Rules Engine 2017-03-08 15:22:16 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 2 Alexander Chuzhoy 2017-06-23 15:14:08 UTC
systemctl status docker in OSP12/rhel7.4 didn't list the assigned IP.

sudo ip address show docker0

Comment 3 Omri Hochman 2017-06-23 15:18:14 UTC
will deal with it as RFE for OSP13

Comment 5 Martin André 2017-10-24 12:55:34 UTC
Maybe this can be closed as a duplicate of bug #1503021 where I implemented the feature to workaround the IP address conflict.

Comment 6 Yurii Prokulevych 2017-10-25 07:49:07 UTC
BZ #1503021 is about configuring docker on overcloud. And this one was for undercloud.

If you say that one of them duplicates another - feel free to close one.

Thanks!

Comment 8 Alex Schultz 2018-10-10 19:06:03 UTC
Since we did this as part of BZ #1503021, closing this out.


Note You need to log in before you can comment on or make changes to this bug.