2025-10-22 14:11:16,196 - INFO - Domain Default found not creating
2025-10-22 14:11:16,352 - INFO - Project ctest-TestBasicPolicy-21970071 not found, creating it
2025-10-22 14:11:16,887 - INFO - Created Project:ctest-TestBasicPolicy-21970071, ID : d8c5b16c-0667-444f-b81c-9fecb345c2ab
2025-10-22 14:11:18,437 - INFO - ================================================================================
2025-10-22 14:11:18,437 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 14:11:18,437 - 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-22 14:11:18,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-10-22 14:11:18,700 - INFO - Initial checks done. Running the testcase now
2025-10-22 14:11:18,700 - INFO -
2025-10-22 14:11:19,284 - DEBUG - Response for create_network : {'network': {'id': '02e5627b-5ec6-426e-aa19-d188b718a3cc', 'name': 'ctest-vn-26753199', 'tenant_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'project_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-vn-26753199'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:11:19,477 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f9009e2-9fa8-418a-a017-37946fa081fb', 'name': '', 'tenant_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'network_id': '02e5627b-5ec6-426e-aa19-d188b718a3cc', 'ip_version': 4, 'cidr': '63.65.83.192/26', 'allocation_pools': [{'start': '63.65.83.194', 'end': '63.65.83.254'}], 'gateway_ip': '63.65.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.65.83.194', 'tags': [], 'project_id': 'd8c5b16c0667444fb81c9fecb345c2ab'}}
2025-10-22 14:11:19,496 - INFO - Created VN ctest-vn-26753199
2025-10-22 14:11:19,550 - DEBUG - VN ctest-vn-26753199 UUID is 02e5627b-5ec6-426e-aa19-d188b718a3cc
2025-10-22 14:11:19,880 - DEBUG - Response for create_network : {'network': {'id': 'c6cce31e-d3a8-4772-8804-5520d261ede1', 'name': 'ctest-vn-55364311', 'tenant_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'project_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-vn-55364311'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:11:20,090 - DEBUG - Response for create_subnet : {'subnet': {'id': '89dda742-d509-43d0-a173-cf456b28f17a', 'name': '', 'tenant_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'network_id': 'c6cce31e-d3a8-4772-8804-5520d261ede1', 'ip_version': 4, 'cidr': '112.87.253.64/26', 'allocation_pools': [{'start': '112.87.253.66', 'end': '112.87.253.126'}], 'gateway_ip': '112.87.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.87.253.66', 'tags': [], 'project_id': 'd8c5b16c0667444fb81c9fecb345c2ab'}}
2025-10-22 14:11:20,111 - INFO - Created VN ctest-vn-55364311
2025-10-22 14:11:20,166 - DEBUG - VN ctest-vn-55364311 UUID is c6cce31e-d3a8-4772-8804-5520d261ede1
2025-10-22 14:11:20,286 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-26753199, 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-21970071:ctest-vn-55364311, 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-22 14:11:20,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02e5627b-5ec6-426e-aa19-d188b718a3cc', 'name': 'ctest-vn-26753199', 'tenant_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'project_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f9009e2-9fa8-418a-a017-37946fa081fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-vn-26753199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-policy-allow-all-07644949']], 'subnet_ipam': [{'subnet_cidr': '63.65.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:11:20,871 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6cce31e-d3a8-4772-8804-5520d261ede1', 'name': 'ctest-vn-55364311', 'tenant_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'project_id': 'd8c5b16c0667444fb81c9fecb345c2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89dda742-d509-43d0-a173-cf456b28f17a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-vn-55364311'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-policy-allow-all-07644949']], 'subnet_ipam': [{'subnet_cidr': '112.87.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:11:21,026 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-22 14:11:21,363 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-22 14:11:21,395 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a3cb75b1-b54f-4ecb-be13-4fb4e99472a3
2025-10-22 14:11:21,407 - DEBUG - Requesting: http://10.0.0.249:8082/project/d8c5b16c-0667-444f-b81c-9fecb345c2ab
2025-10-22 14:11:21,481 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/02e5627b-5ec6-426e-aa19-d188b718a3cc
2025-10-22 14:11:21,492 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/02e5627b-5ec6-426e-aa19-d188b718a3cc
2025-10-22 14:11:21,502 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3b10ad36-f224-414b-ac73-b7bfaa8fd4df
2025-10-22 14:11:21,510 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3b10ad36-f224-414b-ac73-b7bfaa8fd4df
2025-10-22 14:11:21,517 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fd87a6bb-978a-464b-8b7a-57b6acf64d29
2025-10-22 14:11:21,524 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:11:21,524 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/02e5627b-5ec6-426e-aa19-d188b718a3cc
2025-10-22 14:11:21,534 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3b10ad36-f224-414b-ac73-b7bfaa8fd4df
2025-10-22 14:11:21,549 - INFO - Verified VN network id 12 for VN 02e5627b-5ec6-426e-aa19-d188b718a3cc
2025-10-22 14:11:21,549 - INFO - Verifications in API Server for VN ctest-vn-26753199 passed
2025-10-22 14:11:21,549 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/02e5627b-5ec6-426e-aa19-d188b718a3cc
2025-10-22 14:11:21,558 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3b10ad36-f224-414b-ac73-b7bfaa8fd4df
2025-10-22 14:11:21,565 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3b10ad36-f224-414b-ac73-b7bfaa8fd4df
2025-10-22 14:11:21,573 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fd87a6bb-978a-464b-8b7a-57b6acf64d29
2025-10-22 14:11:21,586 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-26753199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21970071', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '208681239753146990', 'uuid-lslong': '12257058245983118284'}, 'enable': 'true', 'created': '2025-10-22T14:11:19', 'last-modified': '2025-10-22T14:11:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021764'}
2025-10-22 14:11:21,592 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:11:21,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26753199 passed
2025-10-22 14:11:21,592 - DEBUG - ====Verifying policy data for ctest-vn-26753199 in API_Server ======
2025-10-22 14:11:21,592 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-22 14:11:21,598 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a3cb75b1-b54f-4ecb-be13-4fb4e99472a3
2025-10-22 14:11:21,612 - DEBUG - Requesting: http://10.0.0.249:8082/project/d8c5b16c-0667-444f-b81c-9fecb345c2ab
2025-10-22 14:11:21,684 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/02e5627b-5ec6-426e-aa19-d188b718a3cc
2025-10-22 14:11:21,695 - DEBUG - ==>Verifying data for policy with id: 39325fb0-3c98-4b74-86f0-8dc332cf9538, fqn: ['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-policy-allow-all-07644949']
2025-10-22 14:11:21,695 - INFO - VN ctest-vn-26753199 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:11:21,695 - DEBUG - Verifying the vn in opserver
2025-10-22 14:11:21,695 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-26753199 virtual network link through opserver 10.0.0.249
2025-10-22 14:11:21,695 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-22 14:11:22,029 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-22 14:11:22,176 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-26753199', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-26753199?flat'}
2025-10-22 14:11:22,176 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-26753199 is found in opserver
2025-10-22 14:11:22,185 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:11:22,190 - DEBUG - VRF ids for VN ctest-vn-26753199: {}
2025-10-22 14:11:22,190 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-22 14:11:22,210 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a3cb75b1-b54f-4ecb-be13-4fb4e99472a3
2025-10-22 14:11:22,257 - DEBUG - Requesting: http://10.0.0.249:8082/project/d8c5b16c-0667-444f-b81c-9fecb345c2ab
2025-10-22 14:11:22,352 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6cce31e-d3a8-4772-8804-5520d261ede1
2025-10-22 14:11:22,376 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6cce31e-d3a8-4772-8804-5520d261ede1
2025-10-22 14:11:22,389 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/918507ab-d1a0-49e5-a513-aadb7fa0b09b
2025-10-22 14:11:22,403 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/918507ab-d1a0-49e5-a513-aadb7fa0b09b
2025-10-22 14:11:22,413 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/27350293-72d3-475e-ac43-71f139f678eb
2025-10-22 14:11:22,429 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:11:22,429 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6cce31e-d3a8-4772-8804-5520d261ede1
2025-10-22 14:11:22,452 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/918507ab-d1a0-49e5-a513-aadb7fa0b09b
2025-10-22 14:11:22,482 - INFO - Verified VN network id 13 for VN c6cce31e-d3a8-4772-8804-5520d261ede1
2025-10-22 14:11:22,483 - INFO - Verifications in API Server for VN ctest-vn-55364311 passed
2025-10-22 14:11:22,483 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6cce31e-d3a8-4772-8804-5520d261ede1
2025-10-22 14:11:22,502 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/918507ab-d1a0-49e5-a513-aadb7fa0b09b
2025-10-22 14:11:22,521 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/918507ab-d1a0-49e5-a513-aadb7fa0b09b
2025-10-22 14:11:22,534 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/27350293-72d3-475e-ac43-71f139f678eb
2025-10-22 14:11:22,551 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-55364311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21970071', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14325074236298250098', 'uuid-lslong': '9801052288521989601'}, 'enable': 'true', 'created': '2025-10-22T14:11:19', 'last-modified': '2025-10-22T14:11:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.748767'}
2025-10-22 14:11:22,557 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:11:22,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55364311 passed
2025-10-22 14:11:22,557 - DEBUG - ====Verifying policy data for ctest-vn-55364311 in API_Server ======
2025-10-22 14:11:22,557 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-22 14:11:22,567 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a3cb75b1-b54f-4ecb-be13-4fb4e99472a3
2025-10-22 14:11:22,645 - DEBUG - Requesting: http://10.0.0.249:8082/project/d8c5b16c-0667-444f-b81c-9fecb345c2ab
2025-10-22 14:11:22,799 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6cce31e-d3a8-4772-8804-5520d261ede1
2025-10-22 14:11:22,822 - DEBUG - ==>Verifying data for policy with id: 39325fb0-3c98-4b74-86f0-8dc332cf9538, fqn: ['default-domain', 'ctest-TestBasicPolicy-21970071', 'ctest-policy-allow-all-07644949']
2025-10-22 14:11:22,822 - INFO - VN ctest-vn-55364311 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:11:22,822 - DEBUG - Verifying the vn in opserver
2025-10-22 14:11:22,822 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-55364311 virtual network link through opserver 10.0.0.249
2025-10-22 14:11:22,822 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-22 14:11:22,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-55364311', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-55364311?flat'}
2025-10-22 14:11:22,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21970071:ctest-vn-55364311 is found in opserver
2025-10-22 14:11:22,845 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:11:22,850 - DEBUG - VRF ids for VN ctest-vn-55364311: {}
2025-10-22 14:11:22,940 - DEBUG - Services list from nova: [