Closed YevheniiSemendiak closed 3 years ago
The problem is that we are switching the cluster to dst
cluster for the entire time of building the image, we should switch it only for the time of credentials generation.
Example of successful run:
ne image transfer image://neuro-compute/yevheniisemendiak/redis:4.0-alpine image://default/yevheniisemendiak/redis:4.0-alpine
INFO: Already on cluster: neuro-compute
INFO: Temporarily switching cluster: neuro-compute -> default <----------------------------------
INFO: Building the image image://default/yevheniisemendiak/redis:4.0-alpine
INFO: Using file:///var/folders/2h/crz9sjyd4xx0rlpvbpb56lth0000gn/T/tmpogg1ky1i as the build context
INFO: Uploading file:...
INFO: Submitting a builder job
...
√ Job <id> stopped
INFO: Successfully built image://default/yevheniisemendiak/redis:4.0-alpine
INFO: Switching back cluster: default -> neuro-compute <----------------------------------
Summary
If one performs
neuro-extras image transfer <src> <dst>
, being on thedst
cluster, the transfer job will fail to retrieve image fromsrc
cluster, since docker auth credits will be fetched fromdst
cluster, but should be fetched fromsrc
cluster.Example
job-5c3e4ddc-8fd9-4347-8c53-abfc517025d7
logs:Environment
Mandatory:
neuro-extras package version: 21.7.2 Neuro Platform Client 21.7.9