-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
None
-
None
Test:
=================================== FAILURES ===================================
________________________ test_capacity_when_sku_updates ________________________
application = <iqe.base.application.Application object at 0x7f2d62e277d0>
tally_db_session = <sqlalchemy.orm.session.Session object at 0x7f2d627b1a30>
@pytest.mark.ephemeral_only
@pytest.mark.ephemeral
def test_capacity_when_sku_updates(application, tally_db_session):
"""Validate sku/offering update correctly updates the capacity number.
metadata:
assignee: nkathole
negative: false
bugzilla: SWATCH-1809
requirements: capacity
test_steps:
1. Create sku in account.
2. Sync capacity for account.
3. Update engineering ID on SKU/offering.
4. Sync capacity again for account.
5. Verify capacity updated as per engineering ID update.
expected_results:
1. After capacity re-sync capacity numbers and table updated correctly.
"""
application.rhsm_subscriptions.add_sku(
"RH00004", quantity=1, count=1, wait=True, product_id="RHEL for x86"
)
sku_query = "SELECT sku from sku_oid WHERE oid IN (76,71,479,69)"
res = tally_db_session.execute(sku_query)
result = [row for row in res]
rhel_skus = {row[0] for row in result}
try:
delete_query = "DELETE FROM sku_product_tag WHERE product_tag = 'RHEL for x86'"
tally_db_session.execute(delete_query)
application.rhsm_subscriptions.sync_capacity(wait=True)
assert not application.rhsm_subscriptions.get_skus_report(product_id="RHEL for x86")["data"]
finally:
for sku in rhel_skus:
application.rhsm_subscriptions.sync_offering(sku)
application.rhsm_subscriptions.sync_capacity(wait=True)
> assert application.rhsm_subscriptions.get_skus_report(product_id="RHEL for x86")["data"]
E assert []
Output:
tests/integration/swatch_tally/test_tally_database.py::test_capacity_when_sku_updates
-------------------------------- live log setup --------------------------------
2025-02-03 07:30:38 INFO select version()
2025-02-03 07:30:38 INFO [raw sql] {}
2025-02-03 07:30:38 INFO select current_schema()
2025-02-03 07:30:38 INFO [raw sql] {}
2025-02-03 07:30:38 INFO show standard_conforming_strings
2025-02-03 07:30:38 INFO [raw sql] {}
2025-02-03 07:30:38 INFO BEGIN (implicit)
-------------------------------- live log call ---------------------------------
2025-02-03 07:30:39 INFO Attaching subscription for org_id 17702867 with sku RH00004 ...
2025-02-03 07:30:39 INFO SKU attached completed... Activating SKU...
2025-02-03 07:30:39 INFO SKU activated successfully...
2025-02-03 07:30:40 INFO {
"ARCHITECTURE": "IA,IA64,X86,X86_64",
"CLOUD_ACCESS_ENABLED": "Y",
"DESCRIPTION": "Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)",
"DISCOUNTING_CATEGORY": "Subscriptions",
"DISCOUNTING_DETAIL": "RED HAT ENTERPRISE LINUX",
"DNR_FLAG": "N",
"DURATION": "1",
"ENABLED_CONSUMER_TYPE": "SAM",
"ENTITLEMENT_QTY": "1",
"INSTANCE_BASE_VIRT_MULTIPLIER": "2",
"LEVEL_1": "RHEL",
"LEVEL_2": "Server",
"LEVEL_3": "Null",
"MULTIPLE_BU": "N",
"OFFERING_CATEGORY": "SUBSCRIPTIONS",
"OFFERING_PROGRAM": "COMMERCIAL",
"OFFERING_TIER": "TIER_1",
"PLANNING_GROUP": "Server/Cloud Op System",
"PRIMARY_BUSINESS_UNIT": "Platform",
"PRIMARY_BUSINESS_UNIT_%": "100",
"PRODUCT_CATEGORY": "Subscriptions",
"PRODUCT_CODE": "0",
"PRODUCT_FAMILY": "RED HAT ENTERPRISE LINUX",
"PRODUCT_FAMILY_TYPE": "PHYSICAL SERVER",
"PRODUCT_FORCAST_GROUP": "RHEL/Satellite/CS-DS",
"PRODUCT_GROUP_DETAIL": "RHEL",
"PRODUCT_LINE": "RHEL",
"PRODUCT_NAME": "RHEL Server",
"PRODUCT_OPTION_CODE": "68",
"SERVICE_LEVEL": "L1-L3",
"SERVICE_TERM": "1 YEARS",
"SERVICE_TYPE": "Standard",
"SFDC_PRODUCT_UNIT_OF_MEASURE": "PHYSICAL NODE OR VIRTUAL NODE",
"SKU": "RH00004",
"SOCKET_LIMIT": "2",
"SPECIAL_PRICING_FLAG": "NONE",
"STACKABLE": "Y",
"UNIT_OF_MEASURE": "YEARS",
"USAGE": "Production",
"VIRT_LIMIT": "0"
}
2025-02-03 07:30:40 INFO {
"cores": null,
"description": "Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)",
"endDate": "2025-02-07T04:59:59",
"entitlement_quantity": "1",
"id": 14607220,
"quantity": 1,
"service_level": "Standard",
"sku": "RH00004",
"sockets": "2",
"startDate": "2024-02-07T05:00:00",
"subscriptionNumber": "14607377",
"usage": "Production"
}
2025-02-03 07:30:40 INFO Waiting for SKU addition completion ...
2025-02-03 07:30:40 INFO Trying countdown 30 ...
2025-02-03 07:30:46 INFO New skus found : Counter({'RH00004': 1})
2025-02-03 07:30:46 INFO {'sku': 'RH00004', 'quantity': 1, 'id': 14607220, 'startDate': '2024-02-07T05:00:00', 'endDate': '2025-02-07T04:59:59', 'subscriptionNumber': '14607377', 'service_level': 'Standard', 'usage': 'Production', 'description': 'Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)', 'cores': None, 'sockets': '2', 'entitlement_quantity': '1'}
2025-02-03 07:31:07 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/subscriptions/sync/org/17702867, status_code: 200
2025-02-03 07:31:07 INFO Trace log using : 00-867988adcf353947588adda23930e786-4bf01d0f943dfe9e-01
2025-02-03 07:31:07 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:07 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:07 INFO Waiting for capacity sync completion...
2025-02-03 07:31:07 INFO Trying countdown 29 ...
2025-02-03 07:31:12 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:12 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:12 INFO Waiting for capacity sync completion...
2025-02-03 07:31:12 INFO Trying countdown 28 ...
2025-02-03 07:31:17 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:17 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:17 INFO Waiting for capacity sync completion...
2025-02-03 07:31:17 INFO Trying countdown 27 ...
2025-02-03 07:31:22 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:22 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:22 INFO Waiting for capacity sync completion...
2025-02-03 07:31:22 INFO Trying countdown 26 ...
2025-02-03 07:31:27 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:27 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:27 INFO Waiting for capacity sync completion...
2025-02-03 07:31:27 INFO Trying countdown 25 ...
2025-02-03 07:31:32 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:32 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:32 INFO Waiting for capacity sync completion...
2025-02-03 07:31:32 INFO Trying countdown 24 ...
2025-02-03 07:31:37 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:37 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:37 INFO Waiting for capacity sync completion...
2025-02-03 07:31:37 INFO Trying countdown 23 ...
2025-02-03 07:31:42 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:42 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:42 INFO Waiting for capacity sync completion...
2025-02-03 07:31:42 INFO Trying countdown 22 ...
2025-02-03 07:31:47 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:47 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:47 INFO Waiting for capacity sync completion...
2025-02-03 07:31:47 INFO Trying countdown 21 ...
2025-02-03 07:31:52 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:52 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:52 INFO Waiting for capacity sync completion...
2025-02-03 07:31:52 INFO Trying countdown 20 ...
2025-02-03 07:31:57 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:31:57 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:31:57 INFO Waiting for capacity sync completion...
2025-02-03 07:31:57 INFO Trying countdown 19 ...
2025-02-03 07:32:02 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:02 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:02 INFO Waiting for capacity sync completion...
2025-02-03 07:32:02 INFO Trying countdown 18 ...
2025-02-03 07:32:07 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:07 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:07 INFO Waiting for capacity sync completion...
2025-02-03 07:32:07 INFO Trying countdown 17 ...
2025-02-03 07:32:12 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:12 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:12 INFO Waiting for capacity sync completion...
2025-02-03 07:32:12 INFO Trying countdown 16 ...
2025-02-03 07:32:17 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:17 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:17 INFO Waiting for capacity sync completion...
2025-02-03 07:32:17 INFO Trying countdown 15 ...
2025-02-03 07:32:22 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:22 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:22 INFO Waiting for capacity sync completion...
2025-02-03 07:32:22 INFO Trying countdown 14 ...
2025-02-03 07:32:27 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:27 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:27 INFO Waiting for capacity sync completion...
2025-02-03 07:32:27 INFO Trying countdown 13 ...
2025-02-03 07:32:32 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:32 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:32 INFO Waiting for capacity sync completion...
2025-02-03 07:32:32 INFO Trying countdown 12 ...
2025-02-03 07:32:37 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:37 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:37 INFO Waiting for capacity sync completion...
2025-02-03 07:32:37 INFO Trying countdown 11 ...
2025-02-03 07:32:42 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:42 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:42 INFO Waiting for capacity sync completion...
2025-02-03 07:32:42 INFO Trying countdown 10 ...
2025-02-03 07:32:47 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:47 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:47 INFO Waiting for capacity sync completion...
2025-02-03 07:32:47 INFO Trying countdown 9 ...
2025-02-03 07:32:52 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:52 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:52 INFO Waiting for capacity sync completion...
2025-02-03 07:32:52 INFO Trying countdown 8 ...
2025-02-03 07:32:58 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:32:58 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:32:58 INFO Waiting for capacity sync completion...
2025-02-03 07:32:58 INFO Trying countdown 7 ...
2025-02-03 07:33:03 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:33:03 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:33:03 INFO Waiting for capacity sync completion...
2025-02-03 07:33:03 INFO Trying countdown 6 ...
2025-02-03 07:33:08 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:33:08 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:33:08 INFO Waiting for capacity sync completion...
2025-02-03 07:33:08 INFO Trying countdown 5 ...
2025-02-03 07:33:13 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:33:13 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:33:13 INFO Waiting for capacity sync completion...
2025-02-03 07:33:13 INFO Trying countdown 4 ...
2025-02-03 07:33:18 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:33:18 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:33:18 INFO Waiting for capacity sync completion...
2025-02-03 07:33:18 INFO Trying countdown 3 ...
2025-02-03 07:33:23 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:33:23 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:33:23 INFO Waiting for capacity sync completion...
2025-02-03 07:33:23 INFO Trying countdown 2 ...
2025-02-03 07:33:28 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:33:28 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:33:28 INFO Waiting for capacity sync completion...
2025-02-03 07:33:28 INFO Trying countdown 1 ...
2025-02-03 07:33:33 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [] and x-rh-insights-request-id=None
2025-02-03 07:33:33 INFO Subscription with id 14607220 not found in RHEL for x86 subscription table.
2025-02-03 07:33:33 INFO SELECT sku from sku_oid WHERE oid IN (76,71,479,69)
2025-02-03 07:33:33 INFO [generated in 0.00032s] {}
2025-02-03 07:33:33 INFO DELETE FROM sku_product_tag WHERE product_tag = 'RHEL for x86'
2025-02-03 07:33:33 INFO [generated in 0.00026s] {}
2025-02-03 07:33:33 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:33:33 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:33:54 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/subscriptions/sync/org/17702867, status_code: 200
2025-02-03 07:33:54 INFO Trace log using : 00-95000566f26fa25466ec72bf3db9a9f0-b85f671b3802655a-01
2025-02-03 07:33:54 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:33:54 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:33:54 INFO Waiting for capacity sync completion...
2025-02-03 07:33:59 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:33:59 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:33:59 INFO Waiting for capacity sync completion...
2025-02-03 07:34:04 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:34:04 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:34:04 INFO Waiting for capacity sync completion...
2025-02-03 07:34:09 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:34:09 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:34:09 INFO Capacity Sync Finished!
2025-02-03 07:34:09 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:34:10 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00006F5, status_code: 200
2025-02-03 07:34:10 INFO Trace log using : 00-1f2e57ba85939a0f23c3912d47855cce-82c46b0d58ab3a5a-01
2025-02-03 07:34:10 INFO Offering RH00006F5 synced.
2025-02-03 07:34:11 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00772, status_code: 200
2025-02-03 07:34:11 INFO Trace log using : 00-e369ac4906aa62ef59650423500f494a-fa128b35cdcc6e7c-01
2025-02-03 07:34:11 INFO Offering RH00772 synced.
2025-02-03 07:34:12 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00007F5, status_code: 200
2025-02-03 07:34:12 INFO Trace log using : 00-832ee92cef2b6aa39b14d84b3e515cd3-f395184e7937e308-01
2025-02-03 07:34:12 INFO Offering RH00007F5 synced.
2025-02-03 07:34:13 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00004, status_code: 200
2025-02-03 07:34:13 INFO Trace log using : 00-80f2016f5e73d15f62cc26c972d433ec-f099771e6568d533-01
2025-02-03 07:34:13 INFO Offering RH00004 synced.
2025-02-03 07:34:14 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH02781HR, status_code: 200
2025-02-03 07:34:14 INFO Trace log using : 00-4b5e59a96442d31dfeb12028707e8532-87249c62d97e70f5-01
2025-02-03 07:34:14 INFO Offering RH02781HR synced.
2025-02-03 07:34:14 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00001, status_code: 200
2025-02-03 07:34:14 INFO Trace log using : 00-105c3011e8c0f5b82e81ef2cabb232fa-390a93ebe46c06cf-01
2025-02-03 07:34:14 INFO Offering RH00001 synced.
2025-02-03 07:34:15 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/MCT2735, status_code: 200
2025-02-03 07:34:15 INFO Trace log using : 00-a690ae7d05966266072378d338e09b3d-26fcc216fba0f27c-01
2025-02-03 07:34:15 INFO Offering MCT2735 synced.
2025-02-03 07:34:16 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00006, status_code: 200
2025-02-03 07:34:16 INFO Trace log using : 00-beeeb08021ec154e3eb03a41b5fd466d-b92ecfa34f0671cd-01
2025-02-03 07:34:16 INFO Offering RH00006 synced.
2025-02-03 07:34:17 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/MCT2863, status_code: 200
2025-02-03 07:34:17 INFO Trace log using : 00-98530101b0c431ccd2a05536ab2921fa-2d31a36e9c34b675-01
2025-02-03 07:34:17 INFO Offering MCT2863 synced.
2025-02-03 07:34:19 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00003, status_code: 200
2025-02-03 07:34:19 INFO Trace log using : 00-c44c5a0edccadd1e349fea344b4254c7-b5e8856d39a74f69-01
2025-02-03 07:34:19 INFO Offering RH00003 synced.
2025-02-03 07:34:19 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00002F3, status_code: 200
2025-02-03 07:34:19 INFO Trace log using : 00-6e4fa957d2f37061342d3b981fd4070b-61057f9e4edaa07d-01
2025-02-03 07:34:19 INFO Offering RH00002F3 synced.
2025-02-03 07:34:20 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00001F3, status_code: 200
2025-02-03 07:34:20 INFO Trace log using : 00-d543acd3e4883f27c60ef8f8a32fa591-2d27a90edebf2428-01
2025-02-03 07:34:20 INFO Offering RH00001F3 synced.
2025-02-03 07:34:21 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00004F3, status_code: 200
2025-02-03 07:34:21 INFO Trace log using : 00-d2c8563e4468246394d1fe90e4a85687-b924b91ce04f2e16-01
2025-02-03 07:34:21 INFO Offering RH00004F3 synced.
2025-02-03 07:34:22 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/MW01485, status_code: 200
2025-02-03 07:34:22 INFO Trace log using : 00-af91e402d18e8624daa4953ca1a4dd44-6fb03df7d9160e70-01
2025-02-03 07:34:22 INFO Offering MW01485 synced.
2025-02-03 07:34:23 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/MCT2862, status_code: 200
2025-02-03 07:34:23 INFO Trace log using : 00-c3c5150f569035942c289ec69399cd4b-f5c0940f84f25263-01
2025-02-03 07:34:23 INFO Offering MCT2862 synced.
2025-02-03 07:34:24 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00007F3, status_code: 200
2025-02-03 07:34:24 INFO Trace log using : 00-196a78bd22dd9d8f0e1dcb93a61dc1bc-4974c52d65c97008-01
2025-02-03 07:34:24 INFO Offering RH00007F3 synced.
2025-02-03 07:34:25 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00001F5, status_code: 200
2025-02-03 07:34:25 INFO Trace log using : 00-f8b3d30fc62fd5382986499a19675210-563b220af5c909b0-01
2025-02-03 07:34:25 INFO Offering RH00001F5 synced.
2025-02-03 07:34:26 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/MCT2736, status_code: 200
2025-02-03 07:34:26 INFO Trace log using : 00-65041b012a581da7f7dd6a6b511ee80d-142cee90ca68346a-01
2025-02-03 07:34:26 INFO Offering MCT2736 synced.
2025-02-03 07:34:27 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00005, status_code: 200
2025-02-03 07:34:27 INFO Trace log using : 00-840c06754493e3d17365a8d83ceebd96-a67fa5255a249aed-01
2025-02-03 07:34:27 INFO Offering RH00005 synced.
2025-02-03 07:34:28 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00006F3, status_code: 200
2025-02-03 07:34:28 INFO Trace log using : 00-e25be8956df18aeb5cf8cdfc31009b3e-fb7e9d8e7169cb66-01
2025-02-03 07:34:28 INFO Offering RH00006F3 synced.
2025-02-03 07:34:28 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00151, status_code: 200
2025-02-03 07:34:28 INFO Trace log using : 00-7c7efb87d0b8b376c2107d8d1398fce9-6057e4fa6e95accf-01
2025-02-03 07:34:28 INFO Offering RH00151 synced.
2025-02-03 07:34:29 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/MCT3263, status_code: 200
2025-02-03 07:34:29 INFO Trace log using : 00-d012dd7fa01be2806914c26c1ba21e62-70264a5ed55c569c-01
2025-02-03 07:34:29 INFO Offering MCT3263 synced.
2025-02-03 07:34:30 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH00002F5, status_code: 200
2025-02-03 07:34:30 INFO Trace log using : 00-f9d61666fc149c61286c0941b88f2a12-8d6f30bcb7a8383b-01
2025-02-03 07:34:30 INFO Offering RH00002F5 synced.
2025-02-03 07:34:31 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/rpc/offerings/sync/RH02985HR, status_code: 200
2025-02-03 07:34:31 INFO Trace log using : 00-0d9568df65d2ae97e0a9ba381ed54fe9-76c7e8ce1af41444-01
2025-02-03 07:34:31 INFO Offering RH02985HR synced.
2025-02-03 07:34:31 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:34:31 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:34:50 INFO PUT request response url: http://swatch-contracts-service:8000/api/swatch-contracts/internal/subscriptions/sync/org/17702867, status_code: 200
2025-02-03 07:34:50 INFO Trace log using : 00-a936867f26ebbbde0f340f7a8b1b5c02-3f705c3220b674d7-01
2025-02-03 07:34:50 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:34:50 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:34:50 INFO Waiting for capacity sync completion...
2025-02-03 07:34:55 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:34:55 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:34:55 INFO Waiting for capacity sync completion...
2025-02-03 07:35:00 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:35:00 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:35:00 INFO Waiting for capacity sync completion...
2025-02-03 07:35:05 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
2025-02-03 07:35:05 INFO Total capacity for all SKUs in RHEL for x86 subscription table : {'Sockets': 0}
2025-02-03 07:35:05 INFO Capacity Sync Finished!
2025-02-03 07:35:05 INFO REST: GET http://swatch-api-service.ephemeral-6nidgv.svc:8000/api/rhsm-subscriptions/v2/subscriptions/products/RHEL%20for%20x86 with query params [('sort', 'next_event_date'), ('limit', 100), ('offset', 0)] and x-rh-insights-request-id=None
FAILED [ 79%]BC {'webdriver': 'Remote', 'webdriver_options': {'desired_capabilities': {'goog:loggingPrefs': {'browser': 'INFO', 'performance': 'ALL'}, 'acceptInsecureCerts': True, 'browserName': 'chrome'}}}
I think the problem is that the swatch-contracts tries to find the just generated subscription using the search API which has not been mocked for and hence fails.
- is related to
-
SWATCH-4407 Evaluate or fix test_capacity_e2e.py::test_validate_capacity_with_multiple_sku
-
- Backlog
-
- relates to
-
SWATCH-3330 Fix test "test_capacity_when_sku_updates"
-
- Closed
-
- mentioned on