If the folders for /home/stack/virt/docker-images.yaml does not exist or if the folder has no privileges the image prepare command fails with:
(undercloud) [stack@undercloud-0 ~]$ openstack overcloud container image prepare \
> --env-file=/home/stack/virt/docker-images.yaml \
> --prefix=openstack- \
> --tag="$TAG" \
> --set ceph_image="$CEPH_IMAGE" \
> --set ceph_tag="$CEPH_TAG" \
> --environment-file=/usr/share/openstack-tripleo-heat-templates/environments/services/sahara.yaml \
> --environment-file=/usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml \
> --namespace=$REGISTRY/rhosp13 \
> --set ceph_namespace=$CEPH_NAMESPACE
[Errno 2] No such file or directory: '/home/stack/virt/docker-images.yaml'
We need to fail correctly if we are unable to create the file.
Malformed --output-env-file=(/home/stack/virt/virt/docker-images.yaml). The output file can not be created
Fix proposed: https:/ /review. openstack. org/#/c/ 587405