2025-09-05 18:21:57,947 - INFO - Domain Default found not creating
2025-09-05 18:21:58,080 - INFO - Project ctest-TestBasicPolicy-17237051 not found, creating it
2025-09-05 18:21:58,495 - INFO - Created Project:ctest-TestBasicPolicy-17237051, ID : 8748e6e2-db7a-487c-953d-21f14f3cc4f2
2025-09-05 18:21:59,843 - INFO - ================================================================================
2025-09-05 18:21:59,844 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-05 18:21:59,844 - 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-09-05 18:22:00,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-05 18:22:00,102 - INFO - Initial checks done. Running the testcase now
2025-09-05 18:22:00,102 - INFO -
2025-09-05 18:22:00,619 - DEBUG - Response for create_network : {'network': {'id': 'a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22', 'name': 'ctest-vn-43315233', 'tenant_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'project_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-vn-43315233'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 18:22:00,824 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f338720-2b67-47df-b2ee-ace5d47842be', 'name': '', 'tenant_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'network_id': 'a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22', 'ip_version': 4, 'cidr': '133.211.191.192/26', 'allocation_pools': [{'start': '133.211.191.194', 'end': '133.211.191.254'}], 'gateway_ip': '133.211.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.211.191.194', 'tags': [], 'project_id': '8748e6e2db7a487c953d21f14f3cc4f2'}}
2025-09-05 18:22:00,840 - INFO - Created VN ctest-vn-43315233
2025-09-05 18:22:00,889 - DEBUG - VN ctest-vn-43315233 UUID is a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22
2025-09-05 18:22:01,208 - DEBUG - Response for create_network : {'network': {'id': '269b7c91-8cdf-44b1-83b2-25e2fedff2b1', 'name': 'ctest-vn-46504296', 'tenant_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'project_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-vn-46504296'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 18:22:01,387 - DEBUG - Response for create_subnet : {'subnet': {'id': '08405802-c1ad-4863-8793-5a37216e6794', 'name': '', 'tenant_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'network_id': '269b7c91-8cdf-44b1-83b2-25e2fedff2b1', 'ip_version': 4, 'cidr': '69.109.101.64/26', 'allocation_pools': [{'start': '69.109.101.66', 'end': '69.109.101.126'}], 'gateway_ip': '69.109.101.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.109.101.66', 'tags': [], 'project_id': '8748e6e2db7a487c953d21f14f3cc4f2'}}
2025-09-05 18:22:01,404 - INFO - Created VN ctest-vn-46504296
2025-09-05 18:22:01,457 - DEBUG - VN ctest-vn-46504296 UUID is 269b7c91-8cdf-44b1-83b2-25e2fedff2b1
2025-09-05 18:22:01,605 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-43315233, 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-17237051:ctest-vn-46504296, 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-09-05 18:22:01,894 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22', 'name': 'ctest-vn-43315233', 'tenant_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'project_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f338720-2b67-47df-b2ee-ace5d47842be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-vn-43315233'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-policy-allow-all-91829437']], 'subnet_ipam': [{'subnet_cidr': '133.211.191.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 18:22:02,171 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '269b7c91-8cdf-44b1-83b2-25e2fedff2b1', 'name': 'ctest-vn-46504296', 'tenant_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'project_id': '8748e6e2db7a487c953d21f14f3cc4f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['08405802-c1ad-4863-8793-5a37216e6794'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-vn-46504296'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-policy-allow-all-91829437']], 'subnet_ipam': [{'subnet_cidr': '69.109.101.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 18:22:02,313 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-05 18:22:02,616 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-05 18:22:02,641 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b
2025-09-05 18:22:02,652 - DEBUG - Requesting: http://10.0.0.57:8082/project/8748e6e2-db7a-487c-953d-21f14f3cc4f2
2025-09-05 18:22:02,731 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22
2025-09-05 18:22:02,741 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22
2025-09-05 18:22:02,749 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b3fada3c-387e-4f05-94ea-12ef629df219
2025-09-05 18:22:02,756 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b3fada3c-387e-4f05-94ea-12ef629df219
2025-09-05 18:22:02,762 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/c5824f9a-2748-4f85-b25f-adacc5464111
2025-09-05 18:22:02,767 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 18:22:02,767 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22
2025-09-05 18:22:02,775 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b3fada3c-387e-4f05-94ea-12ef629df219
2025-09-05 18:22:02,787 - INFO - Verified VN network id 11 for VN a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22
2025-09-05 18:22:02,787 - INFO - Verifications in API Server for VN ctest-vn-43315233 passed
2025-09-05 18:22:02,787 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22
2025-09-05 18:22:02,794 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b3fada3c-387e-4f05-94ea-12ef629df219
2025-09-05 18:22:02,801 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b3fada3c-387e-4f05-94ea-12ef629df219
2025-09-05 18:22:02,806 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/c5824f9a-2748-4f85-b25f-adacc5464111
2025-09-05 18:22:02,816 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-43315233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17237051', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12221584455240271809', 'uuid-lslong': '10647916799149972258'}, 'enable': 'true', 'created': '2025-09-05T18:22:00', 'last-modified': '2025-09-05T18:22:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941208'}
2025-09-05 18:22:02,821 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 18:22:02,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43315233 passed
2025-09-05 18:22:02,822 - DEBUG - ====Verifying policy data for ctest-vn-43315233 in API_Server ======
2025-09-05 18:22:02,822 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-05 18:22:02,826 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b
2025-09-05 18:22:02,836 - DEBUG - Requesting: http://10.0.0.57:8082/project/8748e6e2-db7a-487c-953d-21f14f3cc4f2
2025-09-05 18:22:02,901 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a99bca4f-2f08-47c1-93c4-ffe9eb3f9b22
2025-09-05 18:22:02,909 - DEBUG - ==>Verifying data for policy with id: ec897e4b-34f1-4455-8f63-c2b4c8715748, fqn: ['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-policy-allow-all-91829437']
2025-09-05 18:22:02,909 - INFO - VN ctest-vn-43315233 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 18:22:02,909 - DEBUG - Verifying the vn in opserver
2025-09-05 18:22:02,909 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-43315233 virtual network link through opserver 10.0.0.57
2025-09-05 18:22:02,909 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-05 18:22:03,198 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-05 18:22:03,247 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-43315233', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-43315233?flat'}
2025-09-05 18:22:03,247 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-43315233 is found in opserver
2025-09-05 18:22:03,255 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 18:22:03,259 - DEBUG - VRF ids for VN ctest-vn-43315233: {}
2025-09-05 18:22:03,259 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-05 18:22:03,264 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b
2025-09-05 18:22:03,274 - DEBUG - Requesting: http://10.0.0.57:8082/project/8748e6e2-db7a-487c-953d-21f14f3cc4f2
2025-09-05 18:22:03,341 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/269b7c91-8cdf-44b1-83b2-25e2fedff2b1
2025-09-05 18:22:03,351 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/269b7c91-8cdf-44b1-83b2-25e2fedff2b1
2025-09-05 18:22:03,359 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6c7f9cc7-4e6b-4c94-b7be-0d9b1d12a624
2025-09-05 18:22:03,365 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6c7f9cc7-4e6b-4c94-b7be-0d9b1d12a624
2025-09-05 18:22:03,371 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/43bab2f8-ecbf-498b-bab6-d424731b14e4
2025-09-05 18:22:03,377 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 18:22:03,377 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/269b7c91-8cdf-44b1-83b2-25e2fedff2b1
2025-09-05 18:22:03,385 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6c7f9cc7-4e6b-4c94-b7be-0d9b1d12a624
2025-09-05 18:22:03,397 - INFO - Verified VN network id 12 for VN 269b7c91-8cdf-44b1-83b2-25e2fedff2b1
2025-09-05 18:22:03,397 - INFO - Verifications in API Server for VN ctest-vn-46504296 passed
2025-09-05 18:22:03,397 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/269b7c91-8cdf-44b1-83b2-25e2fedff2b1
2025-09-05 18:22:03,405 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6c7f9cc7-4e6b-4c94-b7be-0d9b1d12a624
2025-09-05 18:22:03,411 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/6c7f9cc7-4e6b-4c94-b7be-0d9b1d12a624
2025-09-05 18:22:03,416 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/43bab2f8-ecbf-498b-bab6-d424731b14e4
2025-09-05 18:22:03,427 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-46504296', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17237051', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2781954159406957745', 'uuid-lslong': '9489689021691982513'}, 'enable': 'true', 'created': '2025-09-05T18:22:01', 'last-modified': '2025-09-05T18:22:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.325664'}
2025-09-05 18:22:03,432 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 18:22:03,433 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46504296 passed
2025-09-05 18:22:03,433 - DEBUG - ====Verifying policy data for ctest-vn-46504296 in API_Server ======
2025-09-05 18:22:03,433 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-05 18:22:03,438 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b
2025-09-05 18:22:03,448 - DEBUG - Requesting: http://10.0.0.57:8082/project/8748e6e2-db7a-487c-953d-21f14f3cc4f2
2025-09-05 18:22:03,519 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/269b7c91-8cdf-44b1-83b2-25e2fedff2b1
2025-09-05 18:22:03,527 - DEBUG - ==>Verifying data for policy with id: ec897e4b-34f1-4455-8f63-c2b4c8715748, fqn: ['default-domain', 'ctest-TestBasicPolicy-17237051', 'ctest-policy-allow-all-91829437']
2025-09-05 18:22:03,527 - INFO - VN ctest-vn-46504296 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 18:22:03,527 - DEBUG - Verifying the vn in opserver
2025-09-05 18:22:03,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-46504296 virtual network link through opserver 10.0.0.57
2025-09-05 18:22:03,527 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-05 18:22:03,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-46504296', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-46504296?flat'}
2025-09-05 18:22:03,539 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17237051:ctest-vn-46504296 is found in opserver
2025-09-05 18:22:03,557 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 18:22:03,571 - DEBUG - VRF ids for VN ctest-vn-46504296: {}
2025-09-05 18:22:03,644 - DEBUG - Services list from nova: [