2025-04-24 19:32:46,975 - INFO - Domain Default found not creating
2025-04-24 19:32:47,102 - INFO - Project ctest-TestBasicPolicy-32387916 not found, creating it
2025-04-24 19:32:47,533 - INFO - Created Project:ctest-TestBasicPolicy-32387916, ID : c6e068f1-480c-40b2-8e95-131dcc89652d
2025-04-24 19:32:48,917 - INFO - ================================================================================
2025-04-24 19:32:48,918 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 19:32:48,918 - 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-04-24 19:32:49,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.254': '0'}} with
2025-04-24 19:32:49,180 - INFO - Initial checks done. Running the testcase now
2025-04-24 19:32:49,180 - INFO -
2025-04-24 19:32:49,978 - DEBUG - Response for create_network : {'network': {'id': '05409aff-b733-499c-8b8a-33ae6e737e41', 'name': 'ctest-vn-34770495', 'tenant_id': 'c6e068f1480c40b28e95131dcc89652d', 'project_id': 'c6e068f1480c40b28e95131dcc89652d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-vn-34770495'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:32:50,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '353b5115-4ba5-45be-af01-3af775a8c662', 'name': '', 'tenant_id': 'c6e068f1480c40b28e95131dcc89652d', 'network_id': '05409aff-b733-499c-8b8a-33ae6e737e41', 'ip_version': 4, 'cidr': '113.48.150.192/26', 'allocation_pools': [{'start': '113.48.150.194', 'end': '113.48.150.254'}], 'gateway_ip': '113.48.150.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.48.150.194', 'tags': [], 'project_id': 'c6e068f1480c40b28e95131dcc89652d'}}
2025-04-24 19:32:50,154 - INFO - Created VN ctest-vn-34770495
2025-04-24 19:32:50,205 - DEBUG - VN ctest-vn-34770495 UUID is 05409aff-b733-499c-8b8a-33ae6e737e41
2025-04-24 19:32:50,551 - DEBUG - Response for create_network : {'network': {'id': 'a8a92459-0b1e-4f40-a3e3-e6edad829c1b', 'name': 'ctest-vn-72520603', 'tenant_id': 'c6e068f1480c40b28e95131dcc89652d', 'project_id': 'c6e068f1480c40b28e95131dcc89652d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-vn-72520603'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:32:50,722 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb9eb625-3b4b-4714-8886-a589b5f84de6', 'name': '', 'tenant_id': 'c6e068f1480c40b28e95131dcc89652d', 'network_id': 'a8a92459-0b1e-4f40-a3e3-e6edad829c1b', 'ip_version': 4, 'cidr': '49.75.225.0/26', 'allocation_pools': [{'start': '49.75.225.2', 'end': '49.75.225.62'}], 'gateway_ip': '49.75.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.75.225.2', 'tags': [], 'project_id': 'c6e068f1480c40b28e95131dcc89652d'}}
2025-04-24 19:32:50,885 - INFO - Created VN ctest-vn-72520603
2025-04-24 19:32:50,937 - DEBUG - VN ctest-vn-72520603 UUID is a8a92459-0b1e-4f40-a3e3-e6edad829c1b
2025-04-24 19:32:51,093 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-34770495, 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-32387916:ctest-vn-72520603, 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-04-24 19:32:51,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05409aff-b733-499c-8b8a-33ae6e737e41', 'name': 'ctest-vn-34770495', 'tenant_id': 'c6e068f1480c40b28e95131dcc89652d', 'project_id': 'c6e068f1480c40b28e95131dcc89652d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['353b5115-4ba5-45be-af01-3af775a8c662'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-vn-34770495'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-policy-allow-all-73221593']], 'subnet_ipam': [{'subnet_cidr': '113.48.150.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:32:51,627 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8a92459-0b1e-4f40-a3e3-e6edad829c1b', 'name': 'ctest-vn-72520603', 'tenant_id': 'c6e068f1480c40b28e95131dcc89652d', 'project_id': 'c6e068f1480c40b28e95131dcc89652d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb9eb625-3b4b-4714-8886-a589b5f84de6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-vn-72520603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-policy-allow-all-73221593']], 'subnet_ipam': [{'subnet_cidr': '49.75.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 19:32:51,781 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-24 19:32:52,078 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-24 19:32:52,107 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba062432-3348-465d-91c6-fcb1839083c5
2025-04-24 19:32:52,122 - DEBUG - Requesting: http://10.0.0.130:8082/project/c6e068f1-480c-40b2-8e95-131dcc89652d
2025-04-24 19:32:52,196 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/05409aff-b733-499c-8b8a-33ae6e737e41
2025-04-24 19:32:52,211 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/05409aff-b733-499c-8b8a-33ae6e737e41
2025-04-24 19:32:52,220 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b57dc7-3c43-4cd3-a252-84b4fabf5713
2025-04-24 19:32:52,227 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b57dc7-3c43-4cd3-a252-84b4fabf5713
2025-04-24 19:32:52,235 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0c989e95-09b2-4d82-ae28-af4fc5c0757f
2025-04-24 19:32:52,242 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 19:32:52,242 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/05409aff-b733-499c-8b8a-33ae6e737e41
2025-04-24 19:32:52,253 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b57dc7-3c43-4cd3-a252-84b4fabf5713
2025-04-24 19:32:52,266 - INFO - Verified VN network id 8 for VN 05409aff-b733-499c-8b8a-33ae6e737e41
2025-04-24 19:32:52,266 - INFO - Verifications in API Server for VN ctest-vn-34770495 passed
2025-04-24 19:32:52,266 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/05409aff-b733-499c-8b8a-33ae6e737e41
2025-04-24 19:32:52,275 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b57dc7-3c43-4cd3-a252-84b4fabf5713
2025-04-24 19:32:52,286 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b57dc7-3c43-4cd3-a252-84b4fabf5713
2025-04-24 19:32:52,292 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0c989e95-09b2-4d82-ae28-af4fc5c0757f
2025-04-24 19:32:52,305 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-34770495', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32387916', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '378472791780051356', 'uuid-lslong': '10054905942328442433'}, 'enable': 'true', 'created': '2025-04-24T19:32:49', 'last-modified': '2025-04-24T19:32:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940969'}
2025-04-24 19:32:52,311 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 19:32:52,311 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34770495 passed
2025-04-24 19:32:52,311 - DEBUG - ====Verifying policy data for ctest-vn-34770495 in API_Server ======
2025-04-24 19:32:52,311 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-24 19:32:52,317 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba062432-3348-465d-91c6-fcb1839083c5
2025-04-24 19:32:52,329 - DEBUG - Requesting: http://10.0.0.130:8082/project/c6e068f1-480c-40b2-8e95-131dcc89652d
2025-04-24 19:32:52,412 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/05409aff-b733-499c-8b8a-33ae6e737e41
2025-04-24 19:32:52,423 - DEBUG - ==>Verifying data for policy with id: ee37b704-dee6-4a4a-bd9e-fef062036e0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-policy-allow-all-73221593']
2025-04-24 19:32:52,424 - INFO - VN ctest-vn-34770495 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 19:32:52,424 - DEBUG - Verifying the vn in opserver
2025-04-24 19:32:52,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-34770495 virtual network link through opserver 10.0.0.130
2025-04-24 19:32:52,424 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-24 19:32:52,723 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-24 19:32:52,783 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-34770495', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-34770495?flat'}
2025-04-24 19:32:52,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-34770495 is found in opserver
2025-04-24 19:32:52,794 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 19:32:52,799 - DEBUG - VRF ids for VN ctest-vn-34770495: {}
2025-04-24 19:32:52,799 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-24 19:32:52,805 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba062432-3348-465d-91c6-fcb1839083c5
2025-04-24 19:32:52,816 - DEBUG - Requesting: http://10.0.0.130:8082/project/c6e068f1-480c-40b2-8e95-131dcc89652d
2025-04-24 19:32:52,891 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a8a92459-0b1e-4f40-a3e3-e6edad829c1b
2025-04-24 19:32:52,903 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a8a92459-0b1e-4f40-a3e3-e6edad829c1b
2025-04-24 19:32:52,912 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9db1ac50-d8d9-46a9-b555-1c7af5220409
2025-04-24 19:32:52,921 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9db1ac50-d8d9-46a9-b555-1c7af5220409
2025-04-24 19:32:52,928 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/512735f5-a915-448f-ad7d-7f3f0801401e
2025-04-24 19:32:52,934 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 19:32:52,934 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a8a92459-0b1e-4f40-a3e3-e6edad829c1b
2025-04-24 19:32:52,945 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9db1ac50-d8d9-46a9-b555-1c7af5220409
2025-04-24 19:32:52,962 - INFO - Verified VN network id 9 for VN a8a92459-0b1e-4f40-a3e3-e6edad829c1b
2025-04-24 19:32:52,962 - INFO - Verifications in API Server for VN ctest-vn-72520603 passed
2025-04-24 19:32:52,962 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a8a92459-0b1e-4f40-a3e3-e6edad829c1b
2025-04-24 19:32:52,977 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9db1ac50-d8d9-46a9-b555-1c7af5220409
2025-04-24 19:32:52,985 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9db1ac50-d8d9-46a9-b555-1c7af5220409
2025-04-24 19:32:52,993 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/512735f5-a915-448f-ad7d-7f3f0801401e
2025-04-24 19:32:53,004 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-72520603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32387916', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12153285034293219136', 'uuid-lslong': '11809536556388228123'}, 'enable': 'true', 'created': '2025-04-24T19:32:50', 'last-modified': '2025-04-24T19:32:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398950'}
2025-04-24 19:32:53,010 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 19:32:53,010 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72520603 passed
2025-04-24 19:32:53,010 - DEBUG - ====Verifying policy data for ctest-vn-72520603 in API_Server ======
2025-04-24 19:32:53,010 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-24 19:32:53,015 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba062432-3348-465d-91c6-fcb1839083c5
2025-04-24 19:32:53,026 - DEBUG - Requesting: http://10.0.0.130:8082/project/c6e068f1-480c-40b2-8e95-131dcc89652d
2025-04-24 19:32:53,100 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a8a92459-0b1e-4f40-a3e3-e6edad829c1b
2025-04-24 19:32:53,109 - DEBUG - ==>Verifying data for policy with id: ee37b704-dee6-4a4a-bd9e-fef062036e0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-32387916', 'ctest-policy-allow-all-73221593']
2025-04-24 19:32:53,109 - INFO - VN ctest-vn-72520603 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 19:32:53,109 - DEBUG - Verifying the vn in opserver
2025-04-24 19:32:53,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-72520603 virtual network link through opserver 10.0.0.130
2025-04-24 19:32:53,109 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-24 19:32:53,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-72520603', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-72520603?flat'}
2025-04-24 19:32:53,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32387916:ctest-vn-72520603 is found in opserver
2025-04-24 19:32:53,134 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 19:32:53,138 - DEBUG - VRF ids for VN ctest-vn-72520603: {}
2025-04-24 19:32:53,192 - DEBUG - Services list from nova: [