2025-07-10 15:50:32,988 - INFO - Domain Default found not creating
2025-07-10 15:50:33,140 - INFO - Project ctest-TestBasicPolicy-43392105 not found, creating it
2025-07-10 15:50:33,610 - INFO - Created Project:ctest-TestBasicPolicy-43392105, ID : 88eb83fa-3b38-4f0e-9980-46e986f41804
2025-07-10 15:50:35,189 - INFO - ================================================================================
2025-07-10 15:50:35,189 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-10 15:50:35,189 - 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-07-10 15:50:35,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with
2025-07-10 15:50:35,443 - INFO - Initial checks done. Running the testcase now
2025-07-10 15:50:35,444 - INFO -
2025-07-10 15:50:36,039 - DEBUG - Response for create_network : {'network': {'id': '944ce7e5-38c9-4ba3-a267-4aae0beb1ea1', 'name': 'ctest-vn-94077356', 'tenant_id': '88eb83fa3b384f0e998046e986f41804', 'project_id': '88eb83fa3b384f0e998046e986f41804', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-vn-94077356'], 'port_security_enabled': True, 'description': ''}}
2025-07-10 15:50:36,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '62f68361-02b7-40ae-b32f-0d58ae60c55b', 'name': '', 'tenant_id': '88eb83fa3b384f0e998046e986f41804', 'network_id': '944ce7e5-38c9-4ba3-a267-4aae0beb1ea1', 'ip_version': 4, 'cidr': '57.225.148.128/26', 'allocation_pools': [{'start': '57.225.148.130', 'end': '57.225.148.190'}], 'gateway_ip': '57.225.148.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.225.148.130', 'tags': [], 'project_id': '88eb83fa3b384f0e998046e986f41804'}}
2025-07-10 15:50:36,307 - INFO - Created VN ctest-vn-94077356
2025-07-10 15:50:36,365 - DEBUG - VN ctest-vn-94077356 UUID is 944ce7e5-38c9-4ba3-a267-4aae0beb1ea1
2025-07-10 15:50:36,681 - DEBUG - Response for create_network : {'network': {'id': 'af1e49f8-2a27-4efa-aaa6-19b765d25f64', 'name': 'ctest-vn-27180508', 'tenant_id': '88eb83fa3b384f0e998046e986f41804', 'project_id': '88eb83fa3b384f0e998046e986f41804', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-vn-27180508'], 'port_security_enabled': True, 'description': ''}}
2025-07-10 15:50:36,917 - DEBUG - Response for create_subnet : {'subnet': {'id': '69fca406-4425-4bd5-81e8-5dfb6ec21f52', 'name': '', 'tenant_id': '88eb83fa3b384f0e998046e986f41804', 'network_id': 'af1e49f8-2a27-4efa-aaa6-19b765d25f64', 'ip_version': 4, 'cidr': '25.141.94.128/26', 'allocation_pools': [{'start': '25.141.94.130', 'end': '25.141.94.190'}], 'gateway_ip': '25.141.94.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.141.94.130', 'tags': [], 'project_id': '88eb83fa3b384f0e998046e986f41804'}}
2025-07-10 15:50:36,939 - INFO - Created VN ctest-vn-27180508
2025-07-10 15:50:36,997 - DEBUG - VN ctest-vn-27180508 UUID is af1e49f8-2a27-4efa-aaa6-19b765d25f64
2025-07-10 15:50:37,119 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-94077356, 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-43392105:ctest-vn-27180508, 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-07-10 15:50:37,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '944ce7e5-38c9-4ba3-a267-4aae0beb1ea1', 'name': 'ctest-vn-94077356', 'tenant_id': '88eb83fa3b384f0e998046e986f41804', 'project_id': '88eb83fa3b384f0e998046e986f41804', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62f68361-02b7-40ae-b32f-0d58ae60c55b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-vn-94077356'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-policy-allow-all-15825012']], 'subnet_ipam': [{'subnet_cidr': '57.225.148.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-10 15:50:37,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af1e49f8-2a27-4efa-aaa6-19b765d25f64', 'name': 'ctest-vn-27180508', 'tenant_id': '88eb83fa3b384f0e998046e986f41804', 'project_id': '88eb83fa3b384f0e998046e986f41804', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69fca406-4425-4bd5-81e8-5dfb6ec21f52'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-vn-27180508'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-policy-allow-all-15825012']], 'subnet_ipam': [{'subnet_cidr': '25.141.94.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-10 15:50:37,857 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-10 15:50:38,195 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-10 15:50:38,228 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9ce0a72c-3f43-4bbc-ac7b-05275da85d30
2025-07-10 15:50:38,245 - DEBUG - Requesting: http://10.0.0.49:8082/project/88eb83fa-3b38-4f0e-9980-46e986f41804
2025-07-10 15:50:38,330 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/944ce7e5-38c9-4ba3-a267-4aae0beb1ea1
2025-07-10 15:50:38,346 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/944ce7e5-38c9-4ba3-a267-4aae0beb1ea1
2025-07-10 15:50:38,361 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b86d224c-9291-4e4b-b200-9ce2301c63f9
2025-07-10 15:50:38,373 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b86d224c-9291-4e4b-b200-9ce2301c63f9
2025-07-10 15:50:38,383 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2a5b3b42-c668-4fb5-8caa-9552711f98c6
2025-07-10 15:50:38,392 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-10 15:50:38,392 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/944ce7e5-38c9-4ba3-a267-4aae0beb1ea1
2025-07-10 15:50:38,403 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b86d224c-9291-4e4b-b200-9ce2301c63f9
2025-07-10 15:50:38,424 - INFO - Verified VN network id 8 for VN 944ce7e5-38c9-4ba3-a267-4aae0beb1ea1
2025-07-10 15:50:38,424 - INFO - Verifications in API Server for VN ctest-vn-94077356 passed
2025-07-10 15:50:38,424 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/944ce7e5-38c9-4ba3-a267-4aae0beb1ea1
2025-07-10 15:50:38,438 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b86d224c-9291-4e4b-b200-9ce2301c63f9
2025-07-10 15:50:38,448 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b86d224c-9291-4e4b-b200-9ce2301c63f9
2025-07-10 15:50:38,458 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/2a5b3b42-c668-4fb5-8caa-9552711f98c6
2025-07-10 15:50:38,474 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-94077356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43392105', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10686170987529587619', 'uuid-lslong': '11702404268130246305'}, 'enable': 'true', 'created': '2025-07-10T15:50:36', 'last-modified': '2025-07-10T15:50:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076854'}
2025-07-10 15:50:38,481 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-10 15:50:38,481 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94077356 passed
2025-07-10 15:50:38,481 - DEBUG - ====Verifying policy data for ctest-vn-94077356 in API_Server ======
2025-07-10 15:50:38,481 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-10 15:50:38,490 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9ce0a72c-3f43-4bbc-ac7b-05275da85d30
2025-07-10 15:50:38,506 - DEBUG - Requesting: http://10.0.0.49:8082/project/88eb83fa-3b38-4f0e-9980-46e986f41804
2025-07-10 15:50:38,590 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/944ce7e5-38c9-4ba3-a267-4aae0beb1ea1
2025-07-10 15:50:38,603 - DEBUG - ==>Verifying data for policy with id: 7052d2b6-5ffd-4695-8593-30b01447911a, fqn: ['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-policy-allow-all-15825012']
2025-07-10 15:50:38,603 - INFO - VN ctest-vn-94077356 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-10 15:50:38,603 - DEBUG - Verifying the vn in opserver
2025-07-10 15:50:38,603 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-94077356 virtual network link through opserver 10.0.0.49
2025-07-10 15:50:38,604 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-10 15:50:38,940 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-10 15:50:39,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-94077356', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-94077356?flat'}
2025-07-10 15:50:39,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-94077356 is found in opserver
2025-07-10 15:50:39,021 - DEBUG - Do not have enough data to verify VN in agent
2025-07-10 15:50:39,028 - DEBUG - VRF ids for VN ctest-vn-94077356: {}
2025-07-10 15:50:39,028 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-10 15:50:39,036 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9ce0a72c-3f43-4bbc-ac7b-05275da85d30
2025-07-10 15:50:39,051 - DEBUG - Requesting: http://10.0.0.49:8082/project/88eb83fa-3b38-4f0e-9980-46e986f41804
2025-07-10 15:50:39,131 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af1e49f8-2a27-4efa-aaa6-19b765d25f64
2025-07-10 15:50:39,147 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af1e49f8-2a27-4efa-aaa6-19b765d25f64
2025-07-10 15:50:39,161 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/cc15383a-2437-409d-a1d1-bb13a94ee1db
2025-07-10 15:50:39,171 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/cc15383a-2437-409d-a1d1-bb13a94ee1db
2025-07-10 15:50:39,180 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6a5012a3-5449-4b45-be68-d109cf4c6c77
2025-07-10 15:50:39,189 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-10 15:50:39,189 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af1e49f8-2a27-4efa-aaa6-19b765d25f64
2025-07-10 15:50:39,202 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/cc15383a-2437-409d-a1d1-bb13a94ee1db
2025-07-10 15:50:39,219 - INFO - Verified VN network id 9 for VN af1e49f8-2a27-4efa-aaa6-19b765d25f64
2025-07-10 15:50:39,220 - INFO - Verifications in API Server for VN ctest-vn-27180508 passed
2025-07-10 15:50:39,220 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af1e49f8-2a27-4efa-aaa6-19b765d25f64
2025-07-10 15:50:39,231 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/cc15383a-2437-409d-a1d1-bb13a94ee1db
2025-07-10 15:50:39,240 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/cc15383a-2437-409d-a1d1-bb13a94ee1db
2025-07-10 15:50:39,251 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6a5012a3-5449-4b45-be68-d109cf4c6c77
2025-07-10 15:50:39,265 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-27180508', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43392105', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12618604536146644730', 'uuid-lslong': '12296544108059713380'}, 'enable': 'true', 'created': '2025-07-10T15:50:36', 'last-modified': '2025-07-10T15:50:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.626822'}
2025-07-10 15:50:39,272 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-10 15:50:39,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27180508 passed
2025-07-10 15:50:39,272 - DEBUG - ====Verifying policy data for ctest-vn-27180508 in API_Server ======
2025-07-10 15:50:39,272 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-10 15:50:39,279 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9ce0a72c-3f43-4bbc-ac7b-05275da85d30
2025-07-10 15:50:39,292 - DEBUG - Requesting: http://10.0.0.49:8082/project/88eb83fa-3b38-4f0e-9980-46e986f41804
2025-07-10 15:50:39,374 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af1e49f8-2a27-4efa-aaa6-19b765d25f64
2025-07-10 15:50:39,388 - DEBUG - ==>Verifying data for policy with id: 7052d2b6-5ffd-4695-8593-30b01447911a, fqn: ['default-domain', 'ctest-TestBasicPolicy-43392105', 'ctest-policy-allow-all-15825012']
2025-07-10 15:50:39,388 - INFO - VN ctest-vn-27180508 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-10 15:50:39,389 - DEBUG - Verifying the vn in opserver
2025-07-10 15:50:39,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-27180508 virtual network link through opserver 10.0.0.49
2025-07-10 15:50:39,389 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-10 15:50:39,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-27180508', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-27180508?flat'}
2025-07-10 15:50:39,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43392105:ctest-vn-27180508 is found in opserver
2025-07-10 15:50:39,419 - DEBUG - Do not have enough data to verify VN in agent
2025-07-10 15:50:39,427 - DEBUG - VRF ids for VN ctest-vn-27180508: {}
2025-07-10 15:50:39,488 - DEBUG - Services list from nova: [