2025-04-24 02:02:54,612 - INFO - Domain Default found not creating
2025-04-24 02:02:54,731 - INFO - Project ctest-TestBasicPolicy-27042086 not found, creating it
2025-04-24 02:02:55,210 - INFO - Created Project:ctest-TestBasicPolicy-27042086, ID : d7eb180a-9b61-497d-ad26-4fe46b46f152
2025-04-24 02:02:56,546 - INFO - ================================================================================
2025-04-24 02:02:56,546 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 02:02:56,546 - 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 02:02:56,803 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0'}} with
2025-04-24 02:02:56,803 - INFO - Initial checks done. Running the testcase now
2025-04-24 02:02:56,803 - INFO -
2025-04-24 02:02:57,323 - DEBUG - Response for create_network : {'network': {'id': 'dfdaca50-8cac-48ff-adb5-a12d8b49c4fa', 'name': 'ctest-vn-02213936', 'tenant_id': 'd7eb180a9b61497dad264fe46b46f152', 'project_id': 'd7eb180a9b61497dad264fe46b46f152', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-vn-02213936'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:02:57,481 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e727b525-0690-426a-ab85-8ce87b3835d4', 'name': '', 'tenant_id': 'd7eb180a9b61497dad264fe46b46f152', 'network_id': 'dfdaca50-8cac-48ff-adb5-a12d8b49c4fa', 'ip_version': 4, 'cidr': '206.13.196.64/26', 'allocation_pools': [{'start': '206.13.196.66', 'end': '206.13.196.126'}], 'gateway_ip': '206.13.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.13.196.66', 'tags': [], 'project_id': 'd7eb180a9b61497dad264fe46b46f152'}}
2025-04-24 02:02:57,499 - INFO - Created VN ctest-vn-02213936
2025-04-24 02:02:57,550 - DEBUG - VN ctest-vn-02213936 UUID is dfdaca50-8cac-48ff-adb5-a12d8b49c4fa
2025-04-24 02:02:57,866 - DEBUG - Response for create_network : {'network': {'id': '1898454e-6f0a-4211-9e31-dc480a938c12', 'name': 'ctest-vn-65059573', 'tenant_id': 'd7eb180a9b61497dad264fe46b46f152', 'project_id': 'd7eb180a9b61497dad264fe46b46f152', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-vn-65059573'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:02:58,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '99cddf30-784d-446b-930a-9a32ab7198f6', 'name': '', 'tenant_id': 'd7eb180a9b61497dad264fe46b46f152', 'network_id': '1898454e-6f0a-4211-9e31-dc480a938c12', 'ip_version': 4, 'cidr': '170.150.135.192/26', 'allocation_pools': [{'start': '170.150.135.194', 'end': '170.150.135.254'}], 'gateway_ip': '170.150.135.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.150.135.194', 'tags': [], 'project_id': 'd7eb180a9b61497dad264fe46b46f152'}}
2025-04-24 02:02:58,080 - INFO - Created VN ctest-vn-65059573
2025-04-24 02:02:58,134 - DEBUG - VN ctest-vn-65059573 UUID is 1898454e-6f0a-4211-9e31-dc480a938c12
2025-04-24 02:02:58,326 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-02213936, 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-27042086:ctest-vn-65059573, 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 02:02:58,615 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfdaca50-8cac-48ff-adb5-a12d8b49c4fa', 'name': 'ctest-vn-02213936', 'tenant_id': 'd7eb180a9b61497dad264fe46b46f152', 'project_id': 'd7eb180a9b61497dad264fe46b46f152', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e727b525-0690-426a-ab85-8ce87b3835d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-vn-02213936'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-policy-allow-all-64308272']], 'subnet_ipam': [{'subnet_cidr': '206.13.196.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:02:58,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1898454e-6f0a-4211-9e31-dc480a938c12', 'name': 'ctest-vn-65059573', 'tenant_id': 'd7eb180a9b61497dad264fe46b46f152', 'project_id': 'd7eb180a9b61497dad264fe46b46f152', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99cddf30-784d-446b-930a-9a32ab7198f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-vn-65059573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-policy-allow-all-64308272']], 'subnet_ipam': [{'subnet_cidr': '170.150.135.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:02:59,042 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-24 02:02:59,406 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-24 02:02:59,446 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14fd59fa-11f8-48ef-90be-991f37e7405c
2025-04-24 02:02:59,473 - DEBUG - Requesting: http://10.0.0.141:8082/project/d7eb180a-9b61-497d-ad26-4fe46b46f152
2025-04-24 02:02:59,567 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dfdaca50-8cac-48ff-adb5-a12d8b49c4fa
2025-04-24 02:02:59,580 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dfdaca50-8cac-48ff-adb5-a12d8b49c4fa
2025-04-24 02:02:59,596 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ce42426-31b2-479e-b032-257929498c0b
2025-04-24 02:02:59,608 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ce42426-31b2-479e-b032-257929498c0b
2025-04-24 02:02:59,625 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/34827fec-8190-400b-9ddb-63a8ff20340d
2025-04-24 02:02:59,642 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 02:02:59,642 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dfdaca50-8cac-48ff-adb5-a12d8b49c4fa
2025-04-24 02:02:59,652 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ce42426-31b2-479e-b032-257929498c0b
2025-04-24 02:02:59,682 - INFO - Verified VN network id 9 for VN dfdaca50-8cac-48ff-adb5-a12d8b49c4fa
2025-04-24 02:02:59,682 - INFO - Verifications in API Server for VN ctest-vn-02213936 passed
2025-04-24 02:02:59,682 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dfdaca50-8cac-48ff-adb5-a12d8b49c4fa
2025-04-24 02:02:59,696 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ce42426-31b2-479e-b032-257929498c0b
2025-04-24 02:02:59,705 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7ce42426-31b2-479e-b032-257929498c0b
2025-04-24 02:02:59,713 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/34827fec-8190-400b-9ddb-63a8ff20340d
2025-04-24 02:02:59,733 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-02213936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27042086', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16130427462687148287', 'uuid-lslong': '12517087956328629498'}, 'enable': 'true', 'created': '2025-04-24T02:02:57', 'last-modified': '2025-04-24T02:02:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.138062'}
2025-04-24 02:02:59,739 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 02:02:59,739 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02213936 passed
2025-04-24 02:02:59,740 - DEBUG - ====Verifying policy data for ctest-vn-02213936 in API_Server ======
2025-04-24 02:02:59,740 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-24 02:02:59,763 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14fd59fa-11f8-48ef-90be-991f37e7405c
2025-04-24 02:02:59,794 - DEBUG - Requesting: http://10.0.0.141:8082/project/d7eb180a-9b61-497d-ad26-4fe46b46f152
2025-04-24 02:02:59,874 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dfdaca50-8cac-48ff-adb5-a12d8b49c4fa
2025-04-24 02:02:59,884 - DEBUG - ==>Verifying data for policy with id: 099aaec0-6cfe-4ffa-bd7b-05c1dea15acd, fqn: ['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-policy-allow-all-64308272']
2025-04-24 02:02:59,884 - INFO - VN ctest-vn-02213936 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 02:02:59,884 - DEBUG - Verifying the vn in opserver
2025-04-24 02:02:59,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-02213936 virtual network link through opserver 10.0.0.141
2025-04-24 02:02:59,884 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-04-24 02:03:00,172 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-04-24 02:03:00,221 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-02213936', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-02213936?flat'}
2025-04-24 02:03:00,221 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-02213936 is found in opserver
2025-04-24 02:03:00,231 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 02:03:00,236 - DEBUG - VRF ids for VN ctest-vn-02213936: {}
2025-04-24 02:03:00,236 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-24 02:03:00,241 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14fd59fa-11f8-48ef-90be-991f37e7405c
2025-04-24 02:03:00,252 - DEBUG - Requesting: http://10.0.0.141:8082/project/d7eb180a-9b61-497d-ad26-4fe46b46f152
2025-04-24 02:03:00,325 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1898454e-6f0a-4211-9e31-dc480a938c12
2025-04-24 02:03:00,337 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1898454e-6f0a-4211-9e31-dc480a938c12
2025-04-24 02:03:00,346 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/10390e1e-2444-48ac-b571-2b87c15d2d64
2025-04-24 02:03:00,352 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/10390e1e-2444-48ac-b571-2b87c15d2d64
2025-04-24 02:03:00,358 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/002701b9-f8a2-41ff-8735-2bb7985c28cd
2025-04-24 02:03:00,363 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 02:03:00,363 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1898454e-6f0a-4211-9e31-dc480a938c12
2025-04-24 02:03:00,371 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/10390e1e-2444-48ac-b571-2b87c15d2d64
2025-04-24 02:03:00,382 - INFO - Verified VN network id 10 for VN 1898454e-6f0a-4211-9e31-dc480a938c12
2025-04-24 02:03:00,382 - INFO - Verifications in API Server for VN ctest-vn-65059573 passed
2025-04-24 02:03:00,383 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1898454e-6f0a-4211-9e31-dc480a938c12
2025-04-24 02:03:00,391 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/10390e1e-2444-48ac-b571-2b87c15d2d64
2025-04-24 02:03:00,397 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/10390e1e-2444-48ac-b571-2b87c15d2d64
2025-04-24 02:03:00,402 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/002701b9-f8a2-41ff-8735-2bb7985c28cd
2025-04-24 02:03:00,412 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-65059573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27042086', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1772242656542999057', 'uuid-lslong': '11399134333824633874'}, 'enable': 'true', 'created': '2025-04-24T02:02:57', 'last-modified': '2025-04-24T02:02:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.587784'}
2025-04-24 02:03:00,418 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 02:03:00,418 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65059573 passed
2025-04-24 02:03:00,418 - DEBUG - ====Verifying policy data for ctest-vn-65059573 in API_Server ======
2025-04-24 02:03:00,418 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-04-24 02:03:00,423 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14fd59fa-11f8-48ef-90be-991f37e7405c
2025-04-24 02:03:00,433 - DEBUG - Requesting: http://10.0.0.141:8082/project/d7eb180a-9b61-497d-ad26-4fe46b46f152
2025-04-24 02:03:00,512 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1898454e-6f0a-4211-9e31-dc480a938c12
2025-04-24 02:03:00,521 - DEBUG - ==>Verifying data for policy with id: 099aaec0-6cfe-4ffa-bd7b-05c1dea15acd, fqn: ['default-domain', 'ctest-TestBasicPolicy-27042086', 'ctest-policy-allow-all-64308272']
2025-04-24 02:03:00,521 - INFO - VN ctest-vn-65059573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 02:03:00,521 - DEBUG - Verifying the vn in opserver
2025-04-24 02:03:00,521 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-65059573 virtual network link through opserver 10.0.0.141
2025-04-24 02:03:00,521 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-04-24 02:03:00,530 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-65059573', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-65059573?flat'}
2025-04-24 02:03:00,530 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27042086:ctest-vn-65059573 is found in opserver
2025-04-24 02:03:00,540 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 02:03:00,545 - DEBUG - VRF ids for VN ctest-vn-65059573: {}
2025-04-24 02:03:00,591 - DEBUG - Services list from nova: [