2026-03-16 01:58:37,987 - INFO - Domain Default found not creating
2026-03-16 01:58:38,138 - INFO - Project ctest-TestBasicPolicy-60547341 not found, creating it
2026-03-16 01:58:38,598 - INFO - Created Project:ctest-TestBasicPolicy-60547341, ID : 28a74ef7-7d60-4957-865f-646001d0c1d4
2026-03-16 01:58:40,015 - INFO - ================================================================================
2026-03-16 01:58:40,015 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-16 01:58:40,015 - 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-03-16 01:58:40,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2026-03-16 01:58:40,268 - INFO - Initial checks done. Running the testcase now
2026-03-16 01:58:40,269 - INFO -
2026-03-16 01:58:40,791 - DEBUG - Response for create_network : {'network': {'id': 'a3b4cd1d-9e69-477f-9b76-ee096ae0d440', 'name': 'ctest-vn-42506344', 'tenant_id': '28a74ef77d604957865f646001d0c1d4', 'project_id': '28a74ef77d604957865f646001d0c1d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-vn-42506344'], 'port_security_enabled': True, 'description': ''}}
2026-03-16 01:58:40,992 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5f237d5-66a5-45a1-add0-519c46911242', 'name': '', 'tenant_id': '28a74ef77d604957865f646001d0c1d4', 'network_id': 'a3b4cd1d-9e69-477f-9b76-ee096ae0d440', 'ip_version': 4, 'cidr': '138.166.82.64/26', 'allocation_pools': [{'start': '138.166.82.66', 'end': '138.166.82.126'}], 'gateway_ip': '138.166.82.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.166.82.66', 'tags': [], 'project_id': '28a74ef77d604957865f646001d0c1d4'}}
2026-03-16 01:58:41,007 - INFO - Created VN ctest-vn-42506344
2026-03-16 01:58:41,056 - DEBUG - VN ctest-vn-42506344 UUID is a3b4cd1d-9e69-477f-9b76-ee096ae0d440
2026-03-16 01:58:41,379 - DEBUG - Response for create_network : {'network': {'id': '3ebe90dc-569e-4074-9fc0-3c5e28e7c375', 'name': 'ctest-vn-63416185', 'tenant_id': '28a74ef77d604957865f646001d0c1d4', 'project_id': '28a74ef77d604957865f646001d0c1d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-vn-63416185'], 'port_security_enabled': True, 'description': ''}}
2026-03-16 01:58:41,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fdde65c-7cd1-411f-a419-413e585aa1ec', 'name': '', 'tenant_id': '28a74ef77d604957865f646001d0c1d4', 'network_id': '3ebe90dc-569e-4074-9fc0-3c5e28e7c375', 'ip_version': 4, 'cidr': '205.39.34.0/26', 'allocation_pools': [{'start': '205.39.34.2', 'end': '205.39.34.62'}], 'gateway_ip': '205.39.34.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.39.34.2', 'tags': [], 'project_id': '28a74ef77d604957865f646001d0c1d4'}}
2026-03-16 01:58:41,554 - INFO - Created VN ctest-vn-63416185
2026-03-16 01:58:41,604 - DEBUG - VN ctest-vn-63416185 UUID is 3ebe90dc-569e-4074-9fc0-3c5e28e7c375
2026-03-16 01:58:41,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-42506344, 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-60547341:ctest-vn-63416185, 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-03-16 01:58:42,046 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3b4cd1d-9e69-477f-9b76-ee096ae0d440', 'name': 'ctest-vn-42506344', 'tenant_id': '28a74ef77d604957865f646001d0c1d4', 'project_id': '28a74ef77d604957865f646001d0c1d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5f237d5-66a5-45a1-add0-519c46911242'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-vn-42506344'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-policy-allow-all-65840687']], 'subnet_ipam': [{'subnet_cidr': '138.166.82.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-16 01:58:42,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ebe90dc-569e-4074-9fc0-3c5e28e7c375', 'name': 'ctest-vn-63416185', 'tenant_id': '28a74ef77d604957865f646001d0c1d4', 'project_id': '28a74ef77d604957865f646001d0c1d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fdde65c-7cd1-411f-a419-413e585aa1ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-vn-63416185'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-policy-allow-all-65840687']], 'subnet_ipam': [{'subnet_cidr': '205.39.34.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-16 01:58:42,424 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-16 01:58:42,716 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-16 01:58:42,743 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54
2026-03-16 01:58:42,755 - DEBUG - Requesting: http://10.0.0.27:8082/project/28a74ef7-7d60-4957-865f-646001d0c1d4
2026-03-16 01:58:42,822 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a3b4cd1d-9e69-477f-9b76-ee096ae0d440
2026-03-16 01:58:42,832 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a3b4cd1d-9e69-477f-9b76-ee096ae0d440
2026-03-16 01:58:42,841 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4cdb2b0c-d1b3-4a7a-91bd-5ed138560f1d
2026-03-16 01:58:42,847 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4cdb2b0c-d1b3-4a7a-91bd-5ed138560f1d
2026-03-16 01:58:42,852 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/445982ca-6d31-4856-bfaf-15d784b146df
2026-03-16 01:58:42,858 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-16 01:58:42,858 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a3b4cd1d-9e69-477f-9b76-ee096ae0d440
2026-03-16 01:58:42,865 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4cdb2b0c-d1b3-4a7a-91bd-5ed138560f1d
2026-03-16 01:58:42,877 - INFO - Verified VN network id 12 for VN a3b4cd1d-9e69-477f-9b76-ee096ae0d440
2026-03-16 01:58:42,877 - INFO - Verifications in API Server for VN ctest-vn-42506344 passed
2026-03-16 01:58:42,877 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a3b4cd1d-9e69-477f-9b76-ee096ae0d440
2026-03-16 01:58:42,884 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4cdb2b0c-d1b3-4a7a-91bd-5ed138560f1d
2026-03-16 01:58:42,890 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4cdb2b0c-d1b3-4a7a-91bd-5ed138560f1d
2026-03-16 01:58:42,895 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/445982ca-6d31-4856-bfaf-15d784b146df
2026-03-16 01:58:42,903 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-42506344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60547341', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11796278851085617023', 'uuid-lslong': '11202402847345923136'}, 'enable': 'true', 'created': '2026-03-16T01:58:40', 'last-modified': '2026-03-16T01:58:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.881422'}
2026-03-16 01:58:42,910 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-16 01:58:42,910 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42506344 passed
2026-03-16 01:58:42,910 - DEBUG - ====Verifying policy data for ctest-vn-42506344 in API_Server ======
2026-03-16 01:58:42,910 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-16 01:58:42,914 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54
2026-03-16 01:58:42,924 - DEBUG - Requesting: http://10.0.0.27:8082/project/28a74ef7-7d60-4957-865f-646001d0c1d4
2026-03-16 01:58:42,992 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a3b4cd1d-9e69-477f-9b76-ee096ae0d440
2026-03-16 01:58:43,002 - DEBUG - ==>Verifying data for policy with id: 7d41acd4-ff9f-4f73-8816-c02b3377a7a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-policy-allow-all-65840687']
2026-03-16 01:58:43,002 - INFO - VN ctest-vn-42506344 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-16 01:58:43,002 - DEBUG - Verifying the vn in opserver
2026-03-16 01:58:43,002 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-42506344 virtual network link through opserver 10.0.0.27
2026-03-16 01:58:43,002 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-03-16 01:58:43,296 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-03-16 01:58:43,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-42506344', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-42506344?flat'}
2026-03-16 01:58:43,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-42506344 is found in opserver
2026-03-16 01:58:43,365 - DEBUG - Do not have enough data to verify VN in agent
2026-03-16 01:58:43,368 - DEBUG - VRF ids for VN ctest-vn-42506344: {}
2026-03-16 01:58:43,369 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-16 01:58:43,374 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54
2026-03-16 01:58:43,383 - DEBUG - Requesting: http://10.0.0.27:8082/project/28a74ef7-7d60-4957-865f-646001d0c1d4
2026-03-16 01:58:43,448 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3ebe90dc-569e-4074-9fc0-3c5e28e7c375
2026-03-16 01:58:43,457 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3ebe90dc-569e-4074-9fc0-3c5e28e7c375
2026-03-16 01:58:43,465 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06410562-90cd-4221-b15c-5a488ae7d81f
2026-03-16 01:58:43,471 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06410562-90cd-4221-b15c-5a488ae7d81f
2026-03-16 01:58:43,477 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/40f9c055-6926-42c9-ba38-6282ffa1974f
2026-03-16 01:58:43,482 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-16 01:58:43,482 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3ebe90dc-569e-4074-9fc0-3c5e28e7c375
2026-03-16 01:58:43,490 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06410562-90cd-4221-b15c-5a488ae7d81f
2026-03-16 01:58:43,500 - INFO - Verified VN network id 13 for VN 3ebe90dc-569e-4074-9fc0-3c5e28e7c375
2026-03-16 01:58:43,500 - INFO - Verifications in API Server for VN ctest-vn-63416185 passed
2026-03-16 01:58:43,500 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3ebe90dc-569e-4074-9fc0-3c5e28e7c375
2026-03-16 01:58:43,510 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06410562-90cd-4221-b15c-5a488ae7d81f
2026-03-16 01:58:43,516 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06410562-90cd-4221-b15c-5a488ae7d81f
2026-03-16 01:58:43,521 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/40f9c055-6926-42c9-ba38-6282ffa1974f
2026-03-16 01:58:43,530 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-63416185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60547341', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4521210351946973300', 'uuid-lslong': '11511267022669857653'}, 'enable': 'true', 'created': '2026-03-16T01:58:41', 'last-modified': '2026-03-16T01:58:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.288746'}
2026-03-16 01:58:43,535 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-16 01:58:43,535 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63416185 passed
2026-03-16 01:58:43,535 - DEBUG - ====Verifying policy data for ctest-vn-63416185 in API_Server ======
2026-03-16 01:58:43,535 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-16 01:58:43,540 - DEBUG - Requesting: http://10.0.0.27:8082/domain/85060f0a-7d62-46e7-9503-8f44579f9a54
2026-03-16 01:58:43,550 - DEBUG - Requesting: http://10.0.0.27:8082/project/28a74ef7-7d60-4957-865f-646001d0c1d4
2026-03-16 01:58:43,617 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3ebe90dc-569e-4074-9fc0-3c5e28e7c375
2026-03-16 01:58:43,625 - DEBUG - ==>Verifying data for policy with id: 7d41acd4-ff9f-4f73-8816-c02b3377a7a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-60547341', 'ctest-policy-allow-all-65840687']
2026-03-16 01:58:43,626 - INFO - VN ctest-vn-63416185 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-16 01:58:43,626 - DEBUG - Verifying the vn in opserver
2026-03-16 01:58:43,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-63416185 virtual network link through opserver 10.0.0.27
2026-03-16 01:58:43,626 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-03-16 01:58:43,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-63416185', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-63416185?flat'}
2026-03-16 01:58:43,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60547341:ctest-vn-63416185 is found in opserver
2026-03-16 01:58:43,643 - DEBUG - Do not have enough data to verify VN in agent
2026-03-16 01:58:43,646 - DEBUG - VRF ids for VN ctest-vn-63416185: {}
2026-03-16 01:58:43,710 - DEBUG - Services list from nova: [