2025-06-10 21:46:50,825 - INFO - Domain Default found not creating
2025-06-10 21:46:50,979 - INFO - Project ctest-TestBasicPolicy-91919774 not found, creating it
2025-06-10 21:46:51,462 - INFO - Created Project:ctest-TestBasicPolicy-91919774, ID : 3f5f7d5d-5802-42a5-9316-d8a14dc48205
2025-06-10 21:46:52,960 - INFO - ================================================================================
2025-06-10 21:46:52,960 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 21:46:52,960 - 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-10 21:46:53,224 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-06-10 21:46:53,225 - INFO - Initial checks done. Running the testcase now
2025-06-10 21:46:53,225 - INFO -
2025-06-10 21:46:53,799 - DEBUG - Response for create_network : {'network': {'id': '21981a0d-87c2-421b-8322-51c7344fb639', 'name': 'ctest-vn-05183995', 'tenant_id': '3f5f7d5d580242a59316d8a14dc48205', 'project_id': '3f5f7d5d580242a59316d8a14dc48205', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-vn-05183995'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:46:53,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ea344e8-fec3-4239-8bf1-1584e956aba9', 'name': '', 'tenant_id': '3f5f7d5d580242a59316d8a14dc48205', 'network_id': '21981a0d-87c2-421b-8322-51c7344fb639', 'ip_version': 4, 'cidr': '215.39.69.64/26', 'allocation_pools': [{'start': '215.39.69.66', 'end': '215.39.69.126'}], 'gateway_ip': '215.39.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.39.69.66', 'tags': [], 'project_id': '3f5f7d5d580242a59316d8a14dc48205'}}
2025-06-10 21:46:53,991 - INFO - Created VN ctest-vn-05183995
2025-06-10 21:46:54,045 - DEBUG - VN ctest-vn-05183995 UUID is 21981a0d-87c2-421b-8322-51c7344fb639
2025-06-10 21:46:54,360 - DEBUG - Response for create_network : {'network': {'id': '4945f687-a28d-4878-8970-2bf917c99413', 'name': 'ctest-vn-91418121', 'tenant_id': '3f5f7d5d580242a59316d8a14dc48205', 'project_id': '3f5f7d5d580242a59316d8a14dc48205', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-vn-91418121'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:46:54,529 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f953139-cc69-49e6-9ff5-b39eb53c7b12', 'name': '', 'tenant_id': '3f5f7d5d580242a59316d8a14dc48205', 'network_id': '4945f687-a28d-4878-8970-2bf917c99413', 'ip_version': 4, 'cidr': '215.221.81.64/26', 'allocation_pools': [{'start': '215.221.81.66', 'end': '215.221.81.126'}], 'gateway_ip': '215.221.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.221.81.66', 'tags': [], 'project_id': '3f5f7d5d580242a59316d8a14dc48205'}}
2025-06-10 21:46:54,548 - INFO - Created VN ctest-vn-91418121
2025-06-10 21:46:54,605 - DEBUG - VN ctest-vn-91418121 UUID is 4945f687-a28d-4878-8970-2bf917c99413
2025-06-10 21:46:54,721 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-05183995, 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-91919774:ctest-vn-91418121, 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-10 21:46:55,044 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21981a0d-87c2-421b-8322-51c7344fb639', 'name': 'ctest-vn-05183995', 'tenant_id': '3f5f7d5d580242a59316d8a14dc48205', 'project_id': '3f5f7d5d580242a59316d8a14dc48205', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ea344e8-fec3-4239-8bf1-1584e956aba9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-vn-05183995'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-policy-allow-all-44883503']], 'subnet_ipam': [{'subnet_cidr': '215.39.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:46:55,364 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4945f687-a28d-4878-8970-2bf917c99413', 'name': 'ctest-vn-91418121', 'tenant_id': '3f5f7d5d580242a59316d8a14dc48205', 'project_id': '3f5f7d5d580242a59316d8a14dc48205', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f953139-cc69-49e6-9ff5-b39eb53c7b12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-vn-91418121'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-policy-allow-all-44883503']], 'subnet_ipam': [{'subnet_cidr': '215.221.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:46:55,545 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 21:46:55,841 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 21:46:55,873 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15a44690-2732-4f7a-aaf8-956164272395
2025-06-10 21:46:55,888 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f5f7d5d-5802-42a5-9316-d8a14dc48205
2025-06-10 21:46:55,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/21981a0d-87c2-421b-8322-51c7344fb639
2025-06-10 21:46:55,983 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/21981a0d-87c2-421b-8322-51c7344fb639
2025-06-10 21:46:55,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6515051f-9d6f-4c6b-91a3-42216e9a2174
2025-06-10 21:46:56,006 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6515051f-9d6f-4c6b-91a3-42216e9a2174
2025-06-10 21:46:56,014 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bc497c52-47b1-410f-a548-b4e683ff7f5c
2025-06-10 21:46:56,021 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 21:46:56,021 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/21981a0d-87c2-421b-8322-51c7344fb639
2025-06-10 21:46:56,034 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6515051f-9d6f-4c6b-91a3-42216e9a2174
2025-06-10 21:46:56,050 - INFO - Verified VN network id 8 for VN 21981a0d-87c2-421b-8322-51c7344fb639
2025-06-10 21:46:56,050 - INFO - Verifications in API Server for VN ctest-vn-05183995 passed
2025-06-10 21:46:56,050 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/21981a0d-87c2-421b-8322-51c7344fb639
2025-06-10 21:46:56,060 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6515051f-9d6f-4c6b-91a3-42216e9a2174
2025-06-10 21:46:56,068 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6515051f-9d6f-4c6b-91a3-42216e9a2174
2025-06-10 21:46:56,077 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bc497c52-47b1-410f-a548-b4e683ff7f5c
2025-06-10 21:46:56,090 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-05183995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91919774', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2420713445126193691', 'uuid-lslong': '9449204884194702905'}, 'enable': 'true', 'created': '2025-06-10T21:46:53', 'last-modified': '2025-06-10T21:46:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072684'}
2025-06-10 21:46:56,097 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 21:46:56,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05183995 passed
2025-06-10 21:46:56,098 - DEBUG - ====Verifying policy data for ctest-vn-05183995 in API_Server ======
2025-06-10 21:46:56,098 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 21:46:56,105 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15a44690-2732-4f7a-aaf8-956164272395
2025-06-10 21:46:56,118 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f5f7d5d-5802-42a5-9316-d8a14dc48205
2025-06-10 21:46:56,193 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/21981a0d-87c2-421b-8322-51c7344fb639
2025-06-10 21:46:56,204 - DEBUG - ==>Verifying data for policy with id: 0922c797-f110-45cb-bbe4-9f39c8bcb4a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-policy-allow-all-44883503']
2025-06-10 21:46:56,204 - INFO - VN ctest-vn-05183995 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 21:46:56,204 - DEBUG - Verifying the vn in opserver
2025-06-10 21:46:56,204 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-05183995 virtual network link through opserver 10.0.0.38
2025-06-10 21:46:56,204 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 21:46:56,502 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 21:46:56,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-05183995', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-05183995?flat'}
2025-06-10 21:46:56,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-05183995 is found in opserver
2025-06-10 21:46:56,580 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 21:46:56,587 - DEBUG - VRF ids for VN ctest-vn-05183995: {}
2025-06-10 21:46:56,587 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 21:46:56,595 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15a44690-2732-4f7a-aaf8-956164272395
2025-06-10 21:46:56,608 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f5f7d5d-5802-42a5-9316-d8a14dc48205
2025-06-10 21:46:56,685 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4945f687-a28d-4878-8970-2bf917c99413
2025-06-10 21:46:56,700 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4945f687-a28d-4878-8970-2bf917c99413
2025-06-10 21:46:56,711 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5d349b-3d11-4f45-90cc-c7e10409c4da
2025-06-10 21:46:56,721 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5d349b-3d11-4f45-90cc-c7e10409c4da
2025-06-10 21:46:56,731 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3fc75ca8-8145-4abf-88fa-1b16c6f5dd89
2025-06-10 21:46:56,739 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 21:46:56,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4945f687-a28d-4878-8970-2bf917c99413
2025-06-10 21:46:56,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5d349b-3d11-4f45-90cc-c7e10409c4da
2025-06-10 21:46:56,770 - INFO - Verified VN network id 9 for VN 4945f687-a28d-4878-8970-2bf917c99413
2025-06-10 21:46:56,770 - INFO - Verifications in API Server for VN ctest-vn-91418121 passed
2025-06-10 21:46:56,770 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4945f687-a28d-4878-8970-2bf917c99413
2025-06-10 21:46:56,781 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5d349b-3d11-4f45-90cc-c7e10409c4da
2025-06-10 21:46:56,788 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af5d349b-3d11-4f45-90cc-c7e10409c4da
2025-06-10 21:46:56,798 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3fc75ca8-8145-4abf-88fa-1b16c6f5dd89
2025-06-10 21:46:56,814 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-91418121', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91919774', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5279897200569960568', 'uuid-lslong': '9903463929433658387'}, 'enable': 'true', 'created': '2025-06-10T21:46:54', 'last-modified': '2025-06-10T21:46:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478631'}
2025-06-10 21:46:56,822 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 21:46:56,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91418121 passed
2025-06-10 21:46:56,823 - DEBUG - ====Verifying policy data for ctest-vn-91418121 in API_Server ======
2025-06-10 21:46:56,823 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 21:46:56,831 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15a44690-2732-4f7a-aaf8-956164272395
2025-06-10 21:46:56,844 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f5f7d5d-5802-42a5-9316-d8a14dc48205
2025-06-10 21:46:56,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4945f687-a28d-4878-8970-2bf917c99413
2025-06-10 21:46:56,933 - DEBUG - ==>Verifying data for policy with id: 0922c797-f110-45cb-bbe4-9f39c8bcb4a1, fqn: ['default-domain', 'ctest-TestBasicPolicy-91919774', 'ctest-policy-allow-all-44883503']
2025-06-10 21:46:56,933 - INFO - VN ctest-vn-91418121 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 21:46:56,933 - DEBUG - Verifying the vn in opserver
2025-06-10 21:46:56,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-91418121 virtual network link through opserver 10.0.0.38
2025-06-10 21:46:56,934 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 21:46:56,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-91418121', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-91418121?flat'}
2025-06-10 21:46:56,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91919774:ctest-vn-91418121 is found in opserver
2025-06-10 21:46:56,959 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 21:46:56,965 - DEBUG - VRF ids for VN ctest-vn-91418121: {}
2025-06-10 21:46:57,026 - DEBUG - Services list from nova: [