Skip to content

librbd/migration: add external clusters support - #44470

Merged
idryomov merged 10 commits into
ceph:mainfrom
orozery:rbd-external-migrate
Aug 23, 2024
Merged

idryomov merged 10 commits into
ceph:mainfrom
orozery:rbd-external-migrate

Conversation

@orozery

@orozery orozery commented Jan 5, 2022 •

Copy link
Copy Markdown
Contributor

@idryomov @trociny would appreciate your review.

I tested it manually via mstart.sh and it seems to work.
However, the new qa test I added still failed, because of a wrong setup (before actually migrating).
I'm still trying to figure it out, if you have a clue I will be grateful.
The current run log is here:
http://qa-proxy.ceph.com/teuthology/oro-2022-01-05_13:30:55-rbd-master-distro-default-smithi/6596348/teuthology.log

2022-01-05T13:50:03.020 DEBUG:teuthology.orchestra.run.smithi145:> sudo TESTDIR=/home/ubuntu/cephtest bash -c 'echo '"'"'{"type":"native","cluster_name":"cluster2","client_name":"client.migrator","pool_name":"rbd","image_name":"client.0.0","snap_name":"snap"}'"'"' | rbd --cluster cluster1 migration prepare --import-only --source-spec-path - client.0.0'
2022-01-05T13:50:03.094 INFO:teuthology.orchestra.run.smithi145.stderr:rbd: ../nptl/pthread_mutex_lock.c:433: __pthread_mutex_lock_full: Assertion `INTERNAL_SYSCALL_ERRNO (e, __err) != ESRCH || !robust' failed.
2022-01-05T13:50:03.095 INFO:teuthology.orchestra.run.smithi145.stderr:*** Caught signal (Aborted) **
2022-01-05T13:50:03.095 INFO:teuthology.orchestra.run.smithi145.stderr: in thread 7f19677fe700 thread_name:taskfin_librbd
2022-01-05T13:50:03.095 INFO:teuthology.orchestra.run.smithi145.stderr: ceph version 17.0.0-9882-gf60e0860 (f60e0860726bd9fa65fca7d630ece40c2344eb57) quincy (dev)
2022-01-05T13:50:03.096 INFO:teuthology.orchestra.run.smithi145.stderr: 1: /lib64/libpthread.so.0(+0x12c20) [0x7f199068dc20]
2022-01-05T13:50:03.096 INFO:teuthology.orchestra.run.smithi145.stderr: 2: gsignal()
2022-01-05T13:50:03.096 INFO:teuthology.orchestra.run.smithi145.stderr: 3: abort()
2022-01-05T13:50:03.097 INFO:teuthology.orchestra.run.smithi145.stderr: 4: /lib64/libc.so.6(+0x21c89) [0x7f198ea9cc89]
2022-01-05T13:50:03.097 INFO:teuthology.orchestra.run.smithi145.stderr: 5: /lib64/libc.so.6(+0x2fb96) [0x7f198eaaab96]
2022-01-05T13:50:03.097 INFO:teuthology.orchestra.run.smithi145.stderr: 6: /lib64/libpthread.so.0(+0xaa16) [0x7f1990685a16]
2022-01-05T13:50:03.098 INFO:teuthology.orchestra.run.smithi145.stderr: 7: (ceph::logging::Log::submit_entry(ceph::logging::Entry&&)+0x46) [0x7f19913ecf96]
2022-01-05T13:50:03.098 INFO:teuthology.orchestra.run.smithi145.stderr: 8: /lib64/librbd.so.1(+0x3a92d9) [0x7f1992dee2d9]
2022-01-05T13:50:03.098 INFO:teuthology.orchestra.run.smithi145.stderr: 9: /lib64/librbd.so.1(+0x10876d) [0x7f1992b4d76d]
2022-01-05T13:50:03.098 INFO:teuthology.orchestra.run.smithi145.stderr: 10: /lib64/librbd.so.1(+0x12ac3d) [0x7f1992b6fc3d]
2022-01-05T13:50:03.099 INFO:teuthology.orchestra.run.smithi145.stderr: 11: /lib64/librbd.so.1(+0x10876d) [0x7f1992b4d76d]
2022-01-05T13:50:03.099 INFO:teuthology.orchestra.run.smithi145.stderr: 12: (Finisher::finisher_thread_entry()+0x19d) [0x7f19910b031d]
2022-01-05T13:50:03.099 INFO:teuthology.orchestra.run.smithi145.stderr: 13: /lib64/libpthread.so.0(+0x817a) [0x7f199068317a]
2022-01-05T13:50:03.099 INFO:teuthology.orchestra.run.smithi145.stderr: 14: clone()
2022-01-05T13:50:03.129 INFO:teuthology.orchestra.run.smithi145.stderr:bash: line 1: 37935 Done                    echo 

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@trociny trociny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just glanced at it, so I may be completely wrong, but my guess is that the crash is due to using remote context after being freed.

Have you tried locally with valgrind? May be locally you have different debug levels (it seems to crash when trying to log)?

Comment thread src/librbd/Utils.cc Resolved
@orozery

orozery commented Jan 6, 2022

Copy link
Copy Markdown
Contributor Author

I just glanced at it, so I may be completely wrong, but my guess is that the crash is due to using remote context after being freed.

Have you tried locally with valgrind? May be locally you have different debug levels (it seems to crash when trying to log)?

I debugged it and found this is actually a bug that exists in master:

NativeFormat:open calls m_image_ctx->state->open.
Now, if ImageState::open fails, it deletes m_image_ctx.
Then, NativeFormat<I>::handle_open tries to ldout to m_image_ctx->cct, which is invalid.

I did not run into this on my manual test, since my image open did not fail.

@orozery

orozery commented Jan 7, 2022

Copy link
Copy Markdown
Contributor Author

@ideepika @trociny
I'm trying to run qemu task on a cluster named cluster1.

My yaml looks like this:

io_workload:
  sequential:
    - exec:
        cluster1.client.0:
          - cp /etc/ceph/cluster1.conf /etc/ceph/ceph.conf
          - cp /etc/ceph/cluster1.keyring /etc/ceph/ceph.keyring
    - qemu:
        cluster1.client.0:
          clone: true
          type: block
          disks:
            - action: none
              image_name: client.0.0
            - action: create
              image_name: client.0.1
            - action: create
              image_name: client.0.2
          test: qa/run_xfstests_qemu.sh
exclude_arch: armv7l

I copied the ceph.conf and the keyring to where the qemu task expects them, but it is still not enough, as I get:

2022-01-07T06:46:28.621 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_95a7d4799b562f3bbb5ec66107094963abd62fa1/teuthology/contextutil.py", line 31, in nested
    vars.append(enter())
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/teuthworker/src/github.com_orozery_ceph_1990998fcef732aa86c6d698cad2c0d8e89f13f5/qa/tasks/qemu.py", line 484, in run_qemu
    ceph_config = ctx.ceph['ceph'].conf.get('global', {})
KeyError: 'ceph'

Is there a way to work around this by changing my yaml? Or there's no way but to change the code qemu.py?

@ideepika

ideepika commented Jan 7, 2022 •

Copy link
Copy Markdown
Member

Is there a way to work around this by changing my yaml? Or there's no way but to change the code qemu.py?

@orozery since this a 2 cluster setup and we have cluster name ceph hardcoded in qemu.py, I think it would be best to replace with cluster = $cluster or ceph [this should also work with --suite-branch and should not require. rebuild] maybe someone can suggest better

@trociny

trociny commented Jan 8, 2022

Copy link
Copy Markdown
Contributor

Is there a way to work around this by changing my yaml? Or there's no way but to change the code qemu.py?

+1 to @ideepika's suggestion to update qemu.py. I am not very familiar with this code but it seems like changing ctx.ceph['ceph'] to ctx.ceph[config['cluster']] in run_qemu should do the trick?

@orozery
orozery force-pushed the rbd-external-migrate branch from 7b539eb to 7ef041e Compare January 11, 2022 14:23
@orozery

orozery commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

@idryomov ready for review

@trociny trociny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another very minor thing is that I would try not to mix rbd_mirror and librbd changes in the same commit (i.e. add a new functionality to librbd, and then make rbd_mirror use it as a separate commit).

Otherwise LGTM and seems very useful, thanks!

Comment thread src/librbd/migration/NativeFormat.cc Resolved
@orozery

orozery commented Jan 11, 2022

Copy link
Copy Markdown
Contributor Author

Another very minor thing is that I would try not to mix rbd_mirror and librbd changes in the same commit (i.e. add a new functionality to librbd, and then make rbd_mirror use it as a separate commit).

Which commit mixes changes?
I created a specific commit for moving out code from rbd_mirror to librbd::util.

@orozery

orozery commented Jan 12, 2022

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@orozery

orozery commented Jan 12, 2022

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@trociny

trociny commented Jan 12, 2022 •

Copy link
Copy Markdown
Contributor

Which commit mixes changes?
I created a specific commit for moving out code from rbd_mirror to librbd::util.

Yes, I am talking about this commit "tools/rbd_mirror: move init_rados to librbd utils". It could be two: "librbd: add util::init_rados reusing code from rbd_mirror", and "tools/rbd_mirror: use generalised init_rados from librbd". This is the way we have usually used, treating librbd and rbd-mirror as a separate projects (though there is no a strong rule here, and this is just a suggestion). Also, in "librbd/migration: add external clusters support" you modified util::init_rados by adding set_global_admin_socket param. This could be done in the first commit, when introducing util::init_rados.

Comment thread src/librbd/Utils.cc Resolved
@orozery
orozery force-pushed the rbd-external-migrate branch from 7ef041e to 794391f Compare January 13, 2022 18:12
@orozery
orozery requested a review from a team as a code owner January 13, 2022 18:12
@orozery

orozery commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

@trociny thanks for the comments so far.
I pushed the changes.

@trociny trociny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are minor notes you might want to consider, but in general LGTM.

Comment thread src/librbd/Utils.cc Resolved
Comment thread src/librbd/Utils.cc Resolved
@trociny
trociny requested a review from idryomov January 13, 2022 19:37
@orozery
orozery force-pushed the rbd-external-migrate branch from 794391f to bd7ce84 Compare January 14, 2022 09:24
Comment thread doc/rbd/rbd-live-migration.rst Resolved
Comment thread src/librbd/migration/NativeFormat.cc Resolved
@orozery
orozery force-pushed the rbd-external-migrate branch 2 times, most recently from 699d330 to 7635c9e Compare January 16, 2022 11:49
@trociny

trociny commented Jan 19, 2022

Copy link
Copy Markdown
Contributor

@idryomov few small questions:

These questions seem not for this PR?

@alfonsomthd
alfonsomthd requested review from a team and removed request for a team January 19, 2022 13:38
@orozery

orozery commented Jan 19, 2022

Copy link
Copy Markdown
Contributor Author

@idryomov few small questions:

These questions seem not for this PR?

Right, my bad.

It used to be exported until commit 318c62f ("common/config:
cleanup remove some unused macros").  Having CEPH_CONF_FILE_DEFAULT
avaialable is handy to prevent parse_config_files() from picking up
CEPH_CONF environment variable.

Signed-off-by: Ilya Dryomov <[email protected]>
This is another step towards supporting migration from external
clusters, where creating an IoCtx from a Rados instance that has
nothing to do with dst_io_ctx would be needed.  It also allows to
get rid of a pool lookup in the middle of parsing code.

Signed-off-by: Ilya Dryomov <[email protected]>
@idryomov

Copy link
Copy Markdown
Contributor

jenkins test api

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test make check

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test api

@idryomov

Copy link
Copy Markdown
Contributor

I rewrote this on top of #58882 to address the biggest

So this seems to be trying to mimic ImageCtx constructor, but missing a bunch of things: CephContext for the destination cluster instead of that for the source cluster is used, wrong cluster config is used, asio_engine doesn't get (re-)created, etc.

outstanding issue and took care of all but one unresolved conversation while at it. The diff changed from:

 doc/rbd/rbd-live-migration.rst                 |   2 +
 qa/suites/rbd/migration-external/%             |   0
 qa/suites/rbd/migration-external/.qa           |   1 +
 .../rbd/migration-external/1-base/install.yaml |   9 +
 qa/suites/rbd/migration-external/2-clusters/+  |   0
 .../rbd/migration-external/2-clusters/.qa      |   1 +
 .../migration-external/2-clusters/2-node.yaml  |  16 ++
 qa/suites/rbd/migration-external/3-objectstore |   1 +
 .../4-supported-random-distro$                 |   1 +
 qa/suites/rbd/migration-external/5-pool/.qa    |   1 +
 .../5-pool/ec-data-pool.yaml                   |  29 +++
 .../rbd/migration-external/5-pool/none.yaml    |   0
 .../5-pool/replicated-data-pool.yaml           |  14 ++
 qa/suites/rbd/migration-external/6-prepare/.qa |   1 +
 .../6-prepare/native-flatten.yaml              |  25 +++
 .../migration-external/6-prepare/native.yaml   |  16 ++
 .../rbd/migration-external/7-io-workloads/.qa  |   1 +
 .../7-io-workloads/qemu_xfstests.yaml          |  15 ++
 .../migration-external/8-migrate-workloads/.qa |   1 +
 .../8-migrate-workloads/execute.yaml           |  12 ++
 qa/suites/rbd/migration-external/9-cleanup/.qa |   1 +
 .../migration-external/9-cleanup/cleanup.yaml  |  12 ++
 qa/tasks/qemu.py                               | 165 ++++++++++--------
 qa/tasks/rbd.py                                |  16 +-
 src/librbd/ImageCtx.h                          |   6 +
 src/librbd/Utils.cc                            | 143 +++++++++++++++
 src/librbd/Utils.h                             |  12 ++
 src/librbd/api/Migration.cc                    |   2 +-
 src/librbd/migration/NativeFormat.cc           | 123 +++++++++----
 src/librbd/migration/NativeFormat.h            |   1 +
 .../librados_test_stub/NeoradosTestStub.cc     |   1 +
 src/test/librbd/mock/MockImageCtx.h            |   2 +
 src/tools/rbd_mirror/PoolReplayer.cc           | 126 ++-----------
 33 files changed, 527 insertions(+), 229 deletions(-)

to

 doc/rbd/rbd-live-migration.rst                 |  21 ++-
 qa/suites/rbd/migration-external/%             |   0
 qa/suites/rbd/migration-external/.qa           |   1 +
 qa/suites/rbd/migration-external/1-base/.qa    |   1 +
 .../rbd/migration-external/1-base/install.yaml |   8 +
 .../rbd/migration-external/2-clusters/.qa      |   1 +
 .../migration-external/2-clusters/2-node.yaml  |  15 ++
 qa/suites/rbd/migration-external/3-objectstore |   1 +
 .../4-supported-random-distro$                 |   1 +
 .../rbd/migration-external/5-data-pool/.qa     |   1 +
 .../rbd/migration-external/5-data-pool/ec.yaml |  29 +++
 .../migration-external/5-data-pool/none.yaml   |   0
 .../5-data-pool/replicated.yaml                |  14 ++
 qa/suites/rbd/migration-external/6-prepare/.qa |   1 +
 .../6-prepare/native-flatten.yaml              |  25 +++
 .../migration-external/6-prepare/native.yaml   |  16 ++
 .../rbd/migration-external/7-io-workloads/.qa  |   1 +
 .../7-io-workloads/qemu_xfstests.yaml          |  15 ++
 .../migration-external/8-migrate-workloads/.qa |   1 +
 .../8-migrate-workloads/execute.yaml           |  12 ++
 qa/suites/rbd/migration-external/9-cleanup/.qa |   1 +
 .../migration-external/9-cleanup/cleanup.yaml  |  12 ++
 qa/suites/rbd/migration-external/conf          |   1 +
 qa/tasks/qemu.py                               | 165 ++++++++++--------
 qa/tasks/rbd.py                                |  16 +-
 src/common/config.cc                           |   2 +-
 src/common/config.h                            |   2 +
 src/librbd/ImageCtx.cc                         |   4 +-
 src/librbd/ImageCtx.h                          |   6 +-
 src/librbd/api/Migration.cc                    |  11 +-
 src/librbd/image/CloseRequest.cc               |   5 +
 src/librbd/image/RefreshParentRequest.cc       |   9 +-
 src/librbd/image/RefreshParentRequest.h        |   5 +-
 src/librbd/migration/NativeFormat.cc           | 119 +++++++++++--
 src/librbd/migration/NativeFormat.h            |   3 +-
 src/librbd/migration/OpenSourceImageRequest.cc |  24 ++-
 src/librbd/migration/OpenSourceImageRequest.h  |   9 +-
 37 files changed, 432 insertions(+), 126 deletions(-)

Notable changes:

  • Abandoned the attempt to reuse PoolReplayer::init_rados() because it picks up environment variables which can interfere with connecting to the remote cluster. rbd-mirror daemon can also suffer from this, but, being a daemon, it's usually spawned by cephadm or another orchestrator in a controlled fashion whereas rbd migration prepare command can't make any assumptions about the environment.

  • Fixed CephContext leak (memory and several threads, including librbd task finisher), occurring at least 2 + number of times an image that is being imported is opened times.

  • Replaced migration_rados field which was set on the source image and managed via unique_ptr with parent_rados field which is set on the destination image and managed manually in RefreshParentRequest and CloseRequest together with closing the parent image. This fell out of the previous item: with the fix for CephContext reference count in place, ImageCtx destructor for the source image put the last reference to CephContext and attempted to destroy it which led to a lockup. Since ImageCtx destructor is always scheduled on the corresponding task finisher, it basically attempted to destroy its own thread.

@idryomov

Copy link
Copy Markdown
Contributor

ceph API tests failure is unrelated:

2024-08-19 08:02:09,965.965 INFO:__main__:ERROR: setUpClass (tasks.mgr.dashboard.test_health.HealthTest)
2024-08-19 08:02:09,965.965 INFO:__main__:----------------------------------------------------------------------
2024-08-19 08:02:09,965.965 INFO:__main__:Traceback (most recent call last):
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/helper.py", line 223, in setUpClass
2024-08-19 08:02:09,965.965 INFO:__main__:    cls.mds_cluster.mds_stop()
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/cephfs/filesystem.py", line 370, in mds_stop
2024-08-19 08:02:09,965.965 INFO:__main__:    self._one_or_all(mds_id, lambda id_: self.mds_daemons[id_].stop())
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/cephfs/filesystem.py", line 344, in _one_or_all
2024-08-19 08:02:09,965.965 INFO:__main__:    with parallel() as p:
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/tmp/tmp.ya7u6Ccylx/venv/lib/python3.10/site-packages/teuthology/parallel.py", line 84, in __exit__
2024-08-19 08:02:09,965.965 INFO:__main__:    for result in self:
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/tmp/tmp.ya7u6Ccylx/venv/lib/python3.10/site-packages/teuthology/parallel.py", line 98, in __next__
2024-08-19 08:02:09,965.965 INFO:__main__:    resurrect_traceback(result)
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/tmp/tmp.ya7u6Ccylx/venv/lib/python3.10/site-packages/teuthology/parallel.py", line 30, in resurrect_traceback
2024-08-19 08:02:09,965.965 INFO:__main__:    raise exc.exc_info[1]
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/tmp/tmp.ya7u6Ccylx/venv/lib/python3.10/site-packages/teuthology/parallel.py", line 23, in capture_traceback
2024-08-19 08:02:09,965.965 INFO:__main__:    return func(*args, **kwargs)
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/cephfs/filesystem.py", line 370, in <lambda>
2024-08-19 08:02:09,965.965 INFO:__main__:    self._one_or_all(mds_id, lambda id_: self.mds_daemons[id_].stop())
2024-08-19 08:02:09,965.965 INFO:__main__:  File "/home/jenkins-build/build/workspace/ceph-api/build/../qa/tasks/vstart_runner.py", line 573, in stop
2024-08-19 08:02:09,966.966 INFO:__main__:    raise MaxWhileTries(
2024-08-19 08:02:09,966.966 INFO:__main__:teuthology.exceptions.MaxWhileTries: Timed out waiting for daemon mds.a

@idryomov

idryomov commented Aug 20, 2024 •

Copy link
Copy Markdown
Contributor

All migration-external configurations with EC data pool (5-data-pool/ec) excluded due a RADOS issue:

https://pulpito.ceph.com/dis-2024-08-19_22:29:40-rbd:migration-external-wip-dis-testing-distro-default-smithi/

One job hung with non-descriptive

2024-08-19T23:46:43.145 INFO:tasks.qemu.cluster1.client.0.smithi083.stdout:[ 1440.284156] INFO: task kworker/0:3:424 blocked for more than 120 seconds.
2024-08-19T23:46:43.167 INFO:tasks.qemu.cluster1.client.0.smithi083.stdout:[ 1440.286601] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2024-08-19T23:46:43.168 INFO:tasks.qemu.cluster1.client.0.smithi083.stdout:[ 1440.289824] INFO: task flush-253:32:17535 blocked for more than 120 seconds.
2024-08-19T23:46:43.168 INFO:tasks.qemu.cluster1.client.0.smithi083.stdout:[ 1440.292222] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2024-08-19T23:46:43.168 INFO:tasks.qemu.cluster1.client.0.smithi083.stdout:[ 1440.295564] INFO: task fsstress:1594 blocked for more than 120 seconds.
2024-08-19T23:46:43.168 INFO:tasks.qemu.cluster1.client.0.smithi083.stdout:[ 1440.297875] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

messages, but I doubt it's related. I'll plan a couple more similar runs to make sure.

Comment thread src/librbd/migration/NativeFormat.cc Resolved
idryomov and others added 3 commits August 22, 2024 12:30
This commit extends NativeFormat (aka migration where the migration
source is an RBD image) to support external Ceph clusters, limited to
import-only mode.

Co-authored-by: Or Ozeri <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
"optional if image in trash" can be easily interpreted as "required if
image not in trash".

Signed-off-by: Ilya Dryomov <[email protected]>
@idryomov
idryomov force-pushed the rbd-external-migrate branch from 523177a to 4a6800f Compare August 22, 2024 10:33
@idryomov

Copy link
Copy Markdown
Contributor

Pushed some test adjustments to resolve the remaining conversation:

  • instead of leaving images for xfstests' TEST_DEV and SCRATCH_DEV devices empty, sparsely populate up to 50% of objects in them
  • drop clone: true directive for qemu task -- it doesn't take effect for pre-created (action: none) disks
  • rename native.yaml -> native-standalone.yaml and native-flatten.yaml to native-clone.yaml
  • increase and randomize sleeps before rbd migration execute and rbd migration commit commands
  • drop 9-cleanup directory -- only some, not all images were removed and doing that isn't strictly necessary
  • cover snap_name/snap_id parsing code in test_import_native_format()

and two minor tweaks to the code:

  • add a missing include in NativeFormat.cc
  • tweak a comment in OpenSourceImageRequest.cc

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test make check

@ajarr ajarr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Couple of questions.

Comment thread qa/workunits/rbd/cli_migration.sh Resolved
Comment thread qa/workunits/rbd/cli_migration.sh Resolved
Comment thread qa/workunits/rbd/cli_migration.sh Resolved
@idryomov

Copy link
Copy Markdown
Contributor

jenkins test windows

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test make check

@idryomov

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants