Skip to content

nautilus: qa/upgrade: disable update_features test_notify with older client as lockowner - #41513

Merged
idryomov merged 1 commit into
ceph:nautilusfrom
ideepika:wip-49592-upgrade-nautilus
Jun 1, 2021
Merged

idryomov merged 1 commit into
ceph:nautilusfrom
ideepika:wip-49592-upgrade-nautilus

Conversation

@ideepika

Copy link
Copy Markdown
Member

with the recent support for async rbd operations from pacific+ when an
older client(non async support) goes on upgrade, and simultaneously
interacts with a newer client which expects the requests to be async,
experiences hang; considering the return code for request completion to
be acknowledgement for async request, which then keeps waiting for
another acknowledgement of request completion.

this if happens should be a rare only when lockowner is an old client
and should be deferred if compatibility issues arises.

related to: 5412304(octopus)

Signed-off-by: Deepika Upadhyay [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@github-actions github-actions Bot added this to the nautilus milestone May 24, 2021
@ideepika
ideepika force-pushed the wip-49592-upgrade-nautilus branch from 3eaccef to c2425b4 Compare May 26, 2021 15:00
@ideepika
ideepika marked this pull request as ready for review May 26, 2021 15:10
@ideepika
ideepika requested review from idryomov, trociny and yuriw May 26, 2021 15:11

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 can't understand why these changes are here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@trociny the src/test/librbd/test_notify.py script is picked from branch specified in these workunits, in order to pick : https://github.com/ceph/ceph/pull/41514/files#diff-ac8940c0fdcd92dc4a7129f21a53e256a84e9d8245710d18cd0bd0e197b69e43R148 we can either backport it to stable branches or keep picking this script from master as well, since nothing has changed in the script from nautilus.

But since in future we might want to get rid of this check, I saw backport option to branches better.

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 would prefer if we backported the change to the script to all necessary stable branches.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

will do, spilted the change and added commit about it, thanks!

@ideepika
ideepika force-pushed the wip-49592-upgrade-nautilus branch from c2425b4 to 0685716 Compare May 26, 2021 19:26
@trociny

trociny commented May 27, 2021

Copy link
Copy Markdown
Contributor

@ideepika Sorry, I am still confused. I don't understand why do we need this second commit? Why do we need to change the branches in the upgrade scenario? I though we would just backport the changes to the notify script #41514 into all stable branches we need so it would respect RBD_DISABLE_UPDATE_FEATURES added in the first commit.

Am I missing something?

@ideepika

ideepika commented May 27, 2021 •

Copy link
Copy Markdown
Member Author

@ideepika Sorry, I am still confused. I don't understand why do we need this second commit? Why do we need to change the branches in the upgrade scenario? I though we would just backport the changes to the notify script #41514 into all stable branches we need so it would respect RBD_DISABLE_UPDATE_FEATURES added in the first commit.

Am I missing something?

no worries, sure, I can explain :)
the code:

workunit:
  branch: nautilus

is responsible for creating a clone in our client node by git cloning the branch
specified, in this case it will pull latest tip of nautilus, the test_notify.py
code of which we use to run our tests(different from the branch we install
packages of).

/home/ubuntu/cephtest/clone.client.1/qa/workunits/rbd/../../../src/test/librbd/test_notify.py slave

(excerpt from
http://qa-proxy.ceph.com/teuthology/ideepika-2021-05-20_15:23:22-upgrade-clients:client-upgrade-octopus-pacific-wip-rbd-upgrade-distro-basic-smithi/6125255/teuthology.log
)

right now, we pull master, octopus, nautilus any branch since the script
test_notify.py remains same in all(no problem), but the changes:
#41514 we intend only to be used for nautilus,octopus ->
pacific upgrades specifically, it is better to have
#41514 backported in nautilus,octopus; this way
we can make sure all scripts like src/test/librbd/test_notify.py are being
pulled from their stable branch and not the master or other branches, which might diverge.
In our case we might want to remove RBD_DISABLE_UPDATE_FEATURES in
pacific-> quincy upgrade tests(update test_notify.py for pacific/master), which will break octopus again since it's
cloning from pacific/master if we had:
https://github.com/ceph/ceph/pull/41511/files#diff-f289762fd9e67a6b6ae1b1671a80eb854c209c6f11d5d6d4426252dd7deb12a0L12
instead of using clone of octopus, in which src/test/librbd/test_notify.py
will remain disabled.
Now that I think of we might not even need: #41514 in master but only in octopus, nautilus if we have this change.

Let me know your thoughts, thanks!

@trociny

trociny commented May 27, 2021

Copy link
Copy Markdown
Contributor

