2026-05-28 02:08:06,341 - INFO - Domain Default found not creating
2026-05-28 02:08:06,542 - INFO - Project ctest-TestBasicPolicy-62320383 not found, creating it
2026-05-28 02:08:07,013 - INFO - Created Project:ctest-TestBasicPolicy-62320383, ID : 12a93e1d-23cd-4cde-980f-97bfb4892d7f
2026-05-28 02:08:08,564 - INFO - ================================================================================
2026-05-28 02:08:08,564 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-28 02:08:08,564 - 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-05-28 02:08:08,818 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.200': '0'}} with
2026-05-28 02:08:08,818 - INFO - Initial checks done. Running the testcase now
2026-05-28 02:08:08,818 - INFO -
2026-05-28 02:08:09,387 - DEBUG - Response for create_network : {'network': {'id': '9b8482ef-054a-4c05-8471-a89e7b0532ce', 'name': 'ctest-vn-01713315', 'tenant_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'project_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-vn-01713315'], 'port_security_enabled': True, 'description': ''}}
2026-05-28 02:08:09,601 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ddbdad1-3364-4aa8-85ce-24043e011c3c', 'name': '', 'tenant_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'network_id': '9b8482ef-054a-4c05-8471-a89e7b0532ce', 'ip_version': 4, 'cidr': '210.142.25.128/26', 'allocation_pools': [{'start': '210.142.25.130', 'end': '210.142.25.190'}], 'gateway_ip': '210.142.25.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.142.25.130', 'tags': [], 'project_id': '12a93e1d23cd4cde980f97bfb4892d7f'}}
2026-05-28 02:08:09,621 - INFO - Created VN ctest-vn-01713315
2026-05-28 02:08:09,676 - DEBUG - VN ctest-vn-01713315 UUID is 9b8482ef-054a-4c05-8471-a89e7b0532ce
2026-05-28 02:08:09,991 - DEBUG - Response for create_network : {'network': {'id': 'a2c947f0-c379-43da-89a0-246a5547eb00', 'name': 'ctest-vn-83651226', 'tenant_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'project_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-vn-83651226'], 'port_security_enabled': True, 'description': ''}}
2026-05-28 02:08:10,209 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f92a190-843b-4baf-a41d-9b902c20b6b9', 'name': '', 'tenant_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'network_id': 'a2c947f0-c379-43da-89a0-246a5547eb00', 'ip_version': 4, 'cidr': '32.116.157.128/26', 'allocation_pools': [{'start': '32.116.157.130', 'end': '32.116.157.190'}], 'gateway_ip': '32.116.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.116.157.130', 'tags': [], 'project_id': '12a93e1d23cd4cde980f97bfb4892d7f'}}
2026-05-28 02:08:10,227 - INFO - Created VN ctest-vn-83651226
2026-05-28 02:08:10,280 - DEBUG - VN ctest-vn-83651226 UUID is a2c947f0-c379-43da-89a0-246a5547eb00
2026-05-28 02:08:10,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-01713315, 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-62320383:ctest-vn-83651226, 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-05-28 02:08:10,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b8482ef-054a-4c05-8471-a89e7b0532ce', 'name': 'ctest-vn-01713315', 'tenant_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'project_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ddbdad1-3364-4aa8-85ce-24043e011c3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-vn-01713315'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-policy-allow-all-80965946']], 'subnet_ipam': [{'subnet_cidr': '210.142.25.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-28 02:08:10,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2c947f0-c379-43da-89a0-246a5547eb00', 'name': 'ctest-vn-83651226', 'tenant_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'project_id': '12a93e1d23cd4cde980f97bfb4892d7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f92a190-843b-4baf-a41d-9b902c20b6b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-vn-83651226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-policy-allow-all-80965946']], 'subnet_ipam': [{'subnet_cidr': '32.116.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-28 02:08:11,128 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-28 02:08:11,424 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-28 02:08:11,460 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9
2026-05-28 02:08:11,473 - DEBUG - Requesting: http://10.0.0.242:8082/project/12a93e1d-23cd-4cde-980f-97bfb4892d7f
2026-05-28 02:08:11,543 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b8482ef-054a-4c05-8471-a89e7b0532ce
2026-05-28 02:08:11,553 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b8482ef-054a-4c05-8471-a89e7b0532ce
2026-05-28 02:08:11,563 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fc8a784f-0095-4b2f-bc61-256f405e38e8
2026-05-28 02:08:11,570 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fc8a784f-0095-4b2f-bc61-256f405e38e8
2026-05-28 02:08:11,577 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f179d2d6-36e1-477e-b8d8-72a1b2fc0a80
2026-05-28 02:08:11,584 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 02:08:11,584 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b8482ef-054a-4c05-8471-a89e7b0532ce
2026-05-28 02:08:11,598 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fc8a784f-0095-4b2f-bc61-256f405e38e8
2026-05-28 02:08:11,612 - INFO - Verified VN network id 11 for VN 9b8482ef-054a-4c05-8471-a89e7b0532ce
2026-05-28 02:08:11,612 - INFO - Verifications in API Server for VN ctest-vn-01713315 passed
2026-05-28 02:08:11,612 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b8482ef-054a-4c05-8471-a89e7b0532ce
2026-05-28 02:08:11,622 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fc8a784f-0095-4b2f-bc61-256f405e38e8
2026-05-28 02:08:11,629 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fc8a784f-0095-4b2f-bc61-256f405e38e8
2026-05-28 02:08:11,638 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f179d2d6-36e1-477e-b8d8-72a1b2fc0a80
2026-05-28 02:08:11,653 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-01713315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62320383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11206225735902186501', 'uuid-lslong': '9543594483997029070'}, 'enable': 'true', 'created': '2026-05-28T02:08:09', 'last-modified': '2026-05-28T02:08:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969735'}
2026-05-28 02:08:11,660 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 02:08:11,660 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01713315 passed
2026-05-28 02:08:11,660 - DEBUG - ====Verifying policy data for ctest-vn-01713315 in API_Server ======
2026-05-28 02:08:11,661 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-28 02:08:11,667 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9
2026-05-28 02:08:11,678 - DEBUG - Requesting: http://10.0.0.242:8082/project/12a93e1d-23cd-4cde-980f-97bfb4892d7f
2026-05-28 02:08:11,755 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b8482ef-054a-4c05-8471-a89e7b0532ce
2026-05-28 02:08:11,764 - DEBUG - ==>Verifying data for policy with id: 18c199db-0c46-4d34-86fa-dd93ae0f29db, fqn: ['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-policy-allow-all-80965946']
2026-05-28 02:08:11,765 - INFO - VN ctest-vn-01713315 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 02:08:11,765 - DEBUG - Verifying the vn in opserver
2026-05-28 02:08:11,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-01713315 virtual network link through opserver 10.0.0.242
2026-05-28 02:08:11,765 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-28 02:08:12,062 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-28 02:08:12,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-01713315', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-01713315?flat'}
2026-05-28 02:08:12,131 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-01713315 is found in opserver
2026-05-28 02:08:12,141 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 02:08:12,146 - DEBUG - VRF ids for VN ctest-vn-01713315: {}
2026-05-28 02:08:12,146 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-28 02:08:12,151 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9
2026-05-28 02:08:12,163 - DEBUG - Requesting: http://10.0.0.242:8082/project/12a93e1d-23cd-4cde-980f-97bfb4892d7f
2026-05-28 02:08:12,235 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2c947f0-c379-43da-89a0-246a5547eb00
2026-05-28 02:08:12,246 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2c947f0-c379-43da-89a0-246a5547eb00
2026-05-28 02:08:12,255 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dcb037ce-bfb3-4734-8645-7110b5e18ae1
2026-05-28 02:08:12,262 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dcb037ce-bfb3-4734-8645-7110b5e18ae1
2026-05-28 02:08:12,269 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bfd5d2c9-0d22-4424-ba98-220f9779074b
2026-05-28 02:08:12,275 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 02:08:12,275 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2c947f0-c379-43da-89a0-246a5547eb00
2026-05-28 02:08:12,284 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dcb037ce-bfb3-4734-8645-7110b5e18ae1
2026-05-28 02:08:12,298 - INFO - Verified VN network id 12 for VN a2c947f0-c379-43da-89a0-246a5547eb00
2026-05-28 02:08:12,298 - INFO - Verifications in API Server for VN ctest-vn-83651226 passed
2026-05-28 02:08:12,298 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2c947f0-c379-43da-89a0-246a5547eb00
2026-05-28 02:08:12,307 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dcb037ce-bfb3-4734-8645-7110b5e18ae1
2026-05-28 02:08:12,313 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dcb037ce-bfb3-4734-8645-7110b5e18ae1
2026-05-28 02:08:12,319 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bfd5d2c9-0d22-4424-ba98-220f9779074b
2026-05-28 02:08:12,330 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-83651226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62320383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11729985803860394970', 'uuid-lslong': '9916966418585742080'}, 'enable': 'true', 'created': '2026-05-28T02:08:09', 'last-modified': '2026-05-28T02:08:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.403387'}
2026-05-28 02:08:12,339 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 02:08:12,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83651226 passed
2026-05-28 02:08:12,339 - DEBUG - ====Verifying policy data for ctest-vn-83651226 in API_Server ======
2026-05-28 02:08:12,339 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-28 02:08:12,346 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9
2026-05-28 02:08:12,358 - DEBUG - Requesting: http://10.0.0.242:8082/project/12a93e1d-23cd-4cde-980f-97bfb4892d7f
2026-05-28 02:08:12,426 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a2c947f0-c379-43da-89a0-246a5547eb00
2026-05-28 02:08:12,439 - DEBUG - ==>Verifying data for policy with id: 18c199db-0c46-4d34-86fa-dd93ae0f29db, fqn: ['default-domain', 'ctest-TestBasicPolicy-62320383', 'ctest-policy-allow-all-80965946']
2026-05-28 02:08:12,439 - INFO - VN ctest-vn-83651226 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 02:08:12,439 - DEBUG - Verifying the vn in opserver
2026-05-28 02:08:12,439 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-83651226 virtual network link through opserver 10.0.0.242
2026-05-28 02:08:12,439 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-28 02:08:12,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-83651226', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-83651226?flat'}
2026-05-28 02:08:12,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62320383:ctest-vn-83651226 is found in opserver
2026-05-28 02:08:12,461 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 02:08:12,468 - DEBUG - VRF ids for VN ctest-vn-83651226: {}
2026-05-28 02:08:12,531 - DEBUG - Services list from nova: [