2025-07-28 02:21:11,383 - INFO - Domain Default found not creating
2025-07-28 02:21:11,531 - INFO - Project ctest-TestBasicPolicy-42025306 not found, creating it
2025-07-28 02:21:12,011 - INFO - Created Project:ctest-TestBasicPolicy-42025306, ID : 9585b837-5810-424d-80d5-cc7a28cec202
2025-07-28 02:21:13,453 - INFO - ================================================================================
2025-07-28 02:21:13,453 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-28 02:21:13,453 - 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-28 02:21:13,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-28 02:21:13,709 - INFO - Initial checks done. Running the testcase now
2025-07-28 02:21:13,709 - INFO -
2025-07-28 02:21:14,271 - DEBUG - Response for create_network : {'network': {'id': 'ca049ff1-5595-48fb-8411-847cdcab36c5', 'name': 'ctest-vn-81332773', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-81332773'], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:21:14,490 - DEBUG - Response for create_subnet : {'subnet': {'id': '00045165-fe0d-4641-ad90-95fdb328a92a', 'name': '', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'network_id': 'ca049ff1-5595-48fb-8411-847cdcab36c5', 'ip_version': 4, 'cidr': '137.190.157.192/26', 'allocation_pools': [{'start': '137.190.157.194', 'end': '137.190.157.254'}], 'gateway_ip': '137.190.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.190.157.194', 'tags': [], 'project_id': '9585b8375810424d80d5cc7a28cec202'}}
2025-07-28 02:21:14,510 - INFO - Created VN ctest-vn-81332773
2025-07-28 02:21:14,563 - DEBUG - VN ctest-vn-81332773 UUID is ca049ff1-5595-48fb-8411-847cdcab36c5
2025-07-28 02:21:14,899 - DEBUG - Response for create_network : {'network': {'id': 'f7f34377-1e97-4672-8f91-4dd9b8bbb393', 'name': 'ctest-vn-33699043', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-33699043'], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:21:15,168 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d443ae4-0a29-400d-b148-5bbd846b7ba5', 'name': '', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'network_id': 'f7f34377-1e97-4672-8f91-4dd9b8bbb393', 'ip_version': 4, 'cidr': '150.251.98.64/26', 'allocation_pools': [{'start': '150.251.98.66', 'end': '150.251.98.126'}], 'gateway_ip': '150.251.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.251.98.66', 'tags': [], 'project_id': '9585b8375810424d80d5cc7a28cec202'}}
2025-07-28 02:21:15,190 - INFO - Created VN ctest-vn-33699043
2025-07-28 02:21:15,243 - DEBUG - VN ctest-vn-33699043 UUID is f7f34377-1e97-4672-8f91-4dd9b8bbb393
2025-07-28 02:21:15,367 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773, 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-42025306:ctest-vn-33699043, 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-28 02:21:15,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca049ff1-5595-48fb-8411-847cdcab36c5', 'name': 'ctest-vn-81332773', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00045165-fe0d-4641-ad90-95fdb328a92a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-81332773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710']], 'subnet_ipam': [{'subnet_cidr': '137.190.157.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:21:15,974 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7f34377-1e97-4672-8f91-4dd9b8bbb393', 'name': 'ctest-vn-33699043', 'tenant_id': '9585b8375810424d80d5cc7a28cec202', 'project_id': '9585b8375810424d80d5cc7a28cec202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d443ae4-0a29-400d-b148-5bbd846b7ba5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-vn-33699043'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710']], 'subnet_ipam': [{'subnet_cidr': '150.251.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:21:16,119 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-28 02:21:16,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-28 02:21:16,446 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0
2025-07-28 02:21:16,463 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202
2025-07-28 02:21:16,539 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5
2025-07-28 02:21:16,555 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5
2025-07-28 02:21:16,566 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306
2025-07-28 02:21:16,576 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306
2025-07-28 02:21:16,583 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b496e21-a35d-4176-b062-c906f6416b86
2025-07-28 02:21:16,590 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-28 02:21:16,590 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5
2025-07-28 02:21:16,600 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306
2025-07-28 02:21:16,616 - INFO - Verified VN network id 11 for VN ca049ff1-5595-48fb-8411-847cdcab36c5
2025-07-28 02:21:16,616 - INFO - Verifications in API Server for VN ctest-vn-81332773 passed
2025-07-28 02:21:16,616 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5
2025-07-28 02:21:16,626 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306
2025-07-28 02:21:16,634 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/77deb184-326b-480a-88a1-cd81f5622306
2025-07-28 02:21:16,642 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b496e21-a35d-4176-b062-c906f6416b86
2025-07-28 02:21:16,660 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42025306', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14556935754440067323', 'uuid-lslong': '9516533159423588037'}, 'enable': 'true', 'created': '2025-07-28T02:21:14', 'last-modified': '2025-07-28T02:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011288'}
2025-07-28 02:21:16,667 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-28 02:21:16,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81332773 passed
2025-07-28 02:21:16,668 - DEBUG - ====Verifying policy data for ctest-vn-81332773 in API_Server ======
2025-07-28 02:21:16,668 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-28 02:21:16,674 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0
2025-07-28 02:21:16,686 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202
2025-07-28 02:21:16,755 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca049ff1-5595-48fb-8411-847cdcab36c5
2025-07-28 02:21:16,765 - DEBUG - ==>Verifying data for policy with id: b6e586e1-f1b9-470e-b99d-541004173016, fqn: ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710']
2025-07-28 02:21:16,765 - INFO - VN ctest-vn-81332773 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-28 02:21:16,765 - DEBUG - Verifying the vn in opserver
2025-07-28 02:21:16,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773 virtual network link through opserver 10.0.0.254
2025-07-28 02:21:16,765 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-28 02:21:17,059 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-28 02:21:17,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773?flat'}
2025-07-28 02:21:17,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-81332773 is found in opserver
2025-07-28 02:21:17,126 - DEBUG - Do not have enough data to verify VN in agent
2025-07-28 02:21:17,131 - DEBUG - VRF ids for VN ctest-vn-81332773: {}
2025-07-28 02:21:17,131 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-28 02:21:17,137 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0
2025-07-28 02:21:17,149 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202
2025-07-28 02:21:17,223 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393
2025-07-28 02:21:17,236 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393
2025-07-28 02:21:17,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c
2025-07-28 02:21:17,255 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c
2025-07-28 02:21:17,264 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c1400b1-1c05-466e-843d-504efc963049
2025-07-28 02:21:17,271 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-28 02:21:17,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393
2025-07-28 02:21:17,280 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c
2025-07-28 02:21:17,294 - INFO - Verified VN network id 12 for VN f7f34377-1e97-4672-8f91-4dd9b8bbb393
2025-07-28 02:21:17,294 - INFO - Verifications in API Server for VN ctest-vn-33699043 passed
2025-07-28 02:21:17,294 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393
2025-07-28 02:21:17,307 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c
2025-07-28 02:21:17,315 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41eebbc-aa6c-44de-b113-101295c4486c
2025-07-28 02:21:17,325 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c1400b1-1c05-466e-843d-504efc963049
2025-07-28 02:21:17,338 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42025306', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17866698325602289266', 'uuid-lslong': '10345135416549290899'}, 'enable': 'true', 'created': '2025-07-28T02:21:14', 'last-modified': '2025-07-28T02:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.435564'}
2025-07-28 02:21:17,345 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-28 02:21:17,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33699043 passed
2025-07-28 02:21:17,346 - DEBUG - ====Verifying policy data for ctest-vn-33699043 in API_Server ======
2025-07-28 02:21:17,346 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-28 02:21:17,352 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d65d6077-4c0e-4075-989e-ec1cda0364c0
2025-07-28 02:21:17,364 - DEBUG - Requesting: http://10.0.0.254:8082/project/9585b837-5810-424d-80d5-cc7a28cec202
2025-07-28 02:21:17,440 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f7f34377-1e97-4672-8f91-4dd9b8bbb393
2025-07-28 02:21:17,451 - DEBUG - ==>Verifying data for policy with id: b6e586e1-f1b9-470e-b99d-541004173016, fqn: ['default-domain', 'ctest-TestBasicPolicy-42025306', 'ctest-policy-allow-all-35590710']
2025-07-28 02:21:17,451 - INFO - VN ctest-vn-33699043 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-28 02:21:17,451 - DEBUG - Verifying the vn in opserver
2025-07-28 02:21:17,451 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043 virtual network link through opserver 10.0.0.254
2025-07-28 02:21:17,451 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-28 02:21:17,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043?flat'}
2025-07-28 02:21:17,461 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42025306:ctest-vn-33699043 is found in opserver
2025-07-28 02:21:17,472 - DEBUG - Do not have enough data to verify VN in agent
2025-07-28 02:21:17,477 - DEBUG - VRF ids for VN ctest-vn-33699043: {}
2025-07-28 02:21:17,538 - DEBUG - Services list from nova: [