rootwrap daemon does not work properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.rootwrap |
Fix Released
|
Medium
|
xianchaobo |
Bug Description
When use rootwrap daemon mode, and it will fail to run command in the following case:
(1)Use daemon to run a command CMDA which does not install on the host. It will fail and raise an exception:
Unserializable message: ('#ERROR', FilterMatchNotE
(2)Then install CMDA on the host, and try to run command again through daemon(DO NOT restart daemon). It still fails and raise the same exception. --- I think this is not what we expect
I try to find what's wrong and find there is a BUG in the code:
https:/
I think we do not need this line `self.real_exec = ""`
When first time to run cmd, real_exec is None.
And if we do not install the cmd on the host, it will be an empty string.
Then we install cmd on the host and run cmd again. It will return the empty string, because empty string is not None. Then it will not to check the cmd on the host forever.
description: | updated |
description: | updated |
Changed in oslo.rootwrap: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/431516
Review: https:/