2026-07-29 18:14:39,403 - INFO - Domain Default found not creating
2026-07-29 18:14:39,617 - INFO - Project ctest-TestBasicPolicy-59201483 not found, creating it
2026-07-29 18:14:40,187 - INFO - Created Project:ctest-TestBasicPolicy-59201483, ID : 70776389-092f-41ca-a6ca-e5f1a2c5abf4
2026-07-29 18:14:42,119 - INFO - ================================================================================
2026-07-29 18:14:42,119 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-29 18:14:42,119 - 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
2026-07-29 18:14:42,394 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-07-29 18:14:42,394 - INFO - Initial checks done. Running the testcase now
2026-07-29 18:14:42,394 - INFO -
2026-07-29 18:14:43,104 - DEBUG - Response for create_network : {'network': {'id': 'd77c73b6-cfeb-4794-b04e-4e15d703125a', 'name': 'ctest-vn-54816457', 'tenant_id': '70776389092f41caa6cae5f1a2c5abf4', 'project_id': '70776389092f41caa6cae5f1a2c5abf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-vn-54816457'], 'port_security_enabled': True, 'description': ''}}
2026-07-29 18:14:43,340 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd8fffdd-fb86-4c07-8968-f41a1dac0152', 'name': '', 'tenant_id': '70776389092f41caa6cae5f1a2c5abf4', 'network_id': 'd77c73b6-cfeb-4794-b04e-4e15d703125a', 'ip_version': 4, 'cidr': '115.145.3.192/26', 'allocation_pools': [{'start': '115.145.3.194', 'end': '115.145.3.254'}], 'gateway_ip': '115.145.3.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.145.3.194', 'tags': [], 'project_id': '70776389092f41caa6cae5f1a2c5abf4'}}
2026-07-29 18:14:43,363 - INFO - Created VN ctest-vn-54816457
2026-07-29 18:14:43,419 - DEBUG - VN ctest-vn-54816457 UUID is d77c73b6-cfeb-4794-b04e-4e15d703125a
2026-07-29 18:14:43,761 - DEBUG - Response for create_network : {'network': {'id': 'c0a1eccc-5f63-4619-bb11-d5887ebd2e98', 'name': 'ctest-vn-10832248', 'tenant_id': '70776389092f41caa6cae5f1a2c5abf4', 'project_id': '70776389092f41caa6cae5f1a2c5abf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-vn-10832248'], 'port_security_enabled': True, 'description': ''}}
2026-07-29 18:14:44,145 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5ac9946-d73f-4506-a42a-df13e2010d15', 'name': '', 'tenant_id': '70776389092f41caa6cae5f1a2c5abf4', 'network_id': 'c0a1eccc-5f63-4619-bb11-d5887ebd2e98', 'ip_version': 4, 'cidr': '176.95.211.64/26', 'allocation_pools': [{'start': '176.95.211.66', 'end': '176.95.211.126'}], 'gateway_ip': '176.95.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.95.211.66', 'tags': [], 'project_id': '70776389092f41caa6cae5f1a2c5abf4'}}
2026-07-29 18:14:44,176 - INFO - Created VN ctest-vn-10832248
2026-07-29 18:14:44,239 - DEBUG - VN ctest-vn-10832248 UUID is c0a1eccc-5f63-4619-bb11-d5887ebd2e98
2026-07-29 18:14:44,464 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-54816457, 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-59201483:ctest-vn-10832248, 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]
2026-07-29 18:14:44,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd77c73b6-cfeb-4794-b04e-4e15d703125a', 'name': 'ctest-vn-54816457', 'tenant_id': '70776389092f41caa6cae5f1a2c5abf4', 'project_id': '70776389092f41caa6cae5f1a2c5abf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd8fffdd-fb86-4c07-8968-f41a1dac0152'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-vn-54816457'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-policy-allow-all-96342329']], 'subnet_ipam': [{'subnet_cidr': '115.145.3.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-29 18:14:45,175 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0a1eccc-5f63-4619-bb11-d5887ebd2e98', 'name': 'ctest-vn-10832248', 'tenant_id': '70776389092f41caa6cae5f1a2c5abf4', 'project_id': '70776389092f41caa6cae5f1a2c5abf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5ac9946-d73f-4506-a42a-df13e2010d15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-vn-10832248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-policy-allow-all-96342329']], 'subnet_ipam': [{'subnet_cidr': '176.95.211.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-29 18:14:45,375 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 18:14:45,746 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 18:14:45,777 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543
2026-07-29 18:14:45,793 - DEBUG - Requesting: http://10.0.0.38:8082/project/70776389-092f-41ca-a6ca-e5f1a2c5abf4
2026-07-29 18:14:45,884 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d77c73b6-cfeb-4794-b04e-4e15d703125a
2026-07-29 18:14:45,904 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d77c73b6-cfeb-4794-b04e-4e15d703125a
2026-07-29 18:14:45,921 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ba6bbdb-106a-4abc-9487-149cc24ec792
2026-07-29 18:14:45,934 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ba6bbdb-106a-4abc-9487-149cc24ec792
2026-07-29 18:14:45,944 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e252ac56-8989-40e2-81c5-3ce534b838ba
2026-07-29 18:14:45,953 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-29 18:14:45,954 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d77c73b6-cfeb-4794-b04e-4e15d703125a
2026-07-29 18:14:45,967 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ba6bbdb-106a-4abc-9487-149cc24ec792
2026-07-29 18:14:45,986 - INFO - Verified VN network id 11 for VN d77c73b6-cfeb-4794-b04e-4e15d703125a
2026-07-29 18:14:45,986 - INFO - Verifications in API Server for VN ctest-vn-54816457 passed
2026-07-29 18:14:45,986 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d77c73b6-cfeb-4794-b04e-4e15d703125a
2026-07-29 18:14:46,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ba6bbdb-106a-4abc-9487-149cc24ec792
2026-07-29 18:14:46,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ba6bbdb-106a-4abc-9487-149cc24ec792
2026-07-29 18:14:46,021 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e252ac56-8989-40e2-81c5-3ce534b838ba
2026-07-29 18:14:46,039 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-54816457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59201483', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15527412844276172692', 'uuid-lslong': '12704177454567330394'}, 'enable': 'true', 'created': '2026-07-29T18:14:43', 'last-modified': '2026-07-29T18:14:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.174441'}
2026-07-29 18:14:46,048 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-29 18:14:46,049 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54816457 passed
2026-07-29 18:14:46,049 - DEBUG - ====Verifying policy data for ctest-vn-54816457 in API_Server ======
2026-07-29 18:14:46,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 18:14:46,056 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543
2026-07-29 18:14:46,072 - DEBUG - Requesting: http://10.0.0.38:8082/project/70776389-092f-41ca-a6ca-e5f1a2c5abf4
2026-07-29 18:14:46,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d77c73b6-cfeb-4794-b04e-4e15d703125a
2026-07-29 18:14:46,171 - DEBUG - ==>Verifying data for policy with id: 496d8582-5980-41b5-8176-2b0e21cbc569, fqn: ['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-policy-allow-all-96342329']
2026-07-29 18:14:46,171 - INFO - VN ctest-vn-54816457 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-29 18:14:46,171 - DEBUG - Verifying the vn in opserver
2026-07-29 18:14:46,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-54816457 virtual network link through opserver 10.0.0.38
2026-07-29 18:14:46,171 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-29 18:14:46,550 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-29 18:14:46,615 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-54816457', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-54816457?flat'}
2026-07-29 18:14:46,616 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-54816457 is found in opserver
2026-07-29 18:14:46,629 - DEBUG - Do not have enough data to verify VN in agent
2026-07-29 18:14:46,635 - DEBUG - VRF ids for VN ctest-vn-54816457: {}
2026-07-29 18:14:46,636 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 18:14:46,642 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543
2026-07-29 18:14:46,654 - DEBUG - Requesting: http://10.0.0.38:8082/project/70776389-092f-41ca-a6ca-e5f1a2c5abf4
2026-07-29 18:14:46,732 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c0a1eccc-5f63-4619-bb11-d5887ebd2e98
2026-07-29 18:14:46,746 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c0a1eccc-5f63-4619-bb11-d5887ebd2e98
2026-07-29 18:14:46,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6313b249-8067-4661-ba9b-fb5eb7a90fd5
2026-07-29 18:14:46,766 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6313b249-8067-4661-ba9b-fb5eb7a90fd5
2026-07-29 18:14:46,775 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bc773ee9-4725-4bde-af3e-75c347da8db9
2026-07-29 18:14:46,784 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-29 18:14:46,784 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c0a1eccc-5f63-4619-bb11-d5887ebd2e98
2026-07-29 18:14:46,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6313b249-8067-4661-ba9b-fb5eb7a90fd5
2026-07-29 18:14:46,817 - INFO - Verified VN network id 12 for VN c0a1eccc-5f63-4619-bb11-d5887ebd2e98
2026-07-29 18:14:46,817 - INFO - Verifications in API Server for VN ctest-vn-10832248 passed
2026-07-29 18:14:46,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c0a1eccc-5f63-4619-bb11-d5887ebd2e98
2026-07-29 18:14:46,830 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6313b249-8067-4661-ba9b-fb5eb7a90fd5
2026-07-29 18:14:46,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6313b249-8067-4661-ba9b-fb5eb7a90fd5
2026-07-29 18:14:46,853 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bc773ee9-4725-4bde-af3e-75c347da8db9
2026-07-29 18:14:46,873 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-10832248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59201483', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13880635889050404377', 'uuid-lslong': '13479789941915201176'}, 'enable': 'true', 'created': '2026-07-29T18:14:43', 'last-modified': '2026-07-29T18:14:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.738948'}
2026-07-29 18:14:46,884 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-29 18:14:46,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10832248 passed
2026-07-29 18:14:46,884 - DEBUG - ====Verifying policy data for ctest-vn-10832248 in API_Server ======
2026-07-29 18:14:46,884 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-29 18:14:46,893 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543
2026-07-29 18:14:46,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/70776389-092f-41ca-a6ca-e5f1a2c5abf4
2026-07-29 18:14:47,001 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c0a1eccc-5f63-4619-bb11-d5887ebd2e98
2026-07-29 18:14:47,014 - DEBUG - ==>Verifying data for policy with id: 496d8582-5980-41b5-8176-2b0e21cbc569, fqn: ['default-domain', 'ctest-TestBasicPolicy-59201483', 'ctest-policy-allow-all-96342329']
2026-07-29 18:14:47,014 - INFO - VN ctest-vn-10832248 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-29 18:14:47,014 - DEBUG - Verifying the vn in opserver
2026-07-29 18:14:47,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-10832248 virtual network link through opserver 10.0.0.38
2026-07-29 18:14:47,014 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-29 18:14:47,026 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-10832248', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-10832248?flat'}
2026-07-29 18:14:47,026 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59201483:ctest-vn-10832248 is found in opserver
2026-07-29 18:14:47,039 - DEBUG - Do not have enough data to verify VN in agent
2026-07-29 18:14:47,045 - DEBUG - VRF ids for VN ctest-vn-10832248: {}
2026-07-29 18:14:47,124 - DEBUG - Services list from nova: [