2026-01-29 02:09:05,223 - INFO - Domain Default found not creating
2026-01-29 02:09:05,385 - INFO - Project ctest-TestBasicPolicy-80813429 not found, creating it
2026-01-29 02:09:05,847 - INFO - Created Project:ctest-TestBasicPolicy-80813429, ID : 966cd29a-ecba-4d56-85fe-5e6d6b6e804a
2026-01-29 02:09:07,341 - INFO - ================================================================================
2026-01-29 02:09:07,341 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 02:09:07,341 - 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
2026-01-29 02:09:07,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.209': '0'}} with
2026-01-29 02:09:07,599 - INFO - Initial checks done. Running the testcase now
2026-01-29 02:09:07,600 - INFO -
2026-01-29 02:09:08,143 - DEBUG - Response for create_network : {'network': {'id': '3e2c25c7-71b8-4d0c-9892-d0106f3c5146', 'name': 'ctest-vn-41880052', 'tenant_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'project_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-vn-41880052'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 02:09:08,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '64fd7942-3c06-44fb-9b66-45034a54059b', 'name': '', 'tenant_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'network_id': '3e2c25c7-71b8-4d0c-9892-d0106f3c5146', 'ip_version': 4, 'cidr': '5.204.214.64/26', 'allocation_pools': [{'start': '5.204.214.66', 'end': '5.204.214.126'}], 'gateway_ip': '5.204.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.204.214.66', 'tags': [], 'project_id': '966cd29aecba4d5685fe5e6d6b6e804a'}}
2026-01-29 02:09:08,398 - INFO - Created VN ctest-vn-41880052
2026-01-29 02:09:08,453 - DEBUG - VN ctest-vn-41880052 UUID is 3e2c25c7-71b8-4d0c-9892-d0106f3c5146
2026-01-29 02:09:08,802 - DEBUG - Response for create_network : {'network': {'id': 'd3ce834e-e946-485c-b7b6-29ab0e70723a', 'name': 'ctest-vn-54934955', 'tenant_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'project_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-vn-54934955'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 02:09:09,021 - DEBUG - Response for create_subnet : {'subnet': {'id': '46ee5bf0-8f99-4ad0-a672-f0e8beb99ea7', 'name': '', 'tenant_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'network_id': 'd3ce834e-e946-485c-b7b6-29ab0e70723a', 'ip_version': 4, 'cidr': '165.187.135.128/26', 'allocation_pools': [{'start': '165.187.135.130', 'end': '165.187.135.190'}], 'gateway_ip': '165.187.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.187.135.130', 'tags': [], 'project_id': '966cd29aecba4d5685fe5e6d6b6e804a'}}
2026-01-29 02:09:09,040 - INFO - Created VN ctest-vn-54934955
2026-01-29 02:09:09,097 - DEBUG - VN ctest-vn-54934955 UUID is d3ce834e-e946-485c-b7b6-29ab0e70723a
2026-01-29 02:09:09,214 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-41880052, 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-80813429:ctest-vn-54934955, 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]
2026-01-29 02:09:09,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3e2c25c7-71b8-4d0c-9892-d0106f3c5146', 'name': 'ctest-vn-41880052', 'tenant_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'project_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64fd7942-3c06-44fb-9b66-45034a54059b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-vn-41880052'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-policy-allow-all-12914219']], 'subnet_ipam': [{'subnet_cidr': '5.204.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 02:09:09,736 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3ce834e-e946-485c-b7b6-29ab0e70723a', 'name': 'ctest-vn-54934955', 'tenant_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'project_id': '966cd29aecba4d5685fe5e6d6b6e804a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46ee5bf0-8f99-4ad0-a672-f0e8beb99ea7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-vn-54934955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-policy-allow-all-12914219']], 'subnet_ipam': [{'subnet_cidr': '165.187.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 02:09:09,913 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 02:09:10,208 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 02:09:10,242 - DEBUG - Requesting: http://10.0.0.249:8082/domain/96b9b11b-6b5f-4546-8641-d07f66c9bafa
2026-01-29 02:09:10,255 - DEBUG - Requesting: http://10.0.0.249:8082/project/966cd29a-ecba-4d56-85fe-5e6d6b6e804a
2026-01-29 02:09:10,336 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3e2c25c7-71b8-4d0c-9892-d0106f3c5146
2026-01-29 02:09:10,346 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3e2c25c7-71b8-4d0c-9892-d0106f3c5146
2026-01-29 02:09:10,355 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2c81f51f-50dc-4266-a8f8-32398ab2d829
2026-01-29 02:09:10,361 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2c81f51f-50dc-4266-a8f8-32398ab2d829
2026-01-29 02:09:10,368 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/79b837d9-fc57-4cb8-8ec8-683db875c43e
2026-01-29 02:09:10,374 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 02:09:10,374 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3e2c25c7-71b8-4d0c-9892-d0106f3c5146
2026-01-29 02:09:10,383 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2c81f51f-50dc-4266-a8f8-32398ab2d829
2026-01-29 02:09:10,398 - INFO - Verified VN network id 11 for VN 3e2c25c7-71b8-4d0c-9892-d0106f3c5146
2026-01-29 02:09:10,398 - INFO - Verifications in API Server for VN ctest-vn-41880052 passed
2026-01-29 02:09:10,398 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3e2c25c7-71b8-4d0c-9892-d0106f3c5146
2026-01-29 02:09:10,408 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2c81f51f-50dc-4266-a8f8-32398ab2d829
2026-01-29 02:09:10,416 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2c81f51f-50dc-4266-a8f8-32398ab2d829
2026-01-29 02:09:10,423 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/79b837d9-fc57-4cb8-8ec8-683db875c43e
2026-01-29 02:09:10,436 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-41880052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80813429', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4479997267863424268', 'uuid-lslong': '10994078409369080134'}, 'enable': 'true', 'created': '2026-01-29T02:09:08', 'last-modified': '2026-01-29T02:09:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953058'}
2026-01-29 02:09:10,442 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 02:09:10,442 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41880052 passed
2026-01-29 02:09:10,442 - DEBUG - ====Verifying policy data for ctest-vn-41880052 in API_Server ======
2026-01-29 02:09:10,442 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 02:09:10,448 - DEBUG - Requesting: http://10.0.0.249:8082/domain/96b9b11b-6b5f-4546-8641-d07f66c9bafa
2026-01-29 02:09:10,460 - DEBUG - Requesting: http://10.0.0.249:8082/project/966cd29a-ecba-4d56-85fe-5e6d6b6e804a
2026-01-29 02:09:10,534 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3e2c25c7-71b8-4d0c-9892-d0106f3c5146
2026-01-29 02:09:10,542 - DEBUG - ==>Verifying data for policy with id: 0cfaf85b-4589-45f0-a3d2-f6661858c73c, fqn: ['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-policy-allow-all-12914219']
2026-01-29 02:09:10,542 - INFO - VN ctest-vn-41880052 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 02:09:10,542 - DEBUG - Verifying the vn in opserver
2026-01-29 02:09:10,542 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-41880052 virtual network link through opserver 10.0.0.249
2026-01-29 02:09:10,543 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-29 02:09:10,851 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-29 02:09:10,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-41880052', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-41880052?flat'}
2026-01-29 02:09:10,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-41880052 is found in opserver
2026-01-29 02:09:10,943 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 02:09:10,947 - DEBUG - VRF ids for VN ctest-vn-41880052: {}
2026-01-29 02:09:10,947 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 02:09:10,952 - DEBUG - Requesting: http://10.0.0.249:8082/domain/96b9b11b-6b5f-4546-8641-d07f66c9bafa
2026-01-29 02:09:10,964 - DEBUG - Requesting: http://10.0.0.249:8082/project/966cd29a-ecba-4d56-85fe-5e6d6b6e804a
2026-01-29 02:09:11,041 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d3ce834e-e946-485c-b7b6-29ab0e70723a
2026-01-29 02:09:11,054 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d3ce834e-e946-485c-b7b6-29ab0e70723a
2026-01-29 02:09:11,064 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/946f9317-3654-4f7a-8000-0101fc45063b
2026-01-29 02:09:11,071 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/946f9317-3654-4f7a-8000-0101fc45063b
2026-01-29 02:09:11,078 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a94bb19b-6109-4039-b225-660d7d859ca5
2026-01-29 02:09:11,084 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 02:09:11,084 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d3ce834e-e946-485c-b7b6-29ab0e70723a
2026-01-29 02:09:11,094 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/946f9317-3654-4f7a-8000-0101fc45063b
2026-01-29 02:09:11,110 - INFO - Verified VN network id 12 for VN d3ce834e-e946-485c-b7b6-29ab0e70723a
2026-01-29 02:09:11,110 - INFO - Verifications in API Server for VN ctest-vn-54934955 passed
2026-01-29 02:09:11,110 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d3ce834e-e946-485c-b7b6-29ab0e70723a
2026-01-29 02:09:11,120 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/946f9317-3654-4f7a-8000-0101fc45063b
2026-01-29 02:09:11,129 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/946f9317-3654-4f7a-8000-0101fc45063b
2026-01-29 02:09:11,137 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a94bb19b-6109-4039-b225-660d7d859ca5
2026-01-29 02:09:11,149 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-54934955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80813429', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15262280562149574748', 'uuid-lslong': '13237813969360548410'}, 'enable': 'true', 'created': '2026-01-29T02:09:08', 'last-modified': '2026-01-29T02:09:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433932'}
2026-01-29 02:09:11,155 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 02:09:11,155 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54934955 passed
2026-01-29 02:09:11,155 - DEBUG - ====Verifying policy data for ctest-vn-54934955 in API_Server ======
2026-01-29 02:09:11,155 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 02:09:11,162 - DEBUG - Requesting: http://10.0.0.249:8082/domain/96b9b11b-6b5f-4546-8641-d07f66c9bafa
2026-01-29 02:09:11,174 - DEBUG - Requesting: http://10.0.0.249:8082/project/966cd29a-ecba-4d56-85fe-5e6d6b6e804a
2026-01-29 02:09:11,246 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d3ce834e-e946-485c-b7b6-29ab0e70723a
2026-01-29 02:09:11,256 - DEBUG - ==>Verifying data for policy with id: 0cfaf85b-4589-45f0-a3d2-f6661858c73c, fqn: ['default-domain', 'ctest-TestBasicPolicy-80813429', 'ctest-policy-allow-all-12914219']
2026-01-29 02:09:11,256 - INFO - VN ctest-vn-54934955 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 02:09:11,256 - DEBUG - Verifying the vn in opserver
2026-01-29 02:09:11,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-54934955 virtual network link through opserver 10.0.0.249
2026-01-29 02:09:11,256 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-29 02:09:11,265 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-54934955', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-54934955?flat'}
2026-01-29 02:09:11,265 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80813429:ctest-vn-54934955 is found in opserver
2026-01-29 02:09:11,275 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 02:09:11,280 - DEBUG - VRF ids for VN ctest-vn-54934955: {}
2026-01-29 02:09:11,337 - DEBUG - Services list from nova: [