tempest cleanup NotImplemented error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Low
|
Martin Kopec |
Bug Description
We hit NotImplemented error during initializing a saved state:
019-05-29 17:46:30 | + /usr/bin/tempest cleanup --init-saved-state
2019-05-29 17:46:38 | Traceback (most recent call last):
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | self.init(
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | self._init_state()
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | svc.run()
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | self.save_state()
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | pools = self.list()
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | pools = client.
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | return self.list_
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | resp, body = self.get(req_uri)
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | return self.request('GET', url, extra_headers, headers)
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | self._error_
2019-05-29 17:46:38 | File "/usr/lib/
2019-05-29 17:46:38 | message=message)
2019-05-29 17:46:38 | NotImplemented: Got NotImplemented error
We got the error when tempest cleanup wanted to list subnet pools available [1].
In order to assume that subnet pools api is available, subnet_allocation extension is expected to be present [2] in network-
Tempest cleanup doesn't check if the apis it calls in order to clean resources are enabled in the tempest.conf.
In my opinion it doesn't have to check explicitly the extension enabled, it would be enough if tempest cleanup caught NotImplemented exception, logged it and continued. If an api is not implemented, then there are no resources to clean so it can safely continue.
[1] https:/
[2] https:/
Changed in tempest: | |
assignee: | nobody → Martin Kopec (mkopec) |
Changed in tempest: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. opendev. org/664962
Review: https:/