2025-10-31 22:29:43,823 - INFO - Domain Default found not creating
2025-10-31 22:29:43,974 - INFO - Project ctest-TestBasicPolicy-12778936 not found, creating it
2025-10-31 22:29:44,426 - INFO - Created Project:ctest-TestBasicPolicy-12778936, ID : 9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7
2025-10-31 22:29:45,975 - INFO - ================================================================================
2025-10-31 22:29:45,975 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 22:29:45,975 - 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-31 22:29:46,242 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-10-31 22:29:46,242 - INFO - Initial checks done. Running the testcase now
2025-10-31 22:29:46,242 - INFO -
2025-10-31 22:29:46,936 - DEBUG - Response for create_network : {'network': {'id': '761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab', 'name': 'ctest-vn-91223708', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-91223708'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 22:29:47,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '500775c5-f64d-46ac-a107-a643273151d3', 'name': '', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'network_id': '761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab', 'ip_version': 4, 'cidr': '96.20.205.192/26', 'allocation_pools': [{'start': '96.20.205.194', 'end': '96.20.205.254'}], 'gateway_ip': '96.20.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.20.205.194', 'tags': [], 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7'}}
2025-10-31 22:29:47,171 - INFO - Created VN ctest-vn-91223708
2025-10-31 22:29:47,229 - DEBUG - VN ctest-vn-91223708 UUID is 761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab
2025-10-31 22:29:47,558 - DEBUG - Response for create_network : {'network': {'id': 'abf7e4c5-3c20-46b5-92a9-79e974fe8e05', 'name': 'ctest-vn-89509342', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-89509342'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 22:29:47,747 - DEBUG - Response for create_subnet : {'subnet': {'id': '6eb3c03f-be37-4a3f-aa40-5ff296f86319', 'name': '', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'network_id': 'abf7e4c5-3c20-46b5-92a9-79e974fe8e05', 'ip_version': 4, 'cidr': '216.7.171.128/26', 'allocation_pools': [{'start': '216.7.171.130', 'end': '216.7.171.190'}], 'gateway_ip': '216.7.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.7.171.130', 'tags': [], 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7'}}
2025-10-31 22:29:47,763 - INFO - Created VN ctest-vn-89509342
2025-10-31 22:29:47,813 - DEBUG - VN ctest-vn-89509342 UUID is abf7e4c5-3c20-46b5-92a9-79e974fe8e05
2025-10-31 22:29:47,961 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708, 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-12778936:ctest-vn-89509342, 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-31 22:29:48,247 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab', 'name': 'ctest-vn-91223708', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['500775c5-f64d-46ac-a107-a643273151d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-91223708'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373']], 'subnet_ipam': [{'subnet_cidr': '96.20.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 22:29:48,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abf7e4c5-3c20-46b5-92a9-79e974fe8e05', 'name': 'ctest-vn-89509342', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6eb3c03f-be37-4a3f-aa40-5ff296f86319'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-89509342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373']], 'subnet_ipam': [{'subnet_cidr': '216.7.171.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 22:29:48,657 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 22:29:48,990 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 22:29:49,017 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6
2025-10-31 22:29:49,028 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7
2025-10-31 22:29:49,101 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab
2025-10-31 22:29:49,111 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab
2025-10-31 22:29:49,120 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0
2025-10-31 22:29:49,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0
2025-10-31 22:29:49,132 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/72e75e12-ccbc-498e-8ea7-59777a171fe9
2025-10-31 22:29:49,138 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 22:29:49,138 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab
2025-10-31 22:29:49,147 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0
2025-10-31 22:29:49,160 - INFO - Verified VN network id 12 for VN 761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab
2025-10-31 22:29:49,160 - INFO - Verifications in API Server for VN ctest-vn-91223708 passed
2025-10-31 22:29:49,160 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab
2025-10-31 22:29:49,169 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0
2025-10-31 22:29:49,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0
2025-10-31 22:29:49,184 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/72e75e12-ccbc-498e-8ea7-59777a171fe9
2025-10-31 22:29:49,195 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12778936', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8510546567073120968', 'uuid-lslong': '10067626430171883691'}, 'enable': 'true', 'created': '2025-10-31T22:29:46', 'last-modified': '2025-10-31T22:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974171'}
2025-10-31 22:29:49,203 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 22:29:49,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91223708 passed
2025-10-31 22:29:49,203 - DEBUG - ====Verifying policy data for ctest-vn-91223708 in API_Server ======
2025-10-31 22:29:49,203 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 22:29:49,209 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6
2025-10-31 22:29:49,220 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7
2025-10-31 22:29:49,296 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab
2025-10-31 22:29:49,308 - DEBUG - ==>Verifying data for policy with id: e6047022-f347-4312-8d89-ad13ee5f9fa3, fqn: ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373']
2025-10-31 22:29:49,308 - INFO - VN ctest-vn-91223708 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 22:29:49,308 - DEBUG - Verifying the vn in opserver
2025-10-31 22:29:49,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708 virtual network link through opserver 10.0.0.33
2025-10-31 22:29:49,308 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-31 22:29:49,639 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-31 22:29:49,692 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708?flat'}
2025-10-31 22:29:49,692 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708 is found in opserver
2025-10-31 22:29:49,702 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 22:29:49,706 - DEBUG - VRF ids for VN ctest-vn-91223708: {}
2025-10-31 22:29:49,706 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 22:29:49,712 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6
2025-10-31 22:29:49,722 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7
2025-10-31 22:29:49,799 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05
2025-10-31 22:29:49,812 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05
2025-10-31 22:29:49,820 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc
2025-10-31 22:29:49,826 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc
2025-10-31 22:29:49,832 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5c66f707-59e3-423d-98b8-c7fd09999362
2025-10-31 22:29:49,838 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 22:29:49,838 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05
2025-10-31 22:29:49,846 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc
2025-10-31 22:29:49,857 - INFO - Verified VN network id 13 for VN abf7e4c5-3c20-46b5-92a9-79e974fe8e05
2025-10-31 22:29:49,858 - INFO - Verifications in API Server for VN ctest-vn-89509342 passed
2025-10-31 22:29:49,858 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05
2025-10-31 22:29:49,866 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc
2025-10-31 22:29:49,872 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc
2025-10-31 22:29:49,877 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5c66f707-59e3-423d-98b8-c7fd09999362
2025-10-31 22:29:49,887 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12778936', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12391624435501647541', 'uuid-lslong': '10568112044198759941'}, 'enable': 'true', 'created': '2025-10-31T22:29:47', 'last-modified': '2025-10-31T22:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443339'}
2025-10-31 22:29:49,892 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 22:29:49,893 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89509342 passed
2025-10-31 22:29:49,893 - DEBUG - ====Verifying policy data for ctest-vn-89509342 in API_Server ======
2025-10-31 22:29:49,893 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-31 22:29:49,898 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6
2025-10-31 22:29:49,907 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7
2025-10-31 22:29:49,972 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05
2025-10-31 22:29:49,982 - DEBUG - ==>Verifying data for policy with id: e6047022-f347-4312-8d89-ad13ee5f9fa3, fqn: ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373']
2025-10-31 22:29:49,982 - INFO - VN ctest-vn-89509342 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 22:29:49,982 - DEBUG - Verifying the vn in opserver
2025-10-31 22:29:49,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342 virtual network link through opserver 10.0.0.33
2025-10-31 22:29:49,982 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-31 22:29:49,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342?flat'}
2025-10-31 22:29:49,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342 is found in opserver
2025-10-31 22:29:50,002 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 22:29:50,006 - DEBUG - VRF ids for VN ctest-vn-89509342: {}
2025-10-31 22:29:50,062 - DEBUG - Services list from nova: [