2025-11-13 08:13:10,400 - INFO - Domain Default found not creating
2025-11-13 08:13:10,561 - INFO - Project ctest-TestBasicPolicy-12319967 not found, creating it
2025-11-13 08:13:11,039 - INFO - Created Project:ctest-TestBasicPolicy-12319967, ID : 6123d850-f300-49b0-9efe-3689a5f2a2ed
2025-11-13 08:13:12,479 - INFO - ================================================================================
2025-11-13 08:13:12,479 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 08:13:12,479 - 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-13 08:13:12,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-11-13 08:13:12,732 - INFO - Initial checks done. Running the testcase now
2025-11-13 08:13:12,732 - INFO -
2025-11-13 08:13:13,268 - DEBUG - Response for create_network : {'network': {'id': '486ec7e6-9899-4a86-a91f-4d14c641f454', 'name': 'ctest-vn-27778795', 'tenant_id': '6123d850f30049b09efe3689a5f2a2ed', 'project_id': '6123d850f30049b09efe3689a5f2a2ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-vn-27778795'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:13:13,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5381581-95a7-4568-97cb-91c0ddd9b14c', 'name': '', 'tenant_id': '6123d850f30049b09efe3689a5f2a2ed', 'network_id': '486ec7e6-9899-4a86-a91f-4d14c641f454', 'ip_version': 4, 'cidr': '185.136.215.64/26', 'allocation_pools': [{'start': '185.136.215.66', 'end': '185.136.215.126'}], 'gateway_ip': '185.136.215.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.136.215.66', 'tags': [], 'project_id': '6123d850f30049b09efe3689a5f2a2ed'}}
2025-11-13 08:13:13,485 - INFO - Created VN ctest-vn-27778795
2025-11-13 08:13:13,538 - DEBUG - VN ctest-vn-27778795 UUID is 486ec7e6-9899-4a86-a91f-4d14c641f454
2025-11-13 08:13:13,814 - DEBUG - Response for create_network : {'network': {'id': '2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d', 'name': 'ctest-vn-49176860', 'tenant_id': '6123d850f30049b09efe3689a5f2a2ed', 'project_id': '6123d850f30049b09efe3689a5f2a2ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-vn-49176860'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:13:13,975 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dff358c-866c-4ac4-a7bd-2a41929c73bd', 'name': '', 'tenant_id': '6123d850f30049b09efe3689a5f2a2ed', 'network_id': '2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d', 'ip_version': 4, 'cidr': '113.116.112.0/26', 'allocation_pools': [{'start': '113.116.112.2', 'end': '113.116.112.62'}], 'gateway_ip': '113.116.112.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.116.112.2', 'tags': [], 'project_id': '6123d850f30049b09efe3689a5f2a2ed'}}
2025-11-13 08:13:13,992 - INFO - Created VN ctest-vn-49176860
2025-11-13 08:13:14,046 - DEBUG - VN ctest-vn-49176860 UUID is 2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d
2025-11-13 08:13:14,161 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-27778795, 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-12319967:ctest-vn-49176860, 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-13 08:13:14,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '486ec7e6-9899-4a86-a91f-4d14c641f454', 'name': 'ctest-vn-27778795', 'tenant_id': '6123d850f30049b09efe3689a5f2a2ed', 'project_id': '6123d850f30049b09efe3689a5f2a2ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5381581-95a7-4568-97cb-91c0ddd9b14c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-vn-27778795'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-policy-allow-all-85206684']], 'subnet_ipam': [{'subnet_cidr': '185.136.215.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:13:14,726 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d', 'name': 'ctest-vn-49176860', 'tenant_id': '6123d850f30049b09efe3689a5f2a2ed', 'project_id': '6123d850f30049b09efe3689a5f2a2ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2dff358c-866c-4ac4-a7bd-2a41929c73bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-vn-49176860'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-policy-allow-all-85206684']], 'subnet_ipam': [{'subnet_cidr': '113.116.112.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 08:13:14,878 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 08:13:15,188 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 08:13:15,218 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d
2025-11-13 08:13:15,230 - DEBUG - Requesting: http://10.0.0.38:8082/project/6123d850-f300-49b0-9efe-3689a5f2a2ed
2025-11-13 08:13:15,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/486ec7e6-9899-4a86-a91f-4d14c641f454
2025-11-13 08:13:15,313 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/486ec7e6-9899-4a86-a91f-4d14c641f454
2025-11-13 08:13:15,322 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9027d365-48fc-4910-8845-4c55d6bbf0eb
2025-11-13 08:13:15,331 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9027d365-48fc-4910-8845-4c55d6bbf0eb
2025-11-13 08:13:15,339 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0a641e4a-95eb-4298-9728-9cd85f238141
2025-11-13 08:13:15,346 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 08:13:15,346 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/486ec7e6-9899-4a86-a91f-4d14c641f454
2025-11-13 08:13:15,355 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9027d365-48fc-4910-8845-4c55d6bbf0eb
2025-11-13 08:13:15,371 - INFO - Verified VN network id 11 for VN 486ec7e6-9899-4a86-a91f-4d14c641f454
2025-11-13 08:13:15,371 - INFO - Verifications in API Server for VN ctest-vn-27778795 passed
2025-11-13 08:13:15,371 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/486ec7e6-9899-4a86-a91f-4d14c641f454
2025-11-13 08:13:15,381 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9027d365-48fc-4910-8845-4c55d6bbf0eb
2025-11-13 08:13:15,388 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9027d365-48fc-4910-8845-4c55d6bbf0eb
2025-11-13 08:13:15,394 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0a641e4a-95eb-4298-9728-9cd85f238141
2025-11-13 08:13:15,407 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-27778795', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12319967', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5219328811385571974', 'uuid-lslong': '12186543868308747348'}, 'enable': 'true', 'created': '2025-11-13T08:13:13', 'last-modified': '2025-11-13T08:13:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982052'}
2025-11-13 08:13:15,414 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 08:13:15,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27778795 passed
2025-11-13 08:13:15,415 - DEBUG - ====Verifying policy data for ctest-vn-27778795 in API_Server ======
2025-11-13 08:13:15,415 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 08:13:15,421 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d
2025-11-13 08:13:15,435 - DEBUG - Requesting: http://10.0.0.38:8082/project/6123d850-f300-49b0-9efe-3689a5f2a2ed
2025-11-13 08:13:15,511 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/486ec7e6-9899-4a86-a91f-4d14c641f454
2025-11-13 08:13:15,527 - DEBUG - ==>Verifying data for policy with id: 35affabc-2834-4e4b-948e-2b04c0c58912, fqn: ['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-policy-allow-all-85206684']
2025-11-13 08:13:15,527 - INFO - VN ctest-vn-27778795 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 08:13:15,527 - DEBUG - Verifying the vn in opserver
2025-11-13 08:13:15,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-27778795 virtual network link through opserver 10.0.0.38
2025-11-13 08:13:15,527 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 08:13:15,818 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 08:13:15,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-27778795', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-27778795?flat'}
2025-11-13 08:13:15,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-27778795 is found in opserver
2025-11-13 08:13:15,883 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 08:13:15,887 - DEBUG - VRF ids for VN ctest-vn-27778795: {}
2025-11-13 08:13:15,887 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 08:13:15,892 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d
2025-11-13 08:13:15,902 - DEBUG - Requesting: http://10.0.0.38:8082/project/6123d850-f300-49b0-9efe-3689a5f2a2ed
2025-11-13 08:13:15,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d
2025-11-13 08:13:15,984 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d
2025-11-13 08:13:15,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3352fb80-5633-42f3-8da0-df37f506e930
2025-11-13 08:13:16,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3352fb80-5633-42f3-8da0-df37f506e930
2025-11-13 08:13:16,008 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9995a052-aaa1-4b30-b40f-3c1715b24ad5
2025-11-13 08:13:16,015 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 08:13:16,015 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d
2025-11-13 08:13:16,024 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3352fb80-5633-42f3-8da0-df37f506e930
2025-11-13 08:13:16,039 - INFO - Verified VN network id 12 for VN 2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d
2025-11-13 08:13:16,039 - INFO - Verifications in API Server for VN ctest-vn-49176860 passed
2025-11-13 08:13:16,039 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d
2025-11-13 08:13:16,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3352fb80-5633-42f3-8da0-df37f506e930
2025-11-13 08:13:16,057 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3352fb80-5633-42f3-8da0-df37f506e930
2025-11-13 08:13:16,064 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9995a052-aaa1-4b30-b40f-3c1715b24ad5
2025-11-13 08:13:16,077 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-49176860', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12319967', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3201884324219863540', 'uuid-lslong': '13447864813806876173'}, 'enable': 'true', 'created': '2025-11-13T08:13:13', 'last-modified': '2025-11-13T08:13:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415162'}
2025-11-13 08:13:16,083 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 08:13:16,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49176860 passed
2025-11-13 08:13:16,083 - DEBUG - ====Verifying policy data for ctest-vn-49176860 in API_Server ======
2025-11-13 08:13:16,083 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 08:13:16,089 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d
2025-11-13 08:13:16,099 - DEBUG - Requesting: http://10.0.0.38:8082/project/6123d850-f300-49b0-9efe-3689a5f2a2ed
2025-11-13 08:13:16,168 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c6f60d4-1d04-41f4-baa0-69cc5e6ef60d
2025-11-13 08:13:16,177 - DEBUG - ==>Verifying data for policy with id: 35affabc-2834-4e4b-948e-2b04c0c58912, fqn: ['default-domain', 'ctest-TestBasicPolicy-12319967', 'ctest-policy-allow-all-85206684']
2025-11-13 08:13:16,177 - INFO - VN ctest-vn-49176860 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 08:13:16,177 - DEBUG - Verifying the vn in opserver
2025-11-13 08:13:16,177 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-49176860 virtual network link through opserver 10.0.0.38
2025-11-13 08:13:16,178 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 08:13:16,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-49176860', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-49176860?flat'}
2025-11-13 08:13:16,187 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12319967:ctest-vn-49176860 is found in opserver
2025-11-13 08:13:16,196 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 08:13:16,200 - DEBUG - VRF ids for VN ctest-vn-49176860: {}
2025-11-13 08:13:16,254 - DEBUG - Services list from nova: [