2026-01-06 05:35:33,248 - INFO - Domain Default found not creating
2026-01-06 05:35:33,417 - INFO - Project ctest-TestBasicPolicy-09410480 not found, creating it
2026-01-06 05:35:33,882 - INFO - Created Project:ctest-TestBasicPolicy-09410480, ID : 4b6ae956-8bbf-4952-904f-fdb56a9b6d8f
2026-01-06 05:35:35,504 - INFO - ================================================================================
2026-01-06 05:35:35,504 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-06 05:35:35,504 - 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-06 05:35:35,761 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-01-06 05:35:35,761 - INFO - Initial checks done. Running the testcase now
2026-01-06 05:35:35,761 - INFO -
2026-01-06 05:35:36,390 - DEBUG - Response for create_network : {'network': {'id': '0c71c159-c406-4834-b188-4620ef1e8d88', 'name': 'ctest-vn-14831908', 'tenant_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'project_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-vn-14831908'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 05:35:36,582 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4e1a830-13b8-4890-90bb-c8c485d99775', 'name': '', 'tenant_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'network_id': '0c71c159-c406-4834-b188-4620ef1e8d88', 'ip_version': 4, 'cidr': '101.26.228.192/26', 'allocation_pools': [{'start': '101.26.228.194', 'end': '101.26.228.254'}], 'gateway_ip': '101.26.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.26.228.194', 'tags': [], 'project_id': '4b6ae9568bbf4952904ffdb56a9b6d8f'}}
2026-01-06 05:35:36,605 - INFO - Created VN ctest-vn-14831908
2026-01-06 05:35:36,656 - DEBUG - VN ctest-vn-14831908 UUID is 0c71c159-c406-4834-b188-4620ef1e8d88
2026-01-06 05:35:36,941 - DEBUG - Response for create_network : {'network': {'id': '2c36c89e-d043-4177-b73f-91931018bca1', 'name': 'ctest-vn-46159708', 'tenant_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'project_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-vn-46159708'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 05:35:37,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e161a9c-1eef-4bfe-b7a5-8c418ccfdb1a', 'name': '', 'tenant_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'network_id': '2c36c89e-d043-4177-b73f-91931018bca1', 'ip_version': 4, 'cidr': '21.186.82.64/26', 'allocation_pools': [{'start': '21.186.82.66', 'end': '21.186.82.126'}], 'gateway_ip': '21.186.82.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.186.82.66', 'tags': [], 'project_id': '4b6ae9568bbf4952904ffdb56a9b6d8f'}}
2026-01-06 05:35:37,150 - INFO - Created VN ctest-vn-46159708
2026-01-06 05:35:37,204 - DEBUG - VN ctest-vn-46159708 UUID is 2c36c89e-d043-4177-b73f-91931018bca1
2026-01-06 05:35:37,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-14831908, 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-09410480:ctest-vn-46159708, 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-06 05:35:37,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c71c159-c406-4834-b188-4620ef1e8d88', 'name': 'ctest-vn-14831908', 'tenant_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'project_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4e1a830-13b8-4890-90bb-c8c485d99775'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-vn-14831908'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-policy-allow-all-50933004']], 'subnet_ipam': [{'subnet_cidr': '101.26.228.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 05:35:37,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c36c89e-d043-4177-b73f-91931018bca1', 'name': 'ctest-vn-46159708', 'tenant_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'project_id': '4b6ae9568bbf4952904ffdb56a9b6d8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e161a9c-1eef-4bfe-b7a5-8c418ccfdb1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-vn-46159708'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-policy-allow-all-50933004']], 'subnet_ipam': [{'subnet_cidr': '21.186.82.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 05:35:38,012 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-06 05:35:38,371 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-06 05:35:38,413 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275
2026-01-06 05:35:38,426 - DEBUG - Requesting: http://10.0.0.50:8082/project/4b6ae956-8bbf-4952-904f-fdb56a9b6d8f
2026-01-06 05:35:38,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c71c159-c406-4834-b188-4620ef1e8d88
2026-01-06 05:35:38,508 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c71c159-c406-4834-b188-4620ef1e8d88
2026-01-06 05:35:38,518 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cbb9c08d-d0fc-4a8e-a1cc-6345f25e3687
2026-01-06 05:35:38,526 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cbb9c08d-d0fc-4a8e-a1cc-6345f25e3687
2026-01-06 05:35:38,533 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/643f6dfd-2c70-4f67-91fa-710c146ee774
2026-01-06 05:35:38,539 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 05:35:38,539 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c71c159-c406-4834-b188-4620ef1e8d88
2026-01-06 05:35:38,548 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cbb9c08d-d0fc-4a8e-a1cc-6345f25e3687
2026-01-06 05:35:38,563 - INFO - Verified VN network id 11 for VN 0c71c159-c406-4834-b188-4620ef1e8d88
2026-01-06 05:35:38,563 - INFO - Verifications in API Server for VN ctest-vn-14831908 passed
2026-01-06 05:35:38,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c71c159-c406-4834-b188-4620ef1e8d88
2026-01-06 05:35:38,573 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cbb9c08d-d0fc-4a8e-a1cc-6345f25e3687
2026-01-06 05:35:38,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cbb9c08d-d0fc-4a8e-a1cc-6345f25e3687
2026-01-06 05:35:38,589 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/643f6dfd-2c70-4f67-91fa-710c146ee774
2026-01-06 05:35:38,603 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-14831908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09410480', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '896710392108435508', 'uuid-lslong': '12792551848810548616'}, 'enable': 'true', 'created': '2026-01-06T05:35:36', 'last-modified': '2026-01-06T05:35:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995505'}
2026-01-06 05:35:38,609 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 05:35:38,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14831908 passed
2026-01-06 05:35:38,610 - DEBUG - ====Verifying policy data for ctest-vn-14831908 in API_Server ======
2026-01-06 05:35:38,610 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-06 05:35:38,615 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275
2026-01-06 05:35:38,629 - DEBUG - Requesting: http://10.0.0.50:8082/project/4b6ae956-8bbf-4952-904f-fdb56a9b6d8f
2026-01-06 05:35:38,703 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c71c159-c406-4834-b188-4620ef1e8d88
2026-01-06 05:35:38,712 - DEBUG - ==>Verifying data for policy with id: 956898bb-364b-4a64-91e6-8382955bf60f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-policy-allow-all-50933004']
2026-01-06 05:35:38,712 - INFO - VN ctest-vn-14831908 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 05:35:38,713 - DEBUG - Verifying the vn in opserver
2026-01-06 05:35:38,713 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-14831908 virtual network link through opserver 10.0.0.50
2026-01-06 05:35:38,713 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-06 05:35:39,047 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-06 05:35:39,112 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-14831908', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-14831908?flat'}
2026-01-06 05:35:39,112 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-14831908 is found in opserver
2026-01-06 05:35:39,122 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 05:35:39,126 - DEBUG - VRF ids for VN ctest-vn-14831908: {}
2026-01-06 05:35:39,126 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-06 05:35:39,132 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275
2026-01-06 05:35:39,142 - DEBUG - Requesting: http://10.0.0.50:8082/project/4b6ae956-8bbf-4952-904f-fdb56a9b6d8f
2026-01-06 05:35:39,212 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c36c89e-d043-4177-b73f-91931018bca1
2026-01-06 05:35:39,224 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c36c89e-d043-4177-b73f-91931018bca1
2026-01-06 05:35:39,235 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac0225e4-ba8a-4f4d-9d1d-f59b86805f93
2026-01-06 05:35:39,243 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac0225e4-ba8a-4f4d-9d1d-f59b86805f93
2026-01-06 05:35:39,249 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e756662a-da42-4d62-af00-1d33a93df743
2026-01-06 05:35:39,256 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 05:35:39,256 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c36c89e-d043-4177-b73f-91931018bca1
2026-01-06 05:35:39,264 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac0225e4-ba8a-4f4d-9d1d-f59b86805f93
2026-01-06 05:35:39,278 - INFO - Verified VN network id 12 for VN 2c36c89e-d043-4177-b73f-91931018bca1
2026-01-06 05:35:39,278 - INFO - Verifications in API Server for VN ctest-vn-46159708 passed
2026-01-06 05:35:39,279 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c36c89e-d043-4177-b73f-91931018bca1
2026-01-06 05:35:39,287 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac0225e4-ba8a-4f4d-9d1d-f59b86805f93
2026-01-06 05:35:39,294 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ac0225e4-ba8a-4f4d-9d1d-f59b86805f93
2026-01-06 05:35:39,301 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e756662a-da42-4d62-af00-1d33a93df743
2026-01-06 05:35:39,312 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-46159708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09410480', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3185954370835661175', 'uuid-lslong': '13204432693289860257'}, 'enable': 'true', 'created': '2026-01-06T05:35:36', 'last-modified': '2026-01-06T05:35:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467884'}
2026-01-06 05:35:39,318 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 05:35:39,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46159708 passed
2026-01-06 05:35:39,318 - DEBUG - ====Verifying policy data for ctest-vn-46159708 in API_Server ======
2026-01-06 05:35:39,318 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-06 05:35:39,325 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275
2026-01-06 05:35:39,336 - DEBUG - Requesting: http://10.0.0.50:8082/project/4b6ae956-8bbf-4952-904f-fdb56a9b6d8f
2026-01-06 05:35:39,406 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2c36c89e-d043-4177-b73f-91931018bca1
2026-01-06 05:35:39,416 - DEBUG - ==>Verifying data for policy with id: 956898bb-364b-4a64-91e6-8382955bf60f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09410480', 'ctest-policy-allow-all-50933004']
2026-01-06 05:35:39,416 - INFO - VN ctest-vn-46159708 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 05:35:39,417 - DEBUG - Verifying the vn in opserver
2026-01-06 05:35:39,417 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-46159708 virtual network link through opserver 10.0.0.50
2026-01-06 05:35:39,417 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-06 05:35:39,427 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-46159708', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-46159708?flat'}
2026-01-06 05:35:39,427 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09410480:ctest-vn-46159708 is found in opserver
2026-01-06 05:35:39,437 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 05:35:39,442 - DEBUG - VRF ids for VN ctest-vn-46159708: {}
2026-01-06 05:35:39,509 - DEBUG - Services list from nova: [