2025-06-25 01:58:41,730 - INFO - Domain Default found not creating
2025-06-25 01:58:41,858 - INFO - Project ctest-TestBasicPolicy-57712175 not found, creating it
2025-06-25 01:58:42,291 - INFO - Created Project:ctest-TestBasicPolicy-57712175, ID : 37763389-aaa7-4bc0-960a-518ff3a51d8d
2025-06-25 01:58:43,649 - INFO - ================================================================================
2025-06-25 01:58:43,649 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-25 01:58:43,649 - 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-25 01:58:43,906 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-25 01:58:43,906 - INFO - Initial checks done. Running the testcase now
2025-06-25 01:58:43,906 - INFO -
2025-06-25 01:58:44,421 - DEBUG - Response for create_network : {'network': {'id': '5c28a83a-2648-4cdd-8b9c-cf71dcaf1162', 'name': 'ctest-vn-59846399', 'tenant_id': '37763389aaa74bc0960a518ff3a51d8d', 'project_id': '37763389aaa74bc0960a518ff3a51d8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-vn-59846399'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 01:58:44,601 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1d85f6b-eda4-4f4c-8dfb-f11f18a91185', 'name': '', 'tenant_id': '37763389aaa74bc0960a518ff3a51d8d', 'network_id': '5c28a83a-2648-4cdd-8b9c-cf71dcaf1162', 'ip_version': 4, 'cidr': '150.17.121.128/26', 'allocation_pools': [{'start': '150.17.121.130', 'end': '150.17.121.190'}], 'gateway_ip': '150.17.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.17.121.130', 'tags': [], 'project_id': '37763389aaa74bc0960a518ff3a51d8d'}}
2025-06-25 01:58:44,616 - INFO - Created VN ctest-vn-59846399
2025-06-25 01:58:44,668 - DEBUG - VN ctest-vn-59846399 UUID is 5c28a83a-2648-4cdd-8b9c-cf71dcaf1162
2025-06-25 01:58:44,985 - DEBUG - Response for create_network : {'network': {'id': 'b7cd10ae-4766-470e-b9fc-ef4d71d92156', 'name': 'ctest-vn-52020815', 'tenant_id': '37763389aaa74bc0960a518ff3a51d8d', 'project_id': '37763389aaa74bc0960a518ff3a51d8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-vn-52020815'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 01:58:45,133 - DEBUG - Response for create_subnet : {'subnet': {'id': '62c140c1-ca45-4b09-a730-9692a24ed8df', 'name': '', 'tenant_id': '37763389aaa74bc0960a518ff3a51d8d', 'network_id': 'b7cd10ae-4766-470e-b9fc-ef4d71d92156', 'ip_version': 4, 'cidr': '7.162.178.64/26', 'allocation_pools': [{'start': '7.162.178.66', 'end': '7.162.178.126'}], 'gateway_ip': '7.162.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.162.178.66', 'tags': [], 'project_id': '37763389aaa74bc0960a518ff3a51d8d'}}
2025-06-25 01:58:45,150 - INFO - Created VN ctest-vn-52020815
2025-06-25 01:58:45,204 - DEBUG - VN ctest-vn-52020815 UUID is b7cd10ae-4766-470e-b9fc-ef4d71d92156
2025-06-25 01:58:45,320 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-59846399, 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-57712175:ctest-vn-52020815, 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-25 01:58:45,626 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c28a83a-2648-4cdd-8b9c-cf71dcaf1162', 'name': 'ctest-vn-59846399', 'tenant_id': '37763389aaa74bc0960a518ff3a51d8d', 'project_id': '37763389aaa74bc0960a518ff3a51d8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1d85f6b-eda4-4f4c-8dfb-f11f18a91185'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-vn-59846399'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-policy-allow-all-79751507']], 'subnet_ipam': [{'subnet_cidr': '150.17.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 01:58:45,913 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7cd10ae-4766-470e-b9fc-ef4d71d92156', 'name': 'ctest-vn-52020815', 'tenant_id': '37763389aaa74bc0960a518ff3a51d8d', 'project_id': '37763389aaa74bc0960a518ff3a51d8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62c140c1-ca45-4b09-a730-9692a24ed8df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-vn-52020815'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-policy-allow-all-79751507']], 'subnet_ipam': [{'subnet_cidr': '7.162.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 01:58:46,072 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 01:58:46,364 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 01:58:46,391 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9b092e04-6227-4fbc-820d-3b9cdf64c691
2025-06-25 01:58:46,404 - DEBUG - Requesting: http://10.0.0.38:8082/project/37763389-aaa7-4bc0-960a-518ff3a51d8d
2025-06-25 01:58:46,471 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c28a83a-2648-4cdd-8b9c-cf71dcaf1162
2025-06-25 01:58:46,480 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c28a83a-2648-4cdd-8b9c-cf71dcaf1162
2025-06-25 01:58:46,489 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47e3933a-0965-4e83-a023-9553926dbfe7
2025-06-25 01:58:46,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47e3933a-0965-4e83-a023-9553926dbfe7
2025-06-25 01:58:46,501 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6c117d8f-6be0-4cc9-81ea-f4d728a9ba96
2025-06-25 01:58:46,512 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 01:58:46,512 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c28a83a-2648-4cdd-8b9c-cf71dcaf1162
2025-06-25 01:58:46,520 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47e3933a-0965-4e83-a023-9553926dbfe7
2025-06-25 01:58:46,532 - INFO - Verified VN network id 8 for VN 5c28a83a-2648-4cdd-8b9c-cf71dcaf1162
2025-06-25 01:58:46,532 - INFO - Verifications in API Server for VN ctest-vn-59846399 passed
2025-06-25 01:58:46,532 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c28a83a-2648-4cdd-8b9c-cf71dcaf1162
2025-06-25 01:58:46,540 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47e3933a-0965-4e83-a023-9553926dbfe7
2025-06-25 01:58:46,546 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47e3933a-0965-4e83-a023-9553926dbfe7
2025-06-25 01:58:46,552 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6c117d8f-6be0-4cc9-81ea-f4d728a9ba96
2025-06-25 01:58:46,562 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-59846399', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57712175', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6640742618261638365', 'uuid-lslong': '10060143755579560290'}, 'enable': 'true', 'created': '2025-06-25T01:58:44', 'last-modified': '2025-06-25T01:58:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958099'}
2025-06-25 01:58:46,567 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 01:58:46,568 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59846399 passed
2025-06-25 01:58:46,568 - DEBUG - ====Verifying policy data for ctest-vn-59846399 in API_Server ======
2025-06-25 01:58:46,568 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 01:58:46,572 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9b092e04-6227-4fbc-820d-3b9cdf64c691
2025-06-25 01:58:46,582 - DEBUG - Requesting: http://10.0.0.38:8082/project/37763389-aaa7-4bc0-960a-518ff3a51d8d
2025-06-25 01:58:46,650 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5c28a83a-2648-4cdd-8b9c-cf71dcaf1162
2025-06-25 01:58:46,659 - DEBUG - ==>Verifying data for policy with id: ead90dc7-0e55-4550-b97e-87043094fc83, fqn: ['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-policy-allow-all-79751507']
2025-06-25 01:58:46,659 - INFO - VN ctest-vn-59846399 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 01:58:46,659 - DEBUG - Verifying the vn in opserver
2025-06-25 01:58:46,659 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-59846399 virtual network link through opserver 10.0.0.38
2025-06-25 01:58:46,659 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-25 01:58:46,946 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-25 01:58:46,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-59846399', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-59846399?flat'}
2025-06-25 01:58:46,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-59846399 is found in opserver
2025-06-25 01:58:47,005 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 01:58:47,010 - DEBUG - VRF ids for VN ctest-vn-59846399: {}
2025-06-25 01:58:47,010 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 01:58:47,015 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9b092e04-6227-4fbc-820d-3b9cdf64c691
2025-06-25 01:58:47,026 - DEBUG - Requesting: http://10.0.0.38:8082/project/37763389-aaa7-4bc0-960a-518ff3a51d8d
2025-06-25 01:58:47,107 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b7cd10ae-4766-470e-b9fc-ef4d71d92156
2025-06-25 01:58:47,118 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b7cd10ae-4766-470e-b9fc-ef4d71d92156
2025-06-25 01:58:47,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/daef7249-ce89-4f75-b055-179704a511e8
2025-06-25 01:58:47,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/daef7249-ce89-4f75-b055-179704a511e8
2025-06-25 01:58:47,144 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b9492419-1cfe-4f36-b257-0fa4dd2e1314
2025-06-25 01:58:47,150 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 01:58:47,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b7cd10ae-4766-470e-b9fc-ef4d71d92156
2025-06-25 01:58:47,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/daef7249-ce89-4f75-b055-179704a511e8
2025-06-25 01:58:47,171 - INFO - Verified VN network id 9 for VN b7cd10ae-4766-470e-b9fc-ef4d71d92156
2025-06-25 01:58:47,171 - INFO - Verifications in API Server for VN ctest-vn-52020815 passed
2025-06-25 01:58:47,171 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b7cd10ae-4766-470e-b9fc-ef4d71d92156
2025-06-25 01:58:47,180 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/daef7249-ce89-4f75-b055-179704a511e8
2025-06-25 01:58:47,186 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/daef7249-ce89-4f75-b055-179704a511e8
2025-06-25 01:58:47,192 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b9492419-1cfe-4f36-b257-0fa4dd2e1314
2025-06-25 01:58:47,203 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-52020815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57712175', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13244260419874735886', 'uuid-lslong': '13401849707049328982'}, 'enable': 'true', 'created': '2025-06-25T01:58:44', 'last-modified': '2025-06-25T01:58:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361286'}
2025-06-25 01:58:47,208 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 01:58:47,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52020815 passed
2025-06-25 01:58:47,209 - DEBUG - ====Verifying policy data for ctest-vn-52020815 in API_Server ======
2025-06-25 01:58:47,209 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 01:58:47,213 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9b092e04-6227-4fbc-820d-3b9cdf64c691
2025-06-25 01:58:47,223 - DEBUG - Requesting: http://10.0.0.38:8082/project/37763389-aaa7-4bc0-960a-518ff3a51d8d
2025-06-25 01:58:47,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b7cd10ae-4766-470e-b9fc-ef4d71d92156
2025-06-25 01:58:47,305 - DEBUG - ==>Verifying data for policy with id: ead90dc7-0e55-4550-b97e-87043094fc83, fqn: ['default-domain', 'ctest-TestBasicPolicy-57712175', 'ctest-policy-allow-all-79751507']
2025-06-25 01:58:47,305 - INFO - VN ctest-vn-52020815 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 01:58:47,305 - DEBUG - Verifying the vn in opserver
2025-06-25 01:58:47,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-52020815 virtual network link through opserver 10.0.0.38
2025-06-25 01:58:47,305 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-25 01:58:47,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-52020815', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-52020815?flat'}
2025-06-25 01:58:47,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57712175:ctest-vn-52020815 is found in opserver
2025-06-25 01:58:47,325 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 01:58:47,329 - DEBUG - VRF ids for VN ctest-vn-52020815: {}
2025-06-25 01:58:47,378 - DEBUG - Services list from nova: [