2025-07-31 12:51:28,619 - INFO - Domain Default found not creating
2025-07-31 12:51:28,779 - INFO - Project ctest-TestBasicPolicy-28473246 not found, creating it
2025-07-31 12:51:29,259 - INFO - Created Project:ctest-TestBasicPolicy-28473246, ID : f8826201-36c2-40ae-897c-e0c142b07437
2025-07-31 12:51:30,723 - INFO - ================================================================================
2025-07-31 12:51:30,724 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 12:51:30,724 - 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-07-31 12:51:30,996 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-07-31 12:51:30,996 - INFO - Initial checks done. Running the testcase now
2025-07-31 12:51:30,996 - INFO -
2025-07-31 12:51:31,575 - DEBUG - Response for create_network : {'network': {'id': '767235fc-e757-48f6-b2fa-5cf52907f6e9', 'name': 'ctest-vn-25965994', 'tenant_id': 'f882620136c240ae897ce0c142b07437', 'project_id': 'f882620136c240ae897ce0c142b07437', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-vn-25965994'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:51:31,812 - DEBUG - Response for create_subnet : {'subnet': {'id': '78ab3a1e-b53f-41f5-bf96-4d60eff7fe1f', 'name': '', 'tenant_id': 'f882620136c240ae897ce0c142b07437', 'network_id': '767235fc-e757-48f6-b2fa-5cf52907f6e9', 'ip_version': 4, 'cidr': '84.31.101.128/26', 'allocation_pools': [{'start': '84.31.101.130', 'end': '84.31.101.190'}], 'gateway_ip': '84.31.101.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.31.101.130', 'tags': [], 'project_id': 'f882620136c240ae897ce0c142b07437'}}
2025-07-31 12:51:31,832 - INFO - Created VN ctest-vn-25965994
2025-07-31 12:51:31,886 - DEBUG - VN ctest-vn-25965994 UUID is 767235fc-e757-48f6-b2fa-5cf52907f6e9
2025-07-31 12:51:32,177 - DEBUG - Response for create_network : {'network': {'id': '40ed048b-c793-41c7-bbce-c0a12cb6b070', 'name': 'ctest-vn-43438943', 'tenant_id': 'f882620136c240ae897ce0c142b07437', 'project_id': 'f882620136c240ae897ce0c142b07437', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-vn-43438943'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:51:32,352 - DEBUG - Response for create_subnet : {'subnet': {'id': '502061f1-2162-442d-93c7-edb78fa93f30', 'name': '', 'tenant_id': 'f882620136c240ae897ce0c142b07437', 'network_id': '40ed048b-c793-41c7-bbce-c0a12cb6b070', 'ip_version': 4, 'cidr': '20.157.251.64/26', 'allocation_pools': [{'start': '20.157.251.66', 'end': '20.157.251.126'}], 'gateway_ip': '20.157.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.157.251.66', 'tags': [], 'project_id': 'f882620136c240ae897ce0c142b07437'}}
2025-07-31 12:51:32,373 - INFO - Created VN ctest-vn-43438943
2025-07-31 12:51:32,426 - DEBUG - VN ctest-vn-43438943 UUID is 40ed048b-c793-41c7-bbce-c0a12cb6b070
2025-07-31 12:51:32,549 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-25965994, 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-28473246:ctest-vn-43438943, 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-07-31 12:51:32,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '767235fc-e757-48f6-b2fa-5cf52907f6e9', 'name': 'ctest-vn-25965994', 'tenant_id': 'f882620136c240ae897ce0c142b07437', 'project_id': 'f882620136c240ae897ce0c142b07437', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78ab3a1e-b53f-41f5-bf96-4d60eff7fe1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-vn-25965994'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-policy-allow-all-08489601']], 'subnet_ipam': [{'subnet_cidr': '84.31.101.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:51:33,099 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40ed048b-c793-41c7-bbce-c0a12cb6b070', 'name': 'ctest-vn-43438943', 'tenant_id': 'f882620136c240ae897ce0c142b07437', 'project_id': 'f882620136c240ae897ce0c142b07437', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['502061f1-2162-442d-93c7-edb78fa93f30'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-vn-43438943'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-policy-allow-all-08489601']], 'subnet_ipam': [{'subnet_cidr': '20.157.251.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 12:51:33,262 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 12:51:33,556 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 12:51:33,588 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d
2025-07-31 12:51:33,602 - DEBUG - Requesting: http://10.0.0.50:8082/project/f8826201-36c2-40ae-897c-e0c142b07437
2025-07-31 12:51:33,676 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/767235fc-e757-48f6-b2fa-5cf52907f6e9
2025-07-31 12:51:33,688 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/767235fc-e757-48f6-b2fa-5cf52907f6e9
2025-07-31 12:51:33,699 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/90db58f5-9f51-40aa-be09-17b2da4ab582
2025-07-31 12:51:33,706 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/90db58f5-9f51-40aa-be09-17b2da4ab582
2025-07-31 12:51:33,713 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b5ed5d2-5b95-4628-9196-3db18dc9c477
2025-07-31 12:51:33,720 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 12:51:33,720 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/767235fc-e757-48f6-b2fa-5cf52907f6e9
2025-07-31 12:51:33,730 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/90db58f5-9f51-40aa-be09-17b2da4ab582
2025-07-31 12:51:33,746 - INFO - Verified VN network id 11 for VN 767235fc-e757-48f6-b2fa-5cf52907f6e9
2025-07-31 12:51:33,746 - INFO - Verifications in API Server for VN ctest-vn-25965994 passed
2025-07-31 12:51:33,746 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/767235fc-e757-48f6-b2fa-5cf52907f6e9
2025-07-31 12:51:33,756 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/90db58f5-9f51-40aa-be09-17b2da4ab582
2025-07-31 12:51:33,764 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/90db58f5-9f51-40aa-be09-17b2da4ab582
2025-07-31 12:51:33,772 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b5ed5d2-5b95-4628-9196-3db18dc9c477
2025-07-31 12:51:33,784 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-25965994', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28473246', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8534943604149799158', 'uuid-lslong': '12896722690953967337'}, 'enable': 'true', 'created': '2025-07-31T12:51:31', 'last-modified': '2025-07-31T12:51:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954171'}
2025-07-31 12:51:33,790 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 12:51:33,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25965994 passed
2025-07-31 12:51:33,791 - DEBUG - ====Verifying policy data for ctest-vn-25965994 in API_Server ======
2025-07-31 12:51:33,791 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 12:51:33,797 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d
2025-07-31 12:51:33,809 - DEBUG - Requesting: http://10.0.0.50:8082/project/f8826201-36c2-40ae-897c-e0c142b07437
2025-07-31 12:51:33,886 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/767235fc-e757-48f6-b2fa-5cf52907f6e9
2025-07-31 12:51:33,897 - DEBUG - ==>Verifying data for policy with id: 6fbc60d5-9118-4d25-a21a-979a28c87c60, fqn: ['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-policy-allow-all-08489601']
2025-07-31 12:51:33,897 - INFO - VN ctest-vn-25965994 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 12:51:33,897 - DEBUG - Verifying the vn in opserver
2025-07-31 12:51:33,897 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-25965994 virtual network link through opserver 10.0.0.50
2025-07-31 12:51:33,897 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-31 12:51:34,188 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-31 12:51:34,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-25965994', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-25965994?flat'}
2025-07-31 12:51:34,271 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-25965994 is found in opserver
2025-07-31 12:51:34,283 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 12:51:34,288 - DEBUG - VRF ids for VN ctest-vn-25965994: {}
2025-07-31 12:51:34,288 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 12:51:34,294 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d
2025-07-31 12:51:34,307 - DEBUG - Requesting: http://10.0.0.50:8082/project/f8826201-36c2-40ae-897c-e0c142b07437
2025-07-31 12:51:34,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40ed048b-c793-41c7-bbce-c0a12cb6b070
2025-07-31 12:51:34,391 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40ed048b-c793-41c7-bbce-c0a12cb6b070
2025-07-31 12:51:34,404 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8fbca8e-a3bb-42ad-b8d3-e5ed82ee782e
2025-07-31 12:51:34,414 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8fbca8e-a3bb-42ad-b8d3-e5ed82ee782e
2025-07-31 12:51:34,422 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a1004f5-e15a-4acf-b138-5a00af7d49c5
2025-07-31 12:51:34,430 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 12:51:34,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40ed048b-c793-41c7-bbce-c0a12cb6b070
2025-07-31 12:51:34,440 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8fbca8e-a3bb-42ad-b8d3-e5ed82ee782e
2025-07-31 12:51:34,455 - INFO - Verified VN network id 12 for VN 40ed048b-c793-41c7-bbce-c0a12cb6b070
2025-07-31 12:51:34,456 - INFO - Verifications in API Server for VN ctest-vn-43438943 passed
2025-07-31 12:51:34,456 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40ed048b-c793-41c7-bbce-c0a12cb6b070
2025-07-31 12:51:34,468 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8fbca8e-a3bb-42ad-b8d3-e5ed82ee782e
2025-07-31 12:51:34,476 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8fbca8e-a3bb-42ad-b8d3-e5ed82ee782e
2025-07-31 12:51:34,485 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a1004f5-e15a-4acf-b138-5a00af7d49c5
2025-07-31 12:51:34,498 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-43438943', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28473246', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4678400586303095239', 'uuid-lslong': '13532965728767357040'}, 'enable': 'true', 'created': '2025-07-31T12:51:32', 'last-modified': '2025-07-31T12:51:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.419924'}
2025-07-31 12:51:34,505 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 12:51:34,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43438943 passed
2025-07-31 12:51:34,505 - DEBUG - ====Verifying policy data for ctest-vn-43438943 in API_Server ======
2025-07-31 12:51:34,505 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-31 12:51:34,511 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d
2025-07-31 12:51:34,525 - DEBUG - Requesting: http://10.0.0.50:8082/project/f8826201-36c2-40ae-897c-e0c142b07437
2025-07-31 12:51:34,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40ed048b-c793-41c7-bbce-c0a12cb6b070
2025-07-31 12:51:34,607 - DEBUG - ==>Verifying data for policy with id: 6fbc60d5-9118-4d25-a21a-979a28c87c60, fqn: ['default-domain', 'ctest-TestBasicPolicy-28473246', 'ctest-policy-allow-all-08489601']
2025-07-31 12:51:34,608 - INFO - VN ctest-vn-43438943 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 12:51:34,608 - DEBUG - Verifying the vn in opserver
2025-07-31 12:51:34,608 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-43438943 virtual network link through opserver 10.0.0.50
2025-07-31 12:51:34,608 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-31 12:51:34,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-43438943', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-43438943?flat'}
2025-07-31 12:51:34,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28473246:ctest-vn-43438943 is found in opserver
2025-07-31 12:51:34,635 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 12:51:34,641 - DEBUG - VRF ids for VN ctest-vn-43438943: {}
2025-07-31 12:51:34,701 - DEBUG - Services list from nova: [