c12s-kubespray/contrib
Kenichi Omichi 247d062c02
[2.16] Fix how to get image ID on offline deployment (#7829)
* Add error handling for registorying images (#7787)

When running the script, I faced the following error but it was
difficult to know the root problem due to lack of error handling.

  docker tag" requires exactly 2 arguments.
  See 'docker tag --help'.

  Usage:  docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

  Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

To investigate such errors easily, this adds an error handling.

* Fix how to get image ID on offline deployment (#7808)

Previously IDs of container images were gotten from tar files of container
images but that way was wrong. If multiple json files are contained in a
tar file, the script got multiple IDs and tried to pass these IDs on
`docker tag` command. Then the command was failed.

This updates the script to get image IDs from `docker image inspect` command
to fix this issue.
In addition, this adds a check a registry container exists already or not
before deploying registry container to avoid a container conflict failure.
2021-07-28 00:01:35 -07:00
..
aws_iam Added Missing AWS IAM Profiles and Policies 2017-03-03 15:30:07 +01:00
aws_inventory Rename ansible groups to use _ instead of - (#7552) 2021-04-29 05:20:50 -07:00
azurerm Rename ansible groups to use _ instead of - (#7552) 2021-04-29 05:20:50 -07:00
dind Rename ansible groups to use _ instead of - (#7552) 2021-04-29 05:20:50 -07:00
inventory_builder Rename ansible groups to use _ instead of - (#7552) 2021-04-29 05:20:50 -07:00
kvm-setup Improve markdownlint coverage (#7075) 2020-12-22 04:44:26 -08:00
misc update rbac.authorization.k8s.io to non deprecated api-groups (#5517) 2020-04-14 13:14:04 -07:00
network-storage Rename ansible groups to use _ instead of - (#7552) 2021-04-29 05:20:50 -07:00
offline [2.16] Fix how to get image ID on offline deployment (#7829) 2021-07-28 00:01:35 -07:00
os-services Add contrib playbook to disable service firewall (#7431) 2021-05-18 06:45:30 -07:00
packaging/rpm Rename ansible groups to use _ instead of - (#7552) 2021-04-29 05:20:50 -07:00
terraform Replace map in Terraform scripts with tomap (#7576) (#7578) 2021-05-12 07:34:17 -07:00