2025-10-21 11:55:57,350 - INFO - Domain Default found not creating
2025-10-21 11:55:57,503 - INFO - Project ctest-TestBasicPolicy-85586771 not found, creating it
2025-10-21 11:55:57,947 - INFO - Created Project:ctest-TestBasicPolicy-85586771, ID : e25c3774-f54b-4ab0-bd6a-0c50d6828dbc
2025-10-21 11:55:59,346 - INFO - ================================================================================
2025-10-21 11:55:59,346 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 11:55:59,346 - 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-10-21 11:55:59,608 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-21 11:55:59,608 - INFO - Initial checks done. Running the testcase now
2025-10-21 11:55:59,608 - INFO -
2025-10-21 11:56:00,284 - DEBUG - Response for create_network : {'network': {'id': '5c9cc91e-f348-4994-9cf5-9bd353075e86', 'name': 'ctest-vn-94225458', 'tenant_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'project_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-vn-94225458'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 11:56:00,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '6042a78a-100c-4542-b308-b437104341f4', 'name': '', 'tenant_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'network_id': '5c9cc91e-f348-4994-9cf5-9bd353075e86', 'ip_version': 4, 'cidr': '117.105.107.128/26', 'allocation_pools': [{'start': '117.105.107.130', 'end': '117.105.107.190'}], 'gateway_ip': '117.105.107.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.105.107.130', 'tags': [], 'project_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc'}}
2025-10-21 11:56:00,614 - INFO - Created VN ctest-vn-94225458
2025-10-21 11:56:00,674 - DEBUG - VN ctest-vn-94225458 UUID is 5c9cc91e-f348-4994-9cf5-9bd353075e86
2025-10-21 11:56:00,996 - DEBUG - Response for create_network : {'network': {'id': 'd8f1104a-2578-4058-9a1a-a5457cfc7e8b', 'name': 'ctest-vn-84569688', 'tenant_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'project_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-vn-84569688'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 11:56:01,221 - DEBUG - Response for create_subnet : {'subnet': {'id': '8610dbdf-d164-46bb-beee-3792661d9665', 'name': '', 'tenant_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'network_id': 'd8f1104a-2578-4058-9a1a-a5457cfc7e8b', 'ip_version': 4, 'cidr': '192.171.89.128/26', 'allocation_pools': [{'start': '192.171.89.130', 'end': '192.171.89.190'}], 'gateway_ip': '192.171.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.171.89.130', 'tags': [], 'project_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc'}}
2025-10-21 11:56:01,238 - INFO - Created VN ctest-vn-84569688
2025-10-21 11:56:01,290 - DEBUG - VN ctest-vn-84569688 UUID is d8f1104a-2578-4058-9a1a-a5457cfc7e8b
2025-10-21 11:56:01,397 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-94225458, 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-85586771:ctest-vn-84569688, 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-10-21 11:56:01,684 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c9cc91e-f348-4994-9cf5-9bd353075e86', 'name': 'ctest-vn-94225458', 'tenant_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'project_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6042a78a-100c-4542-b308-b437104341f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-vn-94225458'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-policy-allow-all-06495970']], 'subnet_ipam': [{'subnet_cidr': '117.105.107.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 11:56:01,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8f1104a-2578-4058-9a1a-a5457cfc7e8b', 'name': 'ctest-vn-84569688', 'tenant_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'project_id': 'e25c3774f54b4ab0bd6a0c50d6828dbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8610dbdf-d164-46bb-beee-3792661d9665'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-vn-84569688'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-policy-allow-all-06495970']], 'subnet_ipam': [{'subnet_cidr': '192.171.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 11:56:02,038 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 11:56:02,340 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 11:56:02,365 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140
2025-10-21 11:56:02,377 - DEBUG - Requesting: http://10.0.0.254:8082/project/e25c3774-f54b-4ab0-bd6a-0c50d6828dbc
2025-10-21 11:56:02,448 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5c9cc91e-f348-4994-9cf5-9bd353075e86
2025-10-21 11:56:02,458 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5c9cc91e-f348-4994-9cf5-9bd353075e86
2025-10-21 11:56:02,466 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/232f6fff-6c44-4215-a367-a37259244ed2
2025-10-21 11:56:02,472 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/232f6fff-6c44-4215-a367-a37259244ed2
2025-10-21 11:56:02,478 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/380200a7-d7fe-42eb-84a8-efd61129b233
2025-10-21 11:56:02,485 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 11:56:02,485 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5c9cc91e-f348-4994-9cf5-9bd353075e86
2025-10-21 11:56:02,493 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/232f6fff-6c44-4215-a367-a37259244ed2
2025-10-21 11:56:02,506 - INFO - Verified VN network id 11 for VN 5c9cc91e-f348-4994-9cf5-9bd353075e86
2025-10-21 11:56:02,506 - INFO - Verifications in API Server for VN ctest-vn-94225458 passed
2025-10-21 11:56:02,506 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5c9cc91e-f348-4994-9cf5-9bd353075e86
2025-10-21 11:56:02,515 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/232f6fff-6c44-4215-a367-a37259244ed2
2025-10-21 11:56:02,522 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/232f6fff-6c44-4215-a367-a37259244ed2
2025-10-21 11:56:02,528 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/380200a7-d7fe-42eb-84a8-efd61129b233
2025-10-21 11:56:02,538 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-94225458', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85586771', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6673429882624035220', 'uuid-lslong': '11310117371144265350'}, 'enable': 'true', 'created': '2025-10-21T11:56:00', 'last-modified': '2025-10-21T11:56:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.879668'}
2025-10-21 11:56:02,543 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 11:56:02,545 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94225458 passed
2025-10-21 11:56:02,545 - DEBUG - ====Verifying policy data for ctest-vn-94225458 in API_Server ======
2025-10-21 11:56:02,545 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 11:56:02,551 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140
2025-10-21 11:56:02,561 - DEBUG - Requesting: http://10.0.0.254:8082/project/e25c3774-f54b-4ab0-bd6a-0c50d6828dbc
2025-10-21 11:56:02,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5c9cc91e-f348-4994-9cf5-9bd353075e86
2025-10-21 11:56:02,647 - DEBUG - ==>Verifying data for policy with id: 3d87cf30-c560-4e87-b1f8-c234e2ca6a34, fqn: ['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-policy-allow-all-06495970']
2025-10-21 11:56:02,647 - INFO - VN ctest-vn-94225458 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 11:56:02,647 - DEBUG - Verifying the vn in opserver
2025-10-21 11:56:02,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-94225458 virtual network link through opserver 10.0.0.254
2025-10-21 11:56:02,647 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 11:56:02,939 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 11:56:02,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-94225458', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-94225458?flat'}
2025-10-21 11:56:02,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-94225458 is found in opserver
2025-10-21 11:56:02,997 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 11:56:03,001 - DEBUG - VRF ids for VN ctest-vn-94225458: {}
2025-10-21 11:56:03,002 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 11:56:03,007 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140
2025-10-21 11:56:03,017 - DEBUG - Requesting: http://10.0.0.254:8082/project/e25c3774-f54b-4ab0-bd6a-0c50d6828dbc
2025-10-21 11:56:03,089 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f1104a-2578-4058-9a1a-a5457cfc7e8b
2025-10-21 11:56:03,100 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f1104a-2578-4058-9a1a-a5457cfc7e8b
2025-10-21 11:56:03,109 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8065d8a4-4e5d-4b99-abc3-e029356522ab
2025-10-21 11:56:03,116 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8065d8a4-4e5d-4b99-abc3-e029356522ab
2025-10-21 11:56:03,122 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/94e43632-5778-483e-9851-781e5c3afe8c
2025-10-21 11:56:03,128 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 11:56:03,128 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f1104a-2578-4058-9a1a-a5457cfc7e8b
2025-10-21 11:56:03,137 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8065d8a4-4e5d-4b99-abc3-e029356522ab
2025-10-21 11:56:03,151 - INFO - Verified VN network id 12 for VN d8f1104a-2578-4058-9a1a-a5457cfc7e8b
2025-10-21 11:56:03,151 - INFO - Verifications in API Server for VN ctest-vn-84569688 passed
2025-10-21 11:56:03,151 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f1104a-2578-4058-9a1a-a5457cfc7e8b
2025-10-21 11:56:03,160 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8065d8a4-4e5d-4b99-abc3-e029356522ab
2025-10-21 11:56:03,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8065d8a4-4e5d-4b99-abc3-e029356522ab
2025-10-21 11:56:03,173 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/94e43632-5778-483e-9851-781e5c3afe8c
2025-10-21 11:56:03,184 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-84569688', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85586771', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15632293692221964376', 'uuid-lslong': '11104369549103627915'}, 'enable': 'true', 'created': '2025-10-21T11:56:00', 'last-modified': '2025-10-21T11:56:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312137'}
2025-10-21 11:56:03,189 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 11:56:03,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84569688 passed
2025-10-21 11:56:03,189 - DEBUG - ====Verifying policy data for ctest-vn-84569688 in API_Server ======
2025-10-21 11:56:03,189 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 11:56:03,194 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cfeef5e4-5e46-4ebb-95dc-130f9b498140
2025-10-21 11:56:03,204 - DEBUG - Requesting: http://10.0.0.254:8082/project/e25c3774-f54b-4ab0-bd6a-0c50d6828dbc
2025-10-21 11:56:03,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f1104a-2578-4058-9a1a-a5457cfc7e8b
2025-10-21 11:56:03,283 - DEBUG - ==>Verifying data for policy with id: 3d87cf30-c560-4e87-b1f8-c234e2ca6a34, fqn: ['default-domain', 'ctest-TestBasicPolicy-85586771', 'ctest-policy-allow-all-06495970']
2025-10-21 11:56:03,283 - INFO - VN ctest-vn-84569688 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 11:56:03,283 - DEBUG - Verifying the vn in opserver
2025-10-21 11:56:03,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-84569688 virtual network link through opserver 10.0.0.254
2025-10-21 11:56:03,284 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 11:56:03,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-84569688', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-84569688?flat'}
2025-10-21 11:56:03,292 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85586771:ctest-vn-84569688 is found in opserver
2025-10-21 11:56:03,301 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 11:56:03,305 - DEBUG - VRF ids for VN ctest-vn-84569688: {}
2025-10-21 11:56:03,359 - DEBUG - Services list from nova: [