2026-01-15 12:09:40,840 - INFO - Domain Default found not creating
2026-01-15 12:09:41,013 - INFO - Project ctest-TestBasicPolicy-74653500 not found, creating it
2026-01-15 12:09:41,470 - INFO - Created Project:ctest-TestBasicPolicy-74653500, ID : 14065803-3656-4257-bfba-3a697371f4c1
2026-01-15 12:09:42,968 - INFO - ================================================================================
2026-01-15 12:09:42,968 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-15 12:09:42,969 - 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-15 12:09:43,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-01-15 12:09:43,233 - INFO - Initial checks done. Running the testcase now
2026-01-15 12:09:43,233 - INFO -
2026-01-15 12:09:43,776 - DEBUG - Response for create_network : {'network': {'id': 'b79bfdc9-df8a-41f9-b97f-580236e08c46', 'name': 'ctest-vn-08290744', 'tenant_id': '1406580336564257bfba3a697371f4c1', 'project_id': '1406580336564257bfba3a697371f4c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-vn-08290744'], 'port_security_enabled': True, 'description': ''}}
2026-01-15 12:09:43,978 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbefbcdf-7bbe-49a0-8b59-c4ad45639b93', 'name': '', 'tenant_id': '1406580336564257bfba3a697371f4c1', 'network_id': 'b79bfdc9-df8a-41f9-b97f-580236e08c46', 'ip_version': 4, 'cidr': '196.244.159.0/26', 'allocation_pools': [{'start': '196.244.159.2', 'end': '196.244.159.62'}], 'gateway_ip': '196.244.159.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.244.159.2', 'tags': [], 'project_id': '1406580336564257bfba3a697371f4c1'}}
2026-01-15 12:09:43,999 - INFO - Created VN ctest-vn-08290744
2026-01-15 12:09:44,062 - DEBUG - VN ctest-vn-08290744 UUID is b79bfdc9-df8a-41f9-b97f-580236e08c46
2026-01-15 12:09:44,349 - DEBUG - Response for create_network : {'network': {'id': '7cec3c56-d703-4dd5-b501-7df8427eb6a5', 'name': 'ctest-vn-64475643', 'tenant_id': '1406580336564257bfba3a697371f4c1', 'project_id': '1406580336564257bfba3a697371f4c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-vn-64475643'], 'port_security_enabled': True, 'description': ''}}
2026-01-15 12:09:44,526 - DEBUG - Response for create_subnet : {'subnet': {'id': '21249199-0bff-4990-aaaf-d1e060a4d2a5', 'name': '', 'tenant_id': '1406580336564257bfba3a697371f4c1', 'network_id': '7cec3c56-d703-4dd5-b501-7df8427eb6a5', 'ip_version': 4, 'cidr': '192.151.109.192/26', 'allocation_pools': [{'start': '192.151.109.194', 'end': '192.151.109.254'}], 'gateway_ip': '192.151.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.151.109.194', 'tags': [], 'project_id': '1406580336564257bfba3a697371f4c1'}}
2026-01-15 12:09:44,544 - INFO - Created VN ctest-vn-64475643
2026-01-15 12:09:44,594 - DEBUG - VN ctest-vn-64475643 UUID is 7cec3c56-d703-4dd5-b501-7df8427eb6a5
2026-01-15 12:09:44,746 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-08290744, 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-74653500:ctest-vn-64475643, 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-15 12:09:45,044 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b79bfdc9-df8a-41f9-b97f-580236e08c46', 'name': 'ctest-vn-08290744', 'tenant_id': '1406580336564257bfba3a697371f4c1', 'project_id': '1406580336564257bfba3a697371f4c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dbefbcdf-7bbe-49a0-8b59-c4ad45639b93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-vn-08290744'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-policy-allow-all-59904270']], 'subnet_ipam': [{'subnet_cidr': '196.244.159.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-15 12:09:45,283 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cec3c56-d703-4dd5-b501-7df8427eb6a5', 'name': 'ctest-vn-64475643', 'tenant_id': '1406580336564257bfba3a697371f4c1', 'project_id': '1406580336564257bfba3a697371f4c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['21249199-0bff-4990-aaaf-d1e060a4d2a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-vn-64475643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-policy-allow-all-59904270']], 'subnet_ipam': [{'subnet_cidr': '192.151.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-15 12:09:45,454 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 12:09:45,756 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 12:09:45,789 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205
2026-01-15 12:09:45,802 - DEBUG - Requesting: http://10.0.0.50:8082/project/14065803-3656-4257-bfba-3a697371f4c1
2026-01-15 12:09:45,875 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b79bfdc9-df8a-41f9-b97f-580236e08c46
2026-01-15 12:09:45,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b79bfdc9-df8a-41f9-b97f-580236e08c46
2026-01-15 12:09:45,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7cfd704a-fab4-4cb8-a4b1-2de644c9c14f
2026-01-15 12:09:45,900 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7cfd704a-fab4-4cb8-a4b1-2de644c9c14f
2026-01-15 12:09:45,907 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/45eeb561-cc45-432e-9e1b-04481403154b
2026-01-15 12:09:45,913 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-15 12:09:45,913 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b79bfdc9-df8a-41f9-b97f-580236e08c46
2026-01-15 12:09:45,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7cfd704a-fab4-4cb8-a4b1-2de644c9c14f
2026-01-15 12:09:45,935 - INFO - Verified VN network id 11 for VN b79bfdc9-df8a-41f9-b97f-580236e08c46
2026-01-15 12:09:45,935 - INFO - Verifications in API Server for VN ctest-vn-08290744 passed
2026-01-15 12:09:45,935 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b79bfdc9-df8a-41f9-b97f-580236e08c46
2026-01-15 12:09:45,943 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7cfd704a-fab4-4cb8-a4b1-2de644c9c14f
2026-01-15 12:09:45,950 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7cfd704a-fab4-4cb8-a4b1-2de644c9c14f
2026-01-15 12:09:45,956 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/45eeb561-cc45-432e-9e1b-04481403154b
2026-01-15 12:09:45,967 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-08290744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74653500', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13230447373811597817', 'uuid-lslong': '13366498985592785990'}, 'enable': 'true', 'created': '2026-01-15T12:09:43', 'last-modified': '2026-01-15T12:09:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951763'}
2026-01-15 12:09:45,975 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-15 12:09:45,975 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08290744 passed
2026-01-15 12:09:45,976 - DEBUG - ====Verifying policy data for ctest-vn-08290744 in API_Server ======
2026-01-15 12:09:45,976 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 12:09:45,981 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205
2026-01-15 12:09:45,991 - DEBUG - Requesting: http://10.0.0.50:8082/project/14065803-3656-4257-bfba-3a697371f4c1
2026-01-15 12:09:46,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b79bfdc9-df8a-41f9-b97f-580236e08c46
2026-01-15 12:09:46,074 - DEBUG - ==>Verifying data for policy with id: 08547617-c870-4a2e-9dae-a6b902b01ce0, fqn: ['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-policy-allow-all-59904270']
2026-01-15 12:09:46,074 - INFO - VN ctest-vn-08290744 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-15 12:09:46,074 - DEBUG - Verifying the vn in opserver
2026-01-15 12:09:46,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-08290744 virtual network link through opserver 10.0.0.50
2026-01-15 12:09:46,074 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-15 12:09:46,377 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-15 12:09:46,442 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-08290744', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-08290744?flat'}
2026-01-15 12:09:46,442 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-08290744 is found in opserver
2026-01-15 12:09:46,452 - DEBUG - Do not have enough data to verify VN in agent
2026-01-15 12:09:46,457 - DEBUG - VRF ids for VN ctest-vn-08290744: {}
2026-01-15 12:09:46,457 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 12:09:46,462 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205
2026-01-15 12:09:46,475 - DEBUG - Requesting: http://10.0.0.50:8082/project/14065803-3656-4257-bfba-3a697371f4c1
2026-01-15 12:09:46,546 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7cec3c56-d703-4dd5-b501-7df8427eb6a5
2026-01-15 12:09:46,557 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7cec3c56-d703-4dd5-b501-7df8427eb6a5
2026-01-15 12:09:46,566 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e8f505b-e805-409a-91cb-2dc9c90eb75f
2026-01-15 12:09:46,572 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e8f505b-e805-409a-91cb-2dc9c90eb75f
2026-01-15 12:09:46,579 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be0ee521-3679-4934-b2b1-46e9f2dcd054
2026-01-15 12:09:46,584 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-15 12:09:46,584 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7cec3c56-d703-4dd5-b501-7df8427eb6a5
2026-01-15 12:09:46,592 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e8f505b-e805-409a-91cb-2dc9c90eb75f
2026-01-15 12:09:46,606 - INFO - Verified VN network id 12 for VN 7cec3c56-d703-4dd5-b501-7df8427eb6a5
2026-01-15 12:09:46,606 - INFO - Verifications in API Server for VN ctest-vn-64475643 passed
2026-01-15 12:09:46,606 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7cec3c56-d703-4dd5-b501-7df8427eb6a5
2026-01-15 12:09:46,615 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e8f505b-e805-409a-91cb-2dc9c90eb75f
2026-01-15 12:09:46,621 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e8f505b-e805-409a-91cb-2dc9c90eb75f
2026-01-15 12:09:46,627 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be0ee521-3679-4934-b2b1-46e9f2dcd054
2026-01-15 12:09:46,637 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-64475643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74653500', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9001636098878950869', 'uuid-lslong': '13042844501062629029'}, 'enable': 'true', 'created': '2026-01-15T12:09:44', 'last-modified': '2026-01-15T12:09:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379019'}
2026-01-15 12:09:46,642 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-15 12:09:46,642 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64475643 passed
2026-01-15 12:09:46,642 - DEBUG - ====Verifying policy data for ctest-vn-64475643 in API_Server ======
2026-01-15 12:09:46,642 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-15 12:09:46,648 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205
2026-01-15 12:09:46,658 - DEBUG - Requesting: http://10.0.0.50:8082/project/14065803-3656-4257-bfba-3a697371f4c1
2026-01-15 12:09:46,727 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7cec3c56-d703-4dd5-b501-7df8427eb6a5
2026-01-15 12:09:46,736 - DEBUG - ==>Verifying data for policy with id: 08547617-c870-4a2e-9dae-a6b902b01ce0, fqn: ['default-domain', 'ctest-TestBasicPolicy-74653500', 'ctest-policy-allow-all-59904270']
2026-01-15 12:09:46,736 - INFO - VN ctest-vn-64475643 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-15 12:09:46,736 - DEBUG - Verifying the vn in opserver
2026-01-15 12:09:46,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-64475643 virtual network link through opserver 10.0.0.50
2026-01-15 12:09:46,736 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-15 12:09:46,748 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-64475643', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-64475643?flat'}
2026-01-15 12:09:46,748 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74653500:ctest-vn-64475643 is found in opserver
2026-01-15 12:09:46,758 - DEBUG - Do not have enough data to verify VN in agent
2026-01-15 12:09:46,762 - DEBUG - VRF ids for VN ctest-vn-64475643: {}
2026-01-15 12:09:46,824 - DEBUG - Services list from nova: [