2026-11-07 05:17:39,146 - INFO - Domain Default found not creating
2026-11-07 05:17:39,325 - INFO - Project ctest-TestBasicPolicy-43350776 not found, creating it
2026-11-07 05:17:39,819 - INFO - Created Project:ctest-TestBasicPolicy-43350776, ID : a79bae55-a400-458b-bc44-a0e9de9618ce
2026-11-07 05:17:41,461 - INFO - ================================================================================
2026-11-07 05:17:41,462 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-07 05:17:41,462 - 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-07 05:17:41,729 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with
2026-11-07 05:17:41,729 - INFO - Initial checks done. Running the testcase now
2026-11-07 05:17:41,729 - INFO -
2026-11-07 05:17:42,330 - DEBUG - Response for create_network : {'network': {'id': 'a9edd1a8-2a57-425e-8824-77eb7048a925', 'name': 'ctest-vn-45374236', 'tenant_id': 'a79bae55a400458bbc44a0e9de9618ce', 'project_id': 'a79bae55a400458bbc44a0e9de9618ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-vn-45374236'], 'port_security_enabled': True, 'description': ''}}
2026-11-07 05:17:42,546 - DEBUG - Response for create_subnet : {'subnet': {'id': '161e48cc-c0e8-45c6-bd21-05e5995da72a', 'name': '', 'tenant_id': 'a79bae55a400458bbc44a0e9de9618ce', 'network_id': 'a9edd1a8-2a57-425e-8824-77eb7048a925', 'ip_version': 4, 'cidr': '13.198.0.192/26', 'allocation_pools': [{'start': '13.198.0.194', 'end': '13.198.0.254'}], 'gateway_ip': '13.198.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.198.0.194', 'tags': [], 'project_id': 'a79bae55a400458bbc44a0e9de9618ce'}}
2026-11-07 05:17:42,567 - INFO - Created VN ctest-vn-45374236
2026-11-07 05:17:42,623 - DEBUG - VN ctest-vn-45374236 UUID is a9edd1a8-2a57-425e-8824-77eb7048a925
2026-11-07 05:17:42,948 - DEBUG - Response for create_network : {'network': {'id': 'ce0e545e-df3c-45bf-9d1c-1a5067d849c2', 'name': 'ctest-vn-99508447', 'tenant_id': 'a79bae55a400458bbc44a0e9de9618ce', 'project_id': 'a79bae55a400458bbc44a0e9de9618ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-vn-99508447'], 'port_security_enabled': True, 'description': ''}}
2026-11-07 05:17:43,137 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e832c05e-707c-4064-bb93-9b3336e4b40f', 'name': '', 'tenant_id': 'a79bae55a400458bbc44a0e9de9618ce', 'network_id': 'ce0e545e-df3c-45bf-9d1c-1a5067d849c2', 'ip_version': 4, 'cidr': '104.65.96.0/26', 'allocation_pools': [{'start': '104.65.96.2', 'end': '104.65.96.62'}], 'gateway_ip': '104.65.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.65.96.2', 'tags': [], 'project_id': 'a79bae55a400458bbc44a0e9de9618ce'}}
2026-11-07 05:17:43,155 - INFO - Created VN ctest-vn-99508447
2026-11-07 05:17:43,207 - DEBUG - VN ctest-vn-99508447 UUID is ce0e545e-df3c-45bf-9d1c-1a5067d849c2
2026-11-07 05:17:43,355 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-45374236, 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-43350776:ctest-vn-99508447, 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-07 05:17:43,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9edd1a8-2a57-425e-8824-77eb7048a925', 'name': 'ctest-vn-45374236', 'tenant_id': 'a79bae55a400458bbc44a0e9de9618ce', 'project_id': 'a79bae55a400458bbc44a0e9de9618ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['161e48cc-c0e8-45c6-bd21-05e5995da72a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-vn-45374236'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-policy-allow-all-38364535']], 'subnet_ipam': [{'subnet_cidr': '13.198.0.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-07 05:17:43,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce0e545e-df3c-45bf-9d1c-1a5067d849c2', 'name': 'ctest-vn-99508447', 'tenant_id': 'a79bae55a400458bbc44a0e9de9618ce', 'project_id': 'a79bae55a400458bbc44a0e9de9618ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e832c05e-707c-4064-bb93-9b3336e4b40f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-vn-99508447'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-policy-allow-all-38364535']], 'subnet_ipam': [{'subnet_cidr': '104.65.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-07 05:17:44,071 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-11-07 05:17:44,462 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-11-07 05:17:44,493 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22
2026-11-07 05:17:44,506 - DEBUG - Requesting: http://10.0.0.185:8082/project/a79bae55-a400-458b-bc44-a0e9de9618ce
2026-11-07 05:17:44,583 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a9edd1a8-2a57-425e-8824-77eb7048a925
2026-11-07 05:17:44,595 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a9edd1a8-2a57-425e-8824-77eb7048a925
2026-11-07 05:17:44,605 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/7b3d36fb-ad9f-48e8-8d86-ad6d1d5e939a
2026-11-07 05:17:44,612 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/7b3d36fb-ad9f-48e8-8d86-ad6d1d5e939a
2026-11-07 05:17:44,619 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/82f91e9c-7e02-4ee9-8a81-960589a8f9ba
2026-11-07 05:17:44,625 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-07 05:17:44,625 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a9edd1a8-2a57-425e-8824-77eb7048a925
2026-11-07 05:17:44,634 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/7b3d36fb-ad9f-48e8-8d86-ad6d1d5e939a
2026-11-07 05:17:44,649 - INFO - Verified VN network id 12 for VN a9edd1a8-2a57-425e-8824-77eb7048a925
2026-11-07 05:17:44,649 - INFO - Verifications in API Server for VN ctest-vn-45374236 passed
2026-11-07 05:17:44,649 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a9edd1a8-2a57-425e-8824-77eb7048a925
2026-11-07 05:17:44,658 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/7b3d36fb-ad9f-48e8-8d86-ad6d1d5e939a
2026-11-07 05:17:44,665 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/7b3d36fb-ad9f-48e8-8d86-ad6d1d5e939a
2026-11-07 05:17:44,673 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/82f91e9c-7e02-4ee9-8a81-960589a8f9ba
2026-11-07 05:17:44,685 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-45374236', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43350776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12244673482085319262', 'uuid-lslong': '9810097741404612901'}, 'enable': 'true', 'created': '2026-11-07T05:17:42', 'last-modified': '2026-11-07T05:17:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.054248'}
2026-11-07 05:17:44,693 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-07 05:17:44,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45374236 passed
2026-11-07 05:17:44,693 - DEBUG - ====Verifying policy data for ctest-vn-45374236 in API_Server ======
2026-11-07 05:17:44,693 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-11-07 05:17:44,699 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22
2026-11-07 05:17:44,709 - DEBUG - Requesting: http://10.0.0.185:8082/project/a79bae55-a400-458b-bc44-a0e9de9618ce
2026-11-07 05:17:44,787 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a9edd1a8-2a57-425e-8824-77eb7048a925
2026-11-07 05:17:44,795 - DEBUG - ==>Verifying data for policy with id: 13487a15-4227-430e-80d4-d67abe22366f, fqn: ['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-policy-allow-all-38364535']
2026-11-07 05:17:44,795 - INFO - VN ctest-vn-45374236 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-07 05:17:44,795 - DEBUG - Verifying the vn in opserver
2026-11-07 05:17:44,795 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-45374236 virtual network link through opserver 10.0.0.185
2026-11-07 05:17:44,795 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-11-07 05:17:45,117 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-11-07 05:17:45,169 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-45374236', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-45374236?flat'}
2026-11-07 05:17:45,169 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-45374236 is found in opserver
2026-11-07 05:17:45,178 - DEBUG - Do not have enough data to verify VN in agent
2026-11-07 05:17:45,184 - DEBUG - VRF ids for VN ctest-vn-45374236: {}
2026-11-07 05:17:45,184 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-11-07 05:17:45,189 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22
2026-11-07 05:17:45,200 - DEBUG - Requesting: http://10.0.0.185:8082/project/a79bae55-a400-458b-bc44-a0e9de9618ce
2026-11-07 05:17:45,271 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ce0e545e-df3c-45bf-9d1c-1a5067d849c2
2026-11-07 05:17:45,282 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ce0e545e-df3c-45bf-9d1c-1a5067d849c2
2026-11-07 05:17:45,291 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4c204776-2e97-4fe7-9493-e92878b102b4
2026-11-07 05:17:45,299 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4c204776-2e97-4fe7-9493-e92878b102b4
2026-11-07 05:17:45,305 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/6d58fe5b-6f52-43da-be2d-a040deb88e42
2026-11-07 05:17:45,312 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-07 05:17:45,312 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ce0e545e-df3c-45bf-9d1c-1a5067d849c2
2026-11-07 05:17:45,320 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4c204776-2e97-4fe7-9493-e92878b102b4
2026-11-07 05:17:45,333 - INFO - Verified VN network id 13 for VN ce0e545e-df3c-45bf-9d1c-1a5067d849c2
2026-11-07 05:17:45,333 - INFO - Verifications in API Server for VN ctest-vn-99508447 passed
2026-11-07 05:17:45,333 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ce0e545e-df3c-45bf-9d1c-1a5067d849c2
2026-11-07 05:17:45,343 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4c204776-2e97-4fe7-9493-e92878b102b4
2026-11-07 05:17:45,351 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4c204776-2e97-4fe7-9493-e92878b102b4
2026-11-07 05:17:45,357 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/6d58fe5b-6f52-43da-be2d-a040deb88e42
2026-11-07 05:17:45,370 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-99508447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43350776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14847897787936032191', 'uuid-lslong': '11320952495944518082'}, 'enable': 'true', 'created': '2026-11-07T05:17:42', 'last-modified': '2026-11-07T05:17:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499224'}
2026-11-07 05:17:45,376 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-07 05:17:45,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99508447 passed
2026-11-07 05:17:45,376 - DEBUG - ====Verifying policy data for ctest-vn-99508447 in API_Server ======
2026-11-07 05:17:45,376 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-11-07 05:17:45,382 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22
2026-11-07 05:17:45,392 - DEBUG - Requesting: http://10.0.0.185:8082/project/a79bae55-a400-458b-bc44-a0e9de9618ce
2026-11-07 05:17:45,470 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ce0e545e-df3c-45bf-9d1c-1a5067d849c2
2026-11-07 05:17:45,480 - DEBUG - ==>Verifying data for policy with id: 13487a15-4227-430e-80d4-d67abe22366f, fqn: ['default-domain', 'ctest-TestBasicPolicy-43350776', 'ctest-policy-allow-all-38364535']
2026-11-07 05:17:45,480 - INFO - VN ctest-vn-99508447 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-07 05:17:45,481 - DEBUG - Verifying the vn in opserver
2026-11-07 05:17:45,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-99508447 virtual network link through opserver 10.0.0.185
2026-11-07 05:17:45,481 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-11-07 05:17:45,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-99508447', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-99508447?flat'}
2026-11-07 05:17:45,492 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43350776:ctest-vn-99508447 is found in opserver
2026-11-07 05:17:45,502 - DEBUG - Do not have enough data to verify VN in agent
2026-11-07 05:17:45,508 - DEBUG - VRF ids for VN ctest-vn-99508447: {}
2026-11-07 05:17:45,581 - DEBUG - Services list from nova: [