2025-10-09 08:27:39,611 - INFO - Domain Default found not creating
2025-10-09 08:27:39,754 - INFO - Project ctest-TestBasicPolicy-39195797 not found, creating it
2025-10-09 08:27:40,187 - INFO - Created Project:ctest-TestBasicPolicy-39195797, ID : a515dea3-8167-44e8-896b-7a7b8b55ee1b
2025-10-09 08:27:41,540 - INFO - ================================================================================
2025-10-09 08:27:41,540 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 08:27:41,540 - 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 08:27:41,793 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-09 08:27:41,793 - INFO - Initial checks done. Running the testcase now
2025-10-09 08:27:41,793 - INFO -
2025-10-09 08:27:42,351 - DEBUG - Response for create_network : {'network': {'id': '2df8e8e3-fa83-4a1d-890b-b8a87c4877d7', 'name': 'ctest-vn-90890616', 'tenant_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'project_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-vn-90890616'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 08:27:42,567 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eeebe1cb-0a61-4794-b023-1eace7363ee6', 'name': '', 'tenant_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'network_id': '2df8e8e3-fa83-4a1d-890b-b8a87c4877d7', 'ip_version': 4, 'cidr': '163.84.227.0/26', 'allocation_pools': [{'start': '163.84.227.2', 'end': '163.84.227.62'}], 'gateway_ip': '163.84.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.84.227.2', 'tags': [], 'project_id': 'a515dea3816744e8896b7a7b8b55ee1b'}}
2025-10-09 08:27:42,584 - INFO - Created VN ctest-vn-90890616
2025-10-09 08:27:42,635 - DEBUG - VN ctest-vn-90890616 UUID is 2df8e8e3-fa83-4a1d-890b-b8a87c4877d7
2025-10-09 08:27:42,961 - DEBUG - Response for create_network : {'network': {'id': '35a7b838-b2dd-4c77-a469-63b263a756be', 'name': 'ctest-vn-56038297', 'tenant_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'project_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-vn-56038297'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 08:27:43,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd0e986c-9631-4f22-b331-43c3c14a3bbc', 'name': '', 'tenant_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'network_id': '35a7b838-b2dd-4c77-a469-63b263a756be', 'ip_version': 4, 'cidr': '45.76.103.192/26', 'allocation_pools': [{'start': '45.76.103.194', 'end': '45.76.103.254'}], 'gateway_ip': '45.76.103.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.76.103.194', 'tags': [], 'project_id': 'a515dea3816744e8896b7a7b8b55ee1b'}}
2025-10-09 08:27:43,111 - INFO - Created VN ctest-vn-56038297
2025-10-09 08:27:43,163 - DEBUG - VN ctest-vn-56038297 UUID is 35a7b838-b2dd-4c77-a469-63b263a756be
2025-10-09 08:27:43,307 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-90890616, 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-39195797:ctest-vn-56038297, 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 08:27:43,600 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2df8e8e3-fa83-4a1d-890b-b8a87c4877d7', 'name': 'ctest-vn-90890616', 'tenant_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'project_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eeebe1cb-0a61-4794-b023-1eace7363ee6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-vn-90890616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-policy-allow-all-88942769']], 'subnet_ipam': [{'subnet_cidr': '163.84.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 08:27:43,827 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35a7b838-b2dd-4c77-a469-63b263a756be', 'name': 'ctest-vn-56038297', 'tenant_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'project_id': 'a515dea3816744e8896b7a7b8b55ee1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd0e986c-9631-4f22-b331-43c3c14a3bbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-vn-56038297'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-policy-allow-all-88942769']], 'subnet_ipam': [{'subnet_cidr': '45.76.103.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 08:27:43,983 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 08:27:44,273 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 08:27:44,298 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac
2025-10-09 08:27:44,309 - DEBUG - Requesting: http://10.0.0.33:8082/project/a515dea3-8167-44e8-896b-7a7b8b55ee1b
2025-10-09 08:27:44,383 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2df8e8e3-fa83-4a1d-890b-b8a87c4877d7
2025-10-09 08:27:44,392 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2df8e8e3-fa83-4a1d-890b-b8a87c4877d7
2025-10-09 08:27:44,399 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb7cecb5-9f68-44e2-ace9-6693e98f6add
2025-10-09 08:27:44,405 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb7cecb5-9f68-44e2-ace9-6693e98f6add
2025-10-09 08:27:44,410 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ab471836-1a85-4c15-9f4e-bc0190c0cc8e
2025-10-09 08:27:44,414 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 08:27:44,414 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2df8e8e3-fa83-4a1d-890b-b8a87c4877d7
2025-10-09 08:27:44,421 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb7cecb5-9f68-44e2-ace9-6693e98f6add
2025-10-09 08:27:44,433 - INFO - Verified VN network id 9 for VN 2df8e8e3-fa83-4a1d-890b-b8a87c4877d7
2025-10-09 08:27:44,433 - INFO - Verifications in API Server for VN ctest-vn-90890616 passed
2025-10-09 08:27:44,433 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2df8e8e3-fa83-4a1d-890b-b8a87c4877d7
2025-10-09 08:27:44,441 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb7cecb5-9f68-44e2-ace9-6693e98f6add
2025-10-09 08:27:44,446 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cb7cecb5-9f68-44e2-ace9-6693e98f6add
2025-10-09 08:27:44,452 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ab471836-1a85-4c15-9f4e-bc0190c0cc8e
2025-10-09 08:27:44,461 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-90890616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39195797', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3312653591789128221', 'uuid-lslong': '9875189641719085015'}, 'enable': 'true', 'created': '2025-10-09T08:27:42', 'last-modified': '2025-10-09T08:27:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.881749'}
2025-10-09 08:27:44,466 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 08:27:44,466 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90890616 passed
2025-10-09 08:27:44,466 - DEBUG - ====Verifying policy data for ctest-vn-90890616 in API_Server ======
2025-10-09 08:27:44,466 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 08:27:44,470 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac
2025-10-09 08:27:44,480 - DEBUG - Requesting: http://10.0.0.33:8082/project/a515dea3-8167-44e8-896b-7a7b8b55ee1b
2025-10-09 08:27:44,546 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2df8e8e3-fa83-4a1d-890b-b8a87c4877d7
2025-10-09 08:27:44,554 - DEBUG - ==>Verifying data for policy with id: f9219a60-2ef8-472f-bad0-499170613dc3, fqn: ['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-policy-allow-all-88942769']
2025-10-09 08:27:44,554 - INFO - VN ctest-vn-90890616 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 08:27:44,554 - DEBUG - Verifying the vn in opserver
2025-10-09 08:27:44,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-90890616 virtual network link through opserver 10.0.0.33
2025-10-09 08:27:44,554 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 08:27:44,842 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 08:27:44,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-90890616', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-90890616?flat'}
2025-10-09 08:27:44,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-90890616 is found in opserver
2025-10-09 08:27:44,899 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 08:27:44,903 - DEBUG - VRF ids for VN ctest-vn-90890616: {}
2025-10-09 08:27:44,903 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 08:27:44,907 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac
2025-10-09 08:27:44,917 - DEBUG - Requesting: http://10.0.0.33:8082/project/a515dea3-8167-44e8-896b-7a7b8b55ee1b
2025-10-09 08:27:44,987 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35a7b838-b2dd-4c77-a469-63b263a756be
2025-10-09 08:27:44,998 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35a7b838-b2dd-4c77-a469-63b263a756be
2025-10-09 08:27:45,006 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f53f2ff8-a4af-4d90-b017-552cdbab173b
2025-10-09 08:27:45,012 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f53f2ff8-a4af-4d90-b017-552cdbab173b
2025-10-09 08:27:45,017 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e0e60d46-b0e9-432d-bb15-f9b97ce71e6c
2025-10-09 08:27:45,023 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 08:27:45,023 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35a7b838-b2dd-4c77-a469-63b263a756be
2025-10-09 08:27:45,031 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f53f2ff8-a4af-4d90-b017-552cdbab173b
2025-10-09 08:27:45,043 - INFO - Verified VN network id 10 for VN 35a7b838-b2dd-4c77-a469-63b263a756be
2025-10-09 08:27:45,043 - INFO - Verifications in API Server for VN ctest-vn-56038297 passed
2025-10-09 08:27:45,043 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35a7b838-b2dd-4c77-a469-63b263a756be
2025-10-09 08:27:45,055 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f53f2ff8-a4af-4d90-b017-552cdbab173b
2025-10-09 08:27:45,062 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f53f2ff8-a4af-4d90-b017-552cdbab173b
2025-10-09 08:27:45,069 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e0e60d46-b0e9-432d-bb15-f9b97ce71e6c
2025-10-09 08:27:45,079 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-56038297', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39195797', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3866261358779386999', 'uuid-lslong': '11847109912602039998'}, 'enable': 'true', 'created': '2025-10-09T08:27:42', 'last-modified': '2025-10-09T08:27:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.280696'}
2025-10-09 08:27:45,084 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 08:27:45,084 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56038297 passed
2025-10-09 08:27:45,084 - DEBUG - ====Verifying policy data for ctest-vn-56038297 in API_Server ======
2025-10-09 08:27:45,084 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 08:27:45,089 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac
2025-10-09 08:27:45,097 - DEBUG - Requesting: http://10.0.0.33:8082/project/a515dea3-8167-44e8-896b-7a7b8b55ee1b
2025-10-09 08:27:45,163 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35a7b838-b2dd-4c77-a469-63b263a756be
2025-10-09 08:27:45,170 - DEBUG - ==>Verifying data for policy with id: f9219a60-2ef8-472f-bad0-499170613dc3, fqn: ['default-domain', 'ctest-TestBasicPolicy-39195797', 'ctest-policy-allow-all-88942769']
2025-10-09 08:27:45,170 - INFO - VN ctest-vn-56038297 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 08:27:45,170 - DEBUG - Verifying the vn in opserver
2025-10-09 08:27:45,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-56038297 virtual network link through opserver 10.0.0.33
2025-10-09 08:27:45,170 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 08:27:45,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-56038297', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-56038297?flat'}
2025-10-09 08:27:45,178 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39195797:ctest-vn-56038297 is found in opserver
2025-10-09 08:27:45,186 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 08:27:45,192 - DEBUG - VRF ids for VN ctest-vn-56038297: {}
2025-10-09 08:27:45,242 - DEBUG - Services list from nova: [