2025-11-10 18:51:52,560 - INFO - Domain Default found not creating
2025-11-10 18:51:52,853 - INFO - Project ctest-TestBasicPolicy-23039017 not found, creating it
2025-11-10 18:51:53,381 - INFO - Created Project:ctest-TestBasicPolicy-23039017, ID : f3f15ad9-851a-4542-bc8e-385c42f342b3
2025-11-10 18:51:54,952 - INFO - ================================================================================
2025-11-10 18:51:54,953 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 18:51:54,953 - 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-10 18:51:55,215 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-11-10 18:51:55,216 - INFO - Initial checks done. Running the testcase now
2025-11-10 18:51:55,216 - INFO -
2025-11-10 18:51:55,812 - DEBUG - Response for create_network : {'network': {'id': 'be006cfd-931e-4b20-b9fd-299d6942b3d7', 'name': 'ctest-vn-17238213', 'tenant_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'project_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-vn-17238213'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:55,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f51ade9-995f-4744-8cfa-6b7b44197ee7', 'name': '', 'tenant_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'network_id': 'be006cfd-931e-4b20-b9fd-299d6942b3d7', 'ip_version': 4, 'cidr': '133.20.12.0/26', 'allocation_pools': [{'start': '133.20.12.2', 'end': '133.20.12.62'}], 'gateway_ip': '133.20.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.20.12.2', 'tags': [], 'project_id': 'f3f15ad9851a4542bc8e385c42f342b3'}}
2025-11-10 18:51:56,002 - INFO - Created VN ctest-vn-17238213
2025-11-10 18:51:56,054 - DEBUG - VN ctest-vn-17238213 UUID is be006cfd-931e-4b20-b9fd-299d6942b3d7
2025-11-10 18:51:56,385 - DEBUG - Response for create_network : {'network': {'id': '0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be', 'name': 'ctest-vn-97643262', 'tenant_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'project_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-vn-97643262'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:56,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '70a5a18a-feb5-449f-9cee-53ec89420c1b', 'name': '', 'tenant_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'network_id': '0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be', 'ip_version': 4, 'cidr': '13.144.77.64/26', 'allocation_pools': [{'start': '13.144.77.66', 'end': '13.144.77.126'}], 'gateway_ip': '13.144.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.144.77.66', 'tags': [], 'project_id': 'f3f15ad9851a4542bc8e385c42f342b3'}}
2025-11-10 18:51:56,622 - INFO - Created VN ctest-vn-97643262
2025-11-10 18:51:56,674 - DEBUG - VN ctest-vn-97643262 UUID is 0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be
2025-11-10 18:51:56,789 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-17238213, 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-23039017:ctest-vn-97643262, 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-10 18:51:57,115 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be006cfd-931e-4b20-b9fd-299d6942b3d7', 'name': 'ctest-vn-17238213', 'tenant_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'project_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f51ade9-995f-4744-8cfa-6b7b44197ee7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-vn-17238213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-policy-allow-all-99267179']], 'subnet_ipam': [{'subnet_cidr': '133.20.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:57,361 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be', 'name': 'ctest-vn-97643262', 'tenant_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'project_id': 'f3f15ad9851a4542bc8e385c42f342b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70a5a18a-feb5-449f-9cee-53ec89420c1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-vn-97643262'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-policy-allow-all-99267179']], 'subnet_ipam': [{'subnet_cidr': '13.144.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 18:51:57,526 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-10 18:51:57,831 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-10 18:51:57,866 - DEBUG - Requesting: http://10.0.0.22:8082/domain/01806cc8-88b6-4291-a70d-f67bc75f47ee
2025-11-10 18:51:57,885 - DEBUG - Requesting: http://10.0.0.22:8082/project/f3f15ad9-851a-4542-bc8e-385c42f342b3
2025-11-10 18:51:57,960 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be006cfd-931e-4b20-b9fd-299d6942b3d7
2025-11-10 18:51:57,971 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be006cfd-931e-4b20-b9fd-299d6942b3d7
2025-11-10 18:51:57,981 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3f0b63e-d33a-4ddc-a6d8-6700813701e0
2025-11-10 18:51:57,989 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3f0b63e-d33a-4ddc-a6d8-6700813701e0
2025-11-10 18:51:57,996 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7b8b3716-e252-45c7-a126-b2e932c4cad2
2025-11-10 18:51:58,003 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 18:51:58,003 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be006cfd-931e-4b20-b9fd-299d6942b3d7
2025-11-10 18:51:58,013 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3f0b63e-d33a-4ddc-a6d8-6700813701e0
2025-11-10 18:51:58,028 - INFO - Verified VN network id 12 for VN be006cfd-931e-4b20-b9fd-299d6942b3d7
2025-11-10 18:51:58,028 - INFO - Verifications in API Server for VN ctest-vn-17238213 passed
2025-11-10 18:51:58,028 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be006cfd-931e-4b20-b9fd-299d6942b3d7
2025-11-10 18:51:58,039 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3f0b63e-d33a-4ddc-a6d8-6700813701e0
2025-11-10 18:51:58,047 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3f0b63e-d33a-4ddc-a6d8-6700813701e0
2025-11-10 18:51:58,056 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7b8b3716-e252-45c7-a126-b2e932c4cad2
2025-11-10 18:51:58,077 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-17238213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23039017', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13691062703557069600', 'uuid-lslong': '13401913822177047511'}, 'enable': 'true', 'created': '2025-11-10T18:51:55', 'last-modified': '2025-11-10T18:51:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004963'}
2025-11-10 18:51:58,086 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 18:51:58,087 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17238213 passed
2025-11-10 18:51:58,087 - DEBUG - ====Verifying policy data for ctest-vn-17238213 in API_Server ======
2025-11-10 18:51:58,087 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-10 18:51:58,093 - DEBUG - Requesting: http://10.0.0.22:8082/domain/01806cc8-88b6-4291-a70d-f67bc75f47ee
2025-11-10 18:51:58,107 - DEBUG - Requesting: http://10.0.0.22:8082/project/f3f15ad9-851a-4542-bc8e-385c42f342b3
2025-11-10 18:51:58,184 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be006cfd-931e-4b20-b9fd-299d6942b3d7
2025-11-10 18:51:58,196 - DEBUG - ==>Verifying data for policy with id: c9595c55-67fa-4476-8caa-120020f72e1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-policy-allow-all-99267179']
2025-11-10 18:51:58,196 - INFO - VN ctest-vn-17238213 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 18:51:58,196 - DEBUG - Verifying the vn in opserver
2025-11-10 18:51:58,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-17238213 virtual network link through opserver 10.0.0.22
2025-11-10 18:51:58,197 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-10 18:51:58,500 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-10 18:51:58,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-17238213', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-17238213?flat'}
2025-11-10 18:51:58,560 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-17238213 is found in opserver
2025-11-10 18:51:58,570 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 18:51:58,577 - DEBUG - VRF ids for VN ctest-vn-17238213: {}
2025-11-10 18:51:58,577 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-10 18:51:58,582 - DEBUG - Requesting: http://10.0.0.22:8082/domain/01806cc8-88b6-4291-a70d-f67bc75f47ee
2025-11-10 18:51:58,595 - DEBUG - Requesting: http://10.0.0.22:8082/project/f3f15ad9-851a-4542-bc8e-385c42f342b3
2025-11-10 18:51:58,666 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be
2025-11-10 18:51:58,678 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be
2025-11-10 18:51:58,689 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b32ee107-3dc0-46ff-9762-fabbc7dc8496
2025-11-10 18:51:58,696 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b32ee107-3dc0-46ff-9762-fabbc7dc8496
2025-11-10 18:51:58,702 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b93b2fa7-8523-4796-90ff-9021e73685cc
2025-11-10 18:51:58,709 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 18:51:58,709 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be
2025-11-10 18:51:58,717 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b32ee107-3dc0-46ff-9762-fabbc7dc8496
2025-11-10 18:51:58,734 - INFO - Verified VN network id 13 for VN 0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be
2025-11-10 18:51:58,734 - INFO - Verifications in API Server for VN ctest-vn-97643262 passed
2025-11-10 18:51:58,734 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be
2025-11-10 18:51:58,745 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b32ee107-3dc0-46ff-9762-fabbc7dc8496
2025-11-10 18:51:58,753 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b32ee107-3dc0-46ff-9762-fabbc7dc8496
2025-11-10 18:51:58,760 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b93b2fa7-8523-4796-90ff-9021e73685cc
2025-11-10 18:51:58,772 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-97643262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23039017', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1048247669341831986', 'uuid-lslong': '9956250011637063870'}, 'enable': 'true', 'created': '2025-11-10T18:51:56', 'last-modified': '2025-11-10T18:51:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.445070'}
2025-11-10 18:51:58,778 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 18:51:58,778 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97643262 passed
2025-11-10 18:51:58,778 - DEBUG - ====Verifying policy data for ctest-vn-97643262 in API_Server ======
2025-11-10 18:51:58,778 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-10 18:51:58,784 - DEBUG - Requesting: http://10.0.0.22:8082/domain/01806cc8-88b6-4291-a70d-f67bc75f47ee
2025-11-10 18:51:58,796 - DEBUG - Requesting: http://10.0.0.22:8082/project/f3f15ad9-851a-4542-bc8e-385c42f342b3
2025-11-10 18:51:58,887 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0e8c1fb3-8fc0-4332-8a2b-b4a2969b20be
2025-11-10 18:51:58,901 - DEBUG - ==>Verifying data for policy with id: c9595c55-67fa-4476-8caa-120020f72e1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-23039017', 'ctest-policy-allow-all-99267179']
2025-11-10 18:51:58,901 - INFO - VN ctest-vn-97643262 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 18:51:58,901 - DEBUG - Verifying the vn in opserver
2025-11-10 18:51:58,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-97643262 virtual network link through opserver 10.0.0.22
2025-11-10 18:51:58,901 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-10 18:51:58,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-97643262', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-97643262?flat'}
2025-11-10 18:51:58,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23039017:ctest-vn-97643262 is found in opserver
2025-11-10 18:51:58,926 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 18:51:58,930 - DEBUG - VRF ids for VN ctest-vn-97643262: {}
2025-11-10 18:51:58,998 - DEBUG - Services list from nova: [