2025-04-26 08:41:05,788 - INFO - Domain Default found not creating
2025-04-26 08:41:05,932 - INFO - Project ctest-TestBasicPolicy-71337204 not found, creating it
2025-04-26 08:41:06,395 - INFO - Created Project:ctest-TestBasicPolicy-71337204, ID : 5c369d1f-63a1-46f5-a4e5-8aec3fb68684
2025-04-26 08:41:07,856 - INFO - ================================================================================
2025-04-26 08:41:07,856 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 08:41:07,856 - 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-26 08:41:08,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-04-26 08:41:08,113 - INFO - Initial checks done. Running the testcase now
2025-04-26 08:41:08,113 - INFO -
2025-04-26 08:41:08,769 - DEBUG - Response for create_network : {'network': {'id': '4d263dd3-ab08-43ed-ab04-781cdb861178', 'name': 'ctest-vn-53455064', 'tenant_id': '5c369d1f63a146f5a4e58aec3fb68684', 'project_id': '5c369d1f63a146f5a4e58aec3fb68684', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-vn-53455064'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 08:41:08,921 - DEBUG - Response for create_subnet : {'subnet': {'id': '70bf795e-3bc5-4412-9538-a1879a965e97', 'name': '', 'tenant_id': '5c369d1f63a146f5a4e58aec3fb68684', 'network_id': '4d263dd3-ab08-43ed-ab04-781cdb861178', 'ip_version': 4, 'cidr': '54.115.178.64/26', 'allocation_pools': [{'start': '54.115.178.66', 'end': '54.115.178.126'}], 'gateway_ip': '54.115.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.115.178.66', 'tags': [], 'project_id': '5c369d1f63a146f5a4e58aec3fb68684'}}
2025-04-26 08:41:08,938 - INFO - Created VN ctest-vn-53455064
2025-04-26 08:41:08,991 - DEBUG - VN ctest-vn-53455064 UUID is 4d263dd3-ab08-43ed-ab04-781cdb861178
2025-04-26 08:41:09,292 - DEBUG - Response for create_network : {'network': {'id': 'e9712a55-0ab7-4703-8617-e075cb4fcd50', 'name': 'ctest-vn-10237327', 'tenant_id': '5c369d1f63a146f5a4e58aec3fb68684', 'project_id': '5c369d1f63a146f5a4e58aec3fb68684', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-vn-10237327'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 08:41:09,455 - DEBUG - Response for create_subnet : {'subnet': {'id': '63806da5-deef-4c6e-8398-8f05ffa2f8ba', 'name': '', 'tenant_id': '5c369d1f63a146f5a4e58aec3fb68684', 'network_id': 'e9712a55-0ab7-4703-8617-e075cb4fcd50', 'ip_version': 4, 'cidr': '167.76.242.128/26', 'allocation_pools': [{'start': '167.76.242.130', 'end': '167.76.242.190'}], 'gateway_ip': '167.76.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.76.242.130', 'tags': [], 'project_id': '5c369d1f63a146f5a4e58aec3fb68684'}}
2025-04-26 08:41:09,473 - INFO - Created VN ctest-vn-10237327
2025-04-26 08:41:09,523 - DEBUG - VN ctest-vn-10237327 UUID is e9712a55-0ab7-4703-8617-e075cb4fcd50
2025-04-26 08:41:09,675 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-53455064, 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-71337204:ctest-vn-10237327, 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-26 08:41:09,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d263dd3-ab08-43ed-ab04-781cdb861178', 'name': 'ctest-vn-53455064', 'tenant_id': '5c369d1f63a146f5a4e58aec3fb68684', 'project_id': '5c369d1f63a146f5a4e58aec3fb68684', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70bf795e-3bc5-4412-9538-a1879a965e97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-vn-53455064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-policy-allow-all-60829746']], 'subnet_ipam': [{'subnet_cidr': '54.115.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 08:41:10,271 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9712a55-0ab7-4703-8617-e075cb4fcd50', 'name': 'ctest-vn-10237327', 'tenant_id': '5c369d1f63a146f5a4e58aec3fb68684', 'project_id': '5c369d1f63a146f5a4e58aec3fb68684', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63806da5-deef-4c6e-8398-8f05ffa2f8ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-vn-10237327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-policy-allow-all-60829746']], 'subnet_ipam': [{'subnet_cidr': '167.76.242.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 08:41:10,415 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 08:41:10,708 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 08:41:10,735 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4618d77d-6252-44fc-b2fc-7fe1d2036a79
2025-04-26 08:41:10,748 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c369d1f-63a1-46f5-a4e5-8aec3fb68684
2025-04-26 08:41:10,822 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4d263dd3-ab08-43ed-ab04-781cdb861178
2025-04-26 08:41:10,837 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4d263dd3-ab08-43ed-ab04-781cdb861178
2025-04-26 08:41:10,849 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5a4c7345-3f24-434d-b732-96c0c5217c91
2025-04-26 08:41:10,858 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5a4c7345-3f24-434d-b732-96c0c5217c91
2025-04-26 08:41:10,867 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7cde9226-c7a6-4e30-9a36-23f8d30bcf0b
2025-04-26 08:41:10,874 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 08:41:10,874 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4d263dd3-ab08-43ed-ab04-781cdb861178
2025-04-26 08:41:10,883 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5a4c7345-3f24-434d-b732-96c0c5217c91
2025-04-26 08:41:10,897 - INFO - Verified VN network id 7 for VN 4d263dd3-ab08-43ed-ab04-781cdb861178
2025-04-26 08:41:10,897 - INFO - Verifications in API Server for VN ctest-vn-53455064 passed
2025-04-26 08:41:10,897 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4d263dd3-ab08-43ed-ab04-781cdb861178
2025-04-26 08:41:10,907 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5a4c7345-3f24-434d-b732-96c0c5217c91
2025-04-26 08:41:10,914 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5a4c7345-3f24-434d-b732-96c0c5217c91
2025-04-26 08:41:10,921 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7cde9226-c7a6-4e30-9a36-23f8d30bcf0b
2025-04-26 08:41:10,934 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-53455064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71337204', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5559198769352295405', 'uuid-lslong': '12323106545729933688'}, 'enable': 'true', 'created': '2025-04-26T08:41:08', 'last-modified': '2025-04-26T08:41:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976732'}
2025-04-26 08:41:10,943 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 08:41:10,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53455064 passed
2025-04-26 08:41:10,943 - DEBUG - ====Verifying policy data for ctest-vn-53455064 in API_Server ======
2025-04-26 08:41:10,943 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 08:41:10,950 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4618d77d-6252-44fc-b2fc-7fe1d2036a79
2025-04-26 08:41:10,962 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c369d1f-63a1-46f5-a4e5-8aec3fb68684
2025-04-26 08:41:11,040 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4d263dd3-ab08-43ed-ab04-781cdb861178
2025-04-26 08:41:11,050 - DEBUG - ==>Verifying data for policy with id: 8fcfce63-6edb-4c0d-837e-d1dd75c65ea1, fqn: ['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-policy-allow-all-60829746']
2025-04-26 08:41:11,050 - INFO - VN ctest-vn-53455064 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 08:41:11,050 - DEBUG - Verifying the vn in opserver
2025-04-26 08:41:11,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-53455064 virtual network link through opserver 10.0.0.22
2025-04-26 08:41:11,050 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 08:41:11,339 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 08:41:11,391 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-53455064', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-53455064?flat'}
2025-04-26 08:41:11,391 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-53455064 is found in opserver
2025-04-26 08:41:11,401 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 08:41:11,406 - DEBUG - VRF ids for VN ctest-vn-53455064: {}
2025-04-26 08:41:11,406 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 08:41:11,411 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4618d77d-6252-44fc-b2fc-7fe1d2036a79
2025-04-26 08:41:11,423 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c369d1f-63a1-46f5-a4e5-8aec3fb68684
2025-04-26 08:41:11,491 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e9712a55-0ab7-4703-8617-e075cb4fcd50
2025-04-26 08:41:11,503 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e9712a55-0ab7-4703-8617-e075cb4fcd50
2025-04-26 08:41:11,513 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/338ae18a-9fd3-49a6-b537-aaecf8fbd17d
2025-04-26 08:41:11,520 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/338ae18a-9fd3-49a6-b537-aaecf8fbd17d
2025-04-26 08:41:11,527 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fd5920a4-6b11-42fe-a9a8-b37d4a6c0b8c
2025-04-26 08:41:11,534 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 08:41:11,534 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e9712a55-0ab7-4703-8617-e075cb4fcd50
2025-04-26 08:41:11,544 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/338ae18a-9fd3-49a6-b537-aaecf8fbd17d
2025-04-26 08:41:11,558 - INFO - Verified VN network id 8 for VN e9712a55-0ab7-4703-8617-e075cb4fcd50
2025-04-26 08:41:11,559 - INFO - Verifications in API Server for VN ctest-vn-10237327 passed
2025-04-26 08:41:11,559 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e9712a55-0ab7-4703-8617-e075cb4fcd50
2025-04-26 08:41:11,569 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/338ae18a-9fd3-49a6-b537-aaecf8fbd17d
2025-04-26 08:41:11,576 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/338ae18a-9fd3-49a6-b537-aaecf8fbd17d
2025-04-26 08:41:11,585 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fd5920a4-6b11-42fe-a9a8-b37d4a6c0b8c
2025-04-26 08:41:11,598 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-10237327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71337204', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16821272627945883395', 'uuid-lslong': '9662438322073488720'}, 'enable': 'true', 'created': '2025-04-26T08:41:09', 'last-modified': '2025-04-26T08:41:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398203'}
2025-04-26 08:41:11,604 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 08:41:11,604 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10237327 passed
2025-04-26 08:41:11,604 - DEBUG - ====Verifying policy data for ctest-vn-10237327 in API_Server ======
2025-04-26 08:41:11,604 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 08:41:11,610 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4618d77d-6252-44fc-b2fc-7fe1d2036a79
2025-04-26 08:41:11,621 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c369d1f-63a1-46f5-a4e5-8aec3fb68684
2025-04-26 08:41:11,698 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e9712a55-0ab7-4703-8617-e075cb4fcd50
2025-04-26 08:41:11,707 - DEBUG - ==>Verifying data for policy with id: 8fcfce63-6edb-4c0d-837e-d1dd75c65ea1, fqn: ['default-domain', 'ctest-TestBasicPolicy-71337204', 'ctest-policy-allow-all-60829746']
2025-04-26 08:41:11,707 - INFO - VN ctest-vn-10237327 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 08:41:11,707 - DEBUG - Verifying the vn in opserver
2025-04-26 08:41:11,707 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-10237327 virtual network link through opserver 10.0.0.22
2025-04-26 08:41:11,708 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 08:41:11,718 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-10237327', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-10237327?flat'}
2025-04-26 08:41:11,718 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71337204:ctest-vn-10237327 is found in opserver
2025-04-26 08:41:11,729 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 08:41:11,734 - DEBUG - VRF ids for VN ctest-vn-10237327: {}
2025-04-26 08:41:11,791 - DEBUG - Services list from nova: [