2025-09-16 21:44:54,441 - INFO - Domain Default found not creating
2025-09-16 21:44:54,568 - INFO - Project ctest-TestBasicPolicy-08044289 not found, creating it
2025-09-16 21:44:54,983 - INFO - Created Project:ctest-TestBasicPolicy-08044289, ID : 23c4286e-e0f7-4a51-918e-52490b06087d
2025-09-16 21:44:56,370 - INFO - ================================================================================
2025-09-16 21:44:56,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-16 21:44:56,370 - 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-16 21:44:56,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-16 21:44:56,624 - INFO - Initial checks done. Running the testcase now
2025-09-16 21:44:56,624 - INFO -
2025-09-16 21:44:57,153 - DEBUG - Response for create_network : {'network': {'id': 'bb6b7719-a588-47bc-94cd-d3aa3bf83426', 'name': 'ctest-vn-78231743', 'tenant_id': '23c4286ee0f74a51918e52490b06087d', 'project_id': '23c4286ee0f74a51918e52490b06087d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-vn-78231743'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 21:44:57,298 - DEBUG - Response for create_subnet : {'subnet': {'id': '68dd1e2a-8fa7-49fd-aa44-804b007b841c', 'name': '', 'tenant_id': '23c4286ee0f74a51918e52490b06087d', 'network_id': 'bb6b7719-a588-47bc-94cd-d3aa3bf83426', 'ip_version': 4, 'cidr': '170.41.59.128/26', 'allocation_pools': [{'start': '170.41.59.130', 'end': '170.41.59.190'}], 'gateway_ip': '170.41.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.41.59.130', 'tags': [], 'project_id': '23c4286ee0f74a51918e52490b06087d'}}
2025-09-16 21:44:57,314 - INFO - Created VN ctest-vn-78231743
2025-09-16 21:44:57,366 - DEBUG - VN ctest-vn-78231743 UUID is bb6b7719-a588-47bc-94cd-d3aa3bf83426
2025-09-16 21:44:57,674 - DEBUG - Response for create_network : {'network': {'id': '1087a6b5-025e-4f55-884e-ff8e70bd003c', 'name': 'ctest-vn-30912763', 'tenant_id': '23c4286ee0f74a51918e52490b06087d', 'project_id': '23c4286ee0f74a51918e52490b06087d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-vn-30912763'], 'port_security_enabled': True, 'description': ''}}
2025-09-16 21:44:57,880 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9462c98-52eb-4a93-8f2a-abf3389d5166', 'name': '', 'tenant_id': '23c4286ee0f74a51918e52490b06087d', 'network_id': '1087a6b5-025e-4f55-884e-ff8e70bd003c', 'ip_version': 4, 'cidr': '11.152.58.0/26', 'allocation_pools': [{'start': '11.152.58.2', 'end': '11.152.58.62'}], 'gateway_ip': '11.152.58.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.152.58.2', 'tags': [], 'project_id': '23c4286ee0f74a51918e52490b06087d'}}
2025-09-16 21:44:57,896 - INFO - Created VN ctest-vn-30912763
2025-09-16 21:44:57,946 - DEBUG - VN ctest-vn-30912763 UUID is 1087a6b5-025e-4f55-884e-ff8e70bd003c
2025-09-16 21:44:58,089 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-78231743, 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-08044289:ctest-vn-30912763, 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-16 21:44:58,367 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb6b7719-a588-47bc-94cd-d3aa3bf83426', 'name': 'ctest-vn-78231743', 'tenant_id': '23c4286ee0f74a51918e52490b06087d', 'project_id': '23c4286ee0f74a51918e52490b06087d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68dd1e2a-8fa7-49fd-aa44-804b007b841c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-vn-78231743'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-policy-allow-all-00385390']], 'subnet_ipam': [{'subnet_cidr': '170.41.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 21:44:58,654 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1087a6b5-025e-4f55-884e-ff8e70bd003c', 'name': 'ctest-vn-30912763', 'tenant_id': '23c4286ee0f74a51918e52490b06087d', 'project_id': '23c4286ee0f74a51918e52490b06087d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9462c98-52eb-4a93-8f2a-abf3389d5166'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-vn-30912763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-policy-allow-all-00385390']], 'subnet_ipam': [{'subnet_cidr': '11.152.58.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-16 21:44:58,794 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 21:44:59,102 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 21:44:59,126 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9256f94d-248d-468a-af9f-09d230685e6d
2025-09-16 21:44:59,138 - DEBUG - Requesting: http://10.0.0.22:8082/project/23c4286e-e0f7-4a51-918e-52490b06087d
2025-09-16 21:44:59,209 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bb6b7719-a588-47bc-94cd-d3aa3bf83426
2025-09-16 21:44:59,220 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bb6b7719-a588-47bc-94cd-d3aa3bf83426
2025-09-16 21:44:59,230 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d520d8da-c119-405a-8285-b6782dad4663
2025-09-16 21:44:59,236 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d520d8da-c119-405a-8285-b6782dad4663
2025-09-16 21:44:59,240 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7a153e43-7628-495c-aa7a-4b6ed6c294e5
2025-09-16 21:44:59,245 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 21:44:59,245 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bb6b7719-a588-47bc-94cd-d3aa3bf83426
2025-09-16 21:44:59,253 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d520d8da-c119-405a-8285-b6782dad4663
2025-09-16 21:44:59,263 - INFO - Verified VN network id 12 for VN bb6b7719-a588-47bc-94cd-d3aa3bf83426
2025-09-16 21:44:59,263 - INFO - Verifications in API Server for VN ctest-vn-78231743 passed
2025-09-16 21:44:59,263 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bb6b7719-a588-47bc-94cd-d3aa3bf83426
2025-09-16 21:44:59,270 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d520d8da-c119-405a-8285-b6782dad4663
2025-09-16 21:44:59,275 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d520d8da-c119-405a-8285-b6782dad4663
2025-09-16 21:44:59,281 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7a153e43-7628-495c-aa7a-4b6ed6c294e5
2025-09-16 21:44:59,291 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-78231743', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08044289', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13505018859635623868', 'uuid-lslong': '10722459015943042086'}, 'enable': 'true', 'created': '2025-09-16T21:44:57', 'last-modified': '2025-09-16T21:44:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944176'}
2025-09-16 21:44:59,297 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-16 21:44:59,297 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78231743 passed
2025-09-16 21:44:59,297 - DEBUG - ====Verifying policy data for ctest-vn-78231743 in API_Server ======
2025-09-16 21:44:59,297 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 21:44:59,302 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9256f94d-248d-468a-af9f-09d230685e6d
2025-09-16 21:44:59,311 - DEBUG - Requesting: http://10.0.0.22:8082/project/23c4286e-e0f7-4a51-918e-52490b06087d
2025-09-16 21:44:59,381 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bb6b7719-a588-47bc-94cd-d3aa3bf83426
2025-09-16 21:44:59,388 - DEBUG - ==>Verifying data for policy with id: dc53d4cf-cee0-4796-8648-5a2f3edbe544, fqn: ['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-policy-allow-all-00385390']
2025-09-16 21:44:59,388 - INFO - VN ctest-vn-78231743 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 21:44:59,389 - DEBUG - Verifying the vn in opserver
2025-09-16 21:44:59,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-78231743 virtual network link through opserver 10.0.0.22
2025-09-16 21:44:59,389 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-16 21:44:59,684 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-16 21:44:59,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-78231743', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-78231743?flat'}
2025-09-16 21:44:59,732 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-78231743 is found in opserver
2025-09-16 21:44:59,741 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 21:44:59,745 - DEBUG - VRF ids for VN ctest-vn-78231743: {}
2025-09-16 21:44:59,745 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 21:44:59,749 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9256f94d-248d-468a-af9f-09d230685e6d
2025-09-16 21:44:59,758 - DEBUG - Requesting: http://10.0.0.22:8082/project/23c4286e-e0f7-4a51-918e-52490b06087d
2025-09-16 21:44:59,828 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1087a6b5-025e-4f55-884e-ff8e70bd003c
2025-09-16 21:44:59,838 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1087a6b5-025e-4f55-884e-ff8e70bd003c
2025-09-16 21:44:59,845 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab84445e-b574-4056-99c4-a98d8c6c92ae
2025-09-16 21:44:59,851 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab84445e-b574-4056-99c4-a98d8c6c92ae
2025-09-16 21:44:59,856 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0385318f-48bc-43fb-aecd-af614201e1ed
2025-09-16 21:44:59,863 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 21:44:59,863 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1087a6b5-025e-4f55-884e-ff8e70bd003c
2025-09-16 21:44:59,874 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab84445e-b574-4056-99c4-a98d8c6c92ae
2025-09-16 21:44:59,884 - INFO - Verified VN network id 13 for VN 1087a6b5-025e-4f55-884e-ff8e70bd003c
2025-09-16 21:44:59,884 - INFO - Verifications in API Server for VN ctest-vn-30912763 passed
2025-09-16 21:44:59,884 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1087a6b5-025e-4f55-884e-ff8e70bd003c
2025-09-16 21:44:59,891 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab84445e-b574-4056-99c4-a98d8c6c92ae
2025-09-16 21:44:59,897 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab84445e-b574-4056-99c4-a98d8c6c92ae
2025-09-16 21:44:59,902 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0385318f-48bc-43fb-aecd-af614201e1ed
2025-09-16 21:44:59,912 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-30912763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08044289', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1191103922821812053', 'uuid-lslong': '9822068824583503932'}, 'enable': 'true', 'created': '2025-09-16T21:44:57', 'last-modified': '2025-09-16T21:44:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333992'}
2025-09-16 21:44:59,916 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-16 21:44:59,917 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30912763 passed
2025-09-16 21:44:59,917 - DEBUG - ====Verifying policy data for ctest-vn-30912763 in API_Server ======
2025-09-16 21:44:59,917 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-16 21:44:59,921 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9256f94d-248d-468a-af9f-09d230685e6d
2025-09-16 21:44:59,930 - DEBUG - Requesting: http://10.0.0.22:8082/project/23c4286e-e0f7-4a51-918e-52490b06087d
2025-09-16 21:45:00,002 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1087a6b5-025e-4f55-884e-ff8e70bd003c
2025-09-16 21:45:00,013 - DEBUG - ==>Verifying data for policy with id: dc53d4cf-cee0-4796-8648-5a2f3edbe544, fqn: ['default-domain', 'ctest-TestBasicPolicy-08044289', 'ctest-policy-allow-all-00385390']
2025-09-16 21:45:00,013 - INFO - VN ctest-vn-30912763 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-16 21:45:00,013 - DEBUG - Verifying the vn in opserver
2025-09-16 21:45:00,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-30912763 virtual network link through opserver 10.0.0.22
2025-09-16 21:45:00,013 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-16 21:45:00,023 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-30912763', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-30912763?flat'}
2025-09-16 21:45:00,024 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08044289:ctest-vn-30912763 is found in opserver
2025-09-16 21:45:00,033 - DEBUG - Do not have enough data to verify VN in agent
2025-09-16 21:45:00,037 - DEBUG - VRF ids for VN ctest-vn-30912763: {}
2025-09-16 21:45:00,090 - DEBUG - Services list from nova: [