2025-09-26 00:16:18,618 - INFO - Domain Default found not creating
2025-09-26 00:16:18,766 - INFO - Project ctest-TestBasicPolicy-45481102 not found, creating it
2025-09-26 00:16:19,238 - INFO - Created Project:ctest-TestBasicPolicy-45481102, ID : bb626192-9ec9-4673-9ce7-a1c372ec30f9
2025-09-26 00:16:20,717 - INFO - ================================================================================
2025-09-26 00:16:20,717 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-26 00:16:20,718 - 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-09-26 00:16:20,979 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-26 00:16:20,979 - INFO - Initial checks done. Running the testcase now
2025-09-26 00:16:20,979 - INFO -
2025-09-26 00:16:21,551 - DEBUG - Response for create_network : {'network': {'id': '14e71f4e-4bdb-492b-8533-968192982ff7', 'name': 'ctest-vn-03007311', 'tenant_id': 'bb6261929ec946739ce7a1c372ec30f9', 'project_id': 'bb6261929ec946739ce7a1c372ec30f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-vn-03007311'], 'port_security_enabled': True, 'description': ''}}
2025-09-26 00:16:21,760 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9e36e84-c040-495e-94a6-c441960e9809', 'name': '', 'tenant_id': 'bb6261929ec946739ce7a1c372ec30f9', 'network_id': '14e71f4e-4bdb-492b-8533-968192982ff7', 'ip_version': 4, 'cidr': '206.94.219.192/26', 'allocation_pools': [{'start': '206.94.219.194', 'end': '206.94.219.254'}], 'gateway_ip': '206.94.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.94.219.194', 'tags': [], 'project_id': 'bb6261929ec946739ce7a1c372ec30f9'}}
2025-09-26 00:16:21,782 - INFO - Created VN ctest-vn-03007311
2025-09-26 00:16:21,834 - DEBUG - VN ctest-vn-03007311 UUID is 14e71f4e-4bdb-492b-8533-968192982ff7
2025-09-26 00:16:22,124 - DEBUG - Response for create_network : {'network': {'id': '94d2303d-f592-449e-bcc7-958d172ff4bd', 'name': 'ctest-vn-48795303', 'tenant_id': 'bb6261929ec946739ce7a1c372ec30f9', 'project_id': 'bb6261929ec946739ce7a1c372ec30f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-vn-48795303'], 'port_security_enabled': True, 'description': ''}}
2025-09-26 00:16:22,279 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d10e42c-de95-40d6-8415-c9845e0ef093', 'name': '', 'tenant_id': 'bb6261929ec946739ce7a1c372ec30f9', 'network_id': '94d2303d-f592-449e-bcc7-958d172ff4bd', 'ip_version': 4, 'cidr': '5.43.80.0/26', 'allocation_pools': [{'start': '5.43.80.2', 'end': '5.43.80.62'}], 'gateway_ip': '5.43.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.43.80.2', 'tags': [], 'project_id': 'bb6261929ec946739ce7a1c372ec30f9'}}
2025-09-26 00:16:22,295 - INFO - Created VN ctest-vn-48795303
2025-09-26 00:16:22,346 - DEBUG - VN ctest-vn-48795303 UUID is 94d2303d-f592-449e-bcc7-958d172ff4bd
2025-09-26 00:16:22,502 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-03007311, 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-45481102:ctest-vn-48795303, 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-09-26 00:16:22,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14e71f4e-4bdb-492b-8533-968192982ff7', 'name': 'ctest-vn-03007311', 'tenant_id': 'bb6261929ec946739ce7a1c372ec30f9', 'project_id': 'bb6261929ec946739ce7a1c372ec30f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9e36e84-c040-495e-94a6-c441960e9809'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-vn-03007311'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-policy-allow-all-64598721']], 'subnet_ipam': [{'subnet_cidr': '206.94.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-26 00:16:23,013 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94d2303d-f592-449e-bcc7-958d172ff4bd', 'name': 'ctest-vn-48795303', 'tenant_id': 'bb6261929ec946739ce7a1c372ec30f9', 'project_id': 'bb6261929ec946739ce7a1c372ec30f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d10e42c-de95-40d6-8415-c9845e0ef093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-vn-48795303'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-policy-allow-all-64598721']], 'subnet_ipam': [{'subnet_cidr': '5.43.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-26 00:16:23,182 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-26 00:16:23,482 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-26 00:16:23,509 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1028e320-0160-4010-a7e2-27f27b63776a
2025-09-26 00:16:23,522 - DEBUG - Requesting: http://10.0.0.57:8082/project/bb626192-9ec9-4673-9ce7-a1c372ec30f9
2025-09-26 00:16:23,594 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/14e71f4e-4bdb-492b-8533-968192982ff7
2025-09-26 00:16:23,603 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/14e71f4e-4bdb-492b-8533-968192982ff7
2025-09-26 00:16:23,611 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/46021a7a-5446-46e2-b9d6-e5bef564d591
2025-09-26 00:16:23,618 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/46021a7a-5446-46e2-b9d6-e5bef564d591
2025-09-26 00:16:23,625 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/eae502f8-8cb5-4f5e-9215-ca77538cb9f3
2025-09-26 00:16:23,631 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-26 00:16:23,631 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/14e71f4e-4bdb-492b-8533-968192982ff7
2025-09-26 00:16:23,640 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/46021a7a-5446-46e2-b9d6-e5bef564d591
2025-09-26 00:16:23,654 - INFO - Verified VN network id 11 for VN 14e71f4e-4bdb-492b-8533-968192982ff7
2025-09-26 00:16:23,654 - INFO - Verifications in API Server for VN ctest-vn-03007311 passed
2025-09-26 00:16:23,655 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/14e71f4e-4bdb-492b-8533-968192982ff7
2025-09-26 00:16:23,663 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/46021a7a-5446-46e2-b9d6-e5bef564d591
2025-09-26 00:16:23,670 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/46021a7a-5446-46e2-b9d6-e5bef564d591
2025-09-26 00:16:23,677 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/eae502f8-8cb5-4f5e-9215-ca77538cb9f3
2025-09-26 00:16:23,687 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-03007311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45481102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1506207021519292715', 'uuid-lslong': '9598180714111053815'}, 'enable': 'true', 'created': '2025-09-26T00:16:21', 'last-modified': '2025-09-26T00:16:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911868'}
2025-09-26 00:16:23,693 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-26 00:16:23,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03007311 passed
2025-09-26 00:16:23,694 - DEBUG - ====Verifying policy data for ctest-vn-03007311 in API_Server ======
2025-09-26 00:16:23,694 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-26 00:16:23,699 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1028e320-0160-4010-a7e2-27f27b63776a
2025-09-26 00:16:23,709 - DEBUG - Requesting: http://10.0.0.57:8082/project/bb626192-9ec9-4673-9ce7-a1c372ec30f9
2025-09-26 00:16:23,781 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/14e71f4e-4bdb-492b-8533-968192982ff7
2025-09-26 00:16:23,789 - DEBUG - ==>Verifying data for policy with id: 5488d42e-3474-4879-9a80-b1803b68690e, fqn: ['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-policy-allow-all-64598721']
2025-09-26 00:16:23,789 - INFO - VN ctest-vn-03007311 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-26 00:16:23,789 - DEBUG - Verifying the vn in opserver
2025-09-26 00:16:23,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-03007311 virtual network link through opserver 10.0.0.57
2025-09-26 00:16:23,789 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-26 00:16:24,077 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-26 00:16:24,127 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-03007311', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-03007311?flat'}
2025-09-26 00:16:24,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-03007311 is found in opserver
2025-09-26 00:16:24,137 - DEBUG - Do not have enough data to verify VN in agent
2025-09-26 00:16:24,141 - DEBUG - VRF ids for VN ctest-vn-03007311: {}
2025-09-26 00:16:24,141 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-26 00:16:24,147 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1028e320-0160-4010-a7e2-27f27b63776a
2025-09-26 00:16:24,159 - DEBUG - Requesting: http://10.0.0.57:8082/project/bb626192-9ec9-4673-9ce7-a1c372ec30f9
2025-09-26 00:16:24,227 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94d2303d-f592-449e-bcc7-958d172ff4bd
2025-09-26 00:16:24,238 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94d2303d-f592-449e-bcc7-958d172ff4bd
2025-09-26 00:16:24,247 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/09e1190f-4c18-4495-9fd8-99c8e92826a9
2025-09-26 00:16:24,253 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/09e1190f-4c18-4495-9fd8-99c8e92826a9
2025-09-26 00:16:24,260 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/c390ce71-bfee-43d1-8c55-1b9188fe8d12
2025-09-26 00:16:24,266 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-26 00:16:24,266 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94d2303d-f592-449e-bcc7-958d172ff4bd
2025-09-26 00:16:24,274 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/09e1190f-4c18-4495-9fd8-99c8e92826a9
2025-09-26 00:16:24,286 - INFO - Verified VN network id 12 for VN 94d2303d-f592-449e-bcc7-958d172ff4bd
2025-09-26 00:16:24,286 - INFO - Verifications in API Server for VN ctest-vn-48795303 passed
2025-09-26 00:16:24,286 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94d2303d-f592-449e-bcc7-958d172ff4bd
2025-09-26 00:16:24,294 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/09e1190f-4c18-4495-9fd8-99c8e92826a9
2025-09-26 00:16:24,300 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/09e1190f-4c18-4495-9fd8-99c8e92826a9
2025-09-26 00:16:24,307 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/c390ce71-bfee-43d1-8c55-1b9188fe8d12
2025-09-26 00:16:24,317 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-48795303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45481102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10723686705393714334', 'uuid-lslong': '13603005632707818685'}, 'enable': 'true', 'created': '2025-09-26T00:16:22', 'last-modified': '2025-09-26T00:16:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324363'}
2025-09-26 00:16:24,323 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-26 00:16:24,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48795303 passed
2025-09-26 00:16:24,323 - DEBUG - ====Verifying policy data for ctest-vn-48795303 in API_Server ======
2025-09-26 00:16:24,323 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-26 00:16:24,328 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1028e320-0160-4010-a7e2-27f27b63776a
2025-09-26 00:16:24,338 - DEBUG - Requesting: http://10.0.0.57:8082/project/bb626192-9ec9-4673-9ce7-a1c372ec30f9
2025-09-26 00:16:24,404 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/94d2303d-f592-449e-bcc7-958d172ff4bd
2025-09-26 00:16:24,413 - DEBUG - ==>Verifying data for policy with id: 5488d42e-3474-4879-9a80-b1803b68690e, fqn: ['default-domain', 'ctest-TestBasicPolicy-45481102', 'ctest-policy-allow-all-64598721']
2025-09-26 00:16:24,413 - INFO - VN ctest-vn-48795303 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-26 00:16:24,413 - DEBUG - Verifying the vn in opserver
2025-09-26 00:16:24,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-48795303 virtual network link through opserver 10.0.0.57
2025-09-26 00:16:24,413 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-26 00:16:24,422 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-48795303', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-48795303?flat'}
2025-09-26 00:16:24,422 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45481102:ctest-vn-48795303 is found in opserver
2025-09-26 00:16:24,432 - DEBUG - Do not have enough data to verify VN in agent
2025-09-26 00:16:24,437 - DEBUG - VRF ids for VN ctest-vn-48795303: {}
2025-09-26 00:16:24,489 - DEBUG - Services list from nova: [