2025-11-05 22:32:10,852 - INFO - Domain Default found not creating
2025-11-05 22:32:11,045 - INFO - Project ctest-TestBasicPolicy-46881232 not found, creating it
2025-11-05 22:32:11,519 - INFO - Created Project:ctest-TestBasicPolicy-46881232, ID : f27f4bdd-a3e9-4030-873f-cef50f777bba
2025-11-05 22:32:12,996 - INFO - ================================================================================
2025-11-05 22:32:12,996 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 22:32:12,996 - 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
2025-11-05 22:32:13,250 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-05 22:32:13,250 - INFO - Initial checks done. Running the testcase now
2025-11-05 22:32:13,250 - INFO -
2025-11-05 22:32:13,820 - DEBUG - Response for create_network : {'network': {'id': '952ceb08-0df3-4197-ba55-b9dfb579b833', 'name': 'ctest-vn-71198034', 'tenant_id': 'f27f4bdda3e94030873fcef50f777bba', 'project_id': 'f27f4bdda3e94030873fcef50f777bba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-vn-71198034'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 22:32:13,999 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e44dac77-fcde-4a69-92ed-e184c94deb17', 'name': '', 'tenant_id': 'f27f4bdda3e94030873fcef50f777bba', 'network_id': '952ceb08-0df3-4197-ba55-b9dfb579b833', 'ip_version': 4, 'cidr': '215.108.183.192/26', 'allocation_pools': [{'start': '215.108.183.194', 'end': '215.108.183.254'}], 'gateway_ip': '215.108.183.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.108.183.194', 'tags': [], 'project_id': 'f27f4bdda3e94030873fcef50f777bba'}}
2025-11-05 22:32:14,018 - INFO - Created VN ctest-vn-71198034
2025-11-05 22:32:14,076 - DEBUG - VN ctest-vn-71198034 UUID is 952ceb08-0df3-4197-ba55-b9dfb579b833
2025-11-05 22:32:14,379 - DEBUG - Response for create_network : {'network': {'id': 'e7c11f9c-0431-4a62-8adf-17b9ca6cb686', 'name': 'ctest-vn-60389445', 'tenant_id': 'f27f4bdda3e94030873fcef50f777bba', 'project_id': 'f27f4bdda3e94030873fcef50f777bba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-vn-60389445'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 22:32:14,554 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4a11abe-2cdc-411b-ab24-723fd2b9ffe8', 'name': '', 'tenant_id': 'f27f4bdda3e94030873fcef50f777bba', 'network_id': 'e7c11f9c-0431-4a62-8adf-17b9ca6cb686', 'ip_version': 4, 'cidr': '122.250.178.128/26', 'allocation_pools': [{'start': '122.250.178.130', 'end': '122.250.178.190'}], 'gateway_ip': '122.250.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.250.178.130', 'tags': [], 'project_id': 'f27f4bdda3e94030873fcef50f777bba'}}
2025-11-05 22:32:14,572 - INFO - Created VN ctest-vn-60389445
2025-11-05 22:32:14,623 - DEBUG - VN ctest-vn-60389445 UUID is e7c11f9c-0431-4a62-8adf-17b9ca6cb686
2025-11-05 22:32:14,741 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-71198034, 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-46881232:ctest-vn-60389445, 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]
2025-11-05 22:32:15,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '952ceb08-0df3-4197-ba55-b9dfb579b833', 'name': 'ctest-vn-71198034', 'tenant_id': 'f27f4bdda3e94030873fcef50f777bba', 'project_id': 'f27f4bdda3e94030873fcef50f777bba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e44dac77-fcde-4a69-92ed-e184c94deb17'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-vn-71198034'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-policy-allow-all-90941349']], 'subnet_ipam': [{'subnet_cidr': '215.108.183.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 22:32:15,320 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7c11f9c-0431-4a62-8adf-17b9ca6cb686', 'name': 'ctest-vn-60389445', 'tenant_id': 'f27f4bdda3e94030873fcef50f777bba', 'project_id': 'f27f4bdda3e94030873fcef50f777bba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4a11abe-2cdc-411b-ab24-723fd2b9ffe8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-vn-60389445'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-policy-allow-all-90941349']], 'subnet_ipam': [{'subnet_cidr': '122.250.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 22:32:15,467 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 22:32:15,766 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 22:32:15,796 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec
2025-11-05 22:32:15,808 - DEBUG - Requesting: http://10.0.0.38:8082/project/f27f4bdd-a3e9-4030-873f-cef50f777bba
2025-11-05 22:32:15,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/952ceb08-0df3-4197-ba55-b9dfb579b833
2025-11-05 22:32:15,893 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/952ceb08-0df3-4197-ba55-b9dfb579b833
2025-11-05 22:32:15,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3c58276-ebd6-4060-b4c7-1e9a8d8fea4d
2025-11-05 22:32:15,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3c58276-ebd6-4060-b4c7-1e9a8d8fea4d
2025-11-05 22:32:15,915 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/da98acb9-1ec6-4119-a646-808773694015
2025-11-05 22:32:15,922 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 22:32:15,922 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/952ceb08-0df3-4197-ba55-b9dfb579b833
2025-11-05 22:32:15,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3c58276-ebd6-4060-b4c7-1e9a8d8fea4d
2025-11-05 22:32:15,943 - INFO - Verified VN network id 11 for VN 952ceb08-0df3-4197-ba55-b9dfb579b833
2025-11-05 22:32:15,943 - INFO - Verifications in API Server for VN ctest-vn-71198034 passed
2025-11-05 22:32:15,943 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/952ceb08-0df3-4197-ba55-b9dfb579b833
2025-11-05 22:32:15,951 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3c58276-ebd6-4060-b4c7-1e9a8d8fea4d
2025-11-05 22:32:15,958 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3c58276-ebd6-4060-b4c7-1e9a8d8fea4d
2025-11-05 22:32:15,965 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/da98acb9-1ec6-4119-a646-808773694015
2025-11-05 22:32:15,976 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-71198034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46881232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10749224830452842903', 'uuid-lslong': '13426842234548500531'}, 'enable': 'true', 'created': '2025-11-05T22:32:13', 'last-modified': '2025-11-05T22:32:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962102'}
2025-11-05 22:32:15,983 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 22:32:15,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71198034 passed
2025-11-05 22:32:15,983 - DEBUG - ====Verifying policy data for ctest-vn-71198034 in API_Server ======
2025-11-05 22:32:15,983 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 22:32:15,989 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec
2025-11-05 22:32:15,999 - DEBUG - Requesting: http://10.0.0.38:8082/project/f27f4bdd-a3e9-4030-873f-cef50f777bba
2025-11-05 22:32:16,070 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/952ceb08-0df3-4197-ba55-b9dfb579b833
2025-11-05 22:32:16,079 - DEBUG - ==>Verifying data for policy with id: 0f6a00b8-27d9-4785-94a2-b679f0b82bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-policy-allow-all-90941349']
2025-11-05 22:32:16,079 - INFO - VN ctest-vn-71198034 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 22:32:16,080 - DEBUG - Verifying the vn in opserver
2025-11-05 22:32:16,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-71198034 virtual network link through opserver 10.0.0.38
2025-11-05 22:32:16,080 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 22:32:16,386 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 22:32:16,443 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-71198034', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-71198034?flat'}
2025-11-05 22:32:16,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-71198034 is found in opserver
2025-11-05 22:32:16,453 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 22:32:16,457 - DEBUG - VRF ids for VN ctest-vn-71198034: {}
2025-11-05 22:32:16,457 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 22:32:16,462 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec
2025-11-05 22:32:16,474 - DEBUG - Requesting: http://10.0.0.38:8082/project/f27f4bdd-a3e9-4030-873f-cef50f777bba
2025-11-05 22:32:16,550 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e7c11f9c-0431-4a62-8adf-17b9ca6cb686
2025-11-05 22:32:16,563 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e7c11f9c-0431-4a62-8adf-17b9ca6cb686
2025-11-05 22:32:16,572 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30375f9-9460-48cd-b1d3-fdcf065946a9
2025-11-05 22:32:16,580 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30375f9-9460-48cd-b1d3-fdcf065946a9
2025-11-05 22:32:16,586 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/112b0b1a-7bb5-44f0-ad21-df5345b32647
2025-11-05 22:32:16,592 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 22:32:16,593 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e7c11f9c-0431-4a62-8adf-17b9ca6cb686
2025-11-05 22:32:16,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30375f9-9460-48cd-b1d3-fdcf065946a9
2025-11-05 22:32:16,614 - INFO - Verified VN network id 12 for VN e7c11f9c-0431-4a62-8adf-17b9ca6cb686
2025-11-05 22:32:16,614 - INFO - Verifications in API Server for VN ctest-vn-60389445 passed
2025-11-05 22:32:16,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e7c11f9c-0431-4a62-8adf-17b9ca6cb686
2025-11-05 22:32:16,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30375f9-9460-48cd-b1d3-fdcf065946a9
2025-11-05 22:32:16,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30375f9-9460-48cd-b1d3-fdcf065946a9
2025-11-05 22:32:16,637 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/112b0b1a-7bb5-44f0-ad21-df5345b32647
2025-11-05 22:32:16,648 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-60389445', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46881232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16699663648212208226', 'uuid-lslong': '10006742983773042310'}, 'enable': 'true', 'created': '2025-11-05T22:32:14', 'last-modified': '2025-11-05T22:32:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.396140'}
2025-11-05 22:32:16,653 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 22:32:16,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60389445 passed
2025-11-05 22:32:16,654 - DEBUG - ====Verifying policy data for ctest-vn-60389445 in API_Server ======
2025-11-05 22:32:16,654 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 22:32:16,659 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec
2025-11-05 22:32:16,669 - DEBUG - Requesting: http://10.0.0.38:8082/project/f27f4bdd-a3e9-4030-873f-cef50f777bba
2025-11-05 22:32:16,746 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e7c11f9c-0431-4a62-8adf-17b9ca6cb686
2025-11-05 22:32:16,756 - DEBUG - ==>Verifying data for policy with id: 0f6a00b8-27d9-4785-94a2-b679f0b82bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46881232', 'ctest-policy-allow-all-90941349']
2025-11-05 22:32:16,756 - INFO - VN ctest-vn-60389445 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 22:32:16,756 - DEBUG - Verifying the vn in opserver
2025-11-05 22:32:16,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-60389445 virtual network link through opserver 10.0.0.38
2025-11-05 22:32:16,756 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 22:32:16,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-60389445', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-60389445?flat'}
2025-11-05 22:32:16,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46881232:ctest-vn-60389445 is found in opserver
2025-11-05 22:32:16,776 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 22:32:16,780 - DEBUG - VRF ids for VN ctest-vn-60389445: {}
2025-11-05 22:32:16,841 - DEBUG - Services list from nova: [