SatelliteQE / robottelo

Robottelo is a test suite that exercises The Foreman.
GNU General Public License v3.0
61 stars 112 forks source link

[6.5] Sync plan tests failing due to inability to find corresponding pulp tasks #6511

Closed abalakh closed 5 years ago

abalakh commented 5 years ago

At least 11 API/CLI/UI sync plan tests are failing with the same message

nailgun.entities.APIResponseError: Pulp task with repo_id ee85df7e-d330-4b58-a9d1-b63f0adcba1d not found

Which basically means pulp task for syncing product which should've been triggered by sync plan wasn't found. It may mean there was some change in pulp and different search query should be used, some bug in pulp or sync plans, or maybe smth else.

abalakh commented 5 years ago

@san7ket could you please take a look at this issue since you originally wrote mentioned pulp verifications (#6111) and definitely know better how they should work? 🙂

omkarkhatavkar commented 5 years ago

@san7ket @abalakh As per satellite 6.5 feature we have moved all sync plan from pulp to katello itself. you won't be able to see the status in the pulp for sync plans. (https://github.com/Katello/katello/pull/7625). We have to change the code to fetch from foreman task instead of connecting to the pulp to get the status.

vijay8451 commented 5 years ago

looks, these are failing because of Sync plan Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1655595

vijay8451 commented 5 years ago

API still working for pulp:

2018-12-03 18:24:06 - nailgun.client - DEBUG - Making HTTP POST request to https://satellite.example.com/pulp/api/v2/tasks/search/ with options {'auth': ('admin', 'xxxxxxxxxxxxxxxxxxxxxxx'), 'verify': False, 'headers': {'content-type': 'application/json'}, 'data': '{"criteria": {"filters": {"tags": {"$in": ["pulp:repository:28d01067-7be9-4bf7-a764-862be8629bb0"]}, "task_type": {"$in": ["pulp.server.managers.repo.sync.sync"]}}}}'}, no params and no data. 2018-12-03 18:24:08 - nailgun.client - DEBUG - Received HTTP 200 response: [{"exception": null, "task_type": "pulp.server.managers.repo.sync.sync", "_href": "/pulp/api/v2/tasks/9dd3c05e-fd08-441a-8564-75a353a05f41/", "task_id": "9dd3c05e-fd08-441a-8564-75a353a05f41", "tags": ["pulp:repository:28d01067-7be9-4bf7-a764-862be8629bb0", "pulp:action:sync"], "finish_time": null, "_ns": "task_status", "start_time": "2018-12-03T12:54:06Z", "traceback": null, "spawned_tasks": [], "progress_report": {"yum_importer": {"content": {"items_total": 0, "state": "NOT_STARTED", "error_details": [], "details": {"rpm_total": 0, "rpm_done": 0, "drpm_total": 0, "drpm_done": 0}, "size_total": 0, "size_left": 0, "items_left": 0}, "comps": {"state": "NOT_STARTED"}, "purge_duplicates": {"state": "NOT_STARTED"}, "distribution": {"items_total": 0, "state": "NOT_STARTED", "error_details": [], "items_left": 0}, "modules": {"state": "NOT_STARTED"}, "errata": {"state": "NOT_STARTED"}, "metadata": {"state": "NOT_STARTED"}}}, "state": "running", "worker_name": "reserved_resource_worker-4@satellite.example.com", "result": null, "error": null, "_id": {"$oid": "5c05276eba82a05a06f0dc95"}, "id": "5c05276eba82a05a06f0dc95"}]

san7ket commented 5 years ago

@vijay8451 can we please skip all the tests with the bug id

vijay8451 commented 5 years ago

@san7ket it's there now