2025-06-17 19:06:46,629 - INFO - Domain Default found not creating
2025-06-17 19:06:46,796 - INFO - Project ctest-TestBasicPolicy-74279133 not found, creating it
2025-06-17 19:06:47,272 - INFO - Created Project:ctest-TestBasicPolicy-74279133, ID : 6e490a14-6f7d-4f3a-a5bd-e7c2269de48b
2025-06-17 19:06:48,778 - INFO - ================================================================================
2025-06-17 19:06:48,778 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 19:06:48,778 - 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-06-17 19:06:49,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-06-17 19:06:49,041 - INFO - Initial checks done. Running the testcase now
2025-06-17 19:06:49,041 - INFO -
2025-06-17 19:06:49,615 - DEBUG - Response for create_network : {'network': {'id': 'b84a68be-7873-4afc-82b9-d1365f1d862f', 'name': 'ctest-vn-78966059', 'tenant_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'project_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-vn-78966059'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 19:06:49,778 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb13ee93-ad06-4d8a-a862-6726459e1ff1', 'name': '', 'tenant_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'network_id': 'b84a68be-7873-4afc-82b9-d1365f1d862f', 'ip_version': 4, 'cidr': '47.129.207.0/26', 'allocation_pools': [{'start': '47.129.207.2', 'end': '47.129.207.62'}], 'gateway_ip': '47.129.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.129.207.2', 'tags': [], 'project_id': '6e490a146f7d4f3aa5bde7c2269de48b'}}
2025-06-17 19:06:49,799 - INFO - Created VN ctest-vn-78966059
2025-06-17 19:06:49,857 - DEBUG - VN ctest-vn-78966059 UUID is b84a68be-7873-4afc-82b9-d1365f1d862f
2025-06-17 19:06:50,159 - DEBUG - Response for create_network : {'network': {'id': '7f951617-d0ad-490f-b56b-d40e5573ab4d', 'name': 'ctest-vn-19668542', 'tenant_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'project_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-vn-19668542'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 19:06:50,376 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8e87c4f-84f6-4029-b272-d54806f0d47c', 'name': '', 'tenant_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'network_id': '7f951617-d0ad-490f-b56b-d40e5573ab4d', 'ip_version': 4, 'cidr': '89.138.61.192/26', 'allocation_pools': [{'start': '89.138.61.194', 'end': '89.138.61.254'}], 'gateway_ip': '89.138.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.138.61.194', 'tags': [], 'project_id': '6e490a146f7d4f3aa5bde7c2269de48b'}}
2025-06-17 19:06:50,396 - INFO - Created VN ctest-vn-19668542
2025-06-17 19:06:50,449 - DEBUG - VN ctest-vn-19668542 UUID is 7f951617-d0ad-490f-b56b-d40e5573ab4d
2025-06-17 19:06:50,572 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-78966059, 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-74279133:ctest-vn-19668542, 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-06-17 19:06:50,875 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b84a68be-7873-4afc-82b9-d1365f1d862f', 'name': 'ctest-vn-78966059', 'tenant_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'project_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb13ee93-ad06-4d8a-a862-6726459e1ff1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-vn-78966059'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-policy-allow-all-10532688']], 'subnet_ipam': [{'subnet_cidr': '47.129.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 19:06:51,117 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f951617-d0ad-490f-b56b-d40e5573ab4d', 'name': 'ctest-vn-19668542', 'tenant_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'project_id': '6e490a146f7d4f3aa5bde7c2269de48b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8e87c4f-84f6-4029-b272-d54806f0d47c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-vn-19668542'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-policy-allow-all-10532688']], 'subnet_ipam': [{'subnet_cidr': '89.138.61.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 19:06:51,257 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 19:06:51,553 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 19:06:51,585 - DEBUG - Requesting: http://10.0.0.57:8082/domain/5087096a-1565-41ba-823e-859072acb566
2025-06-17 19:06:51,601 - DEBUG - Requesting: http://10.0.0.57:8082/project/6e490a14-6f7d-4f3a-a5bd-e7c2269de48b
2025-06-17 19:06:51,680 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b84a68be-7873-4afc-82b9-d1365f1d862f
2025-06-17 19:06:51,693 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b84a68be-7873-4afc-82b9-d1365f1d862f
2025-06-17 19:06:51,705 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/95a71221-9d5a-4057-b738-2e78e1f395b7
2025-06-17 19:06:51,715 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/95a71221-9d5a-4057-b738-2e78e1f395b7
2025-06-17 19:06:51,723 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/2a06b5ce-9d96-4fb0-8057-6f3748ba550a
2025-06-17 19:06:51,730 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 19:06:51,730 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b84a68be-7873-4afc-82b9-d1365f1d862f
2025-06-17 19:06:51,740 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/95a71221-9d5a-4057-b738-2e78e1f395b7
2025-06-17 19:06:51,756 - INFO - Verified VN network id 9 for VN b84a68be-7873-4afc-82b9-d1365f1d862f
2025-06-17 19:06:51,756 - INFO - Verifications in API Server for VN ctest-vn-78966059 passed
2025-06-17 19:06:51,757 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b84a68be-7873-4afc-82b9-d1365f1d862f
2025-06-17 19:06:51,768 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/95a71221-9d5a-4057-b738-2e78e1f395b7
2025-06-17 19:06:51,777 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/95a71221-9d5a-4057-b738-2e78e1f395b7
2025-06-17 19:06:51,786 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/2a06b5ce-9d96-4fb0-8057-6f3748ba550a
2025-06-17 19:06:51,803 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-78966059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74279133', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13279541618529225468', 'uuid-lslong': '9419790127076312623'}, 'enable': 'true', 'created': '2025-06-17T19:06:49', 'last-modified': '2025-06-17T19:06:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954395'}
2025-06-17 19:06:51,810 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 19:06:51,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78966059 passed
2025-06-17 19:06:51,810 - DEBUG - ====Verifying policy data for ctest-vn-78966059 in API_Server ======
2025-06-17 19:06:51,810 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 19:06:51,817 - DEBUG - Requesting: http://10.0.0.57:8082/domain/5087096a-1565-41ba-823e-859072acb566
2025-06-17 19:06:51,832 - DEBUG - Requesting: http://10.0.0.57:8082/project/6e490a14-6f7d-4f3a-a5bd-e7c2269de48b
2025-06-17 19:06:51,917 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b84a68be-7873-4afc-82b9-d1365f1d862f
2025-06-17 19:06:51,929 - DEBUG - ==>Verifying data for policy with id: fc8467e2-0289-49fa-8bf4-7758f86db0c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-policy-allow-all-10532688']
2025-06-17 19:06:51,929 - INFO - VN ctest-vn-78966059 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 19:06:51,929 - DEBUG - Verifying the vn in opserver
2025-06-17 19:06:51,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-78966059 virtual network link through opserver 10.0.0.57
2025-06-17 19:06:51,929 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-17 19:06:52,227 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-17 19:06:52,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-78966059', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-78966059?flat'}
2025-06-17 19:06:52,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-78966059 is found in opserver
2025-06-17 19:06:52,300 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 19:06:52,305 - DEBUG - VRF ids for VN ctest-vn-78966059: {}
2025-06-17 19:06:52,306 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 19:06:52,311 - DEBUG - Requesting: http://10.0.0.57:8082/domain/5087096a-1565-41ba-823e-859072acb566
2025-06-17 19:06:52,323 - DEBUG - Requesting: http://10.0.0.57:8082/project/6e490a14-6f7d-4f3a-a5bd-e7c2269de48b
2025-06-17 19:06:52,459 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f951617-d0ad-490f-b56b-d40e5573ab4d
2025-06-17 19:06:52,474 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f951617-d0ad-490f-b56b-d40e5573ab4d
2025-06-17 19:06:52,486 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee0738c1-1dcc-4709-b0da-3cea3742407d
2025-06-17 19:06:52,495 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee0738c1-1dcc-4709-b0da-3cea3742407d
2025-06-17 19:06:52,503 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b90e4297-ebec-48eb-91ac-3dd7e6304301
2025-06-17 19:06:52,511 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 19:06:52,511 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f951617-d0ad-490f-b56b-d40e5573ab4d
2025-06-17 19:06:52,525 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee0738c1-1dcc-4709-b0da-3cea3742407d
2025-06-17 19:06:52,543 - INFO - Verified VN network id 10 for VN 7f951617-d0ad-490f-b56b-d40e5573ab4d
2025-06-17 19:06:52,543 - INFO - Verifications in API Server for VN ctest-vn-19668542 passed
2025-06-17 19:06:52,543 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f951617-d0ad-490f-b56b-d40e5573ab4d
2025-06-17 19:06:52,554 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee0738c1-1dcc-4709-b0da-3cea3742407d
2025-06-17 19:06:52,562 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee0738c1-1dcc-4709-b0da-3cea3742407d
2025-06-17 19:06:52,571 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b90e4297-ebec-48eb-91ac-3dd7e6304301
2025-06-17 19:06:52,585 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-19668542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74279133', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9193278505887811855', 'uuid-lslong': '13072775501401271117'}, 'enable': 'true', 'created': '2025-06-17T19:06:50', 'last-modified': '2025-06-17T19:06:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488640'}
2025-06-17 19:06:52,592 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 19:06:52,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19668542 passed
2025-06-17 19:06:52,593 - DEBUG - ====Verifying policy data for ctest-vn-19668542 in API_Server ======
2025-06-17 19:06:52,593 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 19:06:52,600 - DEBUG - Requesting: http://10.0.0.57:8082/domain/5087096a-1565-41ba-823e-859072acb566
2025-06-17 19:06:52,613 - DEBUG - Requesting: http://10.0.0.57:8082/project/6e490a14-6f7d-4f3a-a5bd-e7c2269de48b
2025-06-17 19:06:52,693 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f951617-d0ad-490f-b56b-d40e5573ab4d
2025-06-17 19:06:52,706 - DEBUG - ==>Verifying data for policy with id: fc8467e2-0289-49fa-8bf4-7758f86db0c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-74279133', 'ctest-policy-allow-all-10532688']
2025-06-17 19:06:52,706 - INFO - VN ctest-vn-19668542 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 19:06:52,706 - DEBUG - Verifying the vn in opserver
2025-06-17 19:06:52,706 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-19668542 virtual network link through opserver 10.0.0.57
2025-06-17 19:06:52,706 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-17 19:06:52,718 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-19668542', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-19668542?flat'}
2025-06-17 19:06:52,718 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74279133:ctest-vn-19668542 is found in opserver
2025-06-17 19:06:52,731 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 19:06:52,737 - DEBUG - VRF ids for VN ctest-vn-19668542: {}
2025-06-17 19:06:52,811 - DEBUG - Services list from nova: [