Service Fixture in Unit Tests Does not Stop Service

Bug #1411717 reported by Ron Rickard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Medium
Kiall Mac Innes

Bug Description

The Service Fixture in unit tests is not actually stopping the service. An exception is being thrown (and ignored) in the code. We are calling the Service.kill method but there is no kill method. There is a stop method.

Kiall Mac Innes (kiall)
Changed in designate:
status: New → Triaged
milestone: none → kilo-2
assignee: nobody → Kiall Mac Innes (kiall)
importance: Undecided → High
importance: High → Medium
Ron Rickard (rjrjr)
Changed in designate:
milestone: kilo-2 → kilo-3
Kiall Mac Innes (kiall)
Changed in designate:
milestone: kilo-3 → kilo-rc1
Changed in designate:
assignee: Kiall Mac Innes (kiall) → Endre Karlson (endre-karlson)
Kiall Mac Innes (kiall)
Changed in designate:
milestone: kilo-rc1 → liberty-1
Thierry Carrez (ttx)
Changed in designate:
milestone: liberty-1 → liberty-2
Kiall Mac Innes (kiall)
Changed in designate:
milestone: liberty-2 → liberty-3
Kiall Mac Innes (kiall)
Changed in designate:
milestone: liberty-3 → liberty-rc1
Kiall Mac Innes (kiall)
Changed in designate:
milestone: liberty-rc1 → none
Changed in designate:
assignee: Endre Karlson (endre-karlson) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.openstack.org/300513

Changed in designate:
assignee: nobody → Eric Larson (eric-larson)
status: Triaged → In Progress
Revision history for this message
Eric Larson (eric-larson) wrote :

This breaks the tests pretty badly. I'm guessing that now the actual service is stopped, that other tests actually needed it up everything fails.

Changed in designate:
assignee: Eric Larson (eric-larson) → Kiall Mac Innes (kiall)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/300513
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=ed51f49a90fe9884de1ecd60ea490407b8f5d145
Submitter: Jenkins
Branch: master

commit ed51f49a90fe9884de1ecd60ea490407b8f5d145
Author: Kiall Mac Innes <email address hidden>
Date: Mon May 16 13:26:18 2016 +0100

    Ensure services shutdown during unit testing

    * Use stop() instead of kill() in Service fixture.
    * Add reset() methods to each rpcapi, and call them after
      shutting down services, allowing for the above to work.

    Change-Id: I90a1d9c40fc7f60864cfbfc7c9e47429405bc32c
    Closes-Bug: 1411717

Changed in designate:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/designate 3.0.0.0b1

This issue was fixed in the openstack/designate 3.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.