add "registry" flag to "tools/build.py"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Wishlist
|
Kuo-tung Kao (jelly) |
Bug Description
The meaning of the namesapce in build.py is different from kolla-ansible.
For example, if user build images using `build.py -n 172.22.
If user build image using `build.py -n 172.22.2.81:4000`, kolla-ansible can't pull these images. The image name generated from build.py using `build.py -n 172.22.2.81:4000` looks like 172.22.
But the image name kolla-ansible pull looks like 172.22.
If we have registry flag used for assigning docker registry host, user use the flag when user want to change the host which the images is pushed.
With registry flag,
build image using `tools/build.py --registry 172.22.2.81:4000`
the image name looks like `172.22.
When user use kolla-ansible,
user set `docker_registry` to `172.22.2.81:4000` in `/etc/kolla/
build image using `tools/build.py -n abcd`
the image name looks like `abcd/data`
When user use kolla-ansible,
user set `docker_namespace:` to `abcd` in `/etc/kolla/
build image using `tools/build.py -n abcd --registry 172.22.2.81:4000`
the image name looks like `abcd/data`
When user use kolla-ansible,
user set `docker_namespace:` to `abcd` in `/etc/kolla/
user set `docker_registry` to `172.22.2.81:4000` in `/etc/kolla/
With the feature, it will reduce user confusing and mistaking.
Changed in kolla: | |
assignee: | nobody → jelly (coding1314) |
Changed in kolla: | |
assignee: | jelly (coding1314) → nobody |
Changed in kolla: | |
status: | New → Triaged |
milestone: | none → liberty-rc3 |
Changed in kolla: | |
milestone: | liberty-rc3 → mitaka-1 |
Changed in kolla: | |
assignee: | nobody → jelly (coding1314) |
Changed in kolla: | |
status: | Fix Committed → Fix Released |
Another way to avoid confusing about namespace between build.py and kolla-ansible is that remove "docker_registry" in globals.yml. https:/ /github. com/openstack/ kolla/blob/ master/ etc/kolla/ globals. yml#L36 the root of the problem is docker. but it's hard to change docker.