2025-11-02 22:39:36,772 - INFO - Domain Default found not creating
2025-11-02 22:39:36,932 - INFO - Project ctest-TestBasicPolicy-01309174 not found, creating it
2025-11-02 22:39:37,380 - INFO - Created Project:ctest-TestBasicPolicy-01309174, ID : 98384bbe-9b21-484d-b22a-bec425b8cf9c
2025-11-02 22:39:38,853 - INFO - ================================================================================
2025-11-02 22:39:38,853 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-02 22:39:38,853 - 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-11-02 22:39:39,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-11-02 22:39:39,111 - INFO - Initial checks done. Running the testcase now
2025-11-02 22:39:39,111 - INFO -
2025-11-02 22:39:39,652 - DEBUG - Response for create_network : {'network': {'id': 'e9f98044-5aea-48b7-ab19-2be8f453ec79', 'name': 'ctest-vn-49410569', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-49410569'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 22:39:39,887 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3e6d02e-c2eb-4f6b-9fb8-c976f541c9da', 'name': '', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'network_id': 'e9f98044-5aea-48b7-ab19-2be8f453ec79', 'ip_version': 4, 'cidr': '40.117.235.64/26', 'allocation_pools': [{'start': '40.117.235.66', 'end': '40.117.235.126'}], 'gateway_ip': '40.117.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.117.235.66', 'tags': [], 'project_id': '98384bbe9b21484db22abec425b8cf9c'}}
2025-11-02 22:39:39,910 - INFO - Created VN ctest-vn-49410569
2025-11-02 22:39:39,964 - DEBUG - VN ctest-vn-49410569 UUID is e9f98044-5aea-48b7-ab19-2be8f453ec79
2025-11-02 22:39:40,303 - DEBUG - Response for create_network : {'network': {'id': 'f0d635bc-082a-415d-ada5-792e847f5286', 'name': 'ctest-vn-54749957', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-54749957'], 'port_security_enabled': True, 'description': ''}}
2025-11-02 22:39:40,485 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8ce3f21-1b33-4630-8566-455d5b2ef6ec', 'name': '', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'network_id': 'f0d635bc-082a-415d-ada5-792e847f5286', 'ip_version': 4, 'cidr': '20.240.203.0/26', 'allocation_pools': [{'start': '20.240.203.2', 'end': '20.240.203.62'}], 'gateway_ip': '20.240.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.240.203.2', 'tags': [], 'project_id': '98384bbe9b21484db22abec425b8cf9c'}}
2025-11-02 22:39:40,503 - INFO - Created VN ctest-vn-54749957
2025-11-02 22:39:40,556 - DEBUG - VN ctest-vn-54749957 UUID is f0d635bc-082a-415d-ada5-792e847f5286
2025-11-02 22:39:40,669 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569, 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-01309174:ctest-vn-54749957, 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-11-02 22:39:40,959 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9f98044-5aea-48b7-ab19-2be8f453ec79', 'name': 'ctest-vn-49410569', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f3e6d02e-c2eb-4f6b-9fb8-c976f541c9da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-49410569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582']], 'subnet_ipam': [{'subnet_cidr': '40.117.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 22:39:41,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0d635bc-082a-415d-ada5-792e847f5286', 'name': 'ctest-vn-54749957', 'tenant_id': '98384bbe9b21484db22abec425b8cf9c', 'project_id': '98384bbe9b21484db22abec425b8cf9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8ce3f21-1b33-4630-8566-455d5b2ef6ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-vn-54749957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582']], 'subnet_ipam': [{'subnet_cidr': '20.240.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-02 22:39:41,352 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 22:39:41,655 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 22:39:41,683 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b
2025-11-02 22:39:41,695 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c
2025-11-02 22:39:41,777 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79
2025-11-02 22:39:41,788 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79
2025-11-02 22:39:41,796 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006
2025-11-02 22:39:41,802 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006
2025-11-02 22:39:41,808 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca9a3e18-e329-40eb-bbb8-fa8a5ff9cc34
2025-11-02 22:39:41,813 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 22:39:41,814 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79
2025-11-02 22:39:41,821 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006
2025-11-02 22:39:41,835 - INFO - Verified VN network id 11 for VN e9f98044-5aea-48b7-ab19-2be8f453ec79
2025-11-02 22:39:41,836 - INFO - Verifications in API Server for VN ctest-vn-49410569 passed
2025-11-02 22:39:41,836 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79
2025-11-02 22:39:41,844 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006
2025-11-02 22:39:41,850 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d70c1bb1-8242-458b-a8e3-a5c7f4441006
2025-11-02 22:39:41,856 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca9a3e18-e329-40eb-bbb8-fa8a5ff9cc34
2025-11-02 22:39:41,868 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01309174', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16859647711109597367', 'uuid-lslong': '12328933734434991225'}, 'enable': 'true', 'created': '2025-11-02T22:39:39', 'last-modified': '2025-11-02T22:39:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928300'}
2025-11-02 22:39:41,874 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-02 22:39:41,875 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49410569 passed
2025-11-02 22:39:41,875 - DEBUG - ====Verifying policy data for ctest-vn-49410569 in API_Server ======
2025-11-02 22:39:41,875 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 22:39:41,880 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b
2025-11-02 22:39:41,891 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c
2025-11-02 22:39:41,962 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e9f98044-5aea-48b7-ab19-2be8f453ec79
2025-11-02 22:39:41,972 - DEBUG - ==>Verifying data for policy with id: 1dfd891f-41cd-48ac-801d-36f1b2d8c4fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582']
2025-11-02 22:39:41,972 - INFO - VN ctest-vn-49410569 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 22:39:41,972 - DEBUG - Verifying the vn in opserver
2025-11-02 22:39:41,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569 virtual network link through opserver 10.0.0.48
2025-11-02 22:39:41,973 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 22:39:42,271 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 22:39:42,329 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569?flat'}
2025-11-02 22:39:42,329 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-49410569 is found in opserver
2025-11-02 22:39:42,340 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 22:39:42,345 - DEBUG - VRF ids for VN ctest-vn-49410569: {}
2025-11-02 22:39:42,345 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 22:39:42,350 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b
2025-11-02 22:39:42,361 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c
2025-11-02 22:39:42,437 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286
2025-11-02 22:39:42,448 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286
2025-11-02 22:39:42,456 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559
2025-11-02 22:39:42,462 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559
2025-11-02 22:39:42,468 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca6bbdb3-db72-4930-97f6-ca84ed5d141b
2025-11-02 22:39:42,473 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 22:39:42,473 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286
2025-11-02 22:39:42,482 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559
2025-11-02 22:39:42,499 - INFO - Verified VN network id 12 for VN f0d635bc-082a-415d-ada5-792e847f5286
2025-11-02 22:39:42,499 - INFO - Verifications in API Server for VN ctest-vn-54749957 passed
2025-11-02 22:39:42,499 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286
2025-11-02 22:39:42,507 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559
2025-11-02 22:39:42,512 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8887848b-df2d-4e21-8995-e35a943c0559
2025-11-02 22:39:42,518 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ca6bbdb3-db72-4930-97f6-ca84ed5d141b
2025-11-02 22:39:42,528 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01309174', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17354117295825895773', 'uuid-lslong': '12512540380417184390'}, 'enable': 'true', 'created': '2025-11-02T22:39:40', 'last-modified': '2025-11-02T22:39:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350564'}
2025-11-02 22:39:42,534 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-02 22:39:42,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54749957 passed
2025-11-02 22:39:42,534 - DEBUG - ====Verifying policy data for ctest-vn-54749957 in API_Server ======
2025-11-02 22:39:42,534 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-02 22:39:42,540 - DEBUG - Requesting: http://10.0.0.48:8082/domain/42d1cac1-c044-4423-92b2-d43340a36b0b
2025-11-02 22:39:42,549 - DEBUG - Requesting: http://10.0.0.48:8082/project/98384bbe-9b21-484d-b22a-bec425b8cf9c
2025-11-02 22:39:42,627 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f0d635bc-082a-415d-ada5-792e847f5286
2025-11-02 22:39:42,640 - DEBUG - ==>Verifying data for policy with id: 1dfd891f-41cd-48ac-801d-36f1b2d8c4fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-01309174', 'ctest-policy-allow-all-75163582']
2025-11-02 22:39:42,640 - INFO - VN ctest-vn-54749957 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-02 22:39:42,640 - DEBUG - Verifying the vn in opserver
2025-11-02 22:39:42,640 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957 virtual network link through opserver 10.0.0.48
2025-11-02 22:39:42,640 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-02 22:39:42,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957?flat'}
2025-11-02 22:39:42,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01309174:ctest-vn-54749957 is found in opserver
2025-11-02 22:39:42,662 - DEBUG - Do not have enough data to verify VN in agent
2025-11-02 22:39:42,666 - DEBUG - VRF ids for VN ctest-vn-54749957: {}
2025-11-02 22:39:42,726 - DEBUG - Services list from nova: [