2025-06-26 15:41:01,826 - INFO - Domain Default found not creating
2025-06-26 15:41:01,983 - INFO - Project ctest-TestBasicPolicy-82309777 not found, creating it
2025-06-26 15:41:02,479 - INFO - Created Project:ctest-TestBasicPolicy-82309777, ID : 7e032c93-a04e-486b-b2cf-9834371cb729
2025-06-26 15:41:03,927 - INFO - ================================================================================
2025-06-26 15:41:03,927 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 15:41:03,927 - 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-26 15:41:04,185 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-26 15:41:04,185 - INFO - Initial checks done. Running the testcase now
2025-06-26 15:41:04,185 - INFO -
2025-06-26 15:41:04,745 - DEBUG - Response for create_network : {'network': {'id': 'c235daa4-9013-407c-b23e-e603d9fa1268', 'name': 'ctest-vn-87795847', 'tenant_id': '7e032c93a04e486bb2cf9834371cb729', 'project_id': '7e032c93a04e486bb2cf9834371cb729', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-vn-87795847'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 15:41:04,978 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd887e6c-96ec-41b4-8307-3fb98a3c7735', 'name': '', 'tenant_id': '7e032c93a04e486bb2cf9834371cb729', 'network_id': 'c235daa4-9013-407c-b23e-e603d9fa1268', 'ip_version': 4, 'cidr': '150.67.1.0/26', 'allocation_pools': [{'start': '150.67.1.2', 'end': '150.67.1.62'}], 'gateway_ip': '150.67.1.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.67.1.2', 'tags': [], 'project_id': '7e032c93a04e486bb2cf9834371cb729'}}
2025-06-26 15:41:04,998 - INFO - Created VN ctest-vn-87795847
2025-06-26 15:41:05,050 - DEBUG - VN ctest-vn-87795847 UUID is c235daa4-9013-407c-b23e-e603d9fa1268
2025-06-26 15:41:05,356 - DEBUG - Response for create_network : {'network': {'id': '656ad907-90ea-41c7-8545-7b5a862c7806', 'name': 'ctest-vn-80617741', 'tenant_id': '7e032c93a04e486bb2cf9834371cb729', 'project_id': '7e032c93a04e486bb2cf9834371cb729', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-vn-80617741'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 15:41:05,550 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da9726fe-0779-4fd0-b5cf-5b53c3d8d0be', 'name': '', 'tenant_id': '7e032c93a04e486bb2cf9834371cb729', 'network_id': '656ad907-90ea-41c7-8545-7b5a862c7806', 'ip_version': 4, 'cidr': '64.61.214.0/26', 'allocation_pools': [{'start': '64.61.214.2', 'end': '64.61.214.62'}], 'gateway_ip': '64.61.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.61.214.2', 'tags': [], 'project_id': '7e032c93a04e486bb2cf9834371cb729'}}
2025-06-26 15:41:05,570 - INFO - Created VN ctest-vn-80617741
2025-06-26 15:41:05,622 - DEBUG - VN ctest-vn-80617741 UUID is 656ad907-90ea-41c7-8545-7b5a862c7806
2025-06-26 15:41:05,743 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-87795847, 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-82309777:ctest-vn-80617741, 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-26 15:41:06,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c235daa4-9013-407c-b23e-e603d9fa1268', 'name': 'ctest-vn-87795847', 'tenant_id': '7e032c93a04e486bb2cf9834371cb729', 'project_id': '7e032c93a04e486bb2cf9834371cb729', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd887e6c-96ec-41b4-8307-3fb98a3c7735'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-vn-87795847'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-policy-allow-all-52721417']], 'subnet_ipam': [{'subnet_cidr': '150.67.1.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 15:41:06,349 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '656ad907-90ea-41c7-8545-7b5a862c7806', 'name': 'ctest-vn-80617741', 'tenant_id': '7e032c93a04e486bb2cf9834371cb729', 'project_id': '7e032c93a04e486bb2cf9834371cb729', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da9726fe-0779-4fd0-b5cf-5b53c3d8d0be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-vn-80617741'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-policy-allow-all-52721417']], 'subnet_ipam': [{'subnet_cidr': '64.61.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 15:41:06,514 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 15:41:06,811 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 15:41:06,839 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99e43009-3e3c-4530-afc5-c9bbaaedde67
2025-06-26 15:41:06,853 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e032c93-a04e-486b-b2cf-9834371cb729
2025-06-26 15:41:06,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c235daa4-9013-407c-b23e-e603d9fa1268
2025-06-26 15:41:06,944 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c235daa4-9013-407c-b23e-e603d9fa1268
2025-06-26 15:41:06,955 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c9396a0d-d067-48af-a70a-5bb455f2ceac
2025-06-26 15:41:06,963 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c9396a0d-d067-48af-a70a-5bb455f2ceac
2025-06-26 15:41:06,971 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/781b4137-c675-47c7-b62b-b5316fb778a7
2025-06-26 15:41:06,978 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 15:41:06,978 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c235daa4-9013-407c-b23e-e603d9fa1268
2025-06-26 15:41:06,988 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c9396a0d-d067-48af-a70a-5bb455f2ceac
2025-06-26 15:41:07,006 - INFO - Verified VN network id 8 for VN c235daa4-9013-407c-b23e-e603d9fa1268
2025-06-26 15:41:07,006 - INFO - Verifications in API Server for VN ctest-vn-87795847 passed
2025-06-26 15:41:07,006 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c235daa4-9013-407c-b23e-e603d9fa1268
2025-06-26 15:41:07,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c9396a0d-d067-48af-a70a-5bb455f2ceac
2025-06-26 15:41:07,028 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c9396a0d-d067-48af-a70a-5bb455f2ceac
2025-06-26 15:41:07,038 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/781b4137-c675-47c7-b62b-b5316fb778a7
2025-06-26 15:41:07,053 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-87795847', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82309777', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13994331817450356860', 'uuid-lslong': '12843956091523568232'}, 'enable': 'true', 'created': '2025-06-26T15:41:04', 'last-modified': '2025-06-26T15:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019205'}
2025-06-26 15:41:07,061 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 15:41:07,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87795847 passed
2025-06-26 15:41:07,061 - DEBUG - ====Verifying policy data for ctest-vn-87795847 in API_Server ======
2025-06-26 15:41:07,061 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 15:41:07,068 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99e43009-3e3c-4530-afc5-c9bbaaedde67
2025-06-26 15:41:07,081 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e032c93-a04e-486b-b2cf-9834371cb729
2025-06-26 15:41:07,163 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c235daa4-9013-407c-b23e-e603d9fa1268
2025-06-26 15:41:07,175 - DEBUG - ==>Verifying data for policy with id: f22a74cd-65da-4031-ae9d-ff79ba3b836e, fqn: ['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-policy-allow-all-52721417']
2025-06-26 15:41:07,175 - INFO - VN ctest-vn-87795847 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 15:41:07,175 - DEBUG - Verifying the vn in opserver
2025-06-26 15:41:07,175 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-87795847 virtual network link through opserver 10.0.0.38
2025-06-26 15:41:07,176 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 15:41:07,470 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 15:41:07,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-87795847', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-87795847?flat'}
2025-06-26 15:41:07,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-87795847 is found in opserver
2025-06-26 15:41:07,543 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 15:41:07,548 - DEBUG - VRF ids for VN ctest-vn-87795847: {}
2025-06-26 15:41:07,548 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 15:41:07,555 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99e43009-3e3c-4530-afc5-c9bbaaedde67
2025-06-26 15:41:07,568 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e032c93-a04e-486b-b2cf-9834371cb729
2025-06-26 15:41:07,645 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/656ad907-90ea-41c7-8545-7b5a862c7806
2025-06-26 15:41:07,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/656ad907-90ea-41c7-8545-7b5a862c7806
2025-06-26 15:41:07,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d71e2cfd-e2b8-4c74-a697-b320fbcfa473
2025-06-26 15:41:07,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d71e2cfd-e2b8-4c74-a697-b320fbcfa473
2025-06-26 15:41:07,686 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/132b17d1-f518-4737-9c9a-8d714f15f11c
2025-06-26 15:41:07,693 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 15:41:07,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/656ad907-90ea-41c7-8545-7b5a862c7806
2025-06-26 15:41:07,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d71e2cfd-e2b8-4c74-a697-b320fbcfa473
2025-06-26 15:41:07,721 - INFO - Verified VN network id 9 for VN 656ad907-90ea-41c7-8545-7b5a862c7806
2025-06-26 15:41:07,721 - INFO - Verifications in API Server for VN ctest-vn-80617741 passed
2025-06-26 15:41:07,722 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/656ad907-90ea-41c7-8545-7b5a862c7806
2025-06-26 15:41:07,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d71e2cfd-e2b8-4c74-a697-b320fbcfa473
2025-06-26 15:41:07,740 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d71e2cfd-e2b8-4c74-a697-b320fbcfa473
2025-06-26 15:41:07,748 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/132b17d1-f518-4737-9c9a-8d714f15f11c
2025-06-26 15:41:07,761 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-80617741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82309777', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7307891971881320903', 'uuid-lslong': '9603217409165785094'}, 'enable': 'true', 'created': '2025-06-26T15:41:05', 'last-modified': '2025-06-26T15:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482251'}
2025-06-26 15:41:07,767 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 15:41:07,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80617741 passed
2025-06-26 15:41:07,768 - DEBUG - ====Verifying policy data for ctest-vn-80617741 in API_Server ======
2025-06-26 15:41:07,768 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 15:41:07,774 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99e43009-3e3c-4530-afc5-c9bbaaedde67
2025-06-26 15:41:07,788 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e032c93-a04e-486b-b2cf-9834371cb729
2025-06-26 15:41:07,865 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/656ad907-90ea-41c7-8545-7b5a862c7806
2025-06-26 15:41:07,876 - DEBUG - ==>Verifying data for policy with id: f22a74cd-65da-4031-ae9d-ff79ba3b836e, fqn: ['default-domain', 'ctest-TestBasicPolicy-82309777', 'ctest-policy-allow-all-52721417']
2025-06-26 15:41:07,876 - INFO - VN ctest-vn-80617741 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 15:41:07,876 - DEBUG - Verifying the vn in opserver
2025-06-26 15:41:07,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-80617741 virtual network link through opserver 10.0.0.38
2025-06-26 15:41:07,876 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 15:41:07,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-80617741', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-80617741?flat'}
2025-06-26 15:41:07,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82309777:ctest-vn-80617741 is found in opserver
2025-06-26 15:41:07,898 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 15:41:07,903 - DEBUG - VRF ids for VN ctest-vn-80617741: {}
2025-06-26 15:41:07,962 - DEBUG - Services list from nova: [