2026-09-29 20:57:54,342 - INFO - Domain Default found not creating
2026-09-29 20:57:54,522 - INFO - Project ctest-TestBasicPolicy-34300825 not found, creating it
2026-09-29 20:57:55,062 - INFO - Created Project:ctest-TestBasicPolicy-34300825, ID : 001a87b5-6c0b-44bc-9d19-bd336a9df03d
2026-09-29 20:57:57,225 - INFO - ================================================================================
2026-09-29 20:57:57,225 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-29 20:57:57,225 - 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-09-29 20:57:57,514 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with
2026-09-29 20:57:57,514 - INFO - Initial checks done. Running the testcase now
2026-09-29 20:57:57,514 - INFO -
2026-09-29 20:57:58,182 - DEBUG - Response for create_network : {'network': {'id': '5693a8dc-9300-45ee-969f-8927f4ef61b7', 'name': 'ctest-vn-30178375', 'tenant_id': '001a87b56c0b44bc9d19bd336a9df03d', 'project_id': '001a87b56c0b44bc9d19bd336a9df03d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-vn-30178375'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 20:57:58,398 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea915f1c-c368-4f9c-a6a5-a69abbb5710d', 'name': '', 'tenant_id': '001a87b56c0b44bc9d19bd336a9df03d', 'network_id': '5693a8dc-9300-45ee-969f-8927f4ef61b7', 'ip_version': 4, 'cidr': '158.209.138.128/26', 'allocation_pools': [{'start': '158.209.138.130', 'end': '158.209.138.190'}], 'gateway_ip': '158.209.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.209.138.130', 'tags': [], 'project_id': '001a87b56c0b44bc9d19bd336a9df03d'}}
2026-09-29 20:57:58,416 - INFO - Created VN ctest-vn-30178375
2026-09-29 20:57:58,471 - DEBUG - VN ctest-vn-30178375 UUID is 5693a8dc-9300-45ee-969f-8927f4ef61b7
2026-09-29 20:57:58,826 - DEBUG - Response for create_network : {'network': {'id': '1eb5ff42-7129-486e-a860-ab5d8599b80c', 'name': 'ctest-vn-05480054', 'tenant_id': '001a87b56c0b44bc9d19bd336a9df03d', 'project_id': '001a87b56c0b44bc9d19bd336a9df03d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-vn-05480054'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 20:57:59,003 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a450e2e1-220f-43e4-980e-3d9869fb7b54', 'name': '', 'tenant_id': '001a87b56c0b44bc9d19bd336a9df03d', 'network_id': '1eb5ff42-7129-486e-a860-ab5d8599b80c', 'ip_version': 4, 'cidr': '31.62.184.0/26', 'allocation_pools': [{'start': '31.62.184.2', 'end': '31.62.184.62'}], 'gateway_ip': '31.62.184.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.62.184.2', 'tags': [], 'project_id': '001a87b56c0b44bc9d19bd336a9df03d'}}
2026-09-29 20:57:59,021 - INFO - Created VN ctest-vn-05480054
2026-09-29 20:57:59,075 - DEBUG - VN ctest-vn-05480054 UUID is 1eb5ff42-7129-486e-a860-ab5d8599b80c
2026-09-29 20:57:59,194 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-30178375, 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-34300825:ctest-vn-05480054, 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-09-29 20:57:59,512 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5693a8dc-9300-45ee-969f-8927f4ef61b7', 'name': 'ctest-vn-30178375', 'tenant_id': '001a87b56c0b44bc9d19bd336a9df03d', 'project_id': '001a87b56c0b44bc9d19bd336a9df03d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ea915f1c-c368-4f9c-a6a5-a69abbb5710d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-vn-30178375'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-policy-allow-all-62374684']], 'subnet_ipam': [{'subnet_cidr': '158.209.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 20:57:59,759 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1eb5ff42-7129-486e-a860-ab5d8599b80c', 'name': 'ctest-vn-05480054', 'tenant_id': '001a87b56c0b44bc9d19bd336a9df03d', 'project_id': '001a87b56c0b44bc9d19bd336a9df03d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a450e2e1-220f-43e4-980e-3d9869fb7b54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-vn-05480054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-policy-allow-all-62374684']], 'subnet_ipam': [{'subnet_cidr': '31.62.184.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 20:57:59,931 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-29 20:58:00,303 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-29 20:58:00,339 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244
2026-09-29 20:58:00,354 - DEBUG - Requesting: http://10.0.0.189:8082/project/001a87b5-6c0b-44bc-9d19-bd336a9df03d
2026-09-29 20:58:00,437 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5693a8dc-9300-45ee-969f-8927f4ef61b7
2026-09-29 20:58:00,451 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5693a8dc-9300-45ee-969f-8927f4ef61b7
2026-09-29 20:58:00,463 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/7262077c-888a-4b16-82ef-590336642cf1
2026-09-29 20:58:00,472 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/7262077c-888a-4b16-82ef-590336642cf1
2026-09-29 20:58:00,480 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/ef28a504-0421-4f82-9db1-978cf820322d
2026-09-29 20:58:00,489 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 20:58:00,489 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5693a8dc-9300-45ee-969f-8927f4ef61b7
2026-09-29 20:58:00,502 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/7262077c-888a-4b16-82ef-590336642cf1
2026-09-29 20:58:00,521 - INFO - Verified VN network id 12 for VN 5693a8dc-9300-45ee-969f-8927f4ef61b7
2026-09-29 20:58:00,522 - INFO - Verifications in API Server for VN ctest-vn-30178375 passed
2026-09-29 20:58:00,522 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5693a8dc-9300-45ee-969f-8927f4ef61b7
2026-09-29 20:58:00,535 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/7262077c-888a-4b16-82ef-590336642cf1
2026-09-29 20:58:00,545 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/7262077c-888a-4b16-82ef-590336642cf1
2026-09-29 20:58:00,554 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/ef28a504-0421-4f82-9db1-978cf820322d
2026-09-29 20:58:00,572 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-30178375', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34300825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6238515574150809070', 'uuid-lslong': '10853544431692243383'}, 'enable': 'true', 'created': '2026-09-29T20:57:58', 'last-modified': '2026-09-29T20:57:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.085688'}
2026-09-29 20:58:00,580 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 20:58:00,580 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30178375 passed
2026-09-29 20:58:00,580 - DEBUG - ====Verifying policy data for ctest-vn-30178375 in API_Server ======
2026-09-29 20:58:00,580 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-29 20:58:00,586 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244
2026-09-29 20:58:00,598 - DEBUG - Requesting: http://10.0.0.189:8082/project/001a87b5-6c0b-44bc-9d19-bd336a9df03d
2026-09-29 20:58:00,680 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5693a8dc-9300-45ee-969f-8927f4ef61b7
2026-09-29 20:58:00,691 - DEBUG - ==>Verifying data for policy with id: 751e4890-8872-484c-a1b7-c74715382687, fqn: ['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-policy-allow-all-62374684']
2026-09-29 20:58:00,691 - INFO - VN ctest-vn-30178375 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 20:58:00,691 - DEBUG - Verifying the vn in opserver
2026-09-29 20:58:00,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-30178375 virtual network link through opserver 10.0.0.189
2026-09-29 20:58:00,691 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-29 20:58:01,061 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-29 20:58:01,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-30178375', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-30178375?flat'}
2026-09-29 20:58:01,134 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-30178375 is found in opserver
2026-09-29 20:58:01,148 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 20:58:01,154 - DEBUG - VRF ids for VN ctest-vn-30178375: {}
2026-09-29 20:58:01,154 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-29 20:58:01,161 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244
2026-09-29 20:58:01,174 - DEBUG - Requesting: http://10.0.0.189:8082/project/001a87b5-6c0b-44bc-9d19-bd336a9df03d
2026-09-29 20:58:01,258 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/1eb5ff42-7129-486e-a860-ab5d8599b80c
2026-09-29 20:58:01,275 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/1eb5ff42-7129-486e-a860-ab5d8599b80c
2026-09-29 20:58:01,286 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/79efad81-4d0b-4ace-87d9-b3be291cc907
2026-09-29 20:58:01,295 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/79efad81-4d0b-4ace-87d9-b3be291cc907
2026-09-29 20:58:01,303 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/4274fc5c-5af1-408b-8e0d-c0c55308036d
2026-09-29 20:58:01,312 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 20:58:01,312 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/1eb5ff42-7129-486e-a860-ab5d8599b80c
2026-09-29 20:58:01,325 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/79efad81-4d0b-4ace-87d9-b3be291cc907
2026-09-29 20:58:01,345 - INFO - Verified VN network id 13 for VN 1eb5ff42-7129-486e-a860-ab5d8599b80c
2026-09-29 20:58:01,345 - INFO - Verifications in API Server for VN ctest-vn-05480054 passed
2026-09-29 20:58:01,346 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/1eb5ff42-7129-486e-a860-ab5d8599b80c
2026-09-29 20:58:01,358 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/79efad81-4d0b-4ace-87d9-b3be291cc907
2026-09-29 20:58:01,367 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/79efad81-4d0b-4ace-87d9-b3be291cc907
2026-09-29 20:58:01,375 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/4274fc5c-5af1-408b-8e0d-c0c55308036d
2026-09-29 20:58:01,390 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-05480054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34300825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2212955452753922158', 'uuid-lslong': '12132885814297868300'}, 'enable': 'true', 'created': '2026-09-29T20:57:58', 'last-modified': '2026-09-29T20:57:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.665381'}
2026-09-29 20:58:01,401 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 20:58:01,401 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05480054 passed
2026-09-29 20:58:01,401 - DEBUG - ====Verifying policy data for ctest-vn-05480054 in API_Server ======
2026-09-29 20:58:01,401 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-29 20:58:01,409 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244
2026-09-29 20:58:01,423 - DEBUG - Requesting: http://10.0.0.189:8082/project/001a87b5-6c0b-44bc-9d19-bd336a9df03d
2026-09-29 20:58:01,524 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/1eb5ff42-7129-486e-a860-ab5d8599b80c
2026-09-29 20:58:01,539 - DEBUG - ==>Verifying data for policy with id: 751e4890-8872-484c-a1b7-c74715382687, fqn: ['default-domain', 'ctest-TestBasicPolicy-34300825', 'ctest-policy-allow-all-62374684']
2026-09-29 20:58:01,539 - INFO - VN ctest-vn-05480054 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 20:58:01,539 - DEBUG - Verifying the vn in opserver
2026-09-29 20:58:01,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-05480054 virtual network link through opserver 10.0.0.189
2026-09-29 20:58:01,539 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-29 20:58:01,552 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-05480054', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-05480054?flat'}
2026-09-29 20:58:01,552 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34300825:ctest-vn-05480054 is found in opserver
2026-09-29 20:58:01,567 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 20:58:01,573 - DEBUG - VRF ids for VN ctest-vn-05480054: {}
2026-09-29 20:58:01,643 - DEBUG - Services list from nova: [