2025-10-08 16:15:28,896 - INFO - Domain Default found not creating
2025-10-08 16:15:29,038 - INFO - Project ctest-TestBasicPolicy-18515819 not found, creating it
2025-10-08 16:15:29,485 - INFO - Created Project:ctest-TestBasicPolicy-18515819, ID : 12cdf666-8921-4e6d-ac4f-683240693d87
2025-10-08 16:15:30,837 - INFO - ================================================================================
2025-10-08 16:15:30,837 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 16:15:30,837 - 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-08 16:15:31,091 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.18': '0'}} with
2025-10-08 16:15:31,092 - INFO - Initial checks done. Running the testcase now
2025-10-08 16:15:31,092 - INFO -
2025-10-08 16:15:31,617 - DEBUG - Response for create_network : {'network': {'id': '2ea32e77-131d-4f20-915e-a351d6e8a46b', 'name': 'ctest-vn-05029295', 'tenant_id': '12cdf66689214e6dac4f683240693d87', 'project_id': '12cdf66689214e6dac4f683240693d87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-vn-05029295'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:15:31,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '290996c4-6c0b-4a1e-a7a1-e4085ece2580', 'name': '', 'tenant_id': '12cdf66689214e6dac4f683240693d87', 'network_id': '2ea32e77-131d-4f20-915e-a351d6e8a46b', 'ip_version': 4, 'cidr': '156.27.251.0/26', 'allocation_pools': [{'start': '156.27.251.2', 'end': '156.27.251.62'}], 'gateway_ip': '156.27.251.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.27.251.2', 'tags': [], 'project_id': '12cdf66689214e6dac4f683240693d87'}}
2025-10-08 16:15:31,830 - INFO - Created VN ctest-vn-05029295
2025-10-08 16:15:31,883 - DEBUG - VN ctest-vn-05029295 UUID is 2ea32e77-131d-4f20-915e-a351d6e8a46b
2025-10-08 16:15:32,189 - DEBUG - Response for create_network : {'network': {'id': '294a1841-eae3-47ff-8048-b9093985e11e', 'name': 'ctest-vn-38375934', 'tenant_id': '12cdf66689214e6dac4f683240693d87', 'project_id': '12cdf66689214e6dac4f683240693d87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-vn-38375934'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:15:32,401 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8116262-3c3d-4521-ab6d-433fec1206a2', 'name': '', 'tenant_id': '12cdf66689214e6dac4f683240693d87', 'network_id': '294a1841-eae3-47ff-8048-b9093985e11e', 'ip_version': 4, 'cidr': '70.173.2.128/26', 'allocation_pools': [{'start': '70.173.2.130', 'end': '70.173.2.190'}], 'gateway_ip': '70.173.2.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.173.2.130', 'tags': [], 'project_id': '12cdf66689214e6dac4f683240693d87'}}
2025-10-08 16:15:32,417 - INFO - Created VN ctest-vn-38375934
2025-10-08 16:15:32,467 - DEBUG - VN ctest-vn-38375934 UUID is 294a1841-eae3-47ff-8048-b9093985e11e
2025-10-08 16:15:32,615 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-05029295, 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-18515819:ctest-vn-38375934, 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-08 16:15:32,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ea32e77-131d-4f20-915e-a351d6e8a46b', 'name': 'ctest-vn-05029295', 'tenant_id': '12cdf66689214e6dac4f683240693d87', 'project_id': '12cdf66689214e6dac4f683240693d87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['290996c4-6c0b-4a1e-a7a1-e4085ece2580'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-vn-05029295'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-policy-allow-all-66068115']], 'subnet_ipam': [{'subnet_cidr': '156.27.251.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:15:33,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '294a1841-eae3-47ff-8048-b9093985e11e', 'name': 'ctest-vn-38375934', 'tenant_id': '12cdf66689214e6dac4f683240693d87', 'project_id': '12cdf66689214e6dac4f683240693d87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8116262-3c3d-4521-ab6d-433fec1206a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-vn-38375934'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-policy-allow-all-66068115']], 'subnet_ipam': [{'subnet_cidr': '70.173.2.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:15:33,267 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 16:15:33,555 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 16:15:33,580 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9885ed9e-1acd-4186-8d17-e5bfd842506c
2025-10-08 16:15:33,590 - DEBUG - Requesting: http://10.0.0.57:8082/project/12cdf666-8921-4e6d-ac4f-683240693d87
2025-10-08 16:15:33,657 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2ea32e77-131d-4f20-915e-a351d6e8a46b
2025-10-08 16:15:33,668 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2ea32e77-131d-4f20-915e-a351d6e8a46b
2025-10-08 16:15:33,677 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/05bde883-cb5e-4b62-a3b5-bf1f31d53d0d
2025-10-08 16:15:33,683 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/05bde883-cb5e-4b62-a3b5-bf1f31d53d0d
2025-10-08 16:15:33,689 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/aa360e0e-2d0a-4a81-90b8-debae6468547
2025-10-08 16:15:33,694 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 16:15:33,694 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2ea32e77-131d-4f20-915e-a351d6e8a46b
2025-10-08 16:15:33,702 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/05bde883-cb5e-4b62-a3b5-bf1f31d53d0d
2025-10-08 16:15:33,716 - INFO - Verified VN network id 9 for VN 2ea32e77-131d-4f20-915e-a351d6e8a46b
2025-10-08 16:15:33,716 - INFO - Verifications in API Server for VN ctest-vn-05029295 passed
2025-10-08 16:15:33,716 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2ea32e77-131d-4f20-915e-a351d6e8a46b
2025-10-08 16:15:33,724 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/05bde883-cb5e-4b62-a3b5-bf1f31d53d0d
2025-10-08 16:15:33,730 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/05bde883-cb5e-4b62-a3b5-bf1f31d53d0d
2025-10-08 16:15:33,737 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/aa360e0e-2d0a-4a81-90b8-debae6468547
2025-10-08 16:15:33,748 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-05029295', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18515819', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3360580835905195808', 'uuid-lslong': '10474989355203601515'}, 'enable': 'true', 'created': '2025-10-08T16:15:31', 'last-modified': '2025-10-08T16:15:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.874658'}
2025-10-08 16:15:33,753 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 16:15:33,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05029295 passed
2025-10-08 16:15:33,755 - DEBUG - ====Verifying policy data for ctest-vn-05029295 in API_Server ======
2025-10-08 16:15:33,755 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 16:15:33,760 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9885ed9e-1acd-4186-8d17-e5bfd842506c
2025-10-08 16:15:33,771 - DEBUG - Requesting: http://10.0.0.57:8082/project/12cdf666-8921-4e6d-ac4f-683240693d87
2025-10-08 16:15:33,842 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/2ea32e77-131d-4f20-915e-a351d6e8a46b
2025-10-08 16:15:33,852 - DEBUG - ==>Verifying data for policy with id: c64ef71c-726b-4f2c-b942-d063499b8384, fqn: ['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-policy-allow-all-66068115']
2025-10-08 16:15:33,852 - INFO - VN ctest-vn-05029295 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 16:15:33,852 - DEBUG - Verifying the vn in opserver
2025-10-08 16:15:33,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-05029295 virtual network link through opserver 10.0.0.57
2025-10-08 16:15:33,852 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-08 16:15:34,150 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-08 16:15:34,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-05029295', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-05029295?flat'}
2025-10-08 16:15:34,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-05029295 is found in opserver
2025-10-08 16:15:34,211 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 16:15:34,215 - DEBUG - VRF ids for VN ctest-vn-05029295: {}
2025-10-08 16:15:34,215 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 16:15:34,220 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9885ed9e-1acd-4186-8d17-e5bfd842506c
2025-10-08 16:15:34,231 - DEBUG - Requesting: http://10.0.0.57:8082/project/12cdf666-8921-4e6d-ac4f-683240693d87
2025-10-08 16:15:34,298 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/294a1841-eae3-47ff-8048-b9093985e11e
2025-10-08 16:15:34,308 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/294a1841-eae3-47ff-8048-b9093985e11e
2025-10-08 16:15:34,316 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/32482911-9bed-41ee-a572-817c3c1eb689
2025-10-08 16:15:34,322 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/32482911-9bed-41ee-a572-817c3c1eb689
2025-10-08 16:15:34,328 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1aca52e3-813d-4ddf-8c13-379785749b1a
2025-10-08 16:15:34,334 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 16:15:34,334 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/294a1841-eae3-47ff-8048-b9093985e11e
2025-10-08 16:15:34,341 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/32482911-9bed-41ee-a572-817c3c1eb689
2025-10-08 16:15:34,354 - INFO - Verified VN network id 10 for VN 294a1841-eae3-47ff-8048-b9093985e11e
2025-10-08 16:15:34,354 - INFO - Verifications in API Server for VN ctest-vn-38375934 passed
2025-10-08 16:15:34,354 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/294a1841-eae3-47ff-8048-b9093985e11e
2025-10-08 16:15:34,363 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/32482911-9bed-41ee-a572-817c3c1eb689
2025-10-08 16:15:34,369 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/32482911-9bed-41ee-a572-817c3c1eb689
2025-10-08 16:15:34,376 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1aca52e3-813d-4ddf-8c13-379785749b1a
2025-10-08 16:15:34,386 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-38375934', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18515819', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2975217175224338431', 'uuid-lslong': '9243841684448862494'}, 'enable': 'true', 'created': '2025-10-08T16:15:32', 'last-modified': '2025-10-08T16:15:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.288680'}
2025-10-08 16:15:34,391 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 16:15:34,391 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38375934 passed
2025-10-08 16:15:34,391 - DEBUG - ====Verifying policy data for ctest-vn-38375934 in API_Server ======
2025-10-08 16:15:34,392 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 16:15:34,399 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9885ed9e-1acd-4186-8d17-e5bfd842506c
2025-10-08 16:15:34,408 - DEBUG - Requesting: http://10.0.0.57:8082/project/12cdf666-8921-4e6d-ac4f-683240693d87
2025-10-08 16:15:34,476 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/294a1841-eae3-47ff-8048-b9093985e11e
2025-10-08 16:15:34,484 - DEBUG - ==>Verifying data for policy with id: c64ef71c-726b-4f2c-b942-d063499b8384, fqn: ['default-domain', 'ctest-TestBasicPolicy-18515819', 'ctest-policy-allow-all-66068115']
2025-10-08 16:15:34,484 - INFO - VN ctest-vn-38375934 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 16:15:34,484 - DEBUG - Verifying the vn in opserver
2025-10-08 16:15:34,484 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-38375934 virtual network link through opserver 10.0.0.57
2025-10-08 16:15:34,484 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-08 16:15:34,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-38375934', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-38375934?flat'}
2025-10-08 16:15:34,492 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18515819:ctest-vn-38375934 is found in opserver
2025-10-08 16:15:34,500 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 16:15:34,504 - DEBUG - VRF ids for VN ctest-vn-38375934: {}
2025-10-08 16:15:34,553 - DEBUG - Services list from nova: [