2025-10-05 07:16:40,789 - INFO - Domain Default found not creating
2025-10-05 07:16:40,909 - INFO - Project ctest-TestBasicPolicy-67470871 not found, creating it
2025-10-05 07:16:41,403 - INFO - Created Project:ctest-TestBasicPolicy-67470871, ID : 514baaf6-ab79-4c96-8ad2-5aef9f1a8192
2025-10-05 07:16:42,714 - INFO - ================================================================================
2025-10-05 07:16:42,715 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-05 07:16:42,715 - 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-05 07:16:42,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-05 07:16:42,968 - INFO - Initial checks done. Running the testcase now
2025-10-05 07:16:42,968 - INFO -
2025-10-05 07:16:43,464 - DEBUG - Response for create_network : {'network': {'id': '84a2461d-900e-4c73-a64a-e88b7491e1f9', 'name': 'ctest-vn-01997928', 'tenant_id': '514baaf6ab794c968ad25aef9f1a8192', 'project_id': '514baaf6ab794c968ad25aef9f1a8192', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-vn-01997928'], 'port_security_enabled': True, 'description': ''}}
2025-10-05 07:16:43,652 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a91ec88-39f1-4dbf-8480-b760ee971ca3', 'name': '', 'tenant_id': '514baaf6ab794c968ad25aef9f1a8192', 'network_id': '84a2461d-900e-4c73-a64a-e88b7491e1f9', 'ip_version': 4, 'cidr': '113.24.0.64/26', 'allocation_pools': [{'start': '113.24.0.66', 'end': '113.24.0.126'}], 'gateway_ip': '113.24.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.24.0.66', 'tags': [], 'project_id': '514baaf6ab794c968ad25aef9f1a8192'}}
2025-10-05 07:16:43,666 - INFO - Created VN ctest-vn-01997928
2025-10-05 07:16:43,719 - DEBUG - VN ctest-vn-01997928 UUID is 84a2461d-900e-4c73-a64a-e88b7491e1f9
2025-10-05 07:16:44,023 - DEBUG - Response for create_network : {'network': {'id': '62d2a842-2f89-4678-a683-f8e0716f0564', 'name': 'ctest-vn-11299251', 'tenant_id': '514baaf6ab794c968ad25aef9f1a8192', 'project_id': '514baaf6ab794c968ad25aef9f1a8192', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-vn-11299251'], 'port_security_enabled': True, 'description': ''}}
2025-10-05 07:16:44,196 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd3e8583-755f-4a25-8a0f-f44c577a0b94', 'name': '', 'tenant_id': '514baaf6ab794c968ad25aef9f1a8192', 'network_id': '62d2a842-2f89-4678-a683-f8e0716f0564', 'ip_version': 4, 'cidr': '123.27.61.64/26', 'allocation_pools': [{'start': '123.27.61.66', 'end': '123.27.61.126'}], 'gateway_ip': '123.27.61.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.27.61.66', 'tags': [], 'project_id': '514baaf6ab794c968ad25aef9f1a8192'}}
2025-10-05 07:16:44,211 - INFO - Created VN ctest-vn-11299251
2025-10-05 07:16:44,259 - DEBUG - VN ctest-vn-11299251 UUID is 62d2a842-2f89-4678-a683-f8e0716f0564
2025-10-05 07:16:44,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-01997928, 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-67470871:ctest-vn-11299251, 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-05 07:16:44,680 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84a2461d-900e-4c73-a64a-e88b7491e1f9', 'name': 'ctest-vn-01997928', 'tenant_id': '514baaf6ab794c968ad25aef9f1a8192', 'project_id': '514baaf6ab794c968ad25aef9f1a8192', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a91ec88-39f1-4dbf-8480-b760ee971ca3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-vn-01997928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-policy-allow-all-91506069']], 'subnet_ipam': [{'subnet_cidr': '113.24.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-05 07:16:44,884 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62d2a842-2f89-4678-a683-f8e0716f0564', 'name': 'ctest-vn-11299251', 'tenant_id': '514baaf6ab794c968ad25aef9f1a8192', 'project_id': '514baaf6ab794c968ad25aef9f1a8192', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd3e8583-755f-4a25-8a0f-f44c577a0b94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-vn-11299251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-policy-allow-all-91506069']], 'subnet_ipam': [{'subnet_cidr': '123.27.61.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-05 07:16:45,023 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 07:16:45,315 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 07:16:45,348 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7
2025-10-05 07:16:45,358 - DEBUG - Requesting: http://10.0.0.38:8082/project/514baaf6-ab79-4c96-8ad2-5aef9f1a8192
2025-10-05 07:16:45,423 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84a2461d-900e-4c73-a64a-e88b7491e1f9
2025-10-05 07:16:45,431 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84a2461d-900e-4c73-a64a-e88b7491e1f9
2025-10-05 07:16:45,438 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae9e0e69-cb10-4c97-8f0e-fec7cf543701
2025-10-05 07:16:45,444 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae9e0e69-cb10-4c97-8f0e-fec7cf543701
2025-10-05 07:16:45,449 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3ed8dcf-d99b-49fa-b647-4517767f5cda
2025-10-05 07:16:45,453 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-05 07:16:45,453 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84a2461d-900e-4c73-a64a-e88b7491e1f9
2025-10-05 07:16:45,460 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae9e0e69-cb10-4c97-8f0e-fec7cf543701
2025-10-05 07:16:45,471 - INFO - Verified VN network id 12 for VN 84a2461d-900e-4c73-a64a-e88b7491e1f9
2025-10-05 07:16:45,471 - INFO - Verifications in API Server for VN ctest-vn-01997928 passed
2025-10-05 07:16:45,471 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84a2461d-900e-4c73-a64a-e88b7491e1f9
2025-10-05 07:16:45,478 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae9e0e69-cb10-4c97-8f0e-fec7cf543701
2025-10-05 07:16:45,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae9e0e69-cb10-4c97-8f0e-fec7cf543701
2025-10-05 07:16:45,488 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3ed8dcf-d99b-49fa-b647-4517767f5cda
2025-10-05 07:16:45,497 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-01997928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67470871', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9557278452018465907', 'uuid-lslong': '11982645444226441721'}, 'enable': 'true', 'created': '2025-10-05T07:16:43', 'last-modified': '2025-10-05T07:16:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840113'}
2025-10-05 07:16:45,502 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-05 07:16:45,502 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01997928 passed
2025-10-05 07:16:45,502 - DEBUG - ====Verifying policy data for ctest-vn-01997928 in API_Server ======
2025-10-05 07:16:45,502 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 07:16:45,506 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7
2025-10-05 07:16:45,513 - DEBUG - Requesting: http://10.0.0.38:8082/project/514baaf6-ab79-4c96-8ad2-5aef9f1a8192
2025-10-05 07:16:45,577 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84a2461d-900e-4c73-a64a-e88b7491e1f9
2025-10-05 07:16:45,585 - DEBUG - ==>Verifying data for policy with id: e681c4dd-cbb1-4235-a294-fe8d1ae7d0d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-policy-allow-all-91506069']
2025-10-05 07:16:45,585 - INFO - VN ctest-vn-01997928 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-05 07:16:45,585 - DEBUG - Verifying the vn in opserver
2025-10-05 07:16:45,585 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-01997928 virtual network link through opserver 10.0.0.38
2025-10-05 07:16:45,585 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-05 07:16:45,870 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-05 07:16:45,916 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-01997928', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-01997928?flat'}
2025-10-05 07:16:45,916 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-01997928 is found in opserver
2025-10-05 07:16:45,924 - DEBUG - Do not have enough data to verify VN in agent
2025-10-05 07:16:45,927 - DEBUG - VRF ids for VN ctest-vn-01997928: {}
2025-10-05 07:16:45,927 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 07:16:45,932 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7
2025-10-05 07:16:45,940 - DEBUG - Requesting: http://10.0.0.38:8082/project/514baaf6-ab79-4c96-8ad2-5aef9f1a8192
2025-10-05 07:16:46,005 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62d2a842-2f89-4678-a683-f8e0716f0564
2025-10-05 07:16:46,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62d2a842-2f89-4678-a683-f8e0716f0564
2025-10-05 07:16:46,021 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35059450-d139-42ff-b8bd-b9df21fc0046
2025-10-05 07:16:46,026 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35059450-d139-42ff-b8bd-b9df21fc0046
2025-10-05 07:16:46,030 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a55fe27-6db1-49a6-84d6-69c02f564030
2025-10-05 07:16:46,035 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-05 07:16:46,035 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62d2a842-2f89-4678-a683-f8e0716f0564
2025-10-05 07:16:46,041 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35059450-d139-42ff-b8bd-b9df21fc0046
2025-10-05 07:16:46,051 - INFO - Verified VN network id 13 for VN 62d2a842-2f89-4678-a683-f8e0716f0564
2025-10-05 07:16:46,051 - INFO - Verifications in API Server for VN ctest-vn-11299251 passed
2025-10-05 07:16:46,051 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62d2a842-2f89-4678-a683-f8e0716f0564
2025-10-05 07:16:46,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35059450-d139-42ff-b8bd-b9df21fc0046
2025-10-05 07:16:46,062 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/35059450-d139-42ff-b8bd-b9df21fc0046
2025-10-05 07:16:46,067 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a55fe27-6db1-49a6-84d6-69c02f564030
2025-10-05 07:16:46,075 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-11299251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67470871', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7120938963045009016', 'uuid-lslong': '11998707475104597348'}, 'enable': 'true', 'created': '2025-10-05T07:16:43', 'last-modified': '2025-10-05T07:16:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.210075'}
2025-10-05 07:16:46,080 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-05 07:16:46,080 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11299251 passed
2025-10-05 07:16:46,080 - DEBUG - ====Verifying policy data for ctest-vn-11299251 in API_Server ======
2025-10-05 07:16:46,080 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 07:16:46,084 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7
2025-10-05 07:16:46,092 - DEBUG - Requesting: http://10.0.0.38:8082/project/514baaf6-ab79-4c96-8ad2-5aef9f1a8192
2025-10-05 07:16:46,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62d2a842-2f89-4678-a683-f8e0716f0564
2025-10-05 07:16:46,165 - DEBUG - ==>Verifying data for policy with id: e681c4dd-cbb1-4235-a294-fe8d1ae7d0d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-67470871', 'ctest-policy-allow-all-91506069']
2025-10-05 07:16:46,165 - INFO - VN ctest-vn-11299251 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-05 07:16:46,165 - DEBUG - Verifying the vn in opserver
2025-10-05 07:16:46,165 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-11299251 virtual network link through opserver 10.0.0.38
2025-10-05 07:16:46,165 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-05 07:16:46,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-11299251', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-11299251?flat'}
2025-10-05 07:16:46,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67470871:ctest-vn-11299251 is found in opserver
2025-10-05 07:16:46,180 - DEBUG - Do not have enough data to verify VN in agent
2025-10-05 07:16:46,184 - DEBUG - VRF ids for VN ctest-vn-11299251: {}
2025-10-05 07:16:46,233 - DEBUG - Services list from nova: [