2025-11-05 15:55:44,966 - INFO - Domain Default found not creating
2025-11-05 15:55:45,135 - INFO - Project ctest-TestBasicPolicy-28710367 not found, creating it
2025-11-05 15:55:45,584 - INFO - Created Project:ctest-TestBasicPolicy-28710367, ID : 8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf
2025-11-05 15:55:47,151 - INFO - ================================================================================
2025-11-05 15:55:47,151 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 15:55:47,151 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-11-05 15:55:47,407 - WARNING - Test is running with cores: {'10.0.0.40': ['core.isc-loop-0003.72957.cn-jenkins-deploy-platform-ansible-os-4646-1.1762357600']}
2025-11-05 15:55:47,413 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.200': '0'}} with
2025-11-05 15:55:47,414 - INFO - Initial checks done. Running the testcase now
2025-11-05 15:55:47,414 - INFO -
2025-11-05 15:55:48,517 - DEBUG - Response for create_network : {'network': {'id': '55541c14-eb45-4931-b629-7cdd801397c3', 'name': 'ctest-vn-98186872', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-98186872'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:55:48,759 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5d86bae-df65-426b-a32b-125ff0c2131e', 'name': '', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'network_id': '55541c14-eb45-4931-b629-7cdd801397c3', 'ip_version': 4, 'cidr': '2.12.159.64/26', 'allocation_pools': [{'start': '2.12.159.66', 'end': '2.12.159.126'}], 'gateway_ip': '2.12.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.12.159.66', 'tags': [], 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf'}}
2025-11-05 15:55:48,779 - INFO - Created VN ctest-vn-98186872
2025-11-05 15:55:48,835 - DEBUG - VN ctest-vn-98186872 UUID is 55541c14-eb45-4931-b629-7cdd801397c3
2025-11-05 15:55:49,135 - DEBUG - Response for create_network : {'network': {'id': 'e8e135c4-80bd-4afd-84c6-e5e3883150b6', 'name': 'ctest-vn-12246759', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-12246759'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:55:49,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1b781b1-cd2a-49f5-aa42-5c0595b01124', 'name': '', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'network_id': 'e8e135c4-80bd-4afd-84c6-e5e3883150b6', 'ip_version': 4, 'cidr': '180.120.227.64/26', 'allocation_pools': [{'start': '180.120.227.66', 'end': '180.120.227.126'}], 'gateway_ip': '180.120.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.120.227.66', 'tags': [], 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf'}}
2025-11-05 15:55:49,309 - INFO - Created VN ctest-vn-12246759
2025-11-05 15:55:49,359 - DEBUG - VN ctest-vn-12246759 UUID is e8e135c4-80bd-4afd-84c6-e5e3883150b6
2025-11-05 15:55:49,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-11-05 15:55:49,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55541c14-eb45-4931-b629-7cdd801397c3', 'name': 'ctest-vn-98186872', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5d86bae-df65-426b-a32b-125ff0c2131e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-98186872'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368']], 'subnet_ipam': [{'subnet_cidr': '2.12.159.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:55:50,042 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8e135c4-80bd-4afd-84c6-e5e3883150b6', 'name': 'ctest-vn-12246759', 'tenant_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'project_id': '8d5b9c5d0a0a481b887d3ba9c9dd01bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1b781b1-cd2a-49f5-aa42-5c0595b01124'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-vn-12246759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368']], 'subnet_ipam': [{'subnet_cidr': '180.120.227.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:55:50,203 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-11-05 15:55:50,544 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-11-05 15:55:50,576 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75
2025-11-05 15:55:50,588 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf
2025-11-05 15:55:50,664 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3
2025-11-05 15:55:50,676 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3
2025-11-05 15:55:50,686 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f
2025-11-05 15:55:50,694 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f
2025-11-05 15:55:50,701 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a2fc9ea6-844c-48d5-8920-2aeec7a42941
2025-11-05 15:55:50,707 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 15:55:50,707 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3
2025-11-05 15:55:50,716 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f
2025-11-05 15:55:50,730 - INFO - Verified VN network id 10 for VN 55541c14-eb45-4931-b629-7cdd801397c3
2025-11-05 15:55:50,730 - INFO - Verifications in API Server for VN ctest-vn-98186872 passed
2025-11-05 15:55:50,731 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3
2025-11-05 15:55:50,739 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f
2025-11-05 15:55:50,745 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf92b9be-a4e4-43d1-b65d-53fc6795b61f
2025-11-05 15:55:50,751 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a2fc9ea6-844c-48d5-8920-2aeec7a42941
2025-11-05 15:55:50,763 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28710367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6148570267439679793', 'uuid-lslong': '13126159879726405571'}, 'enable': 'true', 'created': '2025-11-05T15:55:48', 'last-modified': '2025-11-05T15:55:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969437'}
2025-11-05 15:55:50,769 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 15:55:50,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98186872 passed
2025-11-05 15:55:50,769 - DEBUG - ====Verifying policy data for ctest-vn-98186872 in API_Server ======
2025-11-05 15:55:50,769 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-11-05 15:55:50,774 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75
2025-11-05 15:55:50,784 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf
2025-11-05 15:55:50,854 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/55541c14-eb45-4931-b629-7cdd801397c3
2025-11-05 15:55:50,863 - DEBUG - ==>Verifying data for policy with id: 86e6aab4-aa5f-4b6f-b2a1-0661b3d3c658, fqn: ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368']
2025-11-05 15:55:50,863 - INFO - VN ctest-vn-98186872 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 15:55:50,863 - DEBUG - Verifying the vn in opserver
2025-11-05 15:55:50,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872 virtual network link through opserver 10.0.0.40
2025-11-05 15:55:50,863 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-11-05 15:55:51,195 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-11-05 15:55:51,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872?flat'}
2025-11-05 15:55:51,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-98186872 is found in opserver
2025-11-05 15:55:51,264 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 15:55:51,269 - DEBUG - VRF ids for VN ctest-vn-98186872: {}
2025-11-05 15:55:51,269 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-11-05 15:55:51,274 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75
2025-11-05 15:55:51,285 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf
2025-11-05 15:55:51,357 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6
2025-11-05 15:55:51,369 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6
2025-11-05 15:55:51,378 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2
2025-11-05 15:55:51,385 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2
2025-11-05 15:55:51,392 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/3bc5d8af-c207-4206-951b-aea6354734d7
2025-11-05 15:55:51,398 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 15:55:51,398 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6
2025-11-05 15:55:51,409 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2
2025-11-05 15:55:51,423 - INFO - Verified VN network id 11 for VN e8e135c4-80bd-4afd-84c6-e5e3883150b6
2025-11-05 15:55:51,423 - INFO - Verifications in API Server for VN ctest-vn-12246759 passed
2025-11-05 15:55:51,423 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6
2025-11-05 15:55:51,432 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2
2025-11-05 15:55:51,438 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7caa9ad8-c289-4a8e-8cad-e6cdbc1eeda2
2025-11-05 15:55:51,444 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/3bc5d8af-c207-4206-951b-aea6354734d7
2025-11-05 15:55:51,457 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28710367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16780752804648930045', 'uuid-lslong': '9567587223800467638'}, 'enable': 'true', 'created': '2025-11-05T15:55:49', 'last-modified': '2025-11-05T15:55:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437683'}
2025-11-05 15:55:51,463 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 15:55:51,463 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12246759 passed
2025-11-05 15:55:51,463 - DEBUG - ====Verifying policy data for ctest-vn-12246759 in API_Server ======
2025-11-05 15:55:51,463 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-11-05 15:55:51,470 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75
2025-11-05 15:55:51,481 - DEBUG - Requesting: http://10.0.0.40:8082/project/8d5b9c5d-0a0a-481b-887d-3ba9c9dd01bf
2025-11-05 15:55:51,551 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e8e135c4-80bd-4afd-84c6-e5e3883150b6
2025-11-05 15:55:51,561 - DEBUG - ==>Verifying data for policy with id: 86e6aab4-aa5f-4b6f-b2a1-0661b3d3c658, fqn: ['default-domain', 'ctest-TestBasicPolicy-28710367', 'ctest-policy-allow-all-36828368']
2025-11-05 15:55:51,561 - INFO - VN ctest-vn-12246759 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 15:55:51,561 - DEBUG - Verifying the vn in opserver
2025-11-05 15:55:51,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759 virtual network link through opserver 10.0.0.40
2025-11-05 15:55:51,561 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-11-05 15:55:51,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759?flat'}
2025-11-05 15:55:51,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28710367:ctest-vn-12246759 is found in opserver
2025-11-05 15:55:51,581 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 15:55:51,585 - DEBUG - VRF ids for VN ctest-vn-12246759: {}
2025-11-05 15:55:51,644 - DEBUG - Services list from nova: [