2025-11-19 18:17:38,383 - INFO - Domain Default found not creating
2025-11-19 18:17:38,565 - INFO - Project ctest-TestBasicPolicy-49115104 not found, creating it
2025-11-19 18:17:39,003 - INFO - Created Project:ctest-TestBasicPolicy-49115104, ID : 763e541a-775d-4a51-abcd-4da5bde0817e
2025-11-19 18:17:40,562 - INFO - ================================================================================
2025-11-19 18:17:40,562 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-19 18:17:40,562 - 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-11-19 18:17:40,835 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with
2025-11-19 18:17:40,835 - INFO - Initial checks done. Running the testcase now
2025-11-19 18:17:40,835 - INFO -
2025-11-19 18:17:41,387 - DEBUG - Response for create_network : {'network': {'id': 'a8fa4e24-732d-4697-833a-8ade91f4f34e', 'name': 'ctest-vn-49485682', 'tenant_id': '763e541a775d4a51abcd4da5bde0817e', 'project_id': '763e541a775d4a51abcd4da5bde0817e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-vn-49485682'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 18:17:41,602 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8257baf-16c7-4d43-9579-4d05c7962e7e', 'name': '', 'tenant_id': '763e541a775d4a51abcd4da5bde0817e', 'network_id': 'a8fa4e24-732d-4697-833a-8ade91f4f34e', 'ip_version': 4, 'cidr': '59.134.49.192/26', 'allocation_pools': [{'start': '59.134.49.194', 'end': '59.134.49.254'}], 'gateway_ip': '59.134.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.134.49.194', 'tags': [], 'project_id': '763e541a775d4a51abcd4da5bde0817e'}}
2025-11-19 18:17:41,622 - INFO - Created VN ctest-vn-49485682
2025-11-19 18:17:41,681 - DEBUG - VN ctest-vn-49485682 UUID is a8fa4e24-732d-4697-833a-8ade91f4f34e
2025-11-19 18:17:41,984 - DEBUG - Response for create_network : {'network': {'id': 'ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56', 'name': 'ctest-vn-98418977', 'tenant_id': '763e541a775d4a51abcd4da5bde0817e', 'project_id': '763e541a775d4a51abcd4da5bde0817e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-vn-98418977'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 18:17:42,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8a2ac14-0ced-4050-8772-11607daf6b3b', 'name': '', 'tenant_id': '763e541a775d4a51abcd4da5bde0817e', 'network_id': 'ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56', 'ip_version': 4, 'cidr': '130.90.112.64/26', 'allocation_pools': [{'start': '130.90.112.66', 'end': '130.90.112.126'}], 'gateway_ip': '130.90.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.90.112.66', 'tags': [], 'project_id': '763e541a775d4a51abcd4da5bde0817e'}}
2025-11-19 18:17:42,161 - INFO - Created VN ctest-vn-98418977
2025-11-19 18:17:42,213 - DEBUG - VN ctest-vn-98418977 UUID is ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56
2025-11-19 18:17:42,373 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-49485682, 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-49115104:ctest-vn-98418977, 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-11-19 18:17:42,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8fa4e24-732d-4697-833a-8ade91f4f34e', 'name': 'ctest-vn-49485682', 'tenant_id': '763e541a775d4a51abcd4da5bde0817e', 'project_id': '763e541a775d4a51abcd4da5bde0817e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8257baf-16c7-4d43-9579-4d05c7962e7e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-vn-49485682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-policy-allow-all-36881466']], 'subnet_ipam': [{'subnet_cidr': '59.134.49.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 18:17:42,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56', 'name': 'ctest-vn-98418977', 'tenant_id': '763e541a775d4a51abcd4da5bde0817e', 'project_id': '763e541a775d4a51abcd4da5bde0817e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8a2ac14-0ced-4050-8772-11607daf6b3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-vn-98418977'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-policy-allow-all-36881466']], 'subnet_ipam': [{'subnet_cidr': '130.90.112.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 18:17:43,089 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 18:17:43,395 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 18:17:43,424 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442
2025-11-19 18:17:43,435 - DEBUG - Requesting: http://10.0.0.50:8082/project/763e541a-775d-4a51-abcd-4da5bde0817e
2025-11-19 18:17:43,503 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8fa4e24-732d-4697-833a-8ade91f4f34e
2025-11-19 18:17:43,513 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8fa4e24-732d-4697-833a-8ade91f4f34e
2025-11-19 18:17:43,522 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8234a5ed-abea-4228-95b5-6b56b05af597
2025-11-19 18:17:43,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8234a5ed-abea-4228-95b5-6b56b05af597
2025-11-19 18:17:43,535 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/540ce202-8aca-4ccd-b401-f77b4f16ddd2
2025-11-19 18:17:43,542 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 18:17:43,542 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8fa4e24-732d-4697-833a-8ade91f4f34e
2025-11-19 18:17:43,552 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8234a5ed-abea-4228-95b5-6b56b05af597
2025-11-19 18:17:43,569 - INFO - Verified VN network id 11 for VN a8fa4e24-732d-4697-833a-8ade91f4f34e
2025-11-19 18:17:43,569 - INFO - Verifications in API Server for VN ctest-vn-49485682 passed
2025-11-19 18:17:43,569 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8fa4e24-732d-4697-833a-8ade91f4f34e
2025-11-19 18:17:43,581 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8234a5ed-abea-4228-95b5-6b56b05af597
2025-11-19 18:17:43,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8234a5ed-abea-4228-95b5-6b56b05af597
2025-11-19 18:17:43,601 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/540ce202-8aca-4ccd-b401-f77b4f16ddd2
2025-11-19 18:17:43,615 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-49485682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49115104', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12176130461007693463', 'uuid-lslong': '9456023056153899854'}, 'enable': 'true', 'created': '2025-11-19T18:17:41', 'last-modified': '2025-11-19T18:17:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968083'}
2025-11-19 18:17:43,622 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 18:17:43,622 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49485682 passed
2025-11-19 18:17:43,622 - DEBUG - ====Verifying policy data for ctest-vn-49485682 in API_Server ======
2025-11-19 18:17:43,622 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 18:17:43,627 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442
2025-11-19 18:17:43,640 - DEBUG - Requesting: http://10.0.0.50:8082/project/763e541a-775d-4a51-abcd-4da5bde0817e
2025-11-19 18:17:43,709 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a8fa4e24-732d-4697-833a-8ade91f4f34e
2025-11-19 18:17:43,718 - DEBUG - ==>Verifying data for policy with id: c00c96cb-b118-485b-9172-faa81d6dafdf, fqn: ['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-policy-allow-all-36881466']
2025-11-19 18:17:43,718 - INFO - VN ctest-vn-49485682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 18:17:43,718 - DEBUG - Verifying the vn in opserver
2025-11-19 18:17:43,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-49485682 virtual network link through opserver 10.0.0.50
2025-11-19 18:17:43,718 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-19 18:17:44,020 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-19 18:17:44,086 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-49485682', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-49485682?flat'}
2025-11-19 18:17:44,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-49485682 is found in opserver
2025-11-19 18:17:44,096 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 18:17:44,101 - DEBUG - VRF ids for VN ctest-vn-49485682: {}
2025-11-19 18:17:44,101 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 18:17:44,106 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442
2025-11-19 18:17:44,118 - DEBUG - Requesting: http://10.0.0.50:8082/project/763e541a-775d-4a51-abcd-4da5bde0817e
2025-11-19 18:17:44,187 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56
2025-11-19 18:17:44,198 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56
2025-11-19 18:17:44,206 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b09cf719-11bd-4160-9135-dff4ad187814
2025-11-19 18:17:44,213 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b09cf719-11bd-4160-9135-dff4ad187814
2025-11-19 18:17:44,221 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c758958-4f59-46f0-9b37-e87b05bfd863
2025-11-19 18:17:44,230 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 18:17:44,230 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56
2025-11-19 18:17:44,240 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b09cf719-11bd-4160-9135-dff4ad187814
2025-11-19 18:17:44,257 - INFO - Verified VN network id 12 for VN ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56
2025-11-19 18:17:44,257 - INFO - Verifications in API Server for VN ctest-vn-98418977 passed
2025-11-19 18:17:44,257 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56
2025-11-19 18:17:44,267 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b09cf719-11bd-4160-9135-dff4ad187814
2025-11-19 18:17:44,274 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b09cf719-11bd-4160-9135-dff4ad187814
2025-11-19 18:17:44,281 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c758958-4f59-46f0-9b37-e87b05bfd863
2025-11-19 18:17:44,293 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-98418977', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49115104', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12483062429875521520', 'uuid-lslong': '12088433968549784918'}, 'enable': 'true', 'created': '2025-11-19T18:17:41', 'last-modified': '2025-11-19T18:17:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412256'}
2025-11-19 18:17:44,299 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 18:17:44,299 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98418977 passed
2025-11-19 18:17:44,299 - DEBUG - ====Verifying policy data for ctest-vn-98418977 in API_Server ======
2025-11-19 18:17:44,299 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 18:17:44,306 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f68dab00-b5a5-4aed-ac1f-d50821ae4442
2025-11-19 18:17:44,321 - DEBUG - Requesting: http://10.0.0.50:8082/project/763e541a-775d-4a51-abcd-4da5bde0817e
2025-11-19 18:17:44,396 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad3cbf24-51c1-47f0-a7c2-bea5aa2ced56
2025-11-19 18:17:44,405 - DEBUG - ==>Verifying data for policy with id: c00c96cb-b118-485b-9172-faa81d6dafdf, fqn: ['default-domain', 'ctest-TestBasicPolicy-49115104', 'ctest-policy-allow-all-36881466']
2025-11-19 18:17:44,405 - INFO - VN ctest-vn-98418977 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 18:17:44,406 - DEBUG - Verifying the vn in opserver
2025-11-19 18:17:44,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-98418977 virtual network link through opserver 10.0.0.50
2025-11-19 18:17:44,406 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-19 18:17:44,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-98418977', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-98418977?flat'}
2025-11-19 18:17:44,416 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49115104:ctest-vn-98418977 is found in opserver
2025-11-19 18:17:44,424 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 18:17:44,429 - DEBUG - VRF ids for VN ctest-vn-98418977: {}
2025-11-19 18:17:44,484 - DEBUG - Services list from nova: [