Reviewed: https://review.opendev.org/c/openstack/nova/+/852795 Committed: https://opendev.org/openstack/nova/commit/f996674c36fe1a109853d88113e27b44a7a5cf45 Submitter: "Zuul (22348)" Branch: master
commit f996674c36fe1a109853d88113e27b44a7a5cf45 Author: melanie witt <email address hidden> Date: Wed Aug 10 23:22:47 2022 +0000
Fix exception catch when volume mount fails
When we call nova.privsep.fs.mount(), we are catching ProcessExecutionError() (an instance of a class) and that is not allowed in python3.
This changes the except statement to catch ProcessExecutionError (class) instead.
Closes-Bug: #1984736
Change-Id: I24a269f9809063f864a4f0443d6724dfa8703d9d
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /852795 /opendev. org/openstack/ nova/commit/ f996674c36fe1a1 09853d88113e27b 44a7a5cf45
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f996674c36fe1a1 09853d88113e27b 44a7a5cf45
Author: melanie witt <email address hidden>
Date: Wed Aug 10 23:22:47 2022 +0000
Fix exception catch when volume mount fails
When we call nova.privsep. fs.mount( ), we are catching utionError( ) (an instance of a class) and that is not allowed
ProcessExec
in python3.
This changes the except statement to catch ProcessExecutio nError
(class) instead.
Closes-Bug: #1984736
Change-Id: I24a269f9809063 f864a4f0443d672 4dfa8703d9d