2025-09-25 15:18:22,490 - INFO - Domain Default found not creating
2025-09-25 15:18:22,611 - INFO - Project ctest-TestBasicPolicy-34624855 not found, creating it
2025-09-25 15:18:23,018 - INFO - Created Project:ctest-TestBasicPolicy-34624855, ID : 89619f40-bd23-4577-a467-2d23b85e41da
2025-09-25 15:18:24,313 - INFO - ================================================================================
2025-09-25 15:18:24,313 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-25 15:18:24,314 - 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-25 15:18:24,593 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-25 15:18:24,593 - INFO - Initial checks done. Running the testcase now
2025-09-25 15:18:24,594 - INFO -
2025-09-25 15:18:25,103 - DEBUG - Response for create_network : {'network': {'id': '3e5a7a15-0cf7-4dc3-b358-4f85badd30c5', 'name': 'ctest-vn-14328646', 'tenant_id': '89619f40bd234577a4672d23b85e41da', 'project_id': '89619f40bd234577a4672d23b85e41da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-vn-14328646'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 15:18:25,288 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecc6679a-0475-4ba0-b506-f4c2a9a26939', 'name': '', 'tenant_id': '89619f40bd234577a4672d23b85e41da', 'network_id': '3e5a7a15-0cf7-4dc3-b358-4f85badd30c5', 'ip_version': 4, 'cidr': '49.9.184.128/26', 'allocation_pools': [{'start': '49.9.184.130', 'end': '49.9.184.190'}], 'gateway_ip': '49.9.184.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.9.184.130', 'tags': [], 'project_id': '89619f40bd234577a4672d23b85e41da'}}
2025-09-25 15:18:25,304 - INFO - Created VN ctest-vn-14328646
2025-09-25 15:18:25,356 - DEBUG - VN ctest-vn-14328646 UUID is 3e5a7a15-0cf7-4dc3-b358-4f85badd30c5
2025-09-25 15:18:25,653 - DEBUG - Response for create_network : {'network': {'id': 'ac93140d-9deb-496b-84a8-09e8f60d5d5b', 'name': 'ctest-vn-74471624', 'tenant_id': '89619f40bd234577a4672d23b85e41da', 'project_id': '89619f40bd234577a4672d23b85e41da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-vn-74471624'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 15:18:25,838 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bcbd281-3232-4793-94a8-2c8c091d7fe5', 'name': '', 'tenant_id': '89619f40bd234577a4672d23b85e41da', 'network_id': 'ac93140d-9deb-496b-84a8-09e8f60d5d5b', 'ip_version': 4, 'cidr': '90.24.174.128/26', 'allocation_pools': [{'start': '90.24.174.130', 'end': '90.24.174.190'}], 'gateway_ip': '90.24.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.24.174.130', 'tags': [], 'project_id': '89619f40bd234577a4672d23b85e41da'}}
2025-09-25 15:18:25,854 - INFO - Created VN ctest-vn-74471624
2025-09-25 15:18:25,908 - DEBUG - VN ctest-vn-74471624 UUID is ac93140d-9deb-496b-84a8-09e8f60d5d5b
2025-09-25 15:18:26,052 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-14328646, 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-34624855:ctest-vn-74471624, 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-25 15:18:26,329 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3e5a7a15-0cf7-4dc3-b358-4f85badd30c5', 'name': 'ctest-vn-14328646', 'tenant_id': '89619f40bd234577a4672d23b85e41da', 'project_id': '89619f40bd234577a4672d23b85e41da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecc6679a-0475-4ba0-b506-f4c2a9a26939'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-vn-14328646'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-policy-allow-all-11898036']], 'subnet_ipam': [{'subnet_cidr': '49.9.184.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 15:18:26,543 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac93140d-9deb-496b-84a8-09e8f60d5d5b', 'name': 'ctest-vn-74471624', 'tenant_id': '89619f40bd234577a4672d23b85e41da', 'project_id': '89619f40bd234577a4672d23b85e41da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0bcbd281-3232-4793-94a8-2c8c091d7fe5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-vn-74471624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-policy-allow-all-11898036']], 'subnet_ipam': [{'subnet_cidr': '90.24.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 15:18:26,708 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 15:18:26,998 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 15:18:27,022 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e
2025-09-25 15:18:27,032 - DEBUG - Requesting: http://10.0.0.254:8082/project/89619f40-bd23-4577-a467-2d23b85e41da
2025-09-25 15:18:27,102 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3e5a7a15-0cf7-4dc3-b358-4f85badd30c5
2025-09-25 15:18:27,110 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3e5a7a15-0cf7-4dc3-b358-4f85badd30c5
2025-09-25 15:18:27,117 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc1c9c3c-0219-44d4-81bf-bdec941c3267
2025-09-25 15:18:27,122 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc1c9c3c-0219-44d4-81bf-bdec941c3267
2025-09-25 15:18:27,127 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b958c76a-4a3e-48f8-9e2b-9f9a98414206
2025-09-25 15:18:27,131 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 15:18:27,131 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3e5a7a15-0cf7-4dc3-b358-4f85badd30c5
2025-09-25 15:18:27,137 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc1c9c3c-0219-44d4-81bf-bdec941c3267
2025-09-25 15:18:27,147 - INFO - Verified VN network id 11 for VN 3e5a7a15-0cf7-4dc3-b358-4f85badd30c5
2025-09-25 15:18:27,148 - INFO - Verifications in API Server for VN ctest-vn-14328646 passed
2025-09-25 15:18:27,148 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3e5a7a15-0cf7-4dc3-b358-4f85badd30c5
2025-09-25 15:18:27,154 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc1c9c3c-0219-44d4-81bf-bdec941c3267
2025-09-25 15:18:27,159 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bc1c9c3c-0219-44d4-81bf-bdec941c3267
2025-09-25 15:18:27,164 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b958c76a-4a3e-48f8-9e2b-9f9a98414206
2025-09-25 15:18:27,172 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-14328646', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34624855', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4493037809085926851', 'uuid-lslong': '12923166566523941061'}, 'enable': 'true', 'created': '2025-09-25T15:18:25', 'last-modified': '2025-09-25T15:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.861499'}
2025-09-25 15:18:27,177 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 15:18:27,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14328646 passed
2025-09-25 15:18:27,178 - DEBUG - ====Verifying policy data for ctest-vn-14328646 in API_Server ======
2025-09-25 15:18:27,178 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 15:18:27,182 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e
2025-09-25 15:18:27,190 - DEBUG - Requesting: http://10.0.0.254:8082/project/89619f40-bd23-4577-a467-2d23b85e41da
2025-09-25 15:18:27,260 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3e5a7a15-0cf7-4dc3-b358-4f85badd30c5
2025-09-25 15:18:27,268 - DEBUG - ==>Verifying data for policy with id: a89a73bb-116c-4001-bf9e-fcee40b85bed, fqn: ['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-policy-allow-all-11898036']
2025-09-25 15:18:27,268 - INFO - VN ctest-vn-14328646 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 15:18:27,268 - DEBUG - Verifying the vn in opserver
2025-09-25 15:18:27,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-14328646 virtual network link through opserver 10.0.0.254
2025-09-25 15:18:27,268 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-25 15:18:27,554 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-25 15:18:27,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-14328646', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-14328646?flat'}
2025-09-25 15:18:27,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-14328646 is found in opserver
2025-09-25 15:18:27,608 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 15:18:27,612 - DEBUG - VRF ids for VN ctest-vn-14328646: {}
2025-09-25 15:18:27,612 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 15:18:27,616 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e
2025-09-25 15:18:27,625 - DEBUG - Requesting: http://10.0.0.254:8082/project/89619f40-bd23-4577-a467-2d23b85e41da
2025-09-25 15:18:27,690 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac93140d-9deb-496b-84a8-09e8f60d5d5b
2025-09-25 15:18:27,699 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac93140d-9deb-496b-84a8-09e8f60d5d5b
2025-09-25 15:18:27,706 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e84b512-8c3e-40ae-9ee0-67d740a1bbba
2025-09-25 15:18:27,711 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e84b512-8c3e-40ae-9ee0-67d740a1bbba
2025-09-25 15:18:27,717 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/23041cf6-2d18-4f6f-8d1d-a6874c77db5b
2025-09-25 15:18:27,721 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 15:18:27,722 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac93140d-9deb-496b-84a8-09e8f60d5d5b
2025-09-25 15:18:27,728 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e84b512-8c3e-40ae-9ee0-67d740a1bbba
2025-09-25 15:18:27,738 - INFO - Verified VN network id 12 for VN ac93140d-9deb-496b-84a8-09e8f60d5d5b
2025-09-25 15:18:27,738 - INFO - Verifications in API Server for VN ctest-vn-74471624 passed
2025-09-25 15:18:27,738 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac93140d-9deb-496b-84a8-09e8f60d5d5b
2025-09-25 15:18:27,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e84b512-8c3e-40ae-9ee0-67d740a1bbba
2025-09-25 15:18:27,750 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e84b512-8c3e-40ae-9ee0-67d740a1bbba
2025-09-25 15:18:27,755 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/23041cf6-2d18-4f6f-8d1d-a6874c77db5b
2025-09-25 15:18:27,764 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-74471624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34624855', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12435305044816644459', 'uuid-lslong': '9558901105259011419'}, 'enable': 'true', 'created': '2025-09-25T15:18:25', 'last-modified': '2025-09-25T15:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.237486'}
2025-09-25 15:18:27,769 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 15:18:27,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74471624 passed
2025-09-25 15:18:27,769 - DEBUG - ====Verifying policy data for ctest-vn-74471624 in API_Server ======
2025-09-25 15:18:27,769 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 15:18:27,773 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e
2025-09-25 15:18:27,781 - DEBUG - Requesting: http://10.0.0.254:8082/project/89619f40-bd23-4577-a467-2d23b85e41da
2025-09-25 15:18:27,847 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ac93140d-9deb-496b-84a8-09e8f60d5d5b
2025-09-25 15:18:27,854 - DEBUG - ==>Verifying data for policy with id: a89a73bb-116c-4001-bf9e-fcee40b85bed, fqn: ['default-domain', 'ctest-TestBasicPolicy-34624855', 'ctest-policy-allow-all-11898036']
2025-09-25 15:18:27,854 - INFO - VN ctest-vn-74471624 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 15:18:27,854 - DEBUG - Verifying the vn in opserver
2025-09-25 15:18:27,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-74471624 virtual network link through opserver 10.0.0.254
2025-09-25 15:18:27,854 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-25 15:18:27,862 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-74471624', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-74471624?flat'}
2025-09-25 15:18:27,862 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34624855:ctest-vn-74471624 is found in opserver
2025-09-25 15:18:27,870 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 15:18:27,874 - DEBUG - VRF ids for VN ctest-vn-74471624: {}
2025-09-25 15:18:27,922 - DEBUG - Services list from nova: [