2026-11-12 14:54:18,941 - INFO - Domain Default found not creating
2026-11-12 14:54:19,128 - INFO - Project ctest-TestBasicPolicy-53611345 not found, creating it
2026-11-12 14:54:19,598 - INFO - Created Project:ctest-TestBasicPolicy-53611345, ID : c0068db8-e728-4873-a151-295a5e2a2d25
2026-11-12 14:54:21,509 - INFO - ================================================================================
2026-11-12 14:54:21,509 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-12 14:54:21,509 - 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-11-12 14:54:21,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with
2026-11-12 14:54:21,764 - INFO - Initial checks done. Running the testcase now
2026-11-12 14:54:21,764 - INFO -
2026-11-12 14:54:22,484 - DEBUG - Response for create_network : {'network': {'id': '0b26c12c-ec02-4a39-a950-0baba8421e2d', 'name': 'ctest-vn-66837881', 'tenant_id': 'c0068db8e7284873a151295a5e2a2d25', 'project_id': 'c0068db8e7284873a151295a5e2a2d25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-vn-66837881'], 'port_security_enabled': True, 'description': ''}}
2026-11-12 14:54:22,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '896d1cf4-6e4b-4dca-9f6c-3f914f3fa09b', 'name': '', 'tenant_id': 'c0068db8e7284873a151295a5e2a2d25', 'network_id': '0b26c12c-ec02-4a39-a950-0baba8421e2d', 'ip_version': 4, 'cidr': '143.76.202.192/26', 'allocation_pools': [{'start': '143.76.202.194', 'end': '143.76.202.254'}], 'gateway_ip': '143.76.202.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.76.202.194', 'tags': [], 'project_id': 'c0068db8e7284873a151295a5e2a2d25'}}
2026-11-12 14:54:22,679 - INFO - Created VN ctest-vn-66837881
2026-11-12 14:54:22,733 - DEBUG - VN ctest-vn-66837881 UUID is 0b26c12c-ec02-4a39-a950-0baba8421e2d
2026-11-12 14:54:23,027 - DEBUG - Response for create_network : {'network': {'id': '6ea2539e-6174-4984-832c-44d7b067f578', 'name': 'ctest-vn-95670762', 'tenant_id': 'c0068db8e7284873a151295a5e2a2d25', 'project_id': 'c0068db8e7284873a151295a5e2a2d25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-vn-95670762'], 'port_security_enabled': True, 'description': ''}}
2026-11-12 14:54:23,260 - DEBUG - Response for create_subnet : {'subnet': {'id': '2784b708-e12f-49ee-ba1c-fa9fbf6a9df9', 'name': '', 'tenant_id': 'c0068db8e7284873a151295a5e2a2d25', 'network_id': '6ea2539e-6174-4984-832c-44d7b067f578', 'ip_version': 4, 'cidr': '176.81.37.64/26', 'allocation_pools': [{'start': '176.81.37.66', 'end': '176.81.37.126'}], 'gateway_ip': '176.81.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.81.37.66', 'tags': [], 'project_id': 'c0068db8e7284873a151295a5e2a2d25'}}
2026-11-12 14:54:23,278 - INFO - Created VN ctest-vn-95670762
2026-11-12 14:54:23,329 - DEBUG - VN ctest-vn-95670762 UUID is 6ea2539e-6174-4984-832c-44d7b067f578
2026-11-12 14:54:23,481 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-66837881, 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-53611345:ctest-vn-95670762, 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-11-12 14:54:23,782 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b26c12c-ec02-4a39-a950-0baba8421e2d', 'name': 'ctest-vn-66837881', 'tenant_id': 'c0068db8e7284873a151295a5e2a2d25', 'project_id': 'c0068db8e7284873a151295a5e2a2d25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['896d1cf4-6e4b-4dca-9f6c-3f914f3fa09b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-vn-66837881'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-policy-allow-all-55456022']], 'subnet_ipam': [{'subnet_cidr': '143.76.202.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-12 14:54:24,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ea2539e-6174-4984-832c-44d7b067f578', 'name': 'ctest-vn-95670762', 'tenant_id': 'c0068db8e7284873a151295a5e2a2d25', 'project_id': 'c0068db8e7284873a151295a5e2a2d25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['2784b708-e12f-49ee-ba1c-fa9fbf6a9df9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-vn-95670762'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-policy-allow-all-55456022']], 'subnet_ipam': [{'subnet_cidr': '176.81.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-12 14:54:24,181 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-12 14:54:24,556 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-12 14:54:24,584 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1
2026-11-12 14:54:24,599 - DEBUG - Requesting: http://10.0.0.177:8082/project/c0068db8-e728-4873-a151-295a5e2a2d25
2026-11-12 14:54:24,673 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0b26c12c-ec02-4a39-a950-0baba8421e2d
2026-11-12 14:54:24,684 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0b26c12c-ec02-4a39-a950-0baba8421e2d
2026-11-12 14:54:24,693 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bab090ac-abe5-4958-94cb-e599313cddb7
2026-11-12 14:54:24,701 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bab090ac-abe5-4958-94cb-e599313cddb7
2026-11-12 14:54:24,708 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/19c0f0f8-a0bb-4abf-a117-4006dfaa7851
2026-11-12 14:54:24,713 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-12 14:54:24,714 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0b26c12c-ec02-4a39-a950-0baba8421e2d
2026-11-12 14:54:24,722 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bab090ac-abe5-4958-94cb-e599313cddb7
2026-11-12 14:54:24,736 - INFO - Verified VN network id 10 for VN 0b26c12c-ec02-4a39-a950-0baba8421e2d
2026-11-12 14:54:24,736 - INFO - Verifications in API Server for VN ctest-vn-66837881 passed
2026-11-12 14:54:24,736 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0b26c12c-ec02-4a39-a950-0baba8421e2d
2026-11-12 14:54:24,744 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bab090ac-abe5-4958-94cb-e599313cddb7
2026-11-12 14:54:24,751 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/bab090ac-abe5-4958-94cb-e599313cddb7
2026-11-12 14:54:24,757 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/19c0f0f8-a0bb-4abf-a117-4006dfaa7851
2026-11-12 14:54:24,769 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-66837881', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53611345', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '803541982214507065', 'uuid-lslong': '12200264222436892205'}, 'enable': 'true', 'created': '2026-11-12T14:54:22', 'last-modified': '2026-11-12T14:54:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012441'}
2026-11-12 14:54:24,776 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-12 14:54:24,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66837881 passed
2026-11-12 14:54:24,777 - DEBUG - ====Verifying policy data for ctest-vn-66837881 in API_Server ======
2026-11-12 14:54:24,777 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-12 14:54:24,782 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1
2026-11-12 14:54:24,791 - DEBUG - Requesting: http://10.0.0.177:8082/project/c0068db8-e728-4873-a151-295a5e2a2d25
2026-11-12 14:54:24,868 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0b26c12c-ec02-4a39-a950-0baba8421e2d
2026-11-12 14:54:24,877 - DEBUG - ==>Verifying data for policy with id: 3b08dcaa-dd1c-4e06-b67f-2c6b43fbbf3b, fqn: ['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-policy-allow-all-55456022']
2026-11-12 14:54:24,877 - INFO - VN ctest-vn-66837881 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-12 14:54:24,877 - DEBUG - Verifying the vn in opserver
2026-11-12 14:54:24,878 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-66837881 virtual network link through opserver 10.0.0.177
2026-11-12 14:54:24,878 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-12 14:54:25,370 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-12 14:54:25,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-66837881', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-66837881?flat'}
2026-11-12 14:54:25,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-66837881 is found in opserver
2026-11-12 14:54:25,451 - DEBUG - Do not have enough data to verify VN in agent
2026-11-12 14:54:25,456 - DEBUG - VRF ids for VN ctest-vn-66837881: {}
2026-11-12 14:54:25,456 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-12 14:54:25,462 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1
2026-11-12 14:54:25,473 - DEBUG - Requesting: http://10.0.0.177:8082/project/c0068db8-e728-4873-a151-295a5e2a2d25
2026-11-12 14:54:25,545 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6ea2539e-6174-4984-832c-44d7b067f578
2026-11-12 14:54:25,558 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6ea2539e-6174-4984-832c-44d7b067f578
2026-11-12 14:54:25,569 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/6797cf57-32da-4c2c-a412-b7cf60ab0fde
2026-11-12 14:54:25,577 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/6797cf57-32da-4c2c-a412-b7cf60ab0fde
2026-11-12 14:54:25,584 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/70630b0e-efad-438f-b262-63785b451016
2026-11-12 14:54:25,595 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-12 14:54:25,596 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6ea2539e-6174-4984-832c-44d7b067f578
2026-11-12 14:54:25,613 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/6797cf57-32da-4c2c-a412-b7cf60ab0fde
2026-11-12 14:54:25,669 - INFO - Verified VN network id 11 for VN 6ea2539e-6174-4984-832c-44d7b067f578
2026-11-12 14:54:25,670 - INFO - Verifications in API Server for VN ctest-vn-95670762 passed
2026-11-12 14:54:25,670 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6ea2539e-6174-4984-832c-44d7b067f578
2026-11-12 14:54:25,683 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/6797cf57-32da-4c2c-a412-b7cf60ab0fde
2026-11-12 14:54:25,691 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/6797cf57-32da-4c2c-a412-b7cf60ab0fde
2026-11-12 14:54:25,698 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/70630b0e-efad-438f-b262-63785b451016
2026-11-12 14:54:25,713 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-95670762', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53611345', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7972026230104148356', 'uuid-lslong': '9452005411112088952'}, 'enable': 'true', 'created': '2026-11-12T14:54:22', 'last-modified': '2026-11-12T14:54:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.695077'}
2026-11-12 14:54:25,720 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-12 14:54:25,721 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95670762 passed
2026-11-12 14:54:25,721 - DEBUG - ====Verifying policy data for ctest-vn-95670762 in API_Server ======
2026-11-12 14:54:25,721 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-12 14:54:25,728 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1
2026-11-12 14:54:25,739 - DEBUG - Requesting: http://10.0.0.177:8082/project/c0068db8-e728-4873-a151-295a5e2a2d25
2026-11-12 14:54:25,827 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6ea2539e-6174-4984-832c-44d7b067f578
2026-11-12 14:54:25,871 - DEBUG - ==>Verifying data for policy with id: 3b08dcaa-dd1c-4e06-b67f-2c6b43fbbf3b, fqn: ['default-domain', 'ctest-TestBasicPolicy-53611345', 'ctest-policy-allow-all-55456022']
2026-11-12 14:54:25,871 - INFO - VN ctest-vn-95670762 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-12 14:54:25,872 - DEBUG - Verifying the vn in opserver
2026-11-12 14:54:25,872 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-95670762 virtual network link through opserver 10.0.0.177
2026-11-12 14:54:25,872 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-12 14:54:25,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-95670762', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-95670762?flat'}
2026-11-12 14:54:25,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53611345:ctest-vn-95670762 is found in opserver
2026-11-12 14:54:25,909 - DEBUG - Do not have enough data to verify VN in agent
2026-11-12 14:54:25,916 - DEBUG - VRF ids for VN ctest-vn-95670762: {}
2026-11-12 14:54:25,990 - DEBUG - Services list from nova: [