2025-11-27 02:08:40,893 - INFO - Domain Default found not creating
2025-11-27 02:08:41,069 - INFO - Project ctest-TestBasicPolicy-39171493 not found, creating it
2025-11-27 02:08:41,570 - INFO - Created Project:ctest-TestBasicPolicy-39171493, ID : 27c66615-8f21-40c0-9c62-d25b0dffa439
2025-11-27 02:08:43,159 - INFO - ================================================================================
2025-11-27 02:08:43,159 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-27 02:08:43,159 - 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-27 02:08:43,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with
2025-11-27 02:08:43,419 - INFO - Initial checks done. Running the testcase now
2025-11-27 02:08:43,419 - INFO -
2025-11-27 02:08:44,005 - DEBUG - Response for create_network : {'network': {'id': '68e1473e-463f-4b16-9a3f-8c12fbbf8d5d', 'name': 'ctest-vn-09052599', 'tenant_id': '27c666158f2140c09c62d25b0dffa439', 'project_id': '27c666158f2140c09c62d25b0dffa439', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-vn-09052599'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:08:44,177 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ebd201bd-e628-4f82-adec-d73cbc58b945', 'name': '', 'tenant_id': '27c666158f2140c09c62d25b0dffa439', 'network_id': '68e1473e-463f-4b16-9a3f-8c12fbbf8d5d', 'ip_version': 4, 'cidr': '144.20.62.192/26', 'allocation_pools': [{'start': '144.20.62.194', 'end': '144.20.62.254'}], 'gateway_ip': '144.20.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.20.62.194', 'tags': [], 'project_id': '27c666158f2140c09c62d25b0dffa439'}}
2025-11-27 02:08:44,198 - INFO - Created VN ctest-vn-09052599
2025-11-27 02:08:44,252 - DEBUG - VN ctest-vn-09052599 UUID is 68e1473e-463f-4b16-9a3f-8c12fbbf8d5d
2025-11-27 02:08:44,544 - DEBUG - Response for create_network : {'network': {'id': '1498686d-c574-4536-bcf0-73fbad5f1b4e', 'name': 'ctest-vn-19286328', 'tenant_id': '27c666158f2140c09c62d25b0dffa439', 'project_id': '27c666158f2140c09c62d25b0dffa439', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-vn-19286328'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:08:44,706 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b5fba60-69d9-4213-ba78-de6153218128', 'name': '', 'tenant_id': '27c666158f2140c09c62d25b0dffa439', 'network_id': '1498686d-c574-4536-bcf0-73fbad5f1b4e', 'ip_version': 4, 'cidr': '81.121.190.128/26', 'allocation_pools': [{'start': '81.121.190.130', 'end': '81.121.190.190'}], 'gateway_ip': '81.121.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.121.190.130', 'tags': [], 'project_id': '27c666158f2140c09c62d25b0dffa439'}}
2025-11-27 02:08:44,725 - INFO - Created VN ctest-vn-19286328
2025-11-27 02:08:44,779 - DEBUG - VN ctest-vn-19286328 UUID is 1498686d-c574-4536-bcf0-73fbad5f1b4e
2025-11-27 02:08:44,897 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-09052599, 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-39171493:ctest-vn-19286328, 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-27 02:08:45,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68e1473e-463f-4b16-9a3f-8c12fbbf8d5d', 'name': 'ctest-vn-09052599', 'tenant_id': '27c666158f2140c09c62d25b0dffa439', 'project_id': '27c666158f2140c09c62d25b0dffa439', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ebd201bd-e628-4f82-adec-d73cbc58b945'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-vn-09052599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-policy-allow-all-31188173']], 'subnet_ipam': [{'subnet_cidr': '144.20.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:08:45,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1498686d-c574-4536-bcf0-73fbad5f1b4e', 'name': 'ctest-vn-19286328', 'tenant_id': '27c666158f2140c09c62d25b0dffa439', 'project_id': '27c666158f2140c09c62d25b0dffa439', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b5fba60-69d9-4213-ba78-de6153218128'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-vn-19286328'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-policy-allow-all-31188173']], 'subnet_ipam': [{'subnet_cidr': '81.121.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:08:45,624 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-27 02:08:45,940 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-27 02:08:45,980 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb
2025-11-27 02:08:45,997 - DEBUG - Requesting: http://10.0.0.41:8082/project/27c66615-8f21-40c0-9c62-d25b0dffa439
2025-11-27 02:08:46,079 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/68e1473e-463f-4b16-9a3f-8c12fbbf8d5d
2025-11-27 02:08:46,093 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/68e1473e-463f-4b16-9a3f-8c12fbbf8d5d
2025-11-27 02:08:46,103 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/785a6ae3-f968-4649-8030-ca48b9739dec
2025-11-27 02:08:46,110 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/785a6ae3-f968-4649-8030-ca48b9739dec
2025-11-27 02:08:46,117 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f6bb865b-cbd8-4b7b-966a-b6dbc42c48d1
2025-11-27 02:08:46,123 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 02:08:46,123 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/68e1473e-463f-4b16-9a3f-8c12fbbf8d5d
2025-11-27 02:08:46,133 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/785a6ae3-f968-4649-8030-ca48b9739dec
2025-11-27 02:08:46,147 - INFO - Verified VN network id 11 for VN 68e1473e-463f-4b16-9a3f-8c12fbbf8d5d
2025-11-27 02:08:46,147 - INFO - Verifications in API Server for VN ctest-vn-09052599 passed
2025-11-27 02:08:46,147 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/68e1473e-463f-4b16-9a3f-8c12fbbf8d5d
2025-11-27 02:08:46,157 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/785a6ae3-f968-4649-8030-ca48b9739dec
2025-11-27 02:08:46,164 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/785a6ae3-f968-4649-8030-ca48b9739dec
2025-11-27 02:08:46,171 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f6bb865b-cbd8-4b7b-966a-b6dbc42c48d1
2025-11-27 02:08:46,183 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-09052599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39171493', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7557399982496500502', 'uuid-lslong': '11114756418534608221'}, 'enable': 'true', 'created': '2025-11-27T02:08:43', 'last-modified': '2025-11-27T02:08:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003777'}
2025-11-27 02:08:46,189 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 02:08:46,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09052599 passed
2025-11-27 02:08:46,189 - DEBUG - ====Verifying policy data for ctest-vn-09052599 in API_Server ======
2025-11-27 02:08:46,189 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-27 02:08:46,195 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb
2025-11-27 02:08:46,206 - DEBUG - Requesting: http://10.0.0.41:8082/project/27c66615-8f21-40c0-9c62-d25b0dffa439
2025-11-27 02:08:46,283 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/68e1473e-463f-4b16-9a3f-8c12fbbf8d5d
2025-11-27 02:08:46,293 - DEBUG - ==>Verifying data for policy with id: f94fb264-b7d0-4c45-9bcc-8cd0e10105b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-policy-allow-all-31188173']
2025-11-27 02:08:46,293 - INFO - VN ctest-vn-09052599 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 02:08:46,294 - DEBUG - Verifying the vn in opserver
2025-11-27 02:08:46,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-09052599 virtual network link through opserver 10.0.0.41
2025-11-27 02:08:46,294 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-27 02:08:46,601 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-27 02:08:46,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-09052599', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-09052599?flat'}
2025-11-27 02:08:46,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-09052599 is found in opserver
2025-11-27 02:08:46,693 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 02:08:46,697 - DEBUG - VRF ids for VN ctest-vn-09052599: {}
2025-11-27 02:08:46,698 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-27 02:08:46,703 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb
2025-11-27 02:08:46,717 - DEBUG - Requesting: http://10.0.0.41:8082/project/27c66615-8f21-40c0-9c62-d25b0dffa439
2025-11-27 02:08:46,792 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1498686d-c574-4536-bcf0-73fbad5f1b4e
2025-11-27 02:08:46,804 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1498686d-c574-4536-bcf0-73fbad5f1b4e
2025-11-27 02:08:46,814 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/79f00b67-48b0-4539-86e4-c723bc39d4f0
2025-11-27 02:08:46,822 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/79f00b67-48b0-4539-86e4-c723bc39d4f0
2025-11-27 02:08:46,829 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5eda83db-e62d-43b6-b85f-f8fe3a2cd26b
2025-11-27 02:08:46,837 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 02:08:46,837 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1498686d-c574-4536-bcf0-73fbad5f1b4e
2025-11-27 02:08:46,847 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/79f00b67-48b0-4539-86e4-c723bc39d4f0
2025-11-27 02:08:46,865 - INFO - Verified VN network id 12 for VN 1498686d-c574-4536-bcf0-73fbad5f1b4e
2025-11-27 02:08:46,865 - INFO - Verifications in API Server for VN ctest-vn-19286328 passed
2025-11-27 02:08:46,865 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1498686d-c574-4536-bcf0-73fbad5f1b4e
2025-11-27 02:08:46,876 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/79f00b67-48b0-4539-86e4-c723bc39d4f0
2025-11-27 02:08:46,883 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/79f00b67-48b0-4539-86e4-c723bc39d4f0
2025-11-27 02:08:46,890 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5eda83db-e62d-43b6-b85f-f8fe3a2cd26b
2025-11-27 02:08:46,902 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-19286328', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39171493', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1484050897892033846', 'uuid-lslong': '13614509198323686222'}, 'enable': 'true', 'created': '2025-11-27T02:08:44', 'last-modified': '2025-11-27T02:08:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.473345'}
2025-11-27 02:08:46,909 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 02:08:46,909 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19286328 passed
2025-11-27 02:08:46,909 - DEBUG - ====Verifying policy data for ctest-vn-19286328 in API_Server ======
2025-11-27 02:08:46,909 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-27 02:08:46,916 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb
2025-11-27 02:08:46,926 - DEBUG - Requesting: http://10.0.0.41:8082/project/27c66615-8f21-40c0-9c62-d25b0dffa439
2025-11-27 02:08:47,001 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1498686d-c574-4536-bcf0-73fbad5f1b4e
2025-11-27 02:08:47,011 - DEBUG - ==>Verifying data for policy with id: f94fb264-b7d0-4c45-9bcc-8cd0e10105b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-39171493', 'ctest-policy-allow-all-31188173']
2025-11-27 02:08:47,011 - INFO - VN ctest-vn-19286328 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 02:08:47,011 - DEBUG - Verifying the vn in opserver
2025-11-27 02:08:47,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-19286328 virtual network link through opserver 10.0.0.41
2025-11-27 02:08:47,011 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-27 02:08:47,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-19286328', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-19286328?flat'}
2025-11-27 02:08:47,023 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39171493:ctest-vn-19286328 is found in opserver
2025-11-27 02:08:47,035 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 02:08:47,041 - DEBUG - VRF ids for VN ctest-vn-19286328: {}
2025-11-27 02:08:47,110 - DEBUG - Services list from nova: [