2025-05-29 15:23:47,052 - INFO - Domain Default found not creating
2025-05-29 15:23:47,190 - INFO - Project ctest-TestBasicPolicy-15981994 not found, creating it
2025-05-29 15:23:47,646 - INFO - Created Project:ctest-TestBasicPolicy-15981994, ID : 8552da56-a2a9-4450-bf93-01511887a142
2025-05-29 15:23:49,181 - INFO - ================================================================================
2025-05-29 15:23:49,182 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-29 15:23:49,182 - 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-05-29 15:23:49,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-29 15:23:49,438 - INFO - Initial checks done. Running the testcase now
2025-05-29 15:23:49,438 - INFO -
2025-05-29 15:23:50,032 - DEBUG - Response for create_network : {'network': {'id': 'e2d81e76-4b54-4412-8bee-dd8dfe6878db', 'name': 'ctest-vn-20322880', 'tenant_id': '8552da56a2a94450bf9301511887a142', 'project_id': '8552da56a2a94450bf9301511887a142', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-vn-20322880'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 15:23:50,185 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e03b1d5e-55b1-4b5d-beff-2c250950063e', 'name': '', 'tenant_id': '8552da56a2a94450bf9301511887a142', 'network_id': 'e2d81e76-4b54-4412-8bee-dd8dfe6878db', 'ip_version': 4, 'cidr': '119.68.149.192/26', 'allocation_pools': [{'start': '119.68.149.194', 'end': '119.68.149.254'}], 'gateway_ip': '119.68.149.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.68.149.194', 'tags': [], 'project_id': '8552da56a2a94450bf9301511887a142'}}
2025-05-29 15:23:50,201 - INFO - Created VN ctest-vn-20322880
2025-05-29 15:23:50,259 - DEBUG - VN ctest-vn-20322880 UUID is e2d81e76-4b54-4412-8bee-dd8dfe6878db
2025-05-29 15:23:50,578 - DEBUG - Response for create_network : {'network': {'id': '1953bc48-9675-45a2-aa09-7e85f5217564', 'name': 'ctest-vn-48439620', 'tenant_id': '8552da56a2a94450bf9301511887a142', 'project_id': '8552da56a2a94450bf9301511887a142', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-vn-48439620'], 'port_security_enabled': True, 'description': ''}}
2025-05-29 15:23:50,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bf628d8-61c5-49e0-b281-4fa4e732b3fe', 'name': '', 'tenant_id': '8552da56a2a94450bf9301511887a142', 'network_id': '1953bc48-9675-45a2-aa09-7e85f5217564', 'ip_version': 4, 'cidr': '94.101.76.192/26', 'allocation_pools': [{'start': '94.101.76.194', 'end': '94.101.76.254'}], 'gateway_ip': '94.101.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.101.76.194', 'tags': [], 'project_id': '8552da56a2a94450bf9301511887a142'}}
2025-05-29 15:23:50,770 - INFO - Created VN ctest-vn-48439620
2025-05-29 15:23:50,823 - DEBUG - VN ctest-vn-48439620 UUID is 1953bc48-9675-45a2-aa09-7e85f5217564
2025-05-29 15:23:50,975 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-20322880, 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-15981994:ctest-vn-48439620, 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-05-29 15:23:51,266 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2d81e76-4b54-4412-8bee-dd8dfe6878db', 'name': 'ctest-vn-20322880', 'tenant_id': '8552da56a2a94450bf9301511887a142', 'project_id': '8552da56a2a94450bf9301511887a142', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e03b1d5e-55b1-4b5d-beff-2c250950063e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-vn-20322880'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-policy-allow-all-03502649']], 'subnet_ipam': [{'subnet_cidr': '119.68.149.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 15:23:51,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1953bc48-9675-45a2-aa09-7e85f5217564', 'name': 'ctest-vn-48439620', 'tenant_id': '8552da56a2a94450bf9301511887a142', 'project_id': '8552da56a2a94450bf9301511887a142', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bf628d8-61c5-49e0-b281-4fa4e732b3fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-vn-48439620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-policy-allow-all-03502649']], 'subnet_ipam': [{'subnet_cidr': '94.101.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-29 15:23:51,711 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 15:23:52,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 15:23:52,075 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc7f1f1e-11cf-42aa-a3b0-9b10c93c0a8d
2025-05-29 15:23:52,090 - DEBUG - Requesting: http://10.0.0.38:8082/project/8552da56-a2a9-4450-bf93-01511887a142
2025-05-29 15:23:52,165 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e2d81e76-4b54-4412-8bee-dd8dfe6878db
2025-05-29 15:23:52,176 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e2d81e76-4b54-4412-8bee-dd8dfe6878db
2025-05-29 15:23:52,186 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b0283c6-1b1c-4934-9b45-1e75ed81a0ae
2025-05-29 15:23:52,193 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b0283c6-1b1c-4934-9b45-1e75ed81a0ae
2025-05-29 15:23:52,200 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/24b4bb83-983f-47a3-bac9-1e9f33037715
2025-05-29 15:23:52,206 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 15:23:52,206 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e2d81e76-4b54-4412-8bee-dd8dfe6878db
2025-05-29 15:23:52,215 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b0283c6-1b1c-4934-9b45-1e75ed81a0ae
2025-05-29 15:23:52,228 - INFO - Verified VN network id 8 for VN e2d81e76-4b54-4412-8bee-dd8dfe6878db
2025-05-29 15:23:52,228 - INFO - Verifications in API Server for VN ctest-vn-20322880 passed
2025-05-29 15:23:52,229 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e2d81e76-4b54-4412-8bee-dd8dfe6878db
2025-05-29 15:23:52,238 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b0283c6-1b1c-4934-9b45-1e75ed81a0ae
2025-05-29 15:23:52,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0b0283c6-1b1c-4934-9b45-1e75ed81a0ae
2025-05-29 15:23:52,251 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/24b4bb83-983f-47a3-bac9-1e9f33037715
2025-05-29 15:23:52,263 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-20322880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15981994', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16345848340960003090', 'uuid-lslong': '10083240217657506011'}, 'enable': 'true', 'created': '2025-05-29T15:23:50', 'last-modified': '2025-05-29T15:23:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012050'}
2025-05-29 15:23:52,269 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-29 15:23:52,269 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20322880 passed
2025-05-29 15:23:52,269 - DEBUG - ====Verifying policy data for ctest-vn-20322880 in API_Server ======
2025-05-29 15:23:52,270 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 15:23:52,275 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc7f1f1e-11cf-42aa-a3b0-9b10c93c0a8d
2025-05-29 15:23:52,286 - DEBUG - Requesting: http://10.0.0.38:8082/project/8552da56-a2a9-4450-bf93-01511887a142
2025-05-29 15:23:52,363 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e2d81e76-4b54-4412-8bee-dd8dfe6878db
2025-05-29 15:23:52,373 - DEBUG - ==>Verifying data for policy with id: 1aed0adc-4eba-4e11-916a-282cd67a0cf1, fqn: ['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-policy-allow-all-03502649']
2025-05-29 15:23:52,373 - INFO - VN ctest-vn-20322880 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 15:23:52,373 - DEBUG - Verifying the vn in opserver
2025-05-29 15:23:52,373 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-20322880 virtual network link through opserver 10.0.0.38
2025-05-29 15:23:52,374 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 15:23:52,703 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 15:23:52,755 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-20322880', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-20322880?flat'}
2025-05-29 15:23:52,755 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-20322880 is found in opserver
2025-05-29 15:23:52,767 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 15:23:52,772 - DEBUG - VRF ids for VN ctest-vn-20322880: {}
2025-05-29 15:23:52,772 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 15:23:52,777 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc7f1f1e-11cf-42aa-a3b0-9b10c93c0a8d
2025-05-29 15:23:52,789 - DEBUG - Requesting: http://10.0.0.38:8082/project/8552da56-a2a9-4450-bf93-01511887a142
2025-05-29 15:23:52,861 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1953bc48-9675-45a2-aa09-7e85f5217564
2025-05-29 15:23:52,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1953bc48-9675-45a2-aa09-7e85f5217564
2025-05-29 15:23:52,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82f64f11-1f15-4c91-8fe4-35c29152a252
2025-05-29 15:23:52,892 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82f64f11-1f15-4c91-8fe4-35c29152a252
2025-05-29 15:23:52,899 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44e54465-cc81-45fb-a2fc-68ec6fc53f34
2025-05-29 15:23:52,905 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 15:23:52,905 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1953bc48-9675-45a2-aa09-7e85f5217564
2025-05-29 15:23:52,915 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82f64f11-1f15-4c91-8fe4-35c29152a252
2025-05-29 15:23:52,928 - INFO - Verified VN network id 9 for VN 1953bc48-9675-45a2-aa09-7e85f5217564
2025-05-29 15:23:52,928 - INFO - Verifications in API Server for VN ctest-vn-48439620 passed
2025-05-29 15:23:52,928 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1953bc48-9675-45a2-aa09-7e85f5217564
2025-05-29 15:23:52,937 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82f64f11-1f15-4c91-8fe4-35c29152a252
2025-05-29 15:23:52,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82f64f11-1f15-4c91-8fe4-35c29152a252
2025-05-29 15:23:52,951 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44e54465-cc81-45fb-a2fc-68ec6fc53f34
2025-05-29 15:23:52,962 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-48439620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15981994', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1825009293963117986', 'uuid-lslong': '12252463375046505828'}, 'enable': 'true', 'created': '2025-05-29T15:23:50', 'last-modified': '2025-05-29T15:23:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.471432'}
2025-05-29 15:23:52,969 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-29 15:23:52,969 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48439620 passed
2025-05-29 15:23:52,969 - DEBUG - ====Verifying policy data for ctest-vn-48439620 in API_Server ======
2025-05-29 15:23:52,970 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-29 15:23:52,975 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc7f1f1e-11cf-42aa-a3b0-9b10c93c0a8d
2025-05-29 15:23:52,986 - DEBUG - Requesting: http://10.0.0.38:8082/project/8552da56-a2a9-4450-bf93-01511887a142
2025-05-29 15:23:53,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1953bc48-9675-45a2-aa09-7e85f5217564
2025-05-29 15:23:53,071 - DEBUG - ==>Verifying data for policy with id: 1aed0adc-4eba-4e11-916a-282cd67a0cf1, fqn: ['default-domain', 'ctest-TestBasicPolicy-15981994', 'ctest-policy-allow-all-03502649']
2025-05-29 15:23:53,071 - INFO - VN ctest-vn-48439620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-29 15:23:53,071 - DEBUG - Verifying the vn in opserver
2025-05-29 15:23:53,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-48439620 virtual network link through opserver 10.0.0.38
2025-05-29 15:23:53,071 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-29 15:23:53,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-48439620', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-48439620?flat'}
2025-05-29 15:23:53,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15981994:ctest-vn-48439620 is found in opserver
2025-05-29 15:23:53,092 - DEBUG - Do not have enough data to verify VN in agent
2025-05-29 15:23:53,100 - DEBUG - VRF ids for VN ctest-vn-48439620: {}
2025-05-29 15:23:53,166 - DEBUG - Services list from nova: [