2026-10-06 14:07:51,143 - INFO - Domain Default found not creating
2026-10-06 14:07:51,306 - INFO - Project ctest-TestBasicPolicy-45378285 not found, creating it
2026-10-06 14:07:51,763 - INFO - Created Project:ctest-TestBasicPolicy-45378285, ID : ccb449f3-91ca-4344-9b22-f1d3da70943b
2026-10-06 14:07:53,500 - INFO - ================================================================================
2026-10-06 14:07:53,500 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-06 14:07:53,500 - 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-10-06 14:07:53,782 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-10-06 14:07:53,782 - INFO - Initial checks done. Running the testcase now
2026-10-06 14:07:53,782 - INFO -
2026-10-06 14:07:54,474 - DEBUG - Response for create_network : {'network': {'id': '590a96da-f3e7-4a60-9e0e-3cf6d0a50451', 'name': 'ctest-vn-21008000', 'tenant_id': 'ccb449f391ca43449b22f1d3da70943b', 'project_id': 'ccb449f391ca43449b22f1d3da70943b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-vn-21008000'], 'port_security_enabled': True, 'description': ''}}
2026-10-06 14:07:54,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '2da4875d-3bfb-470a-a6c0-94de1b41909b', 'name': '', 'tenant_id': 'ccb449f391ca43449b22f1d3da70943b', 'network_id': '590a96da-f3e7-4a60-9e0e-3cf6d0a50451', 'ip_version': 4, 'cidr': '134.81.79.192/26', 'allocation_pools': [{'start': '134.81.79.194', 'end': '134.81.79.254'}], 'gateway_ip': '134.81.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.81.79.194', 'tags': [], 'project_id': 'ccb449f391ca43449b22f1d3da70943b'}}
2026-10-06 14:07:54,684 - INFO - Created VN ctest-vn-21008000
2026-10-06 14:07:54,738 - DEBUG - VN ctest-vn-21008000 UUID is 590a96da-f3e7-4a60-9e0e-3cf6d0a50451
2026-10-06 14:07:55,079 - DEBUG - Response for create_network : {'network': {'id': 'df4876e8-2f7f-4c5c-98ec-046d65f715d8', 'name': 'ctest-vn-90871990', 'tenant_id': 'ccb449f391ca43449b22f1d3da70943b', 'project_id': 'ccb449f391ca43449b22f1d3da70943b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-vn-90871990'], 'port_security_enabled': True, 'description': ''}}
2026-10-06 14:07:55,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '86c9a656-9d97-4382-8a63-308137b71e0e', 'name': '', 'tenant_id': 'ccb449f391ca43449b22f1d3da70943b', 'network_id': 'df4876e8-2f7f-4c5c-98ec-046d65f715d8', 'ip_version': 4, 'cidr': '199.7.26.64/26', 'allocation_pools': [{'start': '199.7.26.66', 'end': '199.7.26.126'}], 'gateway_ip': '199.7.26.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.7.26.66', 'tags': [], 'project_id': 'ccb449f391ca43449b22f1d3da70943b'}}
2026-10-06 14:07:55,298 - INFO - Created VN ctest-vn-90871990
2026-10-06 14:07:55,354 - DEBUG - VN ctest-vn-90871990 UUID is df4876e8-2f7f-4c5c-98ec-046d65f715d8
2026-10-06 14:07:55,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-21008000, 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-45378285:ctest-vn-90871990, 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-10-06 14:07:55,794 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '590a96da-f3e7-4a60-9e0e-3cf6d0a50451', 'name': 'ctest-vn-21008000', 'tenant_id': 'ccb449f391ca43449b22f1d3da70943b', 'project_id': 'ccb449f391ca43449b22f1d3da70943b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['2da4875d-3bfb-470a-a6c0-94de1b41909b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-vn-21008000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-policy-allow-all-26452156']], 'subnet_ipam': [{'subnet_cidr': '134.81.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-06 14:07:56,027 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df4876e8-2f7f-4c5c-98ec-046d65f715d8', 'name': 'ctest-vn-90871990', 'tenant_id': 'ccb449f391ca43449b22f1d3da70943b', 'project_id': 'ccb449f391ca43449b22f1d3da70943b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['86c9a656-9d97-4382-8a63-308137b71e0e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-vn-90871990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-policy-allow-all-26452156']], 'subnet_ipam': [{'subnet_cidr': '199.7.26.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-06 14:07:56,198 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-06 14:07:56,563 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-06 14:07:56,590 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c
2026-10-06 14:07:56,602 - DEBUG - Requesting: http://10.0.0.38:8082/project/ccb449f3-91ca-4344-9b22-f1d3da70943b
2026-10-06 14:07:56,676 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/590a96da-f3e7-4a60-9e0e-3cf6d0a50451
2026-10-06 14:07:56,687 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/590a96da-f3e7-4a60-9e0e-3cf6d0a50451
2026-10-06 14:07:56,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d8761a79-5a84-436e-a233-25f1cc4d0b8b
2026-10-06 14:07:56,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d8761a79-5a84-436e-a233-25f1cc4d0b8b
2026-10-06 14:07:56,709 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/133ed721-5be1-4f2c-a36f-b46e6713877f
2026-10-06 14:07:56,715 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-06 14:07:56,715 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/590a96da-f3e7-4a60-9e0e-3cf6d0a50451
2026-10-06 14:07:56,724 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d8761a79-5a84-436e-a233-25f1cc4d0b8b
2026-10-06 14:07:56,738 - INFO - Verified VN network id 12 for VN 590a96da-f3e7-4a60-9e0e-3cf6d0a50451
2026-10-06 14:07:56,738 - INFO - Verifications in API Server for VN ctest-vn-21008000 passed
2026-10-06 14:07:56,738 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/590a96da-f3e7-4a60-9e0e-3cf6d0a50451
2026-10-06 14:07:56,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d8761a79-5a84-436e-a233-25f1cc4d0b8b
2026-10-06 14:07:56,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d8761a79-5a84-436e-a233-25f1cc4d0b8b
2026-10-06 14:07:56,761 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/133ed721-5be1-4f2c-a36f-b46e6713877f
2026-10-06 14:07:56,775 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-21008000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45378285', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6416106486281751136', 'uuid-lslong': '11389107538426659921'}, 'enable': 'true', 'created': '2026-10-06T14:07:54', 'last-modified': '2026-10-06T14:07:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034411'}
2026-10-06 14:07:56,781 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-06 14:07:56,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21008000 passed
2026-10-06 14:07:56,782 - DEBUG - ====Verifying policy data for ctest-vn-21008000 in API_Server ======
2026-10-06 14:07:56,782 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-06 14:07:56,787 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c
2026-10-06 14:07:56,797 - DEBUG - Requesting: http://10.0.0.38:8082/project/ccb449f3-91ca-4344-9b22-f1d3da70943b
2026-10-06 14:07:56,867 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/590a96da-f3e7-4a60-9e0e-3cf6d0a50451
2026-10-06 14:07:56,875 - DEBUG - ==>Verifying data for policy with id: ed588aa5-b774-4e80-8692-9cbf99b90f89, fqn: ['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-policy-allow-all-26452156']
2026-10-06 14:07:56,876 - INFO - VN ctest-vn-21008000 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-06 14:07:56,876 - DEBUG - Verifying the vn in opserver
2026-10-06 14:07:56,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-21008000 virtual network link through opserver 10.0.0.38
2026-10-06 14:07:56,876 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-10-06 14:07:57,236 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-10-06 14:07:57,322 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-21008000', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-21008000?flat'}
2026-10-06 14:07:57,322 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-21008000 is found in opserver
2026-10-06 14:07:57,338 - DEBUG - Do not have enough data to verify VN in agent
2026-10-06 14:07:57,350 - DEBUG - VRF ids for VN ctest-vn-21008000: {}
2026-10-06 14:07:57,350 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-06 14:07:57,370 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c
2026-10-06 14:07:57,451 - DEBUG - Requesting: http://10.0.0.38:8082/project/ccb449f3-91ca-4344-9b22-f1d3da70943b
2026-10-06 14:07:57,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df4876e8-2f7f-4c5c-98ec-046d65f715d8
2026-10-06 14:07:57,570 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df4876e8-2f7f-4c5c-98ec-046d65f715d8
2026-10-06 14:07:57,584 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98ff33c5-bc16-4591-a836-5fe20440ada9
2026-10-06 14:07:57,602 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98ff33c5-bc16-4591-a836-5fe20440ada9
2026-10-06 14:07:57,611 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/964a79ee-4d53-4a2d-955e-92f7e90e830f
2026-10-06 14:07:57,621 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-06 14:07:57,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df4876e8-2f7f-4c5c-98ec-046d65f715d8
2026-10-06 14:07:57,640 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98ff33c5-bc16-4591-a836-5fe20440ada9
2026-10-06 14:07:57,669 - INFO - Verified VN network id 13 for VN df4876e8-2f7f-4c5c-98ec-046d65f715d8
2026-10-06 14:07:57,669 - INFO - Verifications in API Server for VN ctest-vn-90871990 passed
2026-10-06 14:07:57,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df4876e8-2f7f-4c5c-98ec-046d65f715d8
2026-10-06 14:07:57,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98ff33c5-bc16-4591-a836-5fe20440ada9
2026-10-06 14:07:57,700 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98ff33c5-bc16-4591-a836-5fe20440ada9
2026-10-06 14:07:57,713 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/964a79ee-4d53-4a2d-955e-92f7e90e830f
2026-10-06 14:07:57,759 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-90871990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45378285', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16089240408382458972', 'uuid-lslong': '11019187256177399256'}, 'enable': 'true', 'created': '2026-10-06T14:07:55', 'last-modified': '2026-10-06T14:07:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.741122'}
2026-10-06 14:07:57,766 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-06 14:07:57,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90871990 passed
2026-10-06 14:07:57,766 - DEBUG - ====Verifying policy data for ctest-vn-90871990 in API_Server ======
2026-10-06 14:07:57,766 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-06 14:07:57,775 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c
2026-10-06 14:07:57,819 - DEBUG - Requesting: http://10.0.0.38:8082/project/ccb449f3-91ca-4344-9b22-f1d3da70943b
2026-10-06 14:07:57,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df4876e8-2f7f-4c5c-98ec-046d65f715d8
2026-10-06 14:07:57,920 - DEBUG - ==>Verifying data for policy with id: ed588aa5-b774-4e80-8692-9cbf99b90f89, fqn: ['default-domain', 'ctest-TestBasicPolicy-45378285', 'ctest-policy-allow-all-26452156']
2026-10-06 14:07:57,920 - INFO - VN ctest-vn-90871990 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-06 14:07:57,920 - DEBUG - Verifying the vn in opserver
2026-10-06 14:07:57,920 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-90871990 virtual network link through opserver 10.0.0.38
2026-10-06 14:07:57,920 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-10-06 14:07:57,929 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-90871990', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-90871990?flat'}
2026-10-06 14:07:57,929 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45378285:ctest-vn-90871990 is found in opserver
2026-10-06 14:07:57,938 - DEBUG - Do not have enough data to verify VN in agent
2026-10-06 14:07:57,942 - DEBUG - VRF ids for VN ctest-vn-90871990: {}
2026-10-06 14:07:57,994 - DEBUG - Services list from nova: [