2025-08-11 15:51:28,157 - INFO - Domain Default found not creating
2025-08-11 15:51:28,283 - INFO - Project ctest-TestBasicPolicy-43556880 not found, creating it
2025-08-11 15:51:28,714 - INFO - Created Project:ctest-TestBasicPolicy-43556880, ID : e6b5b46c-814f-4084-af02-c8b701e40b53
2025-08-11 15:51:30,184 - INFO - ================================================================================
2025-08-11 15:51:30,184 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 15:51:30,185 - 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-08-11 15:51:30,439 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-11 15:51:30,439 - INFO - Initial checks done. Running the testcase now
2025-08-11 15:51:30,439 - INFO -
2025-08-11 15:51:31,019 - DEBUG - Response for create_network : {'network': {'id': 'baa94d47-b4dd-4bcc-92fc-ed853a3a95da', 'name': 'ctest-vn-66017214', 'tenant_id': 'e6b5b46c814f4084af02c8b701e40b53', 'project_id': 'e6b5b46c814f4084af02c8b701e40b53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-vn-66017214'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:31,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '4822bd4e-12fc-4523-a215-bcd05bbbae60', 'name': '', 'tenant_id': 'e6b5b46c814f4084af02c8b701e40b53', 'network_id': 'baa94d47-b4dd-4bcc-92fc-ed853a3a95da', 'ip_version': 4, 'cidr': '21.149.137.128/26', 'allocation_pools': [{'start': '21.149.137.130', 'end': '21.149.137.190'}], 'gateway_ip': '21.149.137.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.149.137.130', 'tags': [], 'project_id': 'e6b5b46c814f4084af02c8b701e40b53'}}
2025-08-11 15:51:31,191 - INFO - Created VN ctest-vn-66017214
2025-08-11 15:51:31,242 - DEBUG - VN ctest-vn-66017214 UUID is baa94d47-b4dd-4bcc-92fc-ed853a3a95da
2025-08-11 15:51:31,568 - DEBUG - Response for create_network : {'network': {'id': '5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd', 'name': 'ctest-vn-64444153', 'tenant_id': 'e6b5b46c814f4084af02c8b701e40b53', 'project_id': 'e6b5b46c814f4084af02c8b701e40b53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-vn-64444153'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:31,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '800a3f04-06d9-4c6c-8958-e3a610f0e80c', 'name': '', 'tenant_id': 'e6b5b46c814f4084af02c8b701e40b53', 'network_id': '5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd', 'ip_version': 4, 'cidr': '168.151.98.128/26', 'allocation_pools': [{'start': '168.151.98.130', 'end': '168.151.98.190'}], 'gateway_ip': '168.151.98.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.151.98.130', 'tags': [], 'project_id': 'e6b5b46c814f4084af02c8b701e40b53'}}
2025-08-11 15:51:31,753 - INFO - Created VN ctest-vn-64444153
2025-08-11 15:51:31,806 - DEBUG - VN ctest-vn-64444153 UUID is 5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd
2025-08-11 15:51:31,958 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-66017214, 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-43556880:ctest-vn-64444153, 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-08-11 15:51:32,273 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'baa94d47-b4dd-4bcc-92fc-ed853a3a95da', 'name': 'ctest-vn-66017214', 'tenant_id': 'e6b5b46c814f4084af02c8b701e40b53', 'project_id': 'e6b5b46c814f4084af02c8b701e40b53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4822bd4e-12fc-4523-a215-bcd05bbbae60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-vn-66017214'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-policy-allow-all-40869788']], 'subnet_ipam': [{'subnet_cidr': '21.149.137.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:32,497 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd', 'name': 'ctest-vn-64444153', 'tenant_id': 'e6b5b46c814f4084af02c8b701e40b53', 'project_id': 'e6b5b46c814f4084af02c8b701e40b53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['800a3f04-06d9-4c6c-8958-e3a610f0e80c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-vn-64444153'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-policy-allow-all-40869788']], 'subnet_ipam': [{'subnet_cidr': '168.151.98.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:32,670 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 15:51:33,008 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 15:51:33,036 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96
2025-08-11 15:51:33,050 - DEBUG - Requesting: http://10.0.0.38:8082/project/e6b5b46c-814f-4084-af02-c8b701e40b53
2025-08-11 15:51:33,120 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa94d47-b4dd-4bcc-92fc-ed853a3a95da
2025-08-11 15:51:33,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa94d47-b4dd-4bcc-92fc-ed853a3a95da
2025-08-11 15:51:33,141 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc726fd-6c05-4530-8646-cafdd3d87499
2025-08-11 15:51:33,148 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc726fd-6c05-4530-8646-cafdd3d87499
2025-08-11 15:51:33,154 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ff41470-ecf1-4ad7-a341-2b359eb1ce1e
2025-08-11 15:51:33,160 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:51:33,160 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa94d47-b4dd-4bcc-92fc-ed853a3a95da
2025-08-11 15:51:33,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc726fd-6c05-4530-8646-cafdd3d87499
2025-08-11 15:51:33,182 - INFO - Verified VN network id 12 for VN baa94d47-b4dd-4bcc-92fc-ed853a3a95da
2025-08-11 15:51:33,182 - INFO - Verifications in API Server for VN ctest-vn-66017214 passed
2025-08-11 15:51:33,182 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa94d47-b4dd-4bcc-92fc-ed853a3a95da
2025-08-11 15:51:33,192 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc726fd-6c05-4530-8646-cafdd3d87499
2025-08-11 15:51:33,198 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc726fd-6c05-4530-8646-cafdd3d87499
2025-08-11 15:51:33,204 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ff41470-ecf1-4ad7-a341-2b359eb1ce1e
2025-08-11 15:51:33,217 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-66017214', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43556880', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13450366732491115468', 'uuid-lslong': '10591601580131915226'}, 'enable': 'true', 'created': '2025-08-11T15:51:30', 'last-modified': '2025-08-11T15:51:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980737'}
2025-08-11 15:51:33,224 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:51:33,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66017214 passed
2025-08-11 15:51:33,224 - DEBUG - ====Verifying policy data for ctest-vn-66017214 in API_Server ======
2025-08-11 15:51:33,224 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 15:51:33,229 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96
2025-08-11 15:51:33,240 - DEBUG - Requesting: http://10.0.0.38:8082/project/e6b5b46c-814f-4084-af02-c8b701e40b53
2025-08-11 15:51:33,315 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/baa94d47-b4dd-4bcc-92fc-ed853a3a95da
2025-08-11 15:51:33,325 - DEBUG - ==>Verifying data for policy with id: 5b1acb34-9194-4a0c-9b3e-208a7957f7a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-policy-allow-all-40869788']
2025-08-11 15:51:33,325 - INFO - VN ctest-vn-66017214 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:51:33,325 - DEBUG - Verifying the vn in opserver
2025-08-11 15:51:33,326 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-66017214 virtual network link through opserver 10.0.0.38
2025-08-11 15:51:33,326 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 15:51:33,657 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 15:51:33,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-66017214', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-66017214?flat'}
2025-08-11 15:51:33,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-66017214 is found in opserver
2025-08-11 15:51:33,761 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:51:33,766 - DEBUG - VRF ids for VN ctest-vn-66017214: {}
2025-08-11 15:51:33,766 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 15:51:33,781 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96
2025-08-11 15:51:33,842 - DEBUG - Requesting: http://10.0.0.38:8082/project/e6b5b46c-814f-4084-af02-c8b701e40b53
2025-08-11 15:51:33,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd
2025-08-11 15:51:33,966 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd
2025-08-11 15:51:33,978 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edf7a4dc-3060-4f34-bab6-7446e2557d5f
2025-08-11 15:51:33,987 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edf7a4dc-3060-4f34-bab6-7446e2557d5f
2025-08-11 15:51:33,995 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/88952860-1582-4bbe-8104-6bbe579e0360
2025-08-11 15:51:34,013 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:51:34,013 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd
2025-08-11 15:51:34,028 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edf7a4dc-3060-4f34-bab6-7446e2557d5f
2025-08-11 15:51:34,053 - INFO - Verified VN network id 13 for VN 5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd
2025-08-11 15:51:34,053 - INFO - Verifications in API Server for VN ctest-vn-64444153 passed
2025-08-11 15:51:34,053 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd
2025-08-11 15:51:34,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edf7a4dc-3060-4f34-bab6-7446e2557d5f
2025-08-11 15:51:34,085 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edf7a4dc-3060-4f34-bab6-7446e2557d5f
2025-08-11 15:51:34,102 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/88952860-1582-4bbe-8104-6bbe579e0360
2025-08-11 15:51:34,118 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-64444153', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43556880', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6656711604004603106', 'uuid-lslong': '12234825412209018077'}, 'enable': 'true', 'created': '2025-08-11T15:51:31', 'last-modified': '2025-08-11T15:51:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.641761'}
2025-08-11 15:51:34,127 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:51:34,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64444153 passed
2025-08-11 15:51:34,128 - DEBUG - ====Verifying policy data for ctest-vn-64444153 in API_Server ======
2025-08-11 15:51:34,128 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 15:51:34,149 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b13e149b-fbda-430f-898c-d7a072113c96
2025-08-11 15:51:34,209 - DEBUG - Requesting: http://10.0.0.38:8082/project/e6b5b46c-814f-4084-af02-c8b701e40b53
2025-08-11 15:51:34,337 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c6163ef-60ea-44e2-a9ca-d4e3b7a404dd
2025-08-11 15:51:34,359 - DEBUG - ==>Verifying data for policy with id: 5b1acb34-9194-4a0c-9b3e-208a7957f7a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-43556880', 'ctest-policy-allow-all-40869788']
2025-08-11 15:51:34,359 - INFO - VN ctest-vn-64444153 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:51:34,359 - DEBUG - Verifying the vn in opserver
2025-08-11 15:51:34,359 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-64444153 virtual network link through opserver 10.0.0.38
2025-08-11 15:51:34,359 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 15:51:34,378 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-64444153', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-64444153?flat'}
2025-08-11 15:51:34,378 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43556880:ctest-vn-64444153 is found in opserver
2025-08-11 15:51:34,392 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:51:34,401 - DEBUG - VRF ids for VN ctest-vn-64444153: {}
2025-08-11 15:51:34,471 - DEBUG - Services list from nova: [