2025-12-22 14:01:27,298 - INFO - Domain Default found not creating
2025-12-22 14:01:27,516 - INFO - Project ctest-TestBasicPolicy-82088475 not found, creating it
2025-12-22 14:01:27,999 - INFO - Created Project:ctest-TestBasicPolicy-82088475, ID : 461e95db-553e-4801-9fb2-f1044eb62720
2025-12-22 14:01:29,616 - INFO - ================================================================================
2025-12-22 14:01:29,616 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-22 14:01:29,616 - 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-12-22 14:01:29,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-12-22 14:01:29,887 - INFO - Initial checks done. Running the testcase now
2025-12-22 14:01:29,887 - INFO -
2025-12-22 14:01:30,497 - DEBUG - Response for create_network : {'network': {'id': 'b21da9d7-da26-4b30-b777-cf0b55b832bb', 'name': 'ctest-vn-51580936', 'tenant_id': '461e95db553e48019fb2f1044eb62720', 'project_id': '461e95db553e48019fb2f1044eb62720', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-vn-51580936'], 'port_security_enabled': True, 'description': ''}}
2025-12-22 14:01:30,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '3eb2b321-d9e1-4a96-a69b-77aa99f8bdad', 'name': '', 'tenant_id': '461e95db553e48019fb2f1044eb62720', 'network_id': 'b21da9d7-da26-4b30-b777-cf0b55b832bb', 'ip_version': 4, 'cidr': '101.175.201.192/26', 'allocation_pools': [{'start': '101.175.201.194', 'end': '101.175.201.254'}], 'gateway_ip': '101.175.201.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.175.201.194', 'tags': [], 'project_id': '461e95db553e48019fb2f1044eb62720'}}
2025-12-22 14:01:30,751 - INFO - Created VN ctest-vn-51580936
2025-12-22 14:01:30,805 - DEBUG - VN ctest-vn-51580936 UUID is b21da9d7-da26-4b30-b777-cf0b55b832bb
2025-12-22 14:01:31,136 - DEBUG - Response for create_network : {'network': {'id': '0dc2eb36-daba-4146-baec-d2f9c2261703', 'name': 'ctest-vn-26845704', 'tenant_id': '461e95db553e48019fb2f1044eb62720', 'project_id': '461e95db553e48019fb2f1044eb62720', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-vn-26845704'], 'port_security_enabled': True, 'description': ''}}
2025-12-22 14:01:31,329 - DEBUG - Response for create_subnet : {'subnet': {'id': '07369c52-382f-4562-9ac1-cd5f39c06986', 'name': '', 'tenant_id': '461e95db553e48019fb2f1044eb62720', 'network_id': '0dc2eb36-daba-4146-baec-d2f9c2261703', 'ip_version': 4, 'cidr': '148.121.255.192/26', 'allocation_pools': [{'start': '148.121.255.194', 'end': '148.121.255.254'}], 'gateway_ip': '148.121.255.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.121.255.194', 'tags': [], 'project_id': '461e95db553e48019fb2f1044eb62720'}}
2025-12-22 14:01:31,349 - INFO - Created VN ctest-vn-26845704
2025-12-22 14:01:31,405 - DEBUG - VN ctest-vn-26845704 UUID is 0dc2eb36-daba-4146-baec-d2f9c2261703
2025-12-22 14:01:31,523 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-51580936, 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-82088475:ctest-vn-26845704, 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-12-22 14:01:31,842 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b21da9d7-da26-4b30-b777-cf0b55b832bb', 'name': 'ctest-vn-51580936', 'tenant_id': '461e95db553e48019fb2f1044eb62720', 'project_id': '461e95db553e48019fb2f1044eb62720', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3eb2b321-d9e1-4a96-a69b-77aa99f8bdad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-vn-51580936'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-policy-allow-all-32718600']], 'subnet_ipam': [{'subnet_cidr': '101.175.201.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-22 14:01:32,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0dc2eb36-daba-4146-baec-d2f9c2261703', 'name': 'ctest-vn-26845704', 'tenant_id': '461e95db553e48019fb2f1044eb62720', 'project_id': '461e95db553e48019fb2f1044eb62720', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07369c52-382f-4562-9ac1-cd5f39c06986'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-vn-26845704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-policy-allow-all-32718600']], 'subnet_ipam': [{'subnet_cidr': '148.121.255.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-22 14:01:32,229 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-22 14:01:32,545 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-22 14:01:32,587 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01
2025-12-22 14:01:32,601 - DEBUG - Requesting: http://10.0.0.22:8082/project/461e95db-553e-4801-9fb2-f1044eb62720
2025-12-22 14:01:32,677 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b21da9d7-da26-4b30-b777-cf0b55b832bb
2025-12-22 14:01:32,688 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b21da9d7-da26-4b30-b777-cf0b55b832bb
2025-12-22 14:01:32,700 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c44de67-a274-4800-9ba9-82a0e4aa2b10
2025-12-22 14:01:32,708 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c44de67-a274-4800-9ba9-82a0e4aa2b10
2025-12-22 14:01:32,715 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a3aea7f2-55b2-46db-841f-0de6aeb21faf
2025-12-22 14:01:32,723 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-22 14:01:32,723 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b21da9d7-da26-4b30-b777-cf0b55b832bb
2025-12-22 14:01:32,734 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c44de67-a274-4800-9ba9-82a0e4aa2b10
2025-12-22 14:01:32,749 - INFO - Verified VN network id 11 for VN b21da9d7-da26-4b30-b777-cf0b55b832bb
2025-12-22 14:01:32,749 - INFO - Verifications in API Server for VN ctest-vn-51580936 passed
2025-12-22 14:01:32,749 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b21da9d7-da26-4b30-b777-cf0b55b832bb
2025-12-22 14:01:32,759 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c44de67-a274-4800-9ba9-82a0e4aa2b10
2025-12-22 14:01:32,767 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5c44de67-a274-4800-9ba9-82a0e4aa2b10
2025-12-22 14:01:32,777 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a3aea7f2-55b2-46db-841f-0de6aeb21faf
2025-12-22 14:01:32,790 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-51580936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82088475', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12834601257618787120', 'uuid-lslong': '13220262878759105211'}, 'enable': 'true', 'created': '2025-12-22T14:01:30', 'last-modified': '2025-12-22T14:01:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975620'}
2025-12-22 14:01:32,796 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-22 14:01:32,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51580936 passed
2025-12-22 14:01:32,797 - DEBUG - ====Verifying policy data for ctest-vn-51580936 in API_Server ======
2025-12-22 14:01:32,797 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-22 14:01:32,803 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01
2025-12-22 14:01:32,816 - DEBUG - Requesting: http://10.0.0.22:8082/project/461e95db-553e-4801-9fb2-f1044eb62720
2025-12-22 14:01:32,895 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b21da9d7-da26-4b30-b777-cf0b55b832bb
2025-12-22 14:01:32,905 - DEBUG - ==>Verifying data for policy with id: a546b679-109b-4094-b9d4-be0d624c76e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-policy-allow-all-32718600']
2025-12-22 14:01:32,905 - INFO - VN ctest-vn-51580936 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-22 14:01:32,905 - DEBUG - Verifying the vn in opserver
2025-12-22 14:01:32,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-51580936 virtual network link through opserver 10.0.0.22
2025-12-22 14:01:32,906 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-22 14:01:33,204 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-22 14:01:33,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-51580936', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-51580936?flat'}
2025-12-22 14:01:33,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-51580936 is found in opserver
2025-12-22 14:01:33,290 - DEBUG - Do not have enough data to verify VN in agent
2025-12-22 14:01:33,295 - DEBUG - VRF ids for VN ctest-vn-51580936: {}
2025-12-22 14:01:33,295 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-22 14:01:33,300 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01
2025-12-22 14:01:33,312 - DEBUG - Requesting: http://10.0.0.22:8082/project/461e95db-553e-4801-9fb2-f1044eb62720
2025-12-22 14:01:33,385 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0dc2eb36-daba-4146-baec-d2f9c2261703
2025-12-22 14:01:33,397 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0dc2eb36-daba-4146-baec-d2f9c2261703
2025-12-22 14:01:33,407 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/183be29f-05ba-45c6-95ab-8b22796e52bd
2025-12-22 14:01:33,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/183be29f-05ba-45c6-95ab-8b22796e52bd
2025-12-22 14:01:33,423 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/225cb16c-4e72-49a1-96a8-9eab9e2d84d8
2025-12-22 14:01:33,431 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-22 14:01:33,431 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0dc2eb36-daba-4146-baec-d2f9c2261703
2025-12-22 14:01:33,439 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/183be29f-05ba-45c6-95ab-8b22796e52bd
2025-12-22 14:01:33,454 - INFO - Verified VN network id 12 for VN 0dc2eb36-daba-4146-baec-d2f9c2261703
2025-12-22 14:01:33,454 - INFO - Verifications in API Server for VN ctest-vn-26845704 passed
2025-12-22 14:01:33,454 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0dc2eb36-daba-4146-baec-d2f9c2261703
2025-12-22 14:01:33,464 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/183be29f-05ba-45c6-95ab-8b22796e52bd
2025-12-22 14:01:33,473 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/183be29f-05ba-45c6-95ab-8b22796e52bd
2025-12-22 14:01:33,485 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/225cb16c-4e72-49a1-96a8-9eab9e2d84d8
2025-12-22 14:01:33,502 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-26845704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82088475', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '991613488805331270', 'uuid-lslong': '13469372555704276739'}, 'enable': 'true', 'created': '2025-12-22T14:01:31', 'last-modified': '2025-12-22T14:01:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444669'}
2025-12-22 14:01:33,508 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-22 14:01:33,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26845704 passed
2025-12-22 14:01:33,508 - DEBUG - ====Verifying policy data for ctest-vn-26845704 in API_Server ======
2025-12-22 14:01:33,509 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-22 14:01:33,515 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3336feff-2252-4c25-a4cc-d58e76609b01
2025-12-22 14:01:33,528 - DEBUG - Requesting: http://10.0.0.22:8082/project/461e95db-553e-4801-9fb2-f1044eb62720
2025-12-22 14:01:33,606 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0dc2eb36-daba-4146-baec-d2f9c2261703
2025-12-22 14:01:33,615 - DEBUG - ==>Verifying data for policy with id: a546b679-109b-4094-b9d4-be0d624c76e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-82088475', 'ctest-policy-allow-all-32718600']
2025-12-22 14:01:33,615 - INFO - VN ctest-vn-26845704 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-22 14:01:33,615 - DEBUG - Verifying the vn in opserver
2025-12-22 14:01:33,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-26845704 virtual network link through opserver 10.0.0.22
2025-12-22 14:01:33,615 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-22 14:01:33,626 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-26845704', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-26845704?flat'}
2025-12-22 14:01:33,626 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82088475:ctest-vn-26845704 is found in opserver
2025-12-22 14:01:33,637 - DEBUG - Do not have enough data to verify VN in agent
2025-12-22 14:01:33,642 - DEBUG - VRF ids for VN ctest-vn-26845704: {}
2025-12-22 14:01:33,706 - DEBUG - Services list from nova: [