Bug 1904417 - Directvolumemigration-rsync pod is not ready because it cannot mount the volumes
Summary: Directvolumemigration-rsync pod is not ready because it cannot mount the volumes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: General
Version: 1.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 1.4.0
Assignee: Shubham Dilip Pampattiwar
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-04 12:04 UTC by Sergio
Modified: 2021-02-11 12:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-11 12:54:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:5329 0 None None None 2021-02-11 12:55:07 UTC

Description Sergio 2020-12-04 12:04:25 UTC
Description of problem:
When we run a direct migration, the directvolumemigration-rsync pod cannot be created in the source cluster because it cannot mount the volumes.


Version-Release number of selected component (if applicable):
MTC 1.4.0
SOURCE CLUSTER: AWS 3.11
TARGET CLUSTER: AWS 4.6
REPLICATION REPOSITORY: AWS S3

How reproducible:
Always

Steps to Reproduce:
1. Run a migration with direct copy using gp2 storage class

Actual results:
The directvolumemigration pods will have problems mounting the volumes.

$ oc get pods
NAME                                         READY     STATUS              RESTARTS   AGE
cakephp-mysql-persistent-1-build             0/1       Completed           0          5m
cakephp-mysql-persistent-1-xxkp6             1/1       Running             0          4m
directvolumemigration-rsync-transfer-mysql   0/1       ContainerCreating   0          12s
directvolumemigration-stunnel-transfer       1/1       Running             0          18s
mysql-1-kq8xc                                1/1       Running             0          4m

We get this message in the events:

  Warning  FailedAttachVolume  1m    attachdetach-controller  Multi-Attach error for volume "pvc-33a8a017-3578-11eb-9bcf-0e5715382039" Volume is already used by pod(s) mysql-1-kq8xc


The reason is that the directvolumemigration-rsync-transfer-mysql pod and the mysql-1-kq8xc pod should be deployed in the same node, but actually they are deployed in different nodes, so the directvolumemigration pod cannot mount the volume.

$ oc get pods directvolumemigration-rsync-transfer-mysql -o yaml |grep -i nodeName
  nodeName: ip-172-18-8-191.ec2.internal
$ oc get pods mysql-1-kq8xc -o yaml |grep -i nodeName
  nodeName: ip-172-18-6-152.ec2.internal


Expected results:
The migration should be executed without problems.

Additional info:

Comment 5 Sergio 2020-12-22 10:44:59 UTC
Verfied in 1.4.0


openshift-migration-rhel7-operator@sha256:236d5f964061938f4e845e6d9e62926da68435c0f0304329a0473e060cdb53f1

    - name: MIG_CONTROLLER_REPO
      value: openshift-migration-controller-rhel8@sha256
    - name: MIG_CONTROLLER_TAG
      value: 5671667a75e12cd538a34c208bfb076534296cdf91f7e97ef48fc59f8ce3c172

The error is not happening any more.

Comment 7 errata-xmlrpc 2021-02-11 12:54:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Migration Toolkit for Containers (MTC) tool image release advisory 1.4.0), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5329


Note You need to log in before you can comment on or make changes to this bug.