2025-07-17 14:24:59,934 - INFO - Domain Default found not creating
2025-07-17 14:25:00,102 - INFO - Project ctest-TestBasicPolicy-51484279 not found, creating it
2025-07-17 14:25:00,615 - INFO - Created Project:ctest-TestBasicPolicy-51484279, ID : dc48a164-9331-42c5-b60f-dbf8facf8454
2025-07-17 14:25:02,296 - INFO - ================================================================================
2025-07-17 14:25:02,296 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 14:25:02,297 - 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-07-17 14:25:02,560 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-17 14:25:02,560 - INFO - Initial checks done. Running the testcase now
2025-07-17 14:25:02,560 - INFO -
2025-07-17 14:25:03,180 - DEBUG - Response for create_network : {'network': {'id': '3a53c788-e7da-419a-93f2-587c367685d7', 'name': 'ctest-vn-59384448', 'tenant_id': 'dc48a164933142c5b60fdbf8facf8454', 'project_id': 'dc48a164933142c5b60fdbf8facf8454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-vn-59384448'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:25:03,339 - DEBUG - Response for create_subnet : {'subnet': {'id': '0432c333-c0fc-4fa1-a300-b839d89732d2', 'name': '', 'tenant_id': 'dc48a164933142c5b60fdbf8facf8454', 'network_id': '3a53c788-e7da-419a-93f2-587c367685d7', 'ip_version': 4, 'cidr': '98.160.53.0/26', 'allocation_pools': [{'start': '98.160.53.2', 'end': '98.160.53.62'}], 'gateway_ip': '98.160.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.160.53.2', 'tags': [], 'project_id': 'dc48a164933142c5b60fdbf8facf8454'}}
2025-07-17 14:25:03,358 - INFO - Created VN ctest-vn-59384448
2025-07-17 14:25:03,415 - DEBUG - VN ctest-vn-59384448 UUID is 3a53c788-e7da-419a-93f2-587c367685d7
2025-07-17 14:25:03,740 - DEBUG - Response for create_network : {'network': {'id': '7a8f00a6-455f-4b95-823a-b2b996dc91b9', 'name': 'ctest-vn-46134302', 'tenant_id': 'dc48a164933142c5b60fdbf8facf8454', 'project_id': 'dc48a164933142c5b60fdbf8facf8454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-vn-46134302'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:25:03,946 - DEBUG - Response for create_subnet : {'subnet': {'id': '095b43a4-2735-4f9d-8383-65b5a6cc12e5', 'name': '', 'tenant_id': 'dc48a164933142c5b60fdbf8facf8454', 'network_id': '7a8f00a6-455f-4b95-823a-b2b996dc91b9', 'ip_version': 4, 'cidr': '163.144.56.64/26', 'allocation_pools': [{'start': '163.144.56.66', 'end': '163.144.56.126'}], 'gateway_ip': '163.144.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.144.56.66', 'tags': [], 'project_id': 'dc48a164933142c5b60fdbf8facf8454'}}
2025-07-17 14:25:03,964 - INFO - Created VN ctest-vn-46134302
2025-07-17 14:25:04,018 - DEBUG - VN ctest-vn-46134302 UUID is 7a8f00a6-455f-4b95-823a-b2b996dc91b9
2025-07-17 14:25:04,139 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-59384448, 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-51484279:ctest-vn-46134302, 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-07-17 14:25:04,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a53c788-e7da-419a-93f2-587c367685d7', 'name': 'ctest-vn-59384448', 'tenant_id': 'dc48a164933142c5b60fdbf8facf8454', 'project_id': 'dc48a164933142c5b60fdbf8facf8454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0432c333-c0fc-4fa1-a300-b839d89732d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-vn-59384448'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-policy-allow-all-65370997']], 'subnet_ipam': [{'subnet_cidr': '98.160.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:25:04,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a8f00a6-455f-4b95-823a-b2b996dc91b9', 'name': 'ctest-vn-46134302', 'tenant_id': 'dc48a164933142c5b60fdbf8facf8454', 'project_id': 'dc48a164933142c5b60fdbf8facf8454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['095b43a4-2735-4f9d-8383-65b5a6cc12e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-vn-46134302'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-policy-allow-all-65370997']], 'subnet_ipam': [{'subnet_cidr': '163.144.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 14:25:04,883 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-17 14:25:05,216 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-17 14:25:05,247 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7b9b80c8-aeb3-46d7-9f89-8e6affb9e053
2025-07-17 14:25:05,262 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc48a164-9331-42c5-b60f-dbf8facf8454
2025-07-17 14:25:05,351 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a53c788-e7da-419a-93f2-587c367685d7
2025-07-17 14:25:05,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a53c788-e7da-419a-93f2-587c367685d7
2025-07-17 14:25:05,374 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2fa54da-449f-4f41-9f06-d312e696d2fc
2025-07-17 14:25:05,382 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2fa54da-449f-4f41-9f06-d312e696d2fc
2025-07-17 14:25:05,390 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc41407c-f918-450e-9f90-0d02b82786b1
2025-07-17 14:25:05,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 14:25:05,397 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a53c788-e7da-419a-93f2-587c367685d7
2025-07-17 14:25:05,407 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2fa54da-449f-4f41-9f06-d312e696d2fc
2025-07-17 14:25:05,421 - INFO - Verified VN network id 9 for VN 3a53c788-e7da-419a-93f2-587c367685d7
2025-07-17 14:25:05,421 - INFO - Verifications in API Server for VN ctest-vn-59384448 passed
2025-07-17 14:25:05,422 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a53c788-e7da-419a-93f2-587c367685d7
2025-07-17 14:25:05,432 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2fa54da-449f-4f41-9f06-d312e696d2fc
2025-07-17 14:25:05,440 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2fa54da-449f-4f41-9f06-d312e696d2fc
2025-07-17 14:25:05,448 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc41407c-f918-450e-9f90-0d02b82786b1
2025-07-17 14:25:05,463 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-59384448', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51484279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4202922268086124954', 'uuid-lslong': '10660680558452311511'}, 'enable': 'true', 'created': '2025-07-17T14:25:03', 'last-modified': '2025-07-17T14:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034712'}
2025-07-17 14:25:05,470 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 14:25:05,470 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59384448 passed
2025-07-17 14:25:05,470 - DEBUG - ====Verifying policy data for ctest-vn-59384448 in API_Server ======
2025-07-17 14:25:05,470 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-17 14:25:05,476 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7b9b80c8-aeb3-46d7-9f89-8e6affb9e053
2025-07-17 14:25:05,488 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc48a164-9331-42c5-b60f-dbf8facf8454
2025-07-17 14:25:05,561 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3a53c788-e7da-419a-93f2-587c367685d7
2025-07-17 14:25:05,573 - DEBUG - ==>Verifying data for policy with id: 76a1fec8-ee59-4dcc-9b76-2327ed698fa5, fqn: ['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-policy-allow-all-65370997']
2025-07-17 14:25:05,573 - INFO - VN ctest-vn-59384448 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 14:25:05,573 - DEBUG - Verifying the vn in opserver
2025-07-17 14:25:05,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-59384448 virtual network link through opserver 10.0.0.254
2025-07-17 14:25:05,573 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-17 14:25:05,907 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-17 14:25:05,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-59384448', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-59384448?flat'}
2025-07-17 14:25:05,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-59384448 is found in opserver
2025-07-17 14:25:05,983 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 14:25:05,989 - DEBUG - VRF ids for VN ctest-vn-59384448: {}
2025-07-17 14:25:05,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-17 14:25:05,998 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7b9b80c8-aeb3-46d7-9f89-8e6affb9e053
2025-07-17 14:25:06,016 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc48a164-9331-42c5-b60f-dbf8facf8454
2025-07-17 14:25:06,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7a8f00a6-455f-4b95-823a-b2b996dc91b9
2025-07-17 14:25:06,111 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7a8f00a6-455f-4b95-823a-b2b996dc91b9
2025-07-17 14:25:06,122 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04322a44-def1-4605-945c-5c103567dfd4
2025-07-17 14:25:06,131 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04322a44-def1-4605-945c-5c103567dfd4
2025-07-17 14:25:06,139 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/88619080-cab5-4e37-89fe-76902068252a
2025-07-17 14:25:06,148 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 14:25:06,148 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7a8f00a6-455f-4b95-823a-b2b996dc91b9
2025-07-17 14:25:06,161 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04322a44-def1-4605-945c-5c103567dfd4
2025-07-17 14:25:06,180 - INFO - Verified VN network id 10 for VN 7a8f00a6-455f-4b95-823a-b2b996dc91b9
2025-07-17 14:25:06,180 - INFO - Verifications in API Server for VN ctest-vn-46134302 passed
2025-07-17 14:25:06,180 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7a8f00a6-455f-4b95-823a-b2b996dc91b9
2025-07-17 14:25:06,193 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04322a44-def1-4605-945c-5c103567dfd4
2025-07-17 14:25:06,202 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04322a44-def1-4605-945c-5c103567dfd4
2025-07-17 14:25:06,211 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/88619080-cab5-4e37-89fe-76902068252a
2025-07-17 14:25:06,225 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-46134302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51484279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8831278108425276309', 'uuid-lslong': '9384009283749581241'}, 'enable': 'true', 'created': '2025-07-17T14:25:03', 'last-modified': '2025-07-17T14:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.559784'}
2025-07-17 14:25:06,233 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 14:25:06,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46134302 passed
2025-07-17 14:25:06,234 - DEBUG - ====Verifying policy data for ctest-vn-46134302 in API_Server ======
2025-07-17 14:25:06,234 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-17 14:25:06,240 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7b9b80c8-aeb3-46d7-9f89-8e6affb9e053
2025-07-17 14:25:06,256 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc48a164-9331-42c5-b60f-dbf8facf8454
2025-07-17 14:25:06,343 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7a8f00a6-455f-4b95-823a-b2b996dc91b9
2025-07-17 14:25:06,355 - DEBUG - ==>Verifying data for policy with id: 76a1fec8-ee59-4dcc-9b76-2327ed698fa5, fqn: ['default-domain', 'ctest-TestBasicPolicy-51484279', 'ctest-policy-allow-all-65370997']
2025-07-17 14:25:06,356 - INFO - VN ctest-vn-46134302 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 14:25:06,356 - DEBUG - Verifying the vn in opserver
2025-07-17 14:25:06,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-46134302 virtual network link through opserver 10.0.0.254
2025-07-17 14:25:06,356 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-17 14:25:06,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-46134302', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-46134302?flat'}
2025-07-17 14:25:06,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51484279:ctest-vn-46134302 is found in opserver
2025-07-17 14:25:06,384 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 14:25:06,390 - DEBUG - VRF ids for VN ctest-vn-46134302: {}
2025-07-17 14:25:06,451 - DEBUG - Services list from nova: [