I still can't understand why we can't just backport #41514 to all stable branches and set RBD_DISABLE_UPDATE_FEATURES where we need. So why do we need to change the branches to the old ones, as you do in the second commit?

The initial idea of the test (as I understand) was to run the test script from the same branch the client is upgraded to. And it makes sense to me. Now you want to change this to run the script from the old (nautilus) branch for a new librbd client. Although it will work it looks confusing and it might be wrong in the future, if a new feature is added, and the test for this feature is added in a new script but we use the old branch for the test so will not learn how the new feature interacts with the old client.

@ideepika
ideepika force-pushed the wip-49592-upgrade-nautilus branch from 0685716 to 229d7bf Compare May 27, 2021 14:57
@ideepika

Copy link
Copy Markdown
Member Author

I still can't understand why we can't just backport #41514 to all stable branches and set RBD_DISABLE_UPDATE_FEATURES where we need. So why do we need to change the branches to the old ones, as you do in the second commit?

The initial idea of the test (as I understand) was to run the test script from the same branch the client is upgraded to. And it makes sense to me. Now you want to change this to run the script from the old (nautilus) branch for a new librbd client. Although it will work it looks confusing and it might be wrong in the future, if a new feature is added, and the test for this feature is added in a new script but we use the old branch for the test so will not learn how the new feature interacts with the old client.

aah, I see your point now, it makes sense now why we are using octopus and pacific branch clones, removed 2nd commit, thanks @trociny!

@idryomov idryomov 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.

Pending the cherry-pick of #41514.

@ideepika

Copy link
Copy Markdown
Member Author

Pending the cherry-pick of #41514.

@idryomov done, thanks!

@ideepika

Copy link
Copy Markdown
Member Author

Pending the cherry-pick of #41514.

@idryomov done

@idryomov

idryomov commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

jenkins test make check

@idryomov

idryomov commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

I thought the hang appeared when notify_slave.sh got executed on upgraded librbd (i.e. one from pacific or master) against librbd from nautilus or octopus. At least that seems to be the configuration being disabled in #41511. However this PR seems to disable a different configuration: notify_slave.sh getting executed on non-upgraded librbd.

Which one is correct? Or am I misreading the yaml?

@ideepika
ideepika force-pushed the wip-49592-upgrade-nautilus branch from e6ad6d4 to 9f7ade4 Compare June 1, 2021 11:15
@ideepika

ideepika commented Jun 1, 2021

Copy link
Copy Markdown
Member Author

I thought the hang appeared when notify_slave.sh got executed on upgraded librbd (i.e. one from pacific or master) against librbd from nautilus or octopus. At least that seems to be the configuration being disabled in #41511. However this PR seems to disable a different configuration: notify_slave.sh getting executed on non-upgraded librbd.

Which one is correct? Or am I misreading the yaml?

Did a quick testing, you were right, I missed testing things for nautilus, but did verify now: http://qa-proxy.ceph.com/teuthology/ideepika-2021-06-01_10:33:20-upgrade-clients:client-upgrade-nautilus-pacific-wip-49592-upgrade-distro-basic-smithi/6145037/teuthology.log

@idryomov

idryomov commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

OK, so then I don't understand why the test change (i.e. "qa/upgrade: conditionally disable update_features tests" commit) needed to be cherry-picked to nautilus and octopus. I was going by your conversation with Mykola in #41514 without having a clear picture in my head but now that you confirmed the offending configuration, here is what I think should happen:

  • "qa/upgrade: conditionally disable update_features tests" should be removed from nautilus and octopus PRs and instead be cherry-picked to pacific, because pacific (and master) is where it is actually needed
  • nautilus and octopus PRs should be used sort out the workunit branch mess. Because client.1 gets upgraded to pacific, its workunit should also be pulled from pacific, not octopus:
tasks:
- parallel:
  - workunit:
      branch: nautilus
      clients:
        client.0:
          - rbd/notify_master.sh
      env:
        RBD_FEATURES: "61"
  - workunit:
      branch: pacific       <--------------
      clients:
        client.1:
          - rbd/notify_slave.sh
      env:
        RBD_FEATURES: "61"
        RBD_DISABLE_UPDATE_FEATURES: "1"
- print: "**** done rbd: old librbd -> new librbd"
- parallel:
  - workunit:
      branch: nautilus
      clients:
        client.0:
          - rbd/notify_slave.sh
      env:
        RBD_FEATURES: "61"
  - workunit:
      branch: pacific
      clients:
        client.1:
          - rbd/notify_master.sh
      env:
        RBD_FEATURES: "61"
- print: "**** done rbd: new librbd -> old librbd"

@trociny

trociny commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

OK, so then I don't understand why the test change (i.e. "qa/upgrade: conditionally disable update_features tests" commit) needed to be cherry-picked to nautilus and octopus.

