[kolla-ansible] bootstrap-server docker version question
Folks, Playing with kolla and i decided to use docker.io installation (ubuntu 20.04) on controller nodes but when i run bootstrap-server it removed docker.io and installed docker-ce version. Question: What is the best docker version to run in production for operator point of view and better support and stability. docker.io maintained by debian community and native support with Ubuntu distro. docker-ce is maintained by the docker community which has better features etc but rapid growth but does that matter for kolla? Just curious, what if I add compute nodes in an existing cluster after many months? In that case the docker-ce version will be changed. How to maintain or pin docker-ce version? ~S
Hi Satish, We used Docker-CE because RedHat based distros don't have Docker packages. It's fine to use docker.io for Ubuntu instead of docker-ce. It should work much more stable. On Tue, Apr 4, 2023 at 4:21 PM Satish Patel <satish.txt@gmail.com> wrote:
Folks,
Playing with kolla and i decided to use docker.io installation (ubuntu 20.04) on controller nodes but when i run bootstrap-server it removed docker.io and installed docker-ce version.
Question: What is the best docker version to run in production for operator point of view and better support and stability. docker.io maintained by debian community and native support with Ubuntu distro. docker-ce is maintained by the docker community which has better features etc but rapid growth but does that matter for kolla?
Just curious, what if I add compute nodes in an existing cluster after many months? In that case the docker-ce version will be changed. How to maintain or pin docker-ce version?
~S
-- Regards, Maksim Malchuk
Thank Maksim, How do i tell bootstrap-server to don't use docker-ce and just use docker.io? are there any setting to tell? On Tue, Apr 4, 2023 at 9:54 AM Maksim Malchuk <maksim.malchuk@gmail.com> wrote:
Hi Satish,
We used Docker-CE because RedHat based distros don't have Docker packages. It's fine to use docker.io for Ubuntu instead of docker-ce. It should work much more stable.
On Tue, Apr 4, 2023 at 4:21 PM Satish Patel <satish.txt@gmail.com> wrote:
Folks,
Playing with kolla and i decided to use docker.io installation (ubuntu 20.04) on controller nodes but when i run bootstrap-server it removed docker.io and installed docker-ce version.
Question: What is the best docker version to run in production for operator point of view and better support and stability. docker.io maintained by debian community and native support with Ubuntu distro. docker-ce is maintained by the docker community which has better features etc but rapid growth but does that matter for kolla?
Just curious, what if I add compute nodes in an existing cluster after many months? In that case the docker-ce version will be changed. How to maintain or pin docker-ce version?
~S
-- Regards, Maksim Malchuk
Satish, you should change atl east these defaults: # Docker APT repository configuration. docker_apt_url: "https://download.docker.com/linux/{{ ansible_facts.distribution | lower }}" docker_apt_repo: "deb {{ docker_apt_url }} {{ ansible_facts.distribution_release }} stable" docker_apt_key_file: "gpg" docker_apt_key_id: "0EBFCD88" docker_apt_package: "docker-ce" On Tue, Apr 4, 2023 at 5:37 PM Satish Patel <satish.txt@gmail.com> wrote:
Thank Maksim,
How do i tell bootstrap-server to don't use docker-ce and just use docker.io? are there any setting to tell?
On Tue, Apr 4, 2023 at 9:54 AM Maksim Malchuk <maksim.malchuk@gmail.com> wrote:
Hi Satish,
We used Docker-CE because RedHat based distros don't have Docker packages. It's fine to use docker.io for Ubuntu instead of docker-ce. It should work much more stable.
On Tue, Apr 4, 2023 at 4:21 PM Satish Patel <satish.txt@gmail.com> wrote:
Folks,
Playing with kolla and i decided to use docker.io installation (ubuntu 20.04) on controller nodes but when i run bootstrap-server it removed docker.io and installed docker-ce version.
Question: What is the best docker version to run in production for operator point of view and better support and stability. docker.io maintained by debian community and native support with Ubuntu distro. docker-ce is maintained by the docker community which has better features etc but rapid growth but does that matter for kolla?
Just curious, what if I add compute nodes in an existing cluster after many months? In that case the docker-ce version will be changed. How to maintain or pin docker-ce version?
~S
-- Regards, Maksim Malchuk
-- Regards, Maksim Malchuk
On 4/4/23 22:37, Satish Patel wrote:
How do i tell bootstrap-server to don't use docker-ce and just use docker.io <http://docker.io>? are there any setting to tell?
A quick grep (well, ack) through /usr/local/share/kolla-ansible showed me this: ansible/roles/baremetal/defaults/main.yml 10:docker_apt_package: "docker-ce" 19:docker_yum_package: "docker-ce" So I would say try changing that variable in your globals.yml and see if that does the trick.
Thanks, I'll check it out. On Tue, Apr 4, 2023 at 11:09 AM Gregory Orange <gregory.orange@pawsey.org.au> wrote:
On 4/4/23 22:37, Satish Patel wrote:
How do i tell bootstrap-server to don't use docker-ce and just use docker.io <http://docker.io>? are there any setting to tell?
A quick grep (well, ack) through /usr/local/share/kolla-ansible showed me this:
ansible/roles/baremetal/defaults/main.yml 10:docker_apt_package: "docker-ce" 19:docker_yum_package: "docker-ce"
So I would say try changing that variable in your globals.yml and see if that does the trick.
I think you can pin version of docker https://opendev.org/openstack/ansible-collection-kolla/src/commit/0e3dbd7b26... On Wed, Apr 19, 2023 at 8:49 AM Satish Patel <satish.txt@gmail.com> wrote:
Thanks, I'll check it out.
On Tue, Apr 4, 2023 at 11:09 AM Gregory Orange < gregory.orange@pawsey.org.au> wrote:
On 4/4/23 22:37, Satish Patel wrote:
How do i tell bootstrap-server to don't use docker-ce and just use docker.io <http://docker.io>? are there any setting to tell?
A quick grep (well, ack) through /usr/local/share/kolla-ansible showed me this:
ansible/roles/baremetal/defaults/main.yml 10:docker_apt_package: "docker-ce" 19:docker_yum_package: "docker-ce"
So I would say try changing that variable in your globals.yml and see if that does the trick.
-- Thu.
Thanks, I'll check it out. One more question related bootstrap, I have local docker registry and I do create daemon.json file on each nodes when I add compute nodes. Can bootstrap has option to add registry configuration during preparing new nodes? $ cat /etc/docker/daemon.json { "bridge": "none", "insecure-registries": [ "docker-reg.example.com:4000" ], "ip-forward": false, "iptables": false, "log-opts": { "max-file": "5", "max-size": "50m" } } On Wed, Apr 19, 2023 at 12:35 AM Hoai-Thu Vuong <thuvh87@gmail.com> wrote:
I think you can pin version of docker
https://opendev.org/openstack/ansible-collection-kolla/src/commit/0e3dbd7b26...
On Wed, Apr 19, 2023 at 8:49 AM Satish Patel <satish.txt@gmail.com> wrote:
Thanks, I'll check it out.
On Tue, Apr 4, 2023 at 11:09 AM Gregory Orange < gregory.orange@pawsey.org.au> wrote:
On 4/4/23 22:37, Satish Patel wrote:
How do i tell bootstrap-server to don't use docker-ce and just use docker.io <http://docker.io>? are there any setting to tell?
A quick grep (well, ack) through /usr/local/share/kolla-ansible showed me this:
ansible/roles/baremetal/defaults/main.yml 10:docker_apt_package: "docker-ce" 19:docker_yum_package: "docker-ce"
So I would say try changing that variable in your globals.yml and see if that does the trick.
-- Thu.
Yes, there is ##Docker Options## section in globals.yml. You can find the sample configs there as commented out. On Wed, 19 Apr 2023 at 15:42, Satish Patel <satish.txt@gmail.com> wrote:
Thanks, I'll check it out.
One more question related bootstrap, I have local docker registry and I do create daemon.json file on each nodes when I add compute nodes. Can bootstrap has option to add registry configuration during preparing new nodes?
$ cat /etc/docker/daemon.json
{
"bridge": "none",
"insecure-registries": [
"docker-reg.example.com:4000"
],
"ip-forward": false,
"iptables": false,
"log-opts": {
"max-file": "5",
"max-size": "50m"
}
}
On Wed, Apr 19, 2023 at 12:35 AM Hoai-Thu Vuong <thuvh87@gmail.com> wrote:
I think you can pin version of docker
https://opendev.org/openstack/ansible-collection-kolla/src/commit/0e3dbd7b26...
On Wed, Apr 19, 2023 at 8:49 AM Satish Patel <satish.txt@gmail.com> wrote:
Thanks, I'll check it out.
On Tue, Apr 4, 2023 at 11:09 AM Gregory Orange <gregory.orange@pawsey.org.au> wrote:
On 4/4/23 22:37, Satish Patel wrote:
How do i tell bootstrap-server to don't use docker-ce and just use docker.io <http://docker.io>? are there any setting to tell?
A quick grep (well, ack) through /usr/local/share/kolla-ansible showed me this:
ansible/roles/baremetal/defaults/main.yml 10:docker_apt_package: "docker-ce" 19:docker_yum_package: "docker-ce"
So I would say try changing that variable in your globals.yml and see if that does the trick.
-- Thu.
I think you can edit this variable: docker_registry (noted that docker config is created for you, check in tasks directory with this variable). https://opendev.org/openstack/ansible-collection-kolla/src/commit/0e3dbd7b26... On Wed, Apr 19, 2023, 19:40 Satish Patel <satish.txt@gmail.com> wrote:
Thanks, I'll check it out.
One more question related bootstrap, I have local docker registry and I do create daemon.json file on each nodes when I add compute nodes. Can bootstrap has option to add registry configuration during preparing new nodes?
$ cat /etc/docker/daemon.json
{
"bridge": "none",
"insecure-registries": [
"docker-reg.example.com:4000"
],
"ip-forward": false,
"iptables": false,
"log-opts": {
"max-file": "5",
"max-size": "50m"
}
}
On Wed, Apr 19, 2023 at 12:35 AM Hoai-Thu Vuong <thuvh87@gmail.com> wrote:
I think you can pin version of docker
https://opendev.org/openstack/ansible-collection-kolla/src/commit/0e3dbd7b26...
On Wed, Apr 19, 2023 at 8:49 AM Satish Patel <satish.txt@gmail.com> wrote:
Thanks, I'll check it out.
On Tue, Apr 4, 2023 at 11:09 AM Gregory Orange < gregory.orange@pawsey.org.au> wrote:
On 4/4/23 22:37, Satish Patel wrote:
How do i tell bootstrap-server to don't use docker-ce and just use docker.io <http://docker.io>? are there any setting to tell?
A quick grep (well, ack) through /usr/local/share/kolla-ansible showed me this:
ansible/roles/baremetal/defaults/main.yml 10:docker_apt_package: "docker-ce" 19:docker_yum_package: "docker-ce"
So I would say try changing that variable in your globals.yml and see if that does the trick.
-- Thu.
On 4/4/23 21:14, Satish Patel wrote:
Just curious, what if I add compute nodes in an existing cluster after many months? In that case the docker-ce version will be changed. How to maintain or pin docker-ce version?
Aptly has been useful to us for a few years, for various Ubuntu packages we want to pin. We also use apt-mirror but that's a simpler tool without the snapshot and publish features of aptly.
participants (5)
-
Can Özyurt
-
Gregory Orange
-
Hoai-Thu Vuong
-
Maksim Malchuk
-
Satish Patel