ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option 77/24877/1
authorchenjiankun <chenjiankun1@huawei.com>
Fri, 25 Nov 2016 02:57:50 +0000 (02:57 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Fri, 25 Nov 2016 02:59:55 +0000 (02:59 +0000)
commite5b312fc2d09346c75be9e0df2aa9eb20ee4529f
tree10ee9bcfb27cd966b01af93d7afbfc2e3df2cf23
parent450c047a8812d3d9e772f26a2faeb17acef3e90a
ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option

JIRA: YARDSTICK-216

When I call YardstickCLI  in flask, it will always encounter a
ArgsAlreadyParsedError if the API run test case more than two times.

In YardstickCLI, if I just call CONF.clear(), it will occur another
error due to other opts not unregister. I don’t know if the problem
is on the oslo.config side.

I solve the problem by unregister the opts.

Change-Id: Ic898c8d62625785ceb793c75e8210ac354ac63bf
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
yardstick/cmd/cli.py