2025-06-12 02:10:25,144 - INFO - Domain Default found not creating
2025-06-12 02:10:25,307 - INFO - Project ctest-TestBasicPolicy-39139605 not found, creating it
2025-06-12 02:10:25,767 - INFO - Created Project:ctest-TestBasicPolicy-39139605, ID : cb8eb1ff-c4aa-4c75-8935-77a801f0c6f4
2025-06-12 02:10:27,255 - INFO - ================================================================================
2025-06-12 02:10:27,255 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-12 02:10:27,255 - 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-06-12 02:10:27,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.201': '0'}} with
2025-06-12 02:10:27,511 - INFO - Initial checks done. Running the testcase now
2025-06-12 02:10:27,511 - INFO -
2025-06-12 02:10:28,065 - DEBUG - Response for create_network : {'network': {'id': '1ea2decf-a1be-4456-a296-0327dc3b4c7f', 'name': 'ctest-vn-83891470', 'tenant_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'project_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-vn-83891470'], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:10:28,283 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b29822c4-c94c-4197-bd4b-db089cabc522', 'name': '', 'tenant_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'network_id': '1ea2decf-a1be-4456-a296-0327dc3b4c7f', 'ip_version': 4, 'cidr': '201.208.190.192/26', 'allocation_pools': [{'start': '201.208.190.194', 'end': '201.208.190.254'}], 'gateway_ip': '201.208.190.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.208.190.194', 'tags': [], 'project_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4'}}
2025-06-12 02:10:28,305 - INFO - Created VN ctest-vn-83891470
2025-06-12 02:10:28,359 - DEBUG - VN ctest-vn-83891470 UUID is 1ea2decf-a1be-4456-a296-0327dc3b4c7f
2025-06-12 02:10:28,668 - DEBUG - Response for create_network : {'network': {'id': '1141176a-d39b-42bc-b9d5-6b4044a4d2e3', 'name': 'ctest-vn-57954894', 'tenant_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'project_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-vn-57954894'], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:10:28,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '013133fe-8c4e-48f9-b486-072ad94a76e9', 'name': '', 'tenant_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'network_id': '1141176a-d39b-42bc-b9d5-6b4044a4d2e3', 'ip_version': 4, 'cidr': '30.34.176.0/26', 'allocation_pools': [{'start': '30.34.176.2', 'end': '30.34.176.62'}], 'gateway_ip': '30.34.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.34.176.2', 'tags': [], 'project_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4'}}
2025-06-12 02:10:28,897 - INFO - Created VN ctest-vn-57954894
2025-06-12 02:10:28,951 - DEBUG - VN ctest-vn-57954894 UUID is 1141176a-d39b-42bc-b9d5-6b4044a4d2e3
2025-06-12 02:10:29,066 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-83891470, 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-39139605:ctest-vn-57954894, 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-06-12 02:10:29,375 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ea2decf-a1be-4456-a296-0327dc3b4c7f', 'name': 'ctest-vn-83891470', 'tenant_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'project_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b29822c4-c94c-4197-bd4b-db089cabc522'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-vn-83891470'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-policy-allow-all-23632750']], 'subnet_ipam': [{'subnet_cidr': '201.208.190.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:10:29,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1141176a-d39b-42bc-b9d5-6b4044a4d2e3', 'name': 'ctest-vn-57954894', 'tenant_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'project_id': 'cb8eb1ffc4aa4c75893577a801f0c6f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['013133fe-8c4e-48f9-b486-072ad94a76e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-vn-57954894'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-policy-allow-all-23632750']], 'subnet_ipam': [{'subnet_cidr': '30.34.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:10:29,795 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-06-12 02:10:30,094 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-06-12 02:10:30,124 - DEBUG - Requesting: http://10.0.0.23:8082/domain/902b3127-e1d0-4e61-9327-cdc697d3a8e6
2025-06-12 02:10:30,140 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb8eb1ff-c4aa-4c75-8935-77a801f0c6f4
2025-06-12 02:10:30,231 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1ea2decf-a1be-4456-a296-0327dc3b4c7f
2025-06-12 02:10:30,245 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1ea2decf-a1be-4456-a296-0327dc3b4c7f
2025-06-12 02:10:30,257 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/83405094-5cc7-4cc6-9e41-c6bd945e8f3f
2025-06-12 02:10:30,265 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/83405094-5cc7-4cc6-9e41-c6bd945e8f3f
2025-06-12 02:10:30,272 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9997424d-6e48-4987-8b92-861a17d274c0
2025-06-12 02:10:30,279 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-12 02:10:30,279 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1ea2decf-a1be-4456-a296-0327dc3b4c7f
2025-06-12 02:10:30,289 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/83405094-5cc7-4cc6-9e41-c6bd945e8f3f
2025-06-12 02:10:30,305 - INFO - Verified VN network id 8 for VN 1ea2decf-a1be-4456-a296-0327dc3b4c7f
2025-06-12 02:10:30,305 - INFO - Verifications in API Server for VN ctest-vn-83891470 passed
2025-06-12 02:10:30,305 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1ea2decf-a1be-4456-a296-0327dc3b4c7f
2025-06-12 02:10:30,316 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/83405094-5cc7-4cc6-9e41-c6bd945e8f3f
2025-06-12 02:10:30,324 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/83405094-5cc7-4cc6-9e41-c6bd945e8f3f
2025-06-12 02:10:30,332 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9997424d-6e48-4987-8b92-861a17d274c0
2025-06-12 02:10:30,345 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-83891470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39139605', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2207571750718162006', 'uuid-lslong': '11715554950384405631'}, 'enable': 'true', 'created': '2025-06-12T02:10:28', 'last-modified': '2025-06-12T02:10:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989619'}
2025-06-12 02:10:30,351 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-12 02:10:30,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83891470 passed
2025-06-12 02:10:30,352 - DEBUG - ====Verifying policy data for ctest-vn-83891470 in API_Server ======
2025-06-12 02:10:30,352 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-06-12 02:10:30,358 - DEBUG - Requesting: http://10.0.0.23:8082/domain/902b3127-e1d0-4e61-9327-cdc697d3a8e6
2025-06-12 02:10:30,370 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb8eb1ff-c4aa-4c75-8935-77a801f0c6f4
2025-06-12 02:10:30,445 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1ea2decf-a1be-4456-a296-0327dc3b4c7f
2025-06-12 02:10:30,455 - DEBUG - ==>Verifying data for policy with id: 1df777af-30bf-4d31-b483-e76bc01e169c, fqn: ['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-policy-allow-all-23632750']
2025-06-12 02:10:30,455 - INFO - VN ctest-vn-83891470 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-12 02:10:30,455 - DEBUG - Verifying the vn in opserver
2025-06-12 02:10:30,456 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-83891470 virtual network link through opserver 10.0.0.23
2025-06-12 02:10:30,456 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-06-12 02:10:30,748 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-06-12 02:10:30,809 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-83891470', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-83891470?flat'}
2025-06-12 02:10:30,809 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-83891470 is found in opserver
2025-06-12 02:10:30,820 - DEBUG - Do not have enough data to verify VN in agent
2025-06-12 02:10:30,825 - DEBUG - VRF ids for VN ctest-vn-83891470: {}
2025-06-12 02:10:30,826 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-06-12 02:10:30,833 - DEBUG - Requesting: http://10.0.0.23:8082/domain/902b3127-e1d0-4e61-9327-cdc697d3a8e6
2025-06-12 02:10:30,846 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb8eb1ff-c4aa-4c75-8935-77a801f0c6f4
2025-06-12 02:10:30,920 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1141176a-d39b-42bc-b9d5-6b4044a4d2e3
2025-06-12 02:10:30,933 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1141176a-d39b-42bc-b9d5-6b4044a4d2e3
2025-06-12 02:10:30,944 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/300ef70d-bfcb-471d-8ac1-35ac35797ad0
2025-06-12 02:10:30,951 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/300ef70d-bfcb-471d-8ac1-35ac35797ad0
2025-06-12 02:10:30,960 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5c7ee807-8bce-427d-8666-1f5243aaa48c
2025-06-12 02:10:30,968 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-12 02:10:30,968 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1141176a-d39b-42bc-b9d5-6b4044a4d2e3
2025-06-12 02:10:30,978 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/300ef70d-bfcb-471d-8ac1-35ac35797ad0
2025-06-12 02:10:30,995 - INFO - Verified VN network id 9 for VN 1141176a-d39b-42bc-b9d5-6b4044a4d2e3
2025-06-12 02:10:30,996 - INFO - Verifications in API Server for VN ctest-vn-57954894 passed
2025-06-12 02:10:30,996 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1141176a-d39b-42bc-b9d5-6b4044a4d2e3
2025-06-12 02:10:31,008 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/300ef70d-bfcb-471d-8ac1-35ac35797ad0
2025-06-12 02:10:31,018 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/300ef70d-bfcb-471d-8ac1-35ac35797ad0
2025-06-12 02:10:31,027 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/5c7ee807-8bce-427d-8666-1f5243aaa48c
2025-06-12 02:10:31,044 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-57954894', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39139605', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1243300719715107516', 'uuid-lslong': '13390726990829769443'}, 'enable': 'true', 'created': '2025-06-12T02:10:28', 'last-modified': '2025-06-12T02:10:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454543'}
2025-06-12 02:10:31,053 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-12 02:10:31,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57954894 passed
2025-06-12 02:10:31,053 - DEBUG - ====Verifying policy data for ctest-vn-57954894 in API_Server ======
2025-06-12 02:10:31,053 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-06-12 02:10:31,060 - DEBUG - Requesting: http://10.0.0.23:8082/domain/902b3127-e1d0-4e61-9327-cdc697d3a8e6
2025-06-12 02:10:31,073 - DEBUG - Requesting: http://10.0.0.23:8082/project/cb8eb1ff-c4aa-4c75-8935-77a801f0c6f4
2025-06-12 02:10:31,149 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/1141176a-d39b-42bc-b9d5-6b4044a4d2e3
2025-06-12 02:10:31,162 - DEBUG - ==>Verifying data for policy with id: 1df777af-30bf-4d31-b483-e76bc01e169c, fqn: ['default-domain', 'ctest-TestBasicPolicy-39139605', 'ctest-policy-allow-all-23632750']
2025-06-12 02:10:31,162 - INFO - VN ctest-vn-57954894 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-12 02:10:31,162 - DEBUG - Verifying the vn in opserver
2025-06-12 02:10:31,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-57954894 virtual network link through opserver 10.0.0.23
2025-06-12 02:10:31,162 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-06-12 02:10:31,177 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-57954894', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-57954894?flat'}
2025-06-12 02:10:31,177 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39139605:ctest-vn-57954894 is found in opserver
2025-06-12 02:10:31,192 - DEBUG - Do not have enough data to verify VN in agent
2025-06-12 02:10:31,199 - DEBUG - VRF ids for VN ctest-vn-57954894: {}
2025-06-12 02:10:31,261 - DEBUG - Services list from nova: [