2025-08-12 16:49:18,446 - INFO - Domain Default found not creating
2025-08-12 16:49:18,567 - INFO - Project ctest-TestBasicPolicy-80067908 not found, creating it
2025-08-12 16:49:19,007 - INFO - Created Project:ctest-TestBasicPolicy-80067908, ID : e50de382-2bba-44bc-9fae-2fa99e11c158
2025-08-12 16:49:20,369 - INFO - ================================================================================
2025-08-12 16:49:20,369 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 16:49:20,369 - 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-08-12 16:49:20,625 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-12 16:49:20,625 - INFO - Initial checks done. Running the testcase now
2025-08-12 16:49:20,625 - INFO -
2025-08-12 16:49:21,143 - DEBUG - Response for create_network : {'network': {'id': 'a2e2857e-b88c-4b6a-a776-73f2277ea747', 'name': 'ctest-vn-93644152', 'tenant_id': 'e50de3822bba44bc9fae2fa99e11c158', 'project_id': 'e50de3822bba44bc9fae2fa99e11c158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-vn-93644152'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:49:21,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae51b10f-668b-448b-aa44-64661f76587d', 'name': '', 'tenant_id': 'e50de3822bba44bc9fae2fa99e11c158', 'network_id': 'a2e2857e-b88c-4b6a-a776-73f2277ea747', 'ip_version': 4, 'cidr': '168.91.113.0/26', 'allocation_pools': [{'start': '168.91.113.2', 'end': '168.91.113.62'}], 'gateway_ip': '168.91.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.91.113.2', 'tags': [], 'project_id': 'e50de3822bba44bc9fae2fa99e11c158'}}
2025-08-12 16:49:21,349 - INFO - Created VN ctest-vn-93644152
2025-08-12 16:49:21,400 - DEBUG - VN ctest-vn-93644152 UUID is a2e2857e-b88c-4b6a-a776-73f2277ea747
2025-08-12 16:49:21,690 - DEBUG - Response for create_network : {'network': {'id': '8967450b-5981-44be-9397-2562fd373d97', 'name': 'ctest-vn-08400996', 'tenant_id': 'e50de3822bba44bc9fae2fa99e11c158', 'project_id': 'e50de3822bba44bc9fae2fa99e11c158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-vn-08400996'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:49:21,883 - DEBUG - Response for create_subnet : {'subnet': {'id': '71d37806-f47b-4a16-8d04-0e92f6af23a2', 'name': '', 'tenant_id': 'e50de3822bba44bc9fae2fa99e11c158', 'network_id': '8967450b-5981-44be-9397-2562fd373d97', 'ip_version': 4, 'cidr': '159.108.15.0/26', 'allocation_pools': [{'start': '159.108.15.2', 'end': '159.108.15.62'}], 'gateway_ip': '159.108.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.108.15.2', 'tags': [], 'project_id': 'e50de3822bba44bc9fae2fa99e11c158'}}
2025-08-12 16:49:21,899 - INFO - Created VN ctest-vn-08400996
2025-08-12 16:49:21,952 - DEBUG - VN ctest-vn-08400996 UUID is 8967450b-5981-44be-9397-2562fd373d97
2025-08-12 16:49:22,100 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-93644152, 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-80067908:ctest-vn-08400996, 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-08-12 16:49:22,375 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2e2857e-b88c-4b6a-a776-73f2277ea747', 'name': 'ctest-vn-93644152', 'tenant_id': 'e50de3822bba44bc9fae2fa99e11c158', 'project_id': 'e50de3822bba44bc9fae2fa99e11c158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae51b10f-668b-448b-aa44-64661f76587d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-vn-93644152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-policy-allow-all-91257274']], 'subnet_ipam': [{'subnet_cidr': '168.91.113.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:49:22,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8967450b-5981-44be-9397-2562fd373d97', 'name': 'ctest-vn-08400996', 'tenant_id': 'e50de3822bba44bc9fae2fa99e11c158', 'project_id': 'e50de3822bba44bc9fae2fa99e11c158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71d37806-f47b-4a16-8d04-0e92f6af23a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-vn-08400996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-policy-allow-all-91257274']], 'subnet_ipam': [{'subnet_cidr': '159.108.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 16:49:22,784 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 16:49:23,073 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 16:49:23,098 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472
2025-08-12 16:49:23,110 - DEBUG - Requesting: http://10.0.0.38:8082/project/e50de382-2bba-44bc-9fae-2fa99e11c158
2025-08-12 16:49:23,186 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2e2857e-b88c-4b6a-a776-73f2277ea747
2025-08-12 16:49:23,195 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2e2857e-b88c-4b6a-a776-73f2277ea747
2025-08-12 16:49:23,203 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c7f49c49-a4b3-485e-a674-714a61ba7e55
2025-08-12 16:49:23,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c7f49c49-a4b3-485e-a674-714a61ba7e55
2025-08-12 16:49:23,214 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/453a7518-07ad-42ad-8575-9f308d69125e
2025-08-12 16:49:23,220 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 16:49:23,220 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2e2857e-b88c-4b6a-a776-73f2277ea747
2025-08-12 16:49:23,228 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c7f49c49-a4b3-485e-a674-714a61ba7e55
2025-08-12 16:49:23,239 - INFO - Verified VN network id 11 for VN a2e2857e-b88c-4b6a-a776-73f2277ea747
2025-08-12 16:49:23,239 - INFO - Verifications in API Server for VN ctest-vn-93644152 passed
2025-08-12 16:49:23,240 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2e2857e-b88c-4b6a-a776-73f2277ea747
2025-08-12 16:49:23,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c7f49c49-a4b3-485e-a674-714a61ba7e55
2025-08-12 16:49:23,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c7f49c49-a4b3-485e-a674-714a61ba7e55
2025-08-12 16:49:23,259 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/453a7518-07ad-42ad-8575-9f308d69125e
2025-08-12 16:49:23,270 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-93644152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80067908', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11737090358189509482', 'uuid-lslong': '12066959735467714375'}, 'enable': 'true', 'created': '2025-08-12T16:49:21', 'last-modified': '2025-08-12T16:49:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916230'}
2025-08-12 16:49:23,275 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 16:49:23,275 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93644152 passed
2025-08-12 16:49:23,276 - DEBUG - ====Verifying policy data for ctest-vn-93644152 in API_Server ======
2025-08-12 16:49:23,276 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 16:49:23,281 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472
2025-08-12 16:49:23,291 - DEBUG - Requesting: http://10.0.0.38:8082/project/e50de382-2bba-44bc-9fae-2fa99e11c158
2025-08-12 16:49:23,359 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2e2857e-b88c-4b6a-a776-73f2277ea747
2025-08-12 16:49:23,368 - DEBUG - ==>Verifying data for policy with id: 96c68c61-9725-446d-8c0d-a94b599dc55a, fqn: ['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-policy-allow-all-91257274']
2025-08-12 16:49:23,368 - INFO - VN ctest-vn-93644152 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 16:49:23,368 - DEBUG - Verifying the vn in opserver
2025-08-12 16:49:23,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-93644152 virtual network link through opserver 10.0.0.38
2025-08-12 16:49:23,369 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-12 16:49:23,657 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-12 16:49:23,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-93644152', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-93644152?flat'}
2025-08-12 16:49:23,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-93644152 is found in opserver
2025-08-12 16:49:23,713 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 16:49:23,717 - DEBUG - VRF ids for VN ctest-vn-93644152: {}
2025-08-12 16:49:23,717 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 16:49:23,722 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472
2025-08-12 16:49:23,732 - DEBUG - Requesting: http://10.0.0.38:8082/project/e50de382-2bba-44bc-9fae-2fa99e11c158
2025-08-12 16:49:23,801 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8967450b-5981-44be-9397-2562fd373d97
2025-08-12 16:49:23,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8967450b-5981-44be-9397-2562fd373d97
2025-08-12 16:49:23,820 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5741a71b-a894-4078-8328-47f6449afe22
2025-08-12 16:49:23,826 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5741a71b-a894-4078-8328-47f6449afe22
2025-08-12 16:49:23,832 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77772c86-c551-4483-a7ca-857ef53c3b39
2025-08-12 16:49:23,837 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 16:49:23,837 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8967450b-5981-44be-9397-2562fd373d97
2025-08-12 16:49:23,845 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5741a71b-a894-4078-8328-47f6449afe22
2025-08-12 16:49:23,857 - INFO - Verified VN network id 12 for VN 8967450b-5981-44be-9397-2562fd373d97
2025-08-12 16:49:23,857 - INFO - Verifications in API Server for VN ctest-vn-08400996 passed
2025-08-12 16:49:23,857 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8967450b-5981-44be-9397-2562fd373d97
2025-08-12 16:49:23,865 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5741a71b-a894-4078-8328-47f6449afe22
2025-08-12 16:49:23,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5741a71b-a894-4078-8328-47f6449afe22
2025-08-12 16:49:23,877 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77772c86-c551-4483-a7ca-857ef53c3b39
2025-08-12 16:49:23,887 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-08400996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80067908', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9900958220845925566', 'uuid-lslong': '10635010152143994263'}, 'enable': 'true', 'created': '2025-08-12T16:49:21', 'last-modified': '2025-08-12T16:49:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.311407'}
2025-08-12 16:49:23,892 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 16:49:23,893 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08400996 passed
2025-08-12 16:49:23,893 - DEBUG - ====Verifying policy data for ctest-vn-08400996 in API_Server ======
2025-08-12 16:49:23,893 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-12 16:49:23,897 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472
2025-08-12 16:49:23,907 - DEBUG - Requesting: http://10.0.0.38:8082/project/e50de382-2bba-44bc-9fae-2fa99e11c158
2025-08-12 16:49:23,977 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8967450b-5981-44be-9397-2562fd373d97
2025-08-12 16:49:23,985 - DEBUG - ==>Verifying data for policy with id: 96c68c61-9725-446d-8c0d-a94b599dc55a, fqn: ['default-domain', 'ctest-TestBasicPolicy-80067908', 'ctest-policy-allow-all-91257274']
2025-08-12 16:49:23,985 - INFO - VN ctest-vn-08400996 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 16:49:23,985 - DEBUG - Verifying the vn in opserver
2025-08-12 16:49:23,985 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-08400996 virtual network link through opserver 10.0.0.38
2025-08-12 16:49:23,985 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-12 16:49:23,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-08400996', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-08400996?flat'}
2025-08-12 16:49:23,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80067908:ctest-vn-08400996 is found in opserver
2025-08-12 16:49:24,004 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 16:49:24,008 - DEBUG - VRF ids for VN ctest-vn-08400996: {}
2025-08-12 16:49:24,055 - DEBUG - Services list from nova: [