2025-09-19 16:31:36,452 - INFO - Domain Default found not creating
2025-09-19 16:31:36,627 - INFO - Project ctest-TestBasicPolicy-91196083 not found, creating it
2025-09-19 16:31:37,473 - INFO - Created Project:ctest-TestBasicPolicy-91196083, ID : 0f7c03fe-5710-4e7a-91ba-3d1302412aaa
2025-09-19 16:31:38,836 - INFO - ================================================================================
2025-09-19 16:31:38,836 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-19 16:31:38,836 - 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-19 16:31:39,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-19 16:31:39,094 - INFO - Initial checks done. Running the testcase now
2025-09-19 16:31:39,094 - INFO -
2025-09-19 16:31:39,609 - DEBUG - Response for create_network : {'network': {'id': '9cb08f09-461f-4223-9e9b-17108f0e8698', 'name': 'ctest-vn-31781678', 'tenant_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'project_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-vn-31781678'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 16:31:39,774 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bed1e346-8986-4f1b-9580-f3f6e074d584', 'name': '', 'tenant_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'network_id': '9cb08f09-461f-4223-9e9b-17108f0e8698', 'ip_version': 4, 'cidr': '221.246.53.128/26', 'allocation_pools': [{'start': '221.246.53.130', 'end': '221.246.53.190'}], 'gateway_ip': '221.246.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.246.53.130', 'tags': [], 'project_id': '0f7c03fe57104e7a91ba3d1302412aaa'}}
2025-09-19 16:31:39,790 - INFO - Created VN ctest-vn-31781678
2025-09-19 16:31:39,839 - DEBUG - VN ctest-vn-31781678 UUID is 9cb08f09-461f-4223-9e9b-17108f0e8698
2025-09-19 16:31:40,159 - DEBUG - Response for create_network : {'network': {'id': '21f49223-a20a-4c89-a518-9f04bb3f0f83', 'name': 'ctest-vn-89328844', 'tenant_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'project_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-vn-89328844'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 16:31:40,340 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd80265d2-b079-432c-86be-060563f1d3fd', 'name': '', 'tenant_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'network_id': '21f49223-a20a-4c89-a518-9f04bb3f0f83', 'ip_version': 4, 'cidr': '25.134.248.64/26', 'allocation_pools': [{'start': '25.134.248.66', 'end': '25.134.248.126'}], 'gateway_ip': '25.134.248.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.134.248.66', 'tags': [], 'project_id': '0f7c03fe57104e7a91ba3d1302412aaa'}}
2025-09-19 16:31:40,355 - INFO - Created VN ctest-vn-89328844
2025-09-19 16:31:40,407 - DEBUG - VN ctest-vn-89328844 UUID is 21f49223-a20a-4c89-a518-9f04bb3f0f83
2025-09-19 16:31:40,555 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-31781678, 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-91196083:ctest-vn-89328844, 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-19 16:31:40,838 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cb08f09-461f-4223-9e9b-17108f0e8698', 'name': 'ctest-vn-31781678', 'tenant_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'project_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bed1e346-8986-4f1b-9580-f3f6e074d584'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-vn-31781678'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-policy-allow-all-37223172']], 'subnet_ipam': [{'subnet_cidr': '221.246.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 16:31:41,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21f49223-a20a-4c89-a518-9f04bb3f0f83', 'name': 'ctest-vn-89328844', 'tenant_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'project_id': '0f7c03fe57104e7a91ba3d1302412aaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d80265d2-b079-432c-86be-060563f1d3fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-vn-89328844'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-policy-allow-all-37223172']], 'subnet_ipam': [{'subnet_cidr': '25.134.248.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 16:31:41,219 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-19 16:31:41,513 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-19 16:31:41,816 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8670d522-5f73-427f-aca5-158d7e87971a
2025-09-19 16:31:41,827 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f7c03fe-5710-4e7a-91ba-3d1302412aaa
2025-09-19 16:31:41,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb08f09-461f-4223-9e9b-17108f0e8698
2025-09-19 16:31:41,907 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb08f09-461f-4223-9e9b-17108f0e8698
2025-09-19 16:31:41,915 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/221bb066-29de-410e-b287-1bd57a3d7b71
2025-09-19 16:31:41,921 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/221bb066-29de-410e-b287-1bd57a3d7b71
2025-09-19 16:31:41,927 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8637a19f-cc07-4c06-b2a7-3a161032b0be
2025-09-19 16:31:41,932 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 16:31:41,932 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb08f09-461f-4223-9e9b-17108f0e8698
2025-09-19 16:31:41,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/221bb066-29de-410e-b287-1bd57a3d7b71
2025-09-19 16:31:41,951 - INFO - Verified VN network id 9 for VN 9cb08f09-461f-4223-9e9b-17108f0e8698
2025-09-19 16:31:41,951 - INFO - Verifications in API Server for VN ctest-vn-31781678 passed
2025-09-19 16:31:41,951 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb08f09-461f-4223-9e9b-17108f0e8698
2025-09-19 16:31:41,959 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/221bb066-29de-410e-b287-1bd57a3d7b71
2025-09-19 16:31:41,964 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/221bb066-29de-410e-b287-1bd57a3d7b71
2025-09-19 16:31:41,969 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8637a19f-cc07-4c06-b2a7-3a161032b0be
2025-09-19 16:31:41,979 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-31781678', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91196083', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11290681535811764771', 'uuid-lslong': '11428753839269775000'}, 'enable': 'true', 'created': '2025-09-19T16:31:39', 'last-modified': '2025-09-19T16:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.166755'}
2025-09-19 16:31:41,984 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 16:31:41,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31781678 passed
2025-09-19 16:31:41,984 - DEBUG - ====Verifying policy data for ctest-vn-31781678 in API_Server ======
2025-09-19 16:31:41,984 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-19 16:31:41,991 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8670d522-5f73-427f-aca5-158d7e87971a
2025-09-19 16:31:42,001 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f7c03fe-5710-4e7a-91ba-3d1302412aaa
2025-09-19 16:31:42,073 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cb08f09-461f-4223-9e9b-17108f0e8698
2025-09-19 16:31:42,081 - DEBUG - ==>Verifying data for policy with id: 5ee2f5f1-17c7-49a6-87f6-e538cbf4a67d, fqn: ['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-policy-allow-all-37223172']
2025-09-19 16:31:42,081 - INFO - VN ctest-vn-31781678 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 16:31:42,081 - DEBUG - Verifying the vn in opserver
2025-09-19 16:31:42,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-31781678 virtual network link through opserver 10.0.0.254
2025-09-19 16:31:42,081 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-19 16:31:42,450 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-19 16:31:42,511 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-31781678', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-31781678?flat'}
2025-09-19 16:31:42,511 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-31781678 is found in opserver
2025-09-19 16:31:42,519 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 16:31:42,523 - DEBUG - VRF ids for VN ctest-vn-31781678: {}
2025-09-19 16:31:42,523 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-19 16:31:42,527 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8670d522-5f73-427f-aca5-158d7e87971a
2025-09-19 16:31:42,536 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f7c03fe-5710-4e7a-91ba-3d1302412aaa
2025-09-19 16:31:42,609 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/21f49223-a20a-4c89-a518-9f04bb3f0f83
2025-09-19 16:31:42,622 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/21f49223-a20a-4c89-a518-9f04bb3f0f83
2025-09-19 16:31:42,633 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d24e304a-bd2c-4a5b-9c23-0ea31cb984e5
2025-09-19 16:31:42,639 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d24e304a-bd2c-4a5b-9c23-0ea31cb984e5
2025-09-19 16:31:42,644 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f9a501bb-45f1-4d9f-bd73-cef6e9be1118
2025-09-19 16:31:42,649 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 16:31:42,649 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/21f49223-a20a-4c89-a518-9f04bb3f0f83
2025-09-19 16:31:42,657 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d24e304a-bd2c-4a5b-9c23-0ea31cb984e5
2025-09-19 16:31:42,667 - INFO - Verified VN network id 10 for VN 21f49223-a20a-4c89-a518-9f04bb3f0f83
2025-09-19 16:31:42,667 - INFO - Verifications in API Server for VN ctest-vn-89328844 passed
2025-09-19 16:31:42,667 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/21f49223-a20a-4c89-a518-9f04bb3f0f83
2025-09-19 16:31:42,674 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d24e304a-bd2c-4a5b-9c23-0ea31cb984e5
2025-09-19 16:31:42,679 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d24e304a-bd2c-4a5b-9c23-0ea31cb984e5
2025-09-19 16:31:42,684 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f9a501bb-45f1-4d9f-bd73-cef6e9be1118
2025-09-19 16:31:42,694 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-89328844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91196083', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2446741179309116553', 'uuid-lslong': '11896433258369322883'}, 'enable': 'true', 'created': '2025-09-19T16:31:40', 'last-modified': '2025-09-19T16:31:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.661319'}
2025-09-19 16:31:42,703 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 16:31:42,703 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89328844 passed
2025-09-19 16:31:42,703 - DEBUG - ====Verifying policy data for ctest-vn-89328844 in API_Server ======
2025-09-19 16:31:42,703 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-19 16:31:42,708 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8670d522-5f73-427f-aca5-158d7e87971a
2025-09-19 16:31:42,718 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f7c03fe-5710-4e7a-91ba-3d1302412aaa
2025-09-19 16:31:42,789 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/21f49223-a20a-4c89-a518-9f04bb3f0f83
2025-09-19 16:31:42,798 - DEBUG - ==>Verifying data for policy with id: 5ee2f5f1-17c7-49a6-87f6-e538cbf4a67d, fqn: ['default-domain', 'ctest-TestBasicPolicy-91196083', 'ctest-policy-allow-all-37223172']
2025-09-19 16:31:42,798 - INFO - VN ctest-vn-89328844 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 16:31:42,798 - DEBUG - Verifying the vn in opserver
2025-09-19 16:31:42,798 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-89328844 virtual network link through opserver 10.0.0.254
2025-09-19 16:31:42,798 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-19 16:31:42,806 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-89328844', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-89328844?flat'}
2025-09-19 16:31:42,806 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91196083:ctest-vn-89328844 is found in opserver
2025-09-19 16:31:42,814 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 16:31:42,818 - DEBUG - VRF ids for VN ctest-vn-89328844: {}
2025-09-19 16:31:42,867 - DEBUG - Services list from nova: [