camp-assembly-func-tests-not-clearing-image-table

Bug #1534183 reported by Devdatta Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
New
Medium
Ashish

Bug Description

CAMP related assembly functional tests are not deleting DU image records from the image table after test completion.

Way to reproduce:

1) Do functionaltest setup outlined here: https://wiki.openstack.org/wiki/Solum/Testing

2) Run tests:
     nosetests --tests functionaltests.api.camp.v1_1.test_assemblies

3) After tests finish, login to mysql database and query the image table.
     % mysql
     % use solum;
     % select * from image;

You should see the following:

mysql> select * from image;
+-----+--------------------------------------+---------------------+------------+-----------------------+-------------+-------------------------------------+----------------------------------+----------------------------------+------+--------+---------------+------------------+--------------+-------------------+---------------+--------------+-------------------+
| id | uuid | created_at | updated_at | name | description | source_uri | project_id | user_id | tags | status | base_image_id | created_image_id | image_format | source_format | artifact_type | external_ref | docker_image_name |
+-----+--------------------------------------+---------------------+------------+-----------------------+-------------+-------------------------------------+----------------------------------+----------------------------------+------+--------+---------------+------------------+--------------+-------------------+---------------+--------------+-------------------+
| 179 | 891272eb-71f9-4a16-ba96-1f743d7ff3f7 | 2016-01-14 14:30:09 | NULL | train spotter service | NULL | https://sporgil.com/git/spotter.git | 5be7e6fa92dd4bdfa863afbd289e7967 | d45fc73f313a44338372e401a97229fa | NULL | QUEUED | python | NULL | docker | org.python:python | NULL | NULL | NULL |
| 180 | fcb21226-690a-4371-830d-57db1df85044 | 2016-01-14 14:30:15 | NULL | train spotter service | NULL | https://sporgil.com/git/spotter.git | 5be7e6fa92dd4bdfa863afbd289e7967 | d45fc73f313a44338372e401a97229fa | NULL | QUEUED | python | NULL | docker | org.python:python | NULL | NULL | NULL |
+-----+--------------------------------------+---------------------+------------+-----------------------+-------------+-------------------------------------+----------------------------------+----------------------------------+------+--------+---------------+------------------+--------------+-------------------+---------------+--------------+-------------------+

We should ensure that these records get deleted upon completion of the tests.

The way to do this is to check fix it in assembly delete code path in:

https://github.com/openstack/solum/blob/master/solum/api/controllers/camp/v1_1/assemblies.py

description: updated
Ashish (ashish-jain14)
Changed in solum:
assignee: nobody → Ashish (ashish-jain14)
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.