2025-12-11 17:40:08,876 - INFO - Domain Default found not creating
2025-12-11 17:40:09,102 - INFO - Project ctest-TestBasicPolicy-09621842 not found, creating it
2025-12-11 17:40:09,625 - INFO - Created Project:ctest-TestBasicPolicy-09621842, ID : c5d88fdc-756d-42e4-b5b1-dd3f53d3f155
2025-12-11 17:40:11,424 - INFO - ================================================================================
2025-12-11 17:40:11,424 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-11 17:40:11,424 - 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-12-11 17:40:11,699 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.193': '0'}} with
2025-12-11 17:40:11,699 - INFO - Initial checks done. Running the testcase now
2025-12-11 17:40:11,700 - INFO -
2025-12-11 17:40:12,349 - DEBUG - Response for create_network : {'network': {'id': '061cf21f-eb38-41da-b496-4c0c71b56358', 'name': 'ctest-vn-31920932', 'tenant_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'project_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-vn-31920932'], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:40:12,547 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fef8ab43-c670-4da4-8074-2c3e0c886541', 'name': '', 'tenant_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'network_id': '061cf21f-eb38-41da-b496-4c0c71b56358', 'ip_version': 4, 'cidr': '11.37.48.192/26', 'allocation_pools': [{'start': '11.37.48.194', 'end': '11.37.48.254'}], 'gateway_ip': '11.37.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.37.48.194', 'tags': [], 'project_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155'}}
2025-12-11 17:40:12,571 - INFO - Created VN ctest-vn-31920932
2025-12-11 17:40:12,629 - DEBUG - VN ctest-vn-31920932 UUID is 061cf21f-eb38-41da-b496-4c0c71b56358
2025-12-11 17:40:12,989 - DEBUG - Response for create_network : {'network': {'id': '4a86a272-e196-415b-adc2-ed07f13eb39d', 'name': 'ctest-vn-94311712', 'tenant_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'project_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-vn-94311712'], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:40:13,164 - DEBUG - Response for create_subnet : {'subnet': {'id': '14224500-2d66-4289-8927-0245e7e3f2f2', 'name': '', 'tenant_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'network_id': '4a86a272-e196-415b-adc2-ed07f13eb39d', 'ip_version': 4, 'cidr': '172.101.182.192/26', 'allocation_pools': [{'start': '172.101.182.194', 'end': '172.101.182.254'}], 'gateway_ip': '172.101.182.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.101.182.194', 'tags': [], 'project_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155'}}
2025-12-11 17:40:13,186 - INFO - Created VN ctest-vn-94311712
2025-12-11 17:40:13,241 - DEBUG - VN ctest-vn-94311712 UUID is 4a86a272-e196-415b-adc2-ed07f13eb39d
2025-12-11 17:40:13,374 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-31920932, 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-09621842:ctest-vn-94311712, 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-12-11 17:40:13,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '061cf21f-eb38-41da-b496-4c0c71b56358', 'name': 'ctest-vn-31920932', 'tenant_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'project_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fef8ab43-c670-4da4-8074-2c3e0c886541'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-vn-31920932'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-policy-allow-all-34140047']], 'subnet_ipam': [{'subnet_cidr': '11.37.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:40:13,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a86a272-e196-415b-adc2-ed07f13eb39d', 'name': 'ctest-vn-94311712', 'tenant_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'project_id': 'c5d88fdc756d42e4b5b1dd3f53d3f155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14224500-2d66-4289-8927-0245e7e3f2f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-vn-94311712'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-policy-allow-all-34140047']], 'subnet_ipam': [{'subnet_cidr': '172.101.182.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:40:14,118 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-11 17:40:14,435 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-11 17:40:14,467 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c5bebfe9-6116-4cd9-968e-9aeff1d4aaed
2025-12-11 17:40:14,479 - DEBUG - Requesting: http://10.0.0.38:8082/project/c5d88fdc-756d-42e4-b5b1-dd3f53d3f155
2025-12-11 17:40:14,557 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/061cf21f-eb38-41da-b496-4c0c71b56358
2025-12-11 17:40:14,568 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/061cf21f-eb38-41da-b496-4c0c71b56358
2025-12-11 17:40:14,577 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/202b2d1f-ad85-4186-98cf-1bc14fd955cc
2025-12-11 17:40:14,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/202b2d1f-ad85-4186-98cf-1bc14fd955cc
2025-12-11 17:40:14,592 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/550dbffc-105a-45fd-8eac-1a26517b84cd
2025-12-11 17:40:14,599 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-11 17:40:14,599 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/061cf21f-eb38-41da-b496-4c0c71b56358
2025-12-11 17:40:14,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/202b2d1f-ad85-4186-98cf-1bc14fd955cc
2025-12-11 17:40:14,625 - INFO - Verified VN network id 11 for VN 061cf21f-eb38-41da-b496-4c0c71b56358
2025-12-11 17:40:14,626 - INFO - Verifications in API Server for VN ctest-vn-31920932 passed
2025-12-11 17:40:14,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/061cf21f-eb38-41da-b496-4c0c71b56358
2025-12-11 17:40:14,639 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/202b2d1f-ad85-4186-98cf-1bc14fd955cc
2025-12-11 17:40:14,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/202b2d1f-ad85-4186-98cf-1bc14fd955cc
2025-12-11 17:40:14,657 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/550dbffc-105a-45fd-8eac-1a26517b84cd
2025-12-11 17:40:14,672 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-31920932', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09621842', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '440493082479706586', 'uuid-lslong': '13012671789664658264'}, 'enable': 'true', 'created': '2025-12-11T17:40:12', 'last-modified': '2025-12-11T17:40:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002958'}
2025-12-11 17:40:14,680 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-11 17:40:14,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31920932 passed
2025-12-11 17:40:14,680 - DEBUG - ====Verifying policy data for ctest-vn-31920932 in API_Server ======
2025-12-11 17:40:14,680 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-11 17:40:14,686 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c5bebfe9-6116-4cd9-968e-9aeff1d4aaed
2025-12-11 17:40:14,698 - DEBUG - Requesting: http://10.0.0.38:8082/project/c5d88fdc-756d-42e4-b5b1-dd3f53d3f155
2025-12-11 17:40:14,779 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/061cf21f-eb38-41da-b496-4c0c71b56358
2025-12-11 17:40:14,792 - DEBUG - ==>Verifying data for policy with id: 387a050d-7be5-40e4-88cd-7c7fbdd27db0, fqn: ['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-policy-allow-all-34140047']
2025-12-11 17:40:14,792 - INFO - VN ctest-vn-31920932 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-11 17:40:14,792 - DEBUG - Verifying the vn in opserver
2025-12-11 17:40:14,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-31920932 virtual network link through opserver 10.0.0.38
2025-12-11 17:40:14,793 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-11 17:40:15,099 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-11 17:40:15,182 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-31920932', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-31920932?flat'}
2025-12-11 17:40:15,182 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-31920932 is found in opserver
2025-12-11 17:40:15,196 - DEBUG - Do not have enough data to verify VN in agent
2025-12-11 17:40:15,202 - DEBUG - VRF ids for VN ctest-vn-31920932: {}
2025-12-11 17:40:15,202 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-11 17:40:15,212 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c5bebfe9-6116-4cd9-968e-9aeff1d4aaed
2025-12-11 17:40:15,232 - DEBUG - Requesting: http://10.0.0.38:8082/project/c5d88fdc-756d-42e4-b5b1-dd3f53d3f155
2025-12-11 17:40:15,306 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a86a272-e196-415b-adc2-ed07f13eb39d
2025-12-11 17:40:15,319 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a86a272-e196-415b-adc2-ed07f13eb39d
2025-12-11 17:40:15,330 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0132a9bc-a83e-49f5-9b58-ab6cf7de1456
2025-12-11 17:40:15,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0132a9bc-a83e-49f5-9b58-ab6cf7de1456
2025-12-11 17:40:15,349 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd4f2fd7-3d8e-4d44-9fd6-ca5cc83c4ac2
2025-12-11 17:40:15,358 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-11 17:40:15,358 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a86a272-e196-415b-adc2-ed07f13eb39d
2025-12-11 17:40:15,369 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0132a9bc-a83e-49f5-9b58-ab6cf7de1456
2025-12-11 17:40:15,383 - INFO - Verified VN network id 12 for VN 4a86a272-e196-415b-adc2-ed07f13eb39d
2025-12-11 17:40:15,383 - INFO - Verifications in API Server for VN ctest-vn-94311712 passed
2025-12-11 17:40:15,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a86a272-e196-415b-adc2-ed07f13eb39d
2025-12-11 17:40:15,394 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0132a9bc-a83e-49f5-9b58-ab6cf7de1456
2025-12-11 17:40:15,404 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0132a9bc-a83e-49f5-9b58-ab6cf7de1456
2025-12-11 17:40:15,416 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd4f2fd7-3d8e-4d44-9fd6-ca5cc83c4ac2
2025-12-11 17:40:15,429 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-94311712', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09621842', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5370158219980587355', 'uuid-lslong': '12520830532411372445'}, 'enable': 'true', 'created': '2025-12-11T17:40:12', 'last-modified': '2025-12-11T17:40:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.507482'}
2025-12-11 17:40:15,437 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-11 17:40:15,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94311712 passed
2025-12-11 17:40:15,437 - DEBUG - ====Verifying policy data for ctest-vn-94311712 in API_Server ======
2025-12-11 17:40:15,437 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-11 17:40:15,444 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c5bebfe9-6116-4cd9-968e-9aeff1d4aaed
2025-12-11 17:40:15,459 - DEBUG - Requesting: http://10.0.0.38:8082/project/c5d88fdc-756d-42e4-b5b1-dd3f53d3f155
2025-12-11 17:40:15,540 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a86a272-e196-415b-adc2-ed07f13eb39d
2025-12-11 17:40:15,552 - DEBUG - ==>Verifying data for policy with id: 387a050d-7be5-40e4-88cd-7c7fbdd27db0, fqn: ['default-domain', 'ctest-TestBasicPolicy-09621842', 'ctest-policy-allow-all-34140047']
2025-12-11 17:40:15,552 - INFO - VN ctest-vn-94311712 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-11 17:40:15,552 - DEBUG - Verifying the vn in opserver
2025-12-11 17:40:15,552 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-94311712 virtual network link through opserver 10.0.0.38
2025-12-11 17:40:15,553 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-11 17:40:15,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-94311712', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-94311712?flat'}
2025-12-11 17:40:15,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09621842:ctest-vn-94311712 is found in opserver
2025-12-11 17:40:15,577 - DEBUG - Do not have enough data to verify VN in agent
2025-12-11 17:40:15,582 - DEBUG - VRF ids for VN ctest-vn-94311712: {}
2025-12-11 17:40:15,664 - DEBUG - Services list from nova: [