2025-10-09 13:37:16,492 - INFO - Domain Default found not creating
2025-10-09 13:37:16,669 - INFO - Project ctest-TestBasicPolicy-57400122 not found, creating it
2025-10-09 13:37:17,406 - INFO - Created Project:ctest-TestBasicPolicy-57400122, ID : da6cacee-28eb-4c72-bfa7-42079443d25e
2025-10-09 13:37:18,817 - INFO - ================================================================================
2025-10-09 13:37:18,817 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 13:37:18,817 - 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
2025-10-09 13:37:19,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-10-09 13:37:19,071 - INFO - Initial checks done. Running the testcase now
2025-10-09 13:37:19,071 - INFO -
2025-10-09 13:37:19,621 - DEBUG - Response for create_network : {'network': {'id': '95b23c1c-0b60-4afb-a181-8070ab1e8686', 'name': 'ctest-vn-58975484', 'tenant_id': 'da6cacee28eb4c72bfa742079443d25e', 'project_id': 'da6cacee28eb4c72bfa742079443d25e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-vn-58975484'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 13:37:19,827 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d7133bf-c68a-4a6f-b2c7-d381391687ed', 'name': '', 'tenant_id': 'da6cacee28eb4c72bfa742079443d25e', 'network_id': '95b23c1c-0b60-4afb-a181-8070ab1e8686', 'ip_version': 4, 'cidr': '188.247.226.0/26', 'allocation_pools': [{'start': '188.247.226.2', 'end': '188.247.226.62'}], 'gateway_ip': '188.247.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.247.226.2', 'tags': [], 'project_id': 'da6cacee28eb4c72bfa742079443d25e'}}
2025-10-09 13:37:19,845 - INFO - Created VN ctest-vn-58975484
2025-10-09 13:37:19,897 - DEBUG - VN ctest-vn-58975484 UUID is 95b23c1c-0b60-4afb-a181-8070ab1e8686
2025-10-09 13:37:20,235 - DEBUG - Response for create_network : {'network': {'id': '1666fbc0-5393-45be-af6b-d6b8b9e5aa60', 'name': 'ctest-vn-86353653', 'tenant_id': 'da6cacee28eb4c72bfa742079443d25e', 'project_id': 'da6cacee28eb4c72bfa742079443d25e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-vn-86353653'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 13:37:20,390 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4717de2-fd21-4063-9cb3-6f577e08afe0', 'name': '', 'tenant_id': 'da6cacee28eb4c72bfa742079443d25e', 'network_id': '1666fbc0-5393-45be-af6b-d6b8b9e5aa60', 'ip_version': 4, 'cidr': '136.78.240.0/26', 'allocation_pools': [{'start': '136.78.240.2', 'end': '136.78.240.62'}], 'gateway_ip': '136.78.240.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.78.240.2', 'tags': [], 'project_id': 'da6cacee28eb4c72bfa742079443d25e'}}
2025-10-09 13:37:20,410 - INFO - Created VN ctest-vn-86353653
2025-10-09 13:37:20,461 - DEBUG - VN ctest-vn-86353653 UUID is 1666fbc0-5393-45be-af6b-d6b8b9e5aa60
2025-10-09 13:37:20,609 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-58975484, 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-57400122:ctest-vn-86353653, 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]
2025-10-09 13:37:20,907 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95b23c1c-0b60-4afb-a181-8070ab1e8686', 'name': 'ctest-vn-58975484', 'tenant_id': 'da6cacee28eb4c72bfa742079443d25e', 'project_id': 'da6cacee28eb4c72bfa742079443d25e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d7133bf-c68a-4a6f-b2c7-d381391687ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-vn-58975484'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-policy-allow-all-68986912']], 'subnet_ipam': [{'subnet_cidr': '188.247.226.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 13:37:21,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1666fbc0-5393-45be-af6b-d6b8b9e5aa60', 'name': 'ctest-vn-86353653', 'tenant_id': 'da6cacee28eb4c72bfa742079443d25e', 'project_id': 'da6cacee28eb4c72bfa742079443d25e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4717de2-fd21-4063-9cb3-6f577e08afe0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-vn-86353653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-policy-allow-all-68986912']], 'subnet_ipam': [{'subnet_cidr': '136.78.240.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 13:37:21,301 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 13:37:21,594 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 13:37:21,622 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715
2025-10-09 13:37:21,633 - DEBUG - Requesting: http://10.0.0.242:8082/project/da6cacee-28eb-4c72-bfa7-42079443d25e
2025-10-09 13:37:21,708 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/95b23c1c-0b60-4afb-a181-8070ab1e8686
2025-10-09 13:37:21,718 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/95b23c1c-0b60-4afb-a181-8070ab1e8686
2025-10-09 13:37:21,727 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7ce87aea-25ec-4131-9a71-979523cf1b8c
2025-10-09 13:37:21,733 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7ce87aea-25ec-4131-9a71-979523cf1b8c
2025-10-09 13:37:21,739 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/001213f2-a394-4c4f-aca3-832d8adca251
2025-10-09 13:37:21,745 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 13:37:21,745 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/95b23c1c-0b60-4afb-a181-8070ab1e8686
2025-10-09 13:37:21,752 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7ce87aea-25ec-4131-9a71-979523cf1b8c
2025-10-09 13:37:21,766 - INFO - Verified VN network id 11 for VN 95b23c1c-0b60-4afb-a181-8070ab1e8686
2025-10-09 13:37:21,766 - INFO - Verifications in API Server for VN ctest-vn-58975484 passed
2025-10-09 13:37:21,766 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/95b23c1c-0b60-4afb-a181-8070ab1e8686
2025-10-09 13:37:21,775 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7ce87aea-25ec-4131-9a71-979523cf1b8c
2025-10-09 13:37:21,782 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7ce87aea-25ec-4131-9a71-979523cf1b8c
2025-10-09 13:37:21,788 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/001213f2-a394-4c4f-aca3-832d8adca251
2025-10-09 13:37:21,803 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-58975484', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57400122', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10786750148653370107', 'uuid-lslong': '11637724133497669254'}, 'enable': 'true', 'created': '2025-10-09T13:37:19', 'last-modified': '2025-10-09T13:37:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917901'}
2025-10-09 13:37:21,809 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 13:37:21,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58975484 passed
2025-10-09 13:37:21,809 - DEBUG - ====Verifying policy data for ctest-vn-58975484 in API_Server ======
2025-10-09 13:37:21,809 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 13:37:21,814 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715
2025-10-09 13:37:21,826 - DEBUG - Requesting: http://10.0.0.242:8082/project/da6cacee-28eb-4c72-bfa7-42079443d25e
2025-10-09 13:37:21,897 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/95b23c1c-0b60-4afb-a181-8070ab1e8686
2025-10-09 13:37:21,908 - DEBUG - ==>Verifying data for policy with id: aa38b381-72b8-41e3-a4b8-868c3af6ba64, fqn: ['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-policy-allow-all-68986912']
2025-10-09 13:37:21,908 - INFO - VN ctest-vn-58975484 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 13:37:21,908 - DEBUG - Verifying the vn in opserver
2025-10-09 13:37:21,908 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-58975484 virtual network link through opserver 10.0.0.242
2025-10-09 13:37:21,908 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-09 13:37:22,195 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-09 13:37:22,250 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-58975484', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-58975484?flat'}
2025-10-09 13:37:22,250 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-58975484 is found in opserver
2025-10-09 13:37:22,261 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 13:37:22,265 - DEBUG - VRF ids for VN ctest-vn-58975484: {}
2025-10-09 13:37:22,265 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 13:37:22,270 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715
2025-10-09 13:37:22,280 - DEBUG - Requesting: http://10.0.0.242:8082/project/da6cacee-28eb-4c72-bfa7-42079443d25e
2025-10-09 13:37:22,353 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1666fbc0-5393-45be-af6b-d6b8b9e5aa60
2025-10-09 13:37:22,364 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1666fbc0-5393-45be-af6b-d6b8b9e5aa60
2025-10-09 13:37:22,372 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/57e17884-42cc-497b-9f87-c53a61a8d7fd
2025-10-09 13:37:22,379 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/57e17884-42cc-497b-9f87-c53a61a8d7fd
2025-10-09 13:37:22,386 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4905913f-5164-44e5-aa41-ea067b9e0733
2025-10-09 13:37:22,392 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 13:37:22,392 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1666fbc0-5393-45be-af6b-d6b8b9e5aa60
2025-10-09 13:37:22,401 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/57e17884-42cc-497b-9f87-c53a61a8d7fd
2025-10-09 13:37:22,414 - INFO - Verified VN network id 12 for VN 1666fbc0-5393-45be-af6b-d6b8b9e5aa60
2025-10-09 13:37:22,414 - INFO - Verifications in API Server for VN ctest-vn-86353653 passed
2025-10-09 13:37:22,414 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1666fbc0-5393-45be-af6b-d6b8b9e5aa60
2025-10-09 13:37:22,423 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/57e17884-42cc-497b-9f87-c53a61a8d7fd
2025-10-09 13:37:22,429 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/57e17884-42cc-497b-9f87-c53a61a8d7fd
2025-10-09 13:37:22,435 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4905913f-5164-44e5-aa41-ea067b9e0733
2025-10-09 13:37:22,445 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-86353653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57400122', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1614254319913354686', 'uuid-lslong': '12640432868026591840'}, 'enable': 'true', 'created': '2025-10-09T13:37:20', 'last-modified': '2025-10-09T13:37:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.330349'}
2025-10-09 13:37:22,451 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 13:37:22,451 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86353653 passed
2025-10-09 13:37:22,451 - DEBUG - ====Verifying policy data for ctest-vn-86353653 in API_Server ======
2025-10-09 13:37:22,451 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-09 13:37:22,456 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01793127-1b6b-4017-accb-3b3416179715
2025-10-09 13:37:22,466 - DEBUG - Requesting: http://10.0.0.242:8082/project/da6cacee-28eb-4c72-bfa7-42079443d25e
2025-10-09 13:37:22,534 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1666fbc0-5393-45be-af6b-d6b8b9e5aa60
2025-10-09 13:37:22,542 - DEBUG - ==>Verifying data for policy with id: aa38b381-72b8-41e3-a4b8-868c3af6ba64, fqn: ['default-domain', 'ctest-TestBasicPolicy-57400122', 'ctest-policy-allow-all-68986912']
2025-10-09 13:37:22,542 - INFO - VN ctest-vn-86353653 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 13:37:22,542 - DEBUG - Verifying the vn in opserver
2025-10-09 13:37:22,542 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-86353653 virtual network link through opserver 10.0.0.242
2025-10-09 13:37:22,542 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-09 13:37:22,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-86353653', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-86353653?flat'}
2025-10-09 13:37:22,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57400122:ctest-vn-86353653 is found in opserver
2025-10-09 13:37:22,562 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 13:37:22,566 - DEBUG - VRF ids for VN ctest-vn-86353653: {}
2025-10-09 13:37:22,623 - DEBUG - Services list from nova: [