2025-08-02 08:56:14,146 - INFO - Domain Default found not creating
2025-08-02 08:56:14,298 - INFO - Project ctest-TestBasicPolicy-05022792 not found, creating it
2025-08-02 08:56:14,750 - INFO - Created Project:ctest-TestBasicPolicy-05022792, ID : ab67e895-fb76-4939-9c93-1dea020f5b81
2025-08-02 08:56:16,218 - INFO - ================================================================================
2025-08-02 08:56:16,219 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-02 08:56:16,219 - 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-08-02 08:56:16,477 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-02 08:56:16,477 - INFO - Initial checks done. Running the testcase now
2025-08-02 08:56:16,477 - INFO -
2025-08-02 08:56:17,349 - DEBUG - Response for create_network : {'network': {'id': 'a9e96a27-976b-4efc-ba9b-f0c712fc8072', 'name': 'ctest-vn-85421722', 'tenant_id': 'ab67e895fb7649399c931dea020f5b81', 'project_id': 'ab67e895fb7649399c931dea020f5b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-vn-85421722'], 'port_security_enabled': True, 'description': ''}}
2025-08-02 08:56:17,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '23d4af37-81b8-44c1-a2e7-a96feb6edb1d', 'name': '', 'tenant_id': 'ab67e895fb7649399c931dea020f5b81', 'network_id': 'a9e96a27-976b-4efc-ba9b-f0c712fc8072', 'ip_version': 4, 'cidr': '131.32.122.0/26', 'allocation_pools': [{'start': '131.32.122.2', 'end': '131.32.122.62'}], 'gateway_ip': '131.32.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.32.122.2', 'tags': [], 'project_id': 'ab67e895fb7649399c931dea020f5b81'}}
2025-08-02 08:56:17,777 - INFO - Created VN ctest-vn-85421722
2025-08-02 08:56:17,831 - DEBUG - VN ctest-vn-85421722 UUID is a9e96a27-976b-4efc-ba9b-f0c712fc8072
2025-08-02 08:56:18,156 - DEBUG - Response for create_network : {'network': {'id': '2c55248b-53e0-4872-ae7e-b972c01d8e70', 'name': 'ctest-vn-54057617', 'tenant_id': 'ab67e895fb7649399c931dea020f5b81', 'project_id': 'ab67e895fb7649399c931dea020f5b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-vn-54057617'], 'port_security_enabled': True, 'description': ''}}
2025-08-02 08:56:18,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '26161108-1a9f-4b69-b8b5-20c8b5470e2a', 'name': '', 'tenant_id': 'ab67e895fb7649399c931dea020f5b81', 'network_id': '2c55248b-53e0-4872-ae7e-b972c01d8e70', 'ip_version': 4, 'cidr': '28.237.101.192/26', 'allocation_pools': [{'start': '28.237.101.194', 'end': '28.237.101.254'}], 'gateway_ip': '28.237.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.237.101.194', 'tags': [], 'project_id': 'ab67e895fb7649399c931dea020f5b81'}}
2025-08-02 08:56:18,361 - INFO - Created VN ctest-vn-54057617
2025-08-02 08:56:18,415 - DEBUG - VN ctest-vn-54057617 UUID is 2c55248b-53e0-4872-ae7e-b972c01d8e70
2025-08-02 08:56:18,540 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-85421722, 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-05022792:ctest-vn-54057617, 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-08-02 08:56:18,843 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9e96a27-976b-4efc-ba9b-f0c712fc8072', 'name': 'ctest-vn-85421722', 'tenant_id': 'ab67e895fb7649399c931dea020f5b81', 'project_id': 'ab67e895fb7649399c931dea020f5b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23d4af37-81b8-44c1-a2e7-a96feb6edb1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-vn-85421722'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-policy-allow-all-14500446']], 'subnet_ipam': [{'subnet_cidr': '131.32.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-02 08:56:19,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c55248b-53e0-4872-ae7e-b972c01d8e70', 'name': 'ctest-vn-54057617', 'tenant_id': 'ab67e895fb7649399c931dea020f5b81', 'project_id': 'ab67e895fb7649399c931dea020f5b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26161108-1a9f-4b69-b8b5-20c8b5470e2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-vn-54057617'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-policy-allow-all-14500446']], 'subnet_ipam': [{'subnet_cidr': '28.237.101.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-02 08:56:19,259 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-02 08:56:19,555 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-02 08:56:19,584 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a
2025-08-02 08:56:19,598 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab67e895-fb76-4939-9c93-1dea020f5b81
2025-08-02 08:56:19,673 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9e96a27-976b-4efc-ba9b-f0c712fc8072
2025-08-02 08:56:19,685 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9e96a27-976b-4efc-ba9b-f0c712fc8072
2025-08-02 08:56:19,696 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2df22e9-9e24-4008-8d71-2f820f3e1993
2025-08-02 08:56:19,705 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2df22e9-9e24-4008-8d71-2f820f3e1993
2025-08-02 08:56:19,713 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b5a1bbc-9df4-443a-9b19-989640c086f9
2025-08-02 08:56:19,720 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-02 08:56:19,720 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9e96a27-976b-4efc-ba9b-f0c712fc8072
2025-08-02 08:56:19,731 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2df22e9-9e24-4008-8d71-2f820f3e1993
2025-08-02 08:56:19,748 - INFO - Verified VN network id 12 for VN a9e96a27-976b-4efc-ba9b-f0c712fc8072
2025-08-02 08:56:19,748 - INFO - Verifications in API Server for VN ctest-vn-85421722 passed
2025-08-02 08:56:19,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9e96a27-976b-4efc-ba9b-f0c712fc8072
2025-08-02 08:56:19,759 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2df22e9-9e24-4008-8d71-2f820f3e1993
2025-08-02 08:56:19,767 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c2df22e9-9e24-4008-8d71-2f820f3e1993
2025-08-02 08:56:19,775 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2b5a1bbc-9df4-443a-9b19-989640c086f9
2025-08-02 08:56:19,790 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-85421722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05022792', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12243433780260065020', 'uuid-lslong': '13446605850252443762'}, 'enable': 'true', 'created': '2025-08-02T08:56:17', 'last-modified': '2025-08-02T08:56:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974181'}
2025-08-02 08:56:19,799 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-02 08:56:19,800 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85421722 passed
2025-08-02 08:56:19,800 - DEBUG - ====Verifying policy data for ctest-vn-85421722 in API_Server ======
2025-08-02 08:56:19,800 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-02 08:56:19,807 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a
2025-08-02 08:56:19,821 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab67e895-fb76-4939-9c93-1dea020f5b81
2025-08-02 08:56:19,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9e96a27-976b-4efc-ba9b-f0c712fc8072
2025-08-02 08:56:19,908 - DEBUG - ==>Verifying data for policy with id: 1e02ec22-2320-48c3-b9fd-78a07f720125, fqn: ['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-policy-allow-all-14500446']
2025-08-02 08:56:19,908 - INFO - VN ctest-vn-85421722 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-02 08:56:19,908 - DEBUG - Verifying the vn in opserver
2025-08-02 08:56:19,908 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-85421722 virtual network link through opserver 10.0.0.254
2025-08-02 08:56:19,908 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-02 08:56:20,203 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-02 08:56:20,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-85421722', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-85421722?flat'}
2025-08-02 08:56:20,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-85421722 is found in opserver
2025-08-02 08:56:20,275 - DEBUG - Do not have enough data to verify VN in agent
2025-08-02 08:56:20,280 - DEBUG - VRF ids for VN ctest-vn-85421722: {}
2025-08-02 08:56:20,281 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-02 08:56:20,287 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a
2025-08-02 08:56:20,299 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab67e895-fb76-4939-9c93-1dea020f5b81
2025-08-02 08:56:20,369 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2c55248b-53e0-4872-ae7e-b972c01d8e70
2025-08-02 08:56:20,383 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2c55248b-53e0-4872-ae7e-b972c01d8e70
2025-08-02 08:56:20,400 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac9b3bdc-1663-43b3-90e6-b9cc8e4483fd
2025-08-02 08:56:20,408 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac9b3bdc-1663-43b3-90e6-b9cc8e4483fd
2025-08-02 08:56:20,418 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f82b1460-67c1-4f2b-86c7-84159b2215aa
2025-08-02 08:56:20,425 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-02 08:56:20,426 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2c55248b-53e0-4872-ae7e-b972c01d8e70
2025-08-02 08:56:20,436 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac9b3bdc-1663-43b3-90e6-b9cc8e4483fd
2025-08-02 08:56:20,452 - INFO - Verified VN network id 13 for VN 2c55248b-53e0-4872-ae7e-b972c01d8e70
2025-08-02 08:56:20,452 - INFO - Verifications in API Server for VN ctest-vn-54057617 passed
2025-08-02 08:56:20,452 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2c55248b-53e0-4872-ae7e-b972c01d8e70
2025-08-02 08:56:20,465 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac9b3bdc-1663-43b3-90e6-b9cc8e4483fd
2025-08-02 08:56:20,474 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac9b3bdc-1663-43b3-90e6-b9cc8e4483fd
2025-08-02 08:56:20,482 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f82b1460-67c1-4f2b-86c7-84159b2215aa
2025-08-02 08:56:20,495 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-54057617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05022792', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3194499691515496562', 'uuid-lslong': '12573691112165576304'}, 'enable': 'true', 'created': '2025-08-02T08:56:18', 'last-modified': '2025-08-02T08:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432041'}
2025-08-02 08:56:20,501 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-02 08:56:20,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54057617 passed
2025-08-02 08:56:20,502 - DEBUG - ====Verifying policy data for ctest-vn-54057617 in API_Server ======
2025-08-02 08:56:20,502 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-02 08:56:20,508 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a
2025-08-02 08:56:20,521 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab67e895-fb76-4939-9c93-1dea020f5b81
2025-08-02 08:56:20,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2c55248b-53e0-4872-ae7e-b972c01d8e70
2025-08-02 08:56:20,611 - DEBUG - ==>Verifying data for policy with id: 1e02ec22-2320-48c3-b9fd-78a07f720125, fqn: ['default-domain', 'ctest-TestBasicPolicy-05022792', 'ctest-policy-allow-all-14500446']
2025-08-02 08:56:20,611 - INFO - VN ctest-vn-54057617 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-02 08:56:20,611 - DEBUG - Verifying the vn in opserver
2025-08-02 08:56:20,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-54057617 virtual network link through opserver 10.0.0.254
2025-08-02 08:56:20,611 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-02 08:56:20,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-54057617', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-54057617?flat'}
2025-08-02 08:56:20,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05022792:ctest-vn-54057617 is found in opserver
2025-08-02 08:56:20,633 - DEBUG - Do not have enough data to verify VN in agent
2025-08-02 08:56:20,638 - DEBUG - VRF ids for VN ctest-vn-54057617: {}
2025-08-02 08:56:20,695 - DEBUG - Services list from nova: [