2026-04-07 14:32:48,740 - INFO - Domain Default found not creating
2026-04-07 14:32:48,927 - INFO - Project ctest-TestBasicPolicy-28394340 not found, creating it
2026-04-07 14:32:49,387 - INFO - Created Project:ctest-TestBasicPolicy-28394340, ID : 948b4b16-94ee-441f-bf0a-13722769085c
2026-04-07 14:32:50,879 - INFO - ================================================================================
2026-04-07 14:32:50,879 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-07 14:32:50,879 - 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-04-07 14:32:51,137 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-07 14:32:51,137 - INFO - Initial checks done. Running the testcase now
2026-04-07 14:32:51,137 - INFO -
2026-04-07 14:32:51,720 - DEBUG - Response for create_network : {'network': {'id': 'f9ad90f8-f133-45dc-aae0-bb807675b647', 'name': 'ctest-vn-19057198', 'tenant_id': '948b4b1694ee441fbf0a13722769085c', 'project_id': '948b4b1694ee441fbf0a13722769085c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-vn-19057198'], 'port_security_enabled': True, 'description': ''}}
2026-04-07 14:32:51,930 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1fed93d-61ec-498f-9c13-b2691f167f4c', 'name': '', 'tenant_id': '948b4b1694ee441fbf0a13722769085c', 'network_id': 'f9ad90f8-f133-45dc-aae0-bb807675b647', 'ip_version': 4, 'cidr': '8.138.118.192/26', 'allocation_pools': [{'start': '8.138.118.194', 'end': '8.138.118.254'}], 'gateway_ip': '8.138.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.138.118.194', 'tags': [], 'project_id': '948b4b1694ee441fbf0a13722769085c'}}
2026-04-07 14:32:51,947 - INFO - Created VN ctest-vn-19057198
2026-04-07 14:32:51,999 - DEBUG - VN ctest-vn-19057198 UUID is f9ad90f8-f133-45dc-aae0-bb807675b647
2026-04-07 14:32:52,293 - DEBUG - Response for create_network : {'network': {'id': '3afcb7a3-761b-42af-aea1-3a67506ac564', 'name': 'ctest-vn-22153737', 'tenant_id': '948b4b1694ee441fbf0a13722769085c', 'project_id': '948b4b1694ee441fbf0a13722769085c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-vn-22153737'], 'port_security_enabled': True, 'description': ''}}
2026-04-07 14:32:52,491 - DEBUG - Response for create_subnet : {'subnet': {'id': '37356963-68bd-4e54-9a95-2998eba41bad', 'name': '', 'tenant_id': '948b4b1694ee441fbf0a13722769085c', 'network_id': '3afcb7a3-761b-42af-aea1-3a67506ac564', 'ip_version': 4, 'cidr': '82.166.107.0/26', 'allocation_pools': [{'start': '82.166.107.2', 'end': '82.166.107.62'}], 'gateway_ip': '82.166.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.166.107.2', 'tags': [], 'project_id': '948b4b1694ee441fbf0a13722769085c'}}
2026-04-07 14:32:52,510 - INFO - Created VN ctest-vn-22153737
2026-04-07 14:32:52,563 - DEBUG - VN ctest-vn-22153737 UUID is 3afcb7a3-761b-42af-aea1-3a67506ac564
2026-04-07 14:32:52,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-19057198, 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-28394340:ctest-vn-22153737, 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-04-07 14:32:52,969 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9ad90f8-f133-45dc-aae0-bb807675b647', 'name': 'ctest-vn-19057198', 'tenant_id': '948b4b1694ee441fbf0a13722769085c', 'project_id': '948b4b1694ee441fbf0a13722769085c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1fed93d-61ec-498f-9c13-b2691f167f4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-vn-19057198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-policy-allow-all-93961649']], 'subnet_ipam': [{'subnet_cidr': '8.138.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-07 14:32:53,200 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3afcb7a3-761b-42af-aea1-3a67506ac564', 'name': 'ctest-vn-22153737', 'tenant_id': '948b4b1694ee441fbf0a13722769085c', 'project_id': '948b4b1694ee441fbf0a13722769085c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37356963-68bd-4e54-9a95-2998eba41bad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-vn-22153737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-policy-allow-all-93961649']], 'subnet_ipam': [{'subnet_cidr': '82.166.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-07 14:32:53,363 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-07 14:32:53,655 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-07 14:32:53,687 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e
2026-04-07 14:32:53,699 - DEBUG - Requesting: http://10.0.0.38:8082/project/948b4b16-94ee-441f-bf0a-13722769085c
2026-04-07 14:32:53,773 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9ad90f8-f133-45dc-aae0-bb807675b647
2026-04-07 14:32:53,784 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9ad90f8-f133-45dc-aae0-bb807675b647
2026-04-07 14:32:53,794 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d1e81a49-65bb-47e2-866d-6799a12f595e
2026-04-07 14:32:53,802 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d1e81a49-65bb-47e2-866d-6799a12f595e
2026-04-07 14:32:53,810 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ec6ba0c2-1c41-4b73-b863-0d3184f3ff02
2026-04-07 14:32:53,816 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-07 14:32:53,816 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9ad90f8-f133-45dc-aae0-bb807675b647
2026-04-07 14:32:53,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d1e81a49-65bb-47e2-866d-6799a12f595e
2026-04-07 14:32:53,838 - INFO - Verified VN network id 11 for VN f9ad90f8-f133-45dc-aae0-bb807675b647
2026-04-07 14:32:53,838 - INFO - Verifications in API Server for VN ctest-vn-19057198 passed
2026-04-07 14:32:53,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9ad90f8-f133-45dc-aae0-bb807675b647
2026-04-07 14:32:53,847 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d1e81a49-65bb-47e2-866d-6799a12f595e
2026-04-07 14:32:53,853 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d1e81a49-65bb-47e2-866d-6799a12f595e
2026-04-07 14:32:53,859 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ec6ba0c2-1c41-4b73-b863-0d3184f3ff02
2026-04-07 14:32:53,871 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-19057198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28394340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17991195485287957980', 'uuid-lslong': '12313047541648569927'}, 'enable': 'true', 'created': '2026-04-07T14:32:51', 'last-modified': '2026-04-07T14:32:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923642'}
2026-04-07 14:32:53,876 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-07 14:32:53,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19057198 passed
2026-04-07 14:32:53,877 - DEBUG - ====Verifying policy data for ctest-vn-19057198 in API_Server ======
2026-04-07 14:32:53,877 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-07 14:32:53,882 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e
2026-04-07 14:32:53,893 - DEBUG - Requesting: http://10.0.0.38:8082/project/948b4b16-94ee-441f-bf0a-13722769085c
2026-04-07 14:32:53,964 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f9ad90f8-f133-45dc-aae0-bb807675b647
2026-04-07 14:32:53,973 - DEBUG - ==>Verifying data for policy with id: 79d6f7b4-e728-46e1-b755-1795c6a1a5af, fqn: ['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-policy-allow-all-93961649']
2026-04-07 14:32:53,973 - INFO - VN ctest-vn-19057198 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-07 14:32:53,973 - DEBUG - Verifying the vn in opserver
2026-04-07 14:32:53,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-19057198 virtual network link through opserver 10.0.0.38
2026-04-07 14:32:53,973 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-07 14:32:54,273 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-07 14:32:54,337 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-19057198', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-19057198?flat'}
2026-04-07 14:32:54,337 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-19057198 is found in opserver
2026-04-07 14:32:54,347 - DEBUG - Do not have enough data to verify VN in agent
2026-04-07 14:32:54,354 - DEBUG - VRF ids for VN ctest-vn-19057198: {}
2026-04-07 14:32:54,354 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-07 14:32:54,361 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e
2026-04-07 14:32:54,373 - DEBUG - Requesting: http://10.0.0.38:8082/project/948b4b16-94ee-441f-bf0a-13722769085c
2026-04-07 14:32:54,445 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3afcb7a3-761b-42af-aea1-3a67506ac564
2026-04-07 14:32:54,456 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3afcb7a3-761b-42af-aea1-3a67506ac564
2026-04-07 14:32:54,465 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c61e3ece-cfa9-4a0b-9e7b-62fc488156e8
2026-04-07 14:32:54,472 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c61e3ece-cfa9-4a0b-9e7b-62fc488156e8
2026-04-07 14:32:54,479 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d2d6dbd2-a983-407c-b53f-c5268a17d18a
2026-04-07 14:32:54,486 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-07 14:32:54,486 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3afcb7a3-761b-42af-aea1-3a67506ac564
2026-04-07 14:32:54,498 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c61e3ece-cfa9-4a0b-9e7b-62fc488156e8
2026-04-07 14:32:54,514 - INFO - Verified VN network id 12 for VN 3afcb7a3-761b-42af-aea1-3a67506ac564
2026-04-07 14:32:54,514 - INFO - Verifications in API Server for VN ctest-vn-22153737 passed
2026-04-07 14:32:54,514 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3afcb7a3-761b-42af-aea1-3a67506ac564
2026-04-07 14:32:54,523 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c61e3ece-cfa9-4a0b-9e7b-62fc488156e8
2026-04-07 14:32:54,530 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c61e3ece-cfa9-4a0b-9e7b-62fc488156e8
2026-04-07 14:32:54,538 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d2d6dbd2-a983-407c-b53f-c5268a17d18a
2026-04-07 14:32:54,552 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-22153737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28394340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4250474061019955887', 'uuid-lslong': '12583403049255093604'}, 'enable': 'true', 'created': '2026-04-07T14:32:52', 'last-modified': '2026-04-07T14:32:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367926'}
2026-04-07 14:32:54,559 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-07 14:32:54,559 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22153737 passed
2026-04-07 14:32:54,559 - DEBUG - ====Verifying policy data for ctest-vn-22153737 in API_Server ======
2026-04-07 14:32:54,559 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-07 14:32:54,568 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e
2026-04-07 14:32:54,579 - DEBUG - Requesting: http://10.0.0.38:8082/project/948b4b16-94ee-441f-bf0a-13722769085c
2026-04-07 14:32:54,648 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3afcb7a3-761b-42af-aea1-3a67506ac564
2026-04-07 14:32:54,657 - DEBUG - ==>Verifying data for policy with id: 79d6f7b4-e728-46e1-b755-1795c6a1a5af, fqn: ['default-domain', 'ctest-TestBasicPolicy-28394340', 'ctest-policy-allow-all-93961649']
2026-04-07 14:32:54,657 - INFO - VN ctest-vn-22153737 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-07 14:32:54,657 - DEBUG - Verifying the vn in opserver
2026-04-07 14:32:54,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-22153737 virtual network link through opserver 10.0.0.38
2026-04-07 14:32:54,657 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-07 14:32:54,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-22153737', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-22153737?flat'}
2026-04-07 14:32:54,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28394340:ctest-vn-22153737 is found in opserver
2026-04-07 14:32:54,677 - DEBUG - Do not have enough data to verify VN in agent
2026-04-07 14:32:54,681 - DEBUG - VRF ids for VN ctest-vn-22153737: {}
2026-04-07 14:32:54,753 - DEBUG - Services list from nova: [