Bug 1430438

Summary: [RFE]Allow configuration of IP ranges used by docker
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: rhosp-directorAssignee: RHOS Maint <rhos-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Amit Ugol <augol>
Severity: low Docs Contact:
Priority: low    
Version: 11.0 (Ocata)CC: aschultz, dbecker, emacchi, jcoufal, m.andre, mburns, mcornea, morazi, ohochman, rhel-osp-director-maint, sasha, sathlang, yprokule
Target Milestone: ---Keywords: FutureFeature, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-10 19:06:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.