2026-04-17 13:16:07,992 - INFO - Domain Default found not creating
2026-04-17 13:16:08,184 - INFO - Project ctest-TestBasicPolicy-09008455 not found, creating it
2026-04-17 13:16:08,667 - INFO - Created Project:ctest-TestBasicPolicy-09008455, ID : 55a89312-b4df-4cd5-bd7d-d4b686de8d77
2026-04-17 13:16:10,306 - INFO - ================================================================================
2026-04-17 13:16:10,306 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-17 13:16:10,306 - 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-04-17 13:16:10,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-17 13:16:10,563 - INFO - Initial checks done. Running the testcase now
2026-04-17 13:16:10,563 - INFO -
2026-04-17 13:16:11,159 - DEBUG - Response for create_network : {'network': {'id': '89a5b01f-7ffd-4bcf-a531-59c2d042d096', 'name': 'ctest-vn-81661045', 'tenant_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'project_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-vn-81661045'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:16:11,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '279a00ae-c595-48c7-8755-060c35929129', 'name': '', 'tenant_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'network_id': '89a5b01f-7ffd-4bcf-a531-59c2d042d096', 'ip_version': 4, 'cidr': '118.34.34.192/26', 'allocation_pools': [{'start': '118.34.34.194', 'end': '118.34.34.254'}], 'gateway_ip': '118.34.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.34.34.194', 'tags': [], 'project_id': '55a89312b4df4cd5bd7dd4b686de8d77'}}
2026-04-17 13:16:11,376 - INFO - Created VN ctest-vn-81661045
2026-04-17 13:16:11,432 - DEBUG - VN ctest-vn-81661045 UUID is 89a5b01f-7ffd-4bcf-a531-59c2d042d096
2026-04-17 13:16:11,735 - DEBUG - Response for create_network : {'network': {'id': '63f7c577-1786-415d-a242-617bae7eb2fb', 'name': 'ctest-vn-21103866', 'tenant_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'project_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-vn-21103866'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:16:11,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '7118a816-4d11-46d4-adf1-c326ce988ab3', 'name': '', 'tenant_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'network_id': '63f7c577-1786-415d-a242-617bae7eb2fb', 'ip_version': 4, 'cidr': '213.44.226.0/26', 'allocation_pools': [{'start': '213.44.226.2', 'end': '213.44.226.62'}], 'gateway_ip': '213.44.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.44.226.2', 'tags': [], 'project_id': '55a89312b4df4cd5bd7dd4b686de8d77'}}
2026-04-17 13:16:11,947 - INFO - Created VN ctest-vn-21103866
2026-04-17 13:16:12,000 - DEBUG - VN ctest-vn-21103866 UUID is 63f7c577-1786-415d-a242-617bae7eb2fb
2026-04-17 13:16:12,121 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-81661045, 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-09008455:ctest-vn-21103866, 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-04-17 13:16:12,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89a5b01f-7ffd-4bcf-a531-59c2d042d096', 'name': 'ctest-vn-81661045', 'tenant_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'project_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['279a00ae-c595-48c7-8755-060c35929129'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-vn-81661045'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-policy-allow-all-68199259']], 'subnet_ipam': [{'subnet_cidr': '118.34.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:16:12,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63f7c577-1786-415d-a242-617bae7eb2fb', 'name': 'ctest-vn-21103866', 'tenant_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'project_id': '55a89312b4df4cd5bd7dd4b686de8d77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7118a816-4d11-46d4-adf1-c326ce988ab3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-vn-21103866'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-policy-allow-all-68199259']], 'subnet_ipam': [{'subnet_cidr': '213.44.226.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:16:12,832 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 13:16:13,170 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 13:16:13,204 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1
2026-04-17 13:16:13,217 - DEBUG - Requesting: http://10.0.0.38:8082/project/55a89312-b4df-4cd5-bd7d-d4b686de8d77
2026-04-17 13:16:13,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/89a5b01f-7ffd-4bcf-a531-59c2d042d096
2026-04-17 13:16:13,299 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/89a5b01f-7ffd-4bcf-a531-59c2d042d096
2026-04-17 13:16:13,308 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/051ab7ea-46f9-4e0f-923d-a770328d388a
2026-04-17 13:16:13,316 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/051ab7ea-46f9-4e0f-923d-a770328d388a
2026-04-17 13:16:13,324 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e449c1e7-2a13-41a5-b2fa-b0284431f647
2026-04-17 13:16:13,331 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 13:16:13,331 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/89a5b01f-7ffd-4bcf-a531-59c2d042d096
2026-04-17 13:16:13,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/051ab7ea-46f9-4e0f-923d-a770328d388a
2026-04-17 13:16:13,356 - INFO - Verified VN network id 11 for VN 89a5b01f-7ffd-4bcf-a531-59c2d042d096
2026-04-17 13:16:13,356 - INFO - Verifications in API Server for VN ctest-vn-81661045 passed
2026-04-17 13:16:13,356 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/89a5b01f-7ffd-4bcf-a531-59c2d042d096
2026-04-17 13:16:13,367 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/051ab7ea-46f9-4e0f-923d-a770328d388a
2026-04-17 13:16:13,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/051ab7ea-46f9-4e0f-923d-a770328d388a
2026-04-17 13:16:13,382 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e449c1e7-2a13-41a5-b2fa-b0284431f647
2026-04-17 13:16:13,394 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-81661045', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09008455', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9918527403691166671', 'uuid-lslong': '11903393983369498774'}, 'enable': 'true', 'created': '2026-04-17T13:16:11', 'last-modified': '2026-04-17T13:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987352'}
2026-04-17 13:16:13,400 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 13:16:13,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81661045 passed
2026-04-17 13:16:13,400 - DEBUG - ====Verifying policy data for ctest-vn-81661045 in API_Server ======
2026-04-17 13:16:13,401 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 13:16:13,407 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1
2026-04-17 13:16:13,419 - DEBUG - Requesting: http://10.0.0.38:8082/project/55a89312-b4df-4cd5-bd7d-d4b686de8d77
2026-04-17 13:16:13,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/89a5b01f-7ffd-4bcf-a531-59c2d042d096
2026-04-17 13:16:13,505 - DEBUG - ==>Verifying data for policy with id: 17c90f7b-9b8a-4bf0-a11f-c56a545ad94c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-policy-allow-all-68199259']
2026-04-17 13:16:13,505 - INFO - VN ctest-vn-81661045 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 13:16:13,505 - DEBUG - Verifying the vn in opserver
2026-04-17 13:16:13,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-81661045 virtual network link through opserver 10.0.0.38
2026-04-17 13:16:13,506 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 13:16:13,841 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 13:16:13,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-81661045', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-81661045?flat'}
2026-04-17 13:16:13,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-81661045 is found in opserver
2026-04-17 13:16:13,958 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 13:16:13,963 - DEBUG - VRF ids for VN ctest-vn-81661045: {}
2026-04-17 13:16:13,963 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 13:16:14,013 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1
2026-04-17 13:16:14,050 - DEBUG - Requesting: http://10.0.0.38:8082/project/55a89312-b4df-4cd5-bd7d-d4b686de8d77
2026-04-17 13:16:14,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63f7c577-1786-415d-a242-617bae7eb2fb
2026-04-17 13:16:14,172 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63f7c577-1786-415d-a242-617bae7eb2fb
2026-04-17 13:16:14,185 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5365c45a-e871-4ca2-b6f3-4580503e3ef5
2026-04-17 13:16:14,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5365c45a-e871-4ca2-b6f3-4580503e3ef5
2026-04-17 13:16:14,219 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/370de130-78ac-48b0-baec-89fc40658698
2026-04-17 13:16:14,237 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 13:16:14,237 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63f7c577-1786-415d-a242-617bae7eb2fb
2026-04-17 13:16:14,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5365c45a-e871-4ca2-b6f3-4580503e3ef5
2026-04-17 13:16:14,272 - INFO - Verified VN network id 12 for VN 63f7c577-1786-415d-a242-617bae7eb2fb
2026-04-17 13:16:14,273 - INFO - Verifications in API Server for VN ctest-vn-21103866 passed
2026-04-17 13:16:14,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63f7c577-1786-415d-a242-617bae7eb2fb
2026-04-17 13:16:14,292 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5365c45a-e871-4ca2-b6f3-4580503e3ef5
2026-04-17 13:16:14,304 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5365c45a-e871-4ca2-b6f3-4580503e3ef5
2026-04-17 13:16:14,313 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/370de130-78ac-48b0-baec-89fc40658698
2026-04-17 13:16:14,326 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-21103866', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09008455', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7203443244288852317', 'uuid-lslong': '11692014766443639547'}, 'enable': 'true', 'created': '2026-04-17T13:16:11', 'last-modified': '2026-04-17T13:16:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.679411'}
2026-04-17 13:16:14,334 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 13:16:14,334 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21103866 passed
2026-04-17 13:16:14,334 - DEBUG - ====Verifying policy data for ctest-vn-21103866 in API_Server ======
2026-04-17 13:16:14,334 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 13:16:14,351 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ada04e8a-ef92-4771-be7e-98757d3df2a1
2026-04-17 13:16:14,420 - DEBUG - Requesting: http://10.0.0.38:8082/project/55a89312-b4df-4cd5-bd7d-d4b686de8d77
2026-04-17 13:16:14,584 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63f7c577-1786-415d-a242-617bae7eb2fb
2026-04-17 13:16:14,604 - DEBUG - ==>Verifying data for policy with id: 17c90f7b-9b8a-4bf0-a11f-c56a545ad94c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09008455', 'ctest-policy-allow-all-68199259']
2026-04-17 13:16:14,604 - INFO - VN ctest-vn-21103866 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 13:16:14,604 - DEBUG - Verifying the vn in opserver
2026-04-17 13:16:14,604 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-21103866 virtual network link through opserver 10.0.0.38
2026-04-17 13:16:14,604 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 13:16:14,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-21103866', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-21103866?flat'}
2026-04-17 13:16:14,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09008455:ctest-vn-21103866 is found in opserver
2026-04-17 13:16:14,638 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 13:16:14,643 - DEBUG - VRF ids for VN ctest-vn-21103866: {}
2026-04-17 13:16:14,736 - DEBUG - Services list from nova: [