2025-09-11 08:12:26,919 - INFO - Domain Default found not creating
2025-09-11 08:12:27,079 - INFO - Project ctest-TestBasicPolicy-10823368 not found, creating it
2025-09-11 08:12:27,536 - INFO - Created Project:ctest-TestBasicPolicy-10823368, ID : 7018316f-0d5e-4d80-b249-c591129ec651
2025-09-11 08:12:29,163 - INFO - ================================================================================
2025-09-11 08:12:29,163 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 08:12:29,163 - 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-09-11 08:12:29,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-09-11 08:12:29,424 - INFO - Initial checks done. Running the testcase now
2025-09-11 08:12:29,424 - INFO -
2025-09-11 08:12:30,030 - DEBUG - Response for create_network : {'network': {'id': 'd179d0b3-8770-4f05-a103-efdae743c7e7', 'name': 'ctest-vn-25521905', 'tenant_id': '7018316f0d5e4d80b249c591129ec651', 'project_id': '7018316f0d5e4d80b249c591129ec651', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-vn-25521905'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:12:30,214 - DEBUG - Response for create_subnet : {'subnet': {'id': '91663b1c-d902-43e1-84db-80da59a1aef1', 'name': '', 'tenant_id': '7018316f0d5e4d80b249c591129ec651', 'network_id': 'd179d0b3-8770-4f05-a103-efdae743c7e7', 'ip_version': 4, 'cidr': '106.16.88.192/26', 'allocation_pools': [{'start': '106.16.88.194', 'end': '106.16.88.254'}], 'gateway_ip': '106.16.88.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.16.88.194', 'tags': [], 'project_id': '7018316f0d5e4d80b249c591129ec651'}}
2025-09-11 08:12:30,235 - INFO - Created VN ctest-vn-25521905
2025-09-11 08:12:30,290 - DEBUG - VN ctest-vn-25521905 UUID is d179d0b3-8770-4f05-a103-efdae743c7e7
2025-09-11 08:12:30,634 - DEBUG - Response for create_network : {'network': {'id': 'ef85063d-fb3d-4937-ae38-df2e98d92562', 'name': 'ctest-vn-36725077', 'tenant_id': '7018316f0d5e4d80b249c591129ec651', 'project_id': '7018316f0d5e4d80b249c591129ec651', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-vn-36725077'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:12:30,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '662bfb5b-b7e6-4833-86e8-321e9136ba00', 'name': '', 'tenant_id': '7018316f0d5e4d80b249c591129ec651', 'network_id': 'ef85063d-fb3d-4937-ae38-df2e98d92562', 'ip_version': 4, 'cidr': '214.165.239.0/26', 'allocation_pools': [{'start': '214.165.239.2', 'end': '214.165.239.62'}], 'gateway_ip': '214.165.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.165.239.2', 'tags': [], 'project_id': '7018316f0d5e4d80b249c591129ec651'}}
2025-09-11 08:12:30,867 - INFO - Created VN ctest-vn-36725077
2025-09-11 08:12:30,922 - DEBUG - VN ctest-vn-36725077 UUID is ef85063d-fb3d-4937-ae38-df2e98d92562
2025-09-11 08:12:31,043 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-25521905, 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-10823368:ctest-vn-36725077, 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-09-11 08:12:31,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd179d0b3-8770-4f05-a103-efdae743c7e7', 'name': 'ctest-vn-25521905', 'tenant_id': '7018316f0d5e4d80b249c591129ec651', 'project_id': '7018316f0d5e4d80b249c591129ec651', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91663b1c-d902-43e1-84db-80da59a1aef1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-vn-25521905'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-policy-allow-all-34448557']], 'subnet_ipam': [{'subnet_cidr': '106.16.88.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:12:31,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef85063d-fb3d-4937-ae38-df2e98d92562', 'name': 'ctest-vn-36725077', 'tenant_id': '7018316f0d5e4d80b249c591129ec651', 'project_id': '7018316f0d5e4d80b249c591129ec651', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['662bfb5b-b7e6-4833-86e8-321e9136ba00'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-vn-36725077'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-policy-allow-all-34448557']], 'subnet_ipam': [{'subnet_cidr': '214.165.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 08:12:31,790 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-11 08:12:32,128 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-11 08:12:32,164 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ecead9c0-0f5e-4710-8dc1-a311495b38d2
2025-09-11 08:12:32,178 - DEBUG - Requesting: http://10.0.0.19:8082/project/7018316f-0d5e-4d80-b249-c591129ec651
2025-09-11 08:12:32,252 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d179d0b3-8770-4f05-a103-efdae743c7e7
2025-09-11 08:12:32,264 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d179d0b3-8770-4f05-a103-efdae743c7e7
2025-09-11 08:12:32,274 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/07cd8d66-f24c-4e35-b0f6-9c8cc2053463
2025-09-11 08:12:32,282 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/07cd8d66-f24c-4e35-b0f6-9c8cc2053463
2025-09-11 08:12:32,290 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2180c049-e759-42c3-9fc0-9be04379982d
2025-09-11 08:12:32,297 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:12:32,297 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d179d0b3-8770-4f05-a103-efdae743c7e7
2025-09-11 08:12:32,308 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/07cd8d66-f24c-4e35-b0f6-9c8cc2053463
2025-09-11 08:12:32,324 - INFO - Verified VN network id 11 for VN d179d0b3-8770-4f05-a103-efdae743c7e7
2025-09-11 08:12:32,324 - INFO - Verifications in API Server for VN ctest-vn-25521905 passed
2025-09-11 08:12:32,324 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d179d0b3-8770-4f05-a103-efdae743c7e7
2025-09-11 08:12:32,338 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/07cd8d66-f24c-4e35-b0f6-9c8cc2053463
2025-09-11 08:12:32,345 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/07cd8d66-f24c-4e35-b0f6-9c8cc2053463
2025-09-11 08:12:32,352 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2180c049-e759-42c3-9fc0-9be04379982d
2025-09-11 08:12:32,365 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-25521905', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10823368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15094325095598935813', 'uuid-lslong': '11602380788498417639'}, 'enable': 'true', 'created': '2025-09-11T08:12:29', 'last-modified': '2025-09-11T08:12:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.038117'}
2025-09-11 08:12:32,371 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 08:12:32,372 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25521905 passed
2025-09-11 08:12:32,372 - DEBUG - ====Verifying policy data for ctest-vn-25521905 in API_Server ======
2025-09-11 08:12:32,372 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-11 08:12:32,382 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ecead9c0-0f5e-4710-8dc1-a311495b38d2
2025-09-11 08:12:32,394 - DEBUG - Requesting: http://10.0.0.19:8082/project/7018316f-0d5e-4d80-b249-c591129ec651
2025-09-11 08:12:32,466 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d179d0b3-8770-4f05-a103-efdae743c7e7
2025-09-11 08:12:32,475 - DEBUG - ==>Verifying data for policy with id: f614c24a-53f3-423a-addb-7923d28f98da, fqn: ['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-policy-allow-all-34448557']
2025-09-11 08:12:32,476 - INFO - VN ctest-vn-25521905 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:12:32,476 - DEBUG - Verifying the vn in opserver
2025-09-11 08:12:32,476 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-25521905 virtual network link through opserver 10.0.0.19
2025-09-11 08:12:32,476 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-09-11 08:12:32,812 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-09-11 08:12:32,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-25521905', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-25521905?flat'}
2025-09-11 08:12:32,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-25521905 is found in opserver
2025-09-11 08:12:32,891 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:12:32,897 - DEBUG - VRF ids for VN ctest-vn-25521905: {}
2025-09-11 08:12:32,897 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-11 08:12:32,903 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ecead9c0-0f5e-4710-8dc1-a311495b38d2
2025-09-11 08:12:32,915 - DEBUG - Requesting: http://10.0.0.19:8082/project/7018316f-0d5e-4d80-b249-c591129ec651
2025-09-11 08:12:32,991 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ef85063d-fb3d-4937-ae38-df2e98d92562
2025-09-11 08:12:33,006 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ef85063d-fb3d-4937-ae38-df2e98d92562
2025-09-11 08:12:33,018 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4f16ad58-989e-4bda-af38-76c4dc6a3094
2025-09-11 08:12:33,027 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4f16ad58-989e-4bda-af38-76c4dc6a3094
2025-09-11 08:12:33,035 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/929fc0e9-4c49-4ad8-b689-7292729a4266
2025-09-11 08:12:33,044 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:12:33,044 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ef85063d-fb3d-4937-ae38-df2e98d92562
2025-09-11 08:12:33,054 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4f16ad58-989e-4bda-af38-76c4dc6a3094
2025-09-11 08:12:33,074 - INFO - Verified VN network id 12 for VN ef85063d-fb3d-4937-ae38-df2e98d92562
2025-09-11 08:12:33,074 - INFO - Verifications in API Server for VN ctest-vn-36725077 passed
2025-09-11 08:12:33,075 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ef85063d-fb3d-4937-ae38-df2e98d92562
2025-09-11 08:12:33,087 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4f16ad58-989e-4bda-af38-76c4dc6a3094
2025-09-11 08:12:33,095 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4f16ad58-989e-4bda-af38-76c4dc6a3094
2025-09-11 08:12:33,103 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/929fc0e9-4c49-4ad8-b689-7292729a4266
2025-09-11 08:12:33,116 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-36725077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10823368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17259208010245163319', 'uuid-lslong': '12554029352521114978'}, 'enable': 'true', 'created': '2025-09-11T08:12:30', 'last-modified': '2025-09-11T08:12:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.543132'}
2025-09-11 08:12:33,122 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 08:12:33,122 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36725077 passed
2025-09-11 08:12:33,123 - DEBUG - ====Verifying policy data for ctest-vn-36725077 in API_Server ======
2025-09-11 08:12:33,123 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-11 08:12:33,192 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ecead9c0-0f5e-4710-8dc1-a311495b38d2
2025-09-11 08:12:33,205 - DEBUG - Requesting: http://10.0.0.19:8082/project/7018316f-0d5e-4d80-b249-c591129ec651
2025-09-11 08:12:33,282 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ef85063d-fb3d-4937-ae38-df2e98d92562
2025-09-11 08:12:33,296 - DEBUG - ==>Verifying data for policy with id: f614c24a-53f3-423a-addb-7923d28f98da, fqn: ['default-domain', 'ctest-TestBasicPolicy-10823368', 'ctest-policy-allow-all-34448557']
2025-09-11 08:12:33,296 - INFO - VN ctest-vn-36725077 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 08:12:33,296 - DEBUG - Verifying the vn in opserver
2025-09-11 08:12:33,296 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-36725077 virtual network link through opserver 10.0.0.19
2025-09-11 08:12:33,296 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-09-11 08:12:33,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-36725077', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-36725077?flat'}
2025-09-11 08:12:33,307 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10823368:ctest-vn-36725077 is found in opserver
2025-09-11 08:12:33,317 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 08:12:33,322 - DEBUG - VRF ids for VN ctest-vn-36725077: {}
2025-09-11 08:12:33,396 - DEBUG - Services list from nova: [