Indeed. I think I was confused by seeing the variable was used for a stable branch.

@ideepika
ideepika force-pushed the wip-49592-upgrade-nautilus branch from 9f7ade4 to a564611 Compare June 1, 2021 14:29
@ideepika

ideepika commented Jun 1, 2021

Copy link
Copy Markdown
Member Author

OK, so then I don't understand why the test change (i.e. "qa/upgrade: conditionally disable update_features tests" commit) needed to be cherry-picked to nautilus and octopus. I was going by your conversation with Mykola in #41514 without having a clear picture in my head but now that you confirmed the offending configuration, here is what I think should happen:

  • "qa/upgrade: conditionally disable update_features tests" should be removed from nautilus and octopus PRs and instead be cherry-picked to pacific, because pacific (and master) is where it is actually needed
  • nautilus and octopus PRs should be used sort out the workunit branch mess. Because client.1 gets upgraded to pacific, its workunit should also be pulled from pacific, not octopus:
tasks:
- parallel:
  - workunit:
      branch: nautilus
      clients:
        client.0:
          - rbd/notify_master.sh
      env:
        RBD_FEATURES: "61"
  - workunit:
      branch: pacific       <--------------
      clients:
        client.1:
          - rbd/notify_slave.sh
      env:
        RBD_FEATURES: "61"
        RBD_DISABLE_UPDATE_FEATURES: "1"
- print: "**** done rbd: old librbd -> new librbd"
- parallel:
  - workunit:
      branch: nautilus
      clients:
        client.0:
          - rbd/notify_slave.sh
      env:
        RBD_FEATURES: "61"
  - workunit:
      branch: pacific
      clients:
        client.1:
          - rbd/notify_master.sh
      env:
        RBD_FEATURES: "61"
- print: "**** done rbd: new librbd -> old librbd"

makes sense, thanks for reviewing! addressed branch comment for:
nautilus: a564611
octopus: 8b452ff
pacific backport: #41629

@idryomov

idryomov commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

I'd make it a single commit.

…client as lockowner

* with the recent support for async rbd operations from pacific+ when an
 older client(non async support) goes on upgrade, and simultaneously
 interacts with a newer client which expects the requests to be async,
 experiences hang; considering the return code for request completion to
 be acknowledgement for async request, which then keeps waiting for
 another acknowledgement of request completion.

 this if happens should be a rare only when lockowner is an old client
 and should be deferred if compatibility issues arises.

* amend upgrade test workunits to use respective stable branches

Signed-off-by: Deepika Upadhyay <[email protected]>
@ideepika
ideepika force-pushed the wip-49592-upgrade-nautilus branch from a564611 to b0fa231 Compare June 1, 2021 15:56
@ideepika

ideepika commented Jun 1, 2021

Copy link
Copy Markdown
Member Author

I'd make it a single commit.

fixed, thanks!

@yuriw

yuriw commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

this has to be tested on pacific as:

CEPH_BRANCH=pacific; MACHINE_NAME=smithi; teuthology-suite -v -c $CEPH_BRANCH -n 100 -m $MACHINE_NAME -s upgrade-clients/client-upgrade-nautilus-pacific -k distro -e $CEPH_QA_EMAIL --suite-branch nautilus -p 60 --force-priority

@yuriw yuriw added the nautilus-batch-1 nautilus point releases label Jun 1, 2021
@idryomov

idryomov commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

@idryomov
idryomov merged commit 97bd8b3 into ceph:nautilus Jun 1, 2021
tchaikov added a commit to tchaikov/ceph that referenced this pull request Oct 20, 2026
respawn() execs /proc/self/exe rather than the path it points to, so
that it works after the executable is unlinked. Replacing the binary
unlinks it too, so after an upgrade the re-exec runs the old image
against libceph-common.so and the rest as replaced on disk: either a
symbol lookup error, as in ceph#41513, or old code on new libraries. execv()
keeps the pid, so the service manager sees nothing.

Exec the path instead, less the " (deleted)" marker the kernel appends.
If nothing is there any more, because the binary was removed rather than
replaced, execv() fails and respawn() reports it like any other exec
failure.

The daemon therefore adopts a new binary without an operator-initiated
restart. It has to exec something and the alternative is an image whose
libraries are gone, so that is the lesser evil. Exiting and leaving the
restart to the service manager would be the deeper fix, but not for
deployments without one.

mon, mgr and mds each had a copy of the decision, so it now sits next to
unblock_all_signals(), which the same three use.

Fixes: https://tracker.ceph.com/issues/81856
Related-to: https://tracker.ceph.com/issues/41513
Signed-off-by: Kefu Chai <[email protected]>
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.

4 participants