2025-03-26 02:51:18,151 - INFO - Domain Default found not creating
2025-03-26 02:51:18,295 - INFO - Project ctest-TestBasicPolicy-23661701 not found, creating it
2025-03-26 02:51:18,733 - INFO - Created Project:ctest-TestBasicPolicy-23661701, ID : d1bd6dd0-ce82-4518-bbcb-f1331ab66167
2025-03-26 02:51:20,142 - INFO - ================================================================================
2025-03-26 02:51:20,143 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-26 02:51:20,144 - 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-03-26 02:51:20,398 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.10': '0'}} with
2025-03-26 02:51:20,398 - INFO - Initial checks done. Running the testcase now
2025-03-26 02:51:20,398 - INFO -
2025-03-26 02:51:20,965 - DEBUG - Response for create_network : {'network': {'id': '91f0d025-6cca-4fca-8a6e-82bedb4e5533', 'name': 'ctest-vn-92410152', 'tenant_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'project_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-vn-92410152'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 02:51:21,123 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ded46a83-d774-499b-bb67-0a703b8a1f39', 'name': '', 'tenant_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'network_id': '91f0d025-6cca-4fca-8a6e-82bedb4e5533', 'ip_version': 4, 'cidr': '129.166.31.128/26', 'allocation_pools': [{'start': '129.166.31.130', 'end': '129.166.31.190'}], 'gateway_ip': '129.166.31.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.166.31.130', 'tags': [], 'project_id': 'd1bd6dd0ce824518bbcbf1331ab66167'}}
2025-03-26 02:51:21,141 - INFO - Created VN ctest-vn-92410152
2025-03-26 02:51:21,193 - DEBUG - VN ctest-vn-92410152 UUID is 91f0d025-6cca-4fca-8a6e-82bedb4e5533
2025-03-26 02:51:21,509 - DEBUG - Response for create_network : {'network': {'id': '6c7286ba-98ea-48ce-b006-99522ac3d79d', 'name': 'ctest-vn-58147433', 'tenant_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'project_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-vn-58147433'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 02:51:21,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '59653185-8137-4c98-9f6d-6dbea0af2994', 'name': '', 'tenant_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'network_id': '6c7286ba-98ea-48ce-b006-99522ac3d79d', 'ip_version': 4, 'cidr': '220.159.108.128/26', 'allocation_pools': [{'start': '220.159.108.130', 'end': '220.159.108.190'}], 'gateway_ip': '220.159.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.159.108.130', 'tags': [], 'project_id': 'd1bd6dd0ce824518bbcbf1331ab66167'}}
2025-03-26 02:51:21,733 - INFO - Created VN ctest-vn-58147433
2025-03-26 02:51:21,785 - DEBUG - VN ctest-vn-58147433 UUID is 6c7286ba-98ea-48ce-b006-99522ac3d79d
2025-03-26 02:51:21,898 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-92410152, 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-23661701:ctest-vn-58147433, 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-03-26 02:51:22,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91f0d025-6cca-4fca-8a6e-82bedb4e5533', 'name': 'ctest-vn-92410152', 'tenant_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'project_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ded46a83-d774-499b-bb67-0a703b8a1f39'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-vn-92410152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-policy-allow-all-80695796']], 'subnet_ipam': [{'subnet_cidr': '129.166.31.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 02:51:22,466 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c7286ba-98ea-48ce-b006-99522ac3d79d', 'name': 'ctest-vn-58147433', 'tenant_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'project_id': 'd1bd6dd0ce824518bbcbf1331ab66167', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59653185-8137-4c98-9f6d-6dbea0af2994'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-vn-58147433'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-policy-allow-all-80695796']], 'subnet_ipam': [{'subnet_cidr': '220.159.108.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 02:51:22,625 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-26 02:51:22,929 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-26 02:51:22,967 - DEBUG - Requesting: http://10.0.0.17:8082/domain/dbd48a4e-dfa8-486c-8753-2ed33ecb3bae
2025-03-26 02:51:22,982 - DEBUG - Requesting: http://10.0.0.17:8082/project/d1bd6dd0-ce82-4518-bbcb-f1331ab66167
2025-03-26 02:51:23,058 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/91f0d025-6cca-4fca-8a6e-82bedb4e5533
2025-03-26 02:51:23,069 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/91f0d025-6cca-4fca-8a6e-82bedb4e5533
2025-03-26 02:51:23,079 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f05b759d-b964-42bd-97f9-63bfd5f1cc8a
2025-03-26 02:51:23,086 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f05b759d-b964-42bd-97f9-63bfd5f1cc8a
2025-03-26 02:51:23,093 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/e554fbc2-d614-4390-847b-101716f17d86
2025-03-26 02:51:23,100 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 02:51:23,100 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/91f0d025-6cca-4fca-8a6e-82bedb4e5533
2025-03-26 02:51:23,110 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f05b759d-b964-42bd-97f9-63bfd5f1cc8a
2025-03-26 02:51:23,126 - INFO - Verified VN network id 9 for VN 91f0d025-6cca-4fca-8a6e-82bedb4e5533
2025-03-26 02:51:23,126 - INFO - Verifications in API Server for VN ctest-vn-92410152 passed
2025-03-26 02:51:23,126 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/91f0d025-6cca-4fca-8a6e-82bedb4e5533
2025-03-26 02:51:23,136 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f05b759d-b964-42bd-97f9-63bfd5f1cc8a
2025-03-26 02:51:23,147 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f05b759d-b964-42bd-97f9-63bfd5f1cc8a
2025-03-26 02:51:23,160 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/e554fbc2-d614-4390-847b-101716f17d86
2025-03-26 02:51:23,172 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-92410152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23661701', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10516133989067673546', 'uuid-lslong': '9975053980906968371'}, 'enable': 'true', 'created': '2025-03-26T02:51:20', 'last-modified': '2025-03-26T02:51:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012694'}
2025-03-26 02:51:23,178 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 02:51:23,179 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92410152 passed
2025-03-26 02:51:23,179 - DEBUG - ====Verifying policy data for ctest-vn-92410152 in API_Server ======
2025-03-26 02:51:23,179 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-26 02:51:23,184 - DEBUG - Requesting: http://10.0.0.17:8082/domain/dbd48a4e-dfa8-486c-8753-2ed33ecb3bae
2025-03-26 02:51:23,195 - DEBUG - Requesting: http://10.0.0.17:8082/project/d1bd6dd0-ce82-4518-bbcb-f1331ab66167
2025-03-26 02:51:23,269 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/91f0d025-6cca-4fca-8a6e-82bedb4e5533
2025-03-26 02:51:23,279 - DEBUG - ==>Verifying data for policy with id: 5793bb07-c302-46d0-8c13-7eca4ad3fa4b, fqn: ['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-policy-allow-all-80695796']
2025-03-26 02:51:23,279 - INFO - VN ctest-vn-92410152 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 02:51:23,279 - DEBUG - Verifying the vn in opserver
2025-03-26 02:51:23,279 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-92410152 virtual network link through opserver 10.0.0.17
2025-03-26 02:51:23,279 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-26 02:51:23,577 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-26 02:51:23,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-92410152', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-92410152?flat'}
2025-03-26 02:51:23,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-92410152 is found in opserver
2025-03-26 02:51:23,646 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 02:51:23,651 - DEBUG - VRF ids for VN ctest-vn-92410152: {}
2025-03-26 02:51:23,651 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-26 02:51:23,657 - DEBUG - Requesting: http://10.0.0.17:8082/domain/dbd48a4e-dfa8-486c-8753-2ed33ecb3bae
2025-03-26 02:51:23,668 - DEBUG - Requesting: http://10.0.0.17:8082/project/d1bd6dd0-ce82-4518-bbcb-f1331ab66167
2025-03-26 02:51:23,746 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6c7286ba-98ea-48ce-b006-99522ac3d79d
2025-03-26 02:51:23,760 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6c7286ba-98ea-48ce-b006-99522ac3d79d
2025-03-26 02:51:23,772 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b16aecf9-7093-4061-99c0-1b6f6c9034f0
2025-03-26 02:51:23,781 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b16aecf9-7093-4061-99c0-1b6f6c9034f0
2025-03-26 02:51:23,792 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a8f6c59e-4027-47c8-a8e1-9aac78083f42
2025-03-26 02:51:23,801 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 02:51:23,801 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6c7286ba-98ea-48ce-b006-99522ac3d79d
2025-03-26 02:51:23,813 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b16aecf9-7093-4061-99c0-1b6f6c9034f0
2025-03-26 02:51:23,830 - INFO - Verified VN network id 10 for VN 6c7286ba-98ea-48ce-b006-99522ac3d79d
2025-03-26 02:51:23,830 - INFO - Verifications in API Server for VN ctest-vn-58147433 passed
2025-03-26 02:51:23,830 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6c7286ba-98ea-48ce-b006-99522ac3d79d
2025-03-26 02:51:23,842 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b16aecf9-7093-4061-99c0-1b6f6c9034f0
2025-03-26 02:51:23,849 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b16aecf9-7093-4061-99c0-1b6f6c9034f0
2025-03-26 02:51:23,857 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a8f6c59e-4027-47c8-a8e1-9aac78083f42
2025-03-26 02:51:23,873 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-58147433', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23661701', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7814456439428761806', 'uuid-lslong': '12683993978719426461'}, 'enable': 'true', 'created': '2025-03-26T02:51:21', 'last-modified': '2025-03-26T02:51:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.471725'}
2025-03-26 02:51:23,879 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 02:51:23,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58147433 passed
2025-03-26 02:51:23,879 - DEBUG - ====Verifying policy data for ctest-vn-58147433 in API_Server ======
2025-03-26 02:51:23,879 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-26 02:51:23,885 - DEBUG - Requesting: http://10.0.0.17:8082/domain/dbd48a4e-dfa8-486c-8753-2ed33ecb3bae
2025-03-26 02:51:23,898 - DEBUG - Requesting: http://10.0.0.17:8082/project/d1bd6dd0-ce82-4518-bbcb-f1331ab66167
2025-03-26 02:51:23,986 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/6c7286ba-98ea-48ce-b006-99522ac3d79d
2025-03-26 02:51:23,996 - DEBUG - ==>Verifying data for policy with id: 5793bb07-c302-46d0-8c13-7eca4ad3fa4b, fqn: ['default-domain', 'ctest-TestBasicPolicy-23661701', 'ctest-policy-allow-all-80695796']
2025-03-26 02:51:23,996 - INFO - VN ctest-vn-58147433 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 02:51:23,996 - DEBUG - Verifying the vn in opserver
2025-03-26 02:51:23,996 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-58147433 virtual network link through opserver 10.0.0.17
2025-03-26 02:51:23,997 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-26 02:51:24,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-58147433', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-58147433?flat'}
2025-03-26 02:51:24,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23661701:ctest-vn-58147433 is found in opserver
2025-03-26 02:51:24,023 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 02:51:24,029 - DEBUG - VRF ids for VN ctest-vn-58147433: {}
2025-03-26 02:51:24,086 - DEBUG - Services list from nova: [