Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-162918: DM-MP - incorrect number of paths during failover and recovery #255

Closed
wants to merge 1 commit into from

Conversation

kostaslambda
Copy link
Contributor

There is a bug in dm-multipath that does not make use of the value supplied
to dev_loss_tmo; it is always set to 'infinity'. Explicitly setting
no_path_retry to 'defaults' overcomes that bug and makes use of the value
supplied.

Signed-off-by: Kostas Ladopoulos konstantinos.ladopoulos@citrix.com

@coveralls
Copy link

Coverage Status

Coverage remained the same at 31.66% when pulling f1069bc on kostaslamda:CA-162918 into 08d4951 on xapi-project:master.

@germanop
Copy link
Contributor

I am not sure it is a bug, it could be by design: when you set it explicitly to 0 or to "fail" it is internally set to -1.
When it is not set, it is set internally to 0.
So, an explicit 0 is not like letting multipath set itself to 0.

That's said, if we want our dev_loss to be accepted, I agree that this is needed.
I would rephrase to commit message, though, removing "bug" and "setting to 'defaults' ".
The latter should be, "setting it explicitly to 0 in the defaults section"

@germanop
Copy link
Contributor

For completeness we should put no_path_retry in the NETAPP section, too

@robertbreker
Copy link
Contributor

Shouldn't the NetApp device entry just inherit the default?

@germanop
Copy link
Contributor

Yes, but this is true for dev_loss, too, so, given they are coupled, it is either both or none

@coveralls
Copy link

Coverage Status

Coverage remained the same at 31.66% when pulling f0bc9ac on kostaslamda:CA-162918 into 08d4951 on xapi-project:master.

@germanop
Copy link
Contributor

Make sure the title reflects just the bug to fix not the consequences in our testing. However,
you can add a section in the description explaining that but remember the problem arose
because of other things, too, like our devscan removing the paths..

Title should be less than 72 chars

dm-multipath does not make use of the value supplied to dev_loss_tmo
(it is always set to 'infinity'), unless no_path_retry is also set.
Setting no_path_retry to 0 in the defaults section and also in the NETAPP
specific configuration.

Signed-off-by: Kostas Ladopoulos <konstantinos.ladopoulos@citrix.com>
@coveralls
Copy link

Coverage Status

Coverage remained the same at 31.66% when pulling f59a67b on kostaslamda:CA-162918 into 08d4951 on xapi-project:master.

@germanop germanop closed this in b193811 Sep 25, 2015
andrey-podko pushed a commit to andrey-podko/sm that referenced this pull request Aug 16, 2022
dm-multipath does not make use of the value supplied to dev_loss_tmo
(it is always set to 'infinity'), unless no_path_retry is also set.
Setting no_path_retry to 0 in the defaults section and also in the NETAPP
specific configuration.

Reviewed-by: Germano Percossi <germano.percossi@citrix.com>

GitHub: closes xapi-project#255
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.

None yet

4 participants