2025-07-04 15:18:22,536 - INFO - Domain Default found not creating
2025-07-04 15:18:22,675 - INFO - Project ctest-TestBasicPolicy-47329234 not found, creating it
2025-07-04 15:18:23,147 - INFO - Created Project:ctest-TestBasicPolicy-47329234, ID : 65a473ab-fc9a-4fa6-92d6-b5c49472cdaf
2025-07-04 15:18:24,603 - INFO - ================================================================================
2025-07-04 15:18:24,603 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-04 15:18:24,603 - 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-04 15:18:24,859 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-07-04 15:18:24,860 - INFO - Initial checks done. Running the testcase now
2025-07-04 15:18:24,860 - INFO -
2025-07-04 15:18:25,400 - DEBUG - Response for create_network : {'network': {'id': '87c630d0-8d63-402c-940c-4e18b95e148a', 'name': 'ctest-vn-52208636', 'tenant_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'project_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-vn-52208636'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:18:25,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '09dc7b5b-3321-4ede-9c4f-b0039e177171', 'name': '', 'tenant_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'network_id': '87c630d0-8d63-402c-940c-4e18b95e148a', 'ip_version': 4, 'cidr': '110.168.91.0/26', 'allocation_pools': [{'start': '110.168.91.2', 'end': '110.168.91.62'}], 'gateway_ip': '110.168.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.168.91.2', 'tags': [], 'project_id': '65a473abfc9a4fa692d6b5c49472cdaf'}}
2025-07-04 15:18:25,726 - INFO - Created VN ctest-vn-52208636
2025-07-04 15:18:25,782 - DEBUG - VN ctest-vn-52208636 UUID is 87c630d0-8d63-402c-940c-4e18b95e148a
2025-07-04 15:18:26,096 - DEBUG - Response for create_network : {'network': {'id': '65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397', 'name': 'ctest-vn-47751798', 'tenant_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'project_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-vn-47751798'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:18:26,329 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad22293c-d7b0-44b2-9a9c-5a01ba29d924', 'name': '', 'tenant_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'network_id': '65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397', 'ip_version': 4, 'cidr': '3.56.186.64/26', 'allocation_pools': [{'start': '3.56.186.66', 'end': '3.56.186.126'}], 'gateway_ip': '3.56.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.56.186.66', 'tags': [], 'project_id': '65a473abfc9a4fa692d6b5c49472cdaf'}}
2025-07-04 15:18:26,348 - INFO - Created VN ctest-vn-47751798
2025-07-04 15:18:26,402 - DEBUG - VN ctest-vn-47751798 UUID is 65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397
2025-07-04 15:18:26,517 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-52208636, 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-47329234:ctest-vn-47751798, 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-04 15:18:26,824 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87c630d0-8d63-402c-940c-4e18b95e148a', 'name': 'ctest-vn-52208636', 'tenant_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'project_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09dc7b5b-3321-4ede-9c4f-b0039e177171'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-vn-52208636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-policy-allow-all-22389063']], 'subnet_ipam': [{'subnet_cidr': '110.168.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:18:27,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397', 'name': 'ctest-vn-47751798', 'tenant_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'project_id': '65a473abfc9a4fa692d6b5c49472cdaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad22293c-d7b0-44b2-9a9c-5a01ba29d924'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-vn-47751798'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-policy-allow-all-22389063']], 'subnet_ipam': [{'subnet_cidr': '3.56.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:18:27,238 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-04 15:18:27,527 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-04 15:18:27,555 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf3f66b7-9e66-4496-94dd-94a304315ec4
2025-07-04 15:18:27,570 - DEBUG - Requesting: http://10.0.0.22:8082/project/65a473ab-fc9a-4fa6-92d6-b5c49472cdaf
2025-07-04 15:18:27,650 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c630d0-8d63-402c-940c-4e18b95e148a
2025-07-04 15:18:27,663 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c630d0-8d63-402c-940c-4e18b95e148a
2025-07-04 15:18:27,676 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a48c79da-2c2b-4ac0-b79e-14b3f9f76bda
2025-07-04 15:18:27,685 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a48c79da-2c2b-4ac0-b79e-14b3f9f76bda
2025-07-04 15:18:27,695 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/85e79308-c765-423a-b812-31fb3685ba3c
2025-07-04 15:18:27,702 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 15:18:27,702 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c630d0-8d63-402c-940c-4e18b95e148a
2025-07-04 15:18:27,715 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a48c79da-2c2b-4ac0-b79e-14b3f9f76bda
2025-07-04 15:18:27,732 - INFO - Verified VN network id 8 for VN 87c630d0-8d63-402c-940c-4e18b95e148a
2025-07-04 15:18:27,732 - INFO - Verifications in API Server for VN ctest-vn-52208636 passed
2025-07-04 15:18:27,732 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c630d0-8d63-402c-940c-4e18b95e148a
2025-07-04 15:18:27,743 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a48c79da-2c2b-4ac0-b79e-14b3f9f76bda
2025-07-04 15:18:27,752 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a48c79da-2c2b-4ac0-b79e-14b3f9f76bda
2025-07-04 15:18:27,761 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/85e79308-c765-423a-b812-31fb3685ba3c
2025-07-04 15:18:27,777 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-52208636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47329234', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9783560912792404012', 'uuid-lslong': '10667987485429994634'}, 'enable': 'true', 'created': '2025-07-04T15:18:25', 'last-modified': '2025-07-04T15:18:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975672'}
2025-07-04 15:18:27,786 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 15:18:27,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52208636 passed
2025-07-04 15:18:27,787 - DEBUG - ====Verifying policy data for ctest-vn-52208636 in API_Server ======
2025-07-04 15:18:27,787 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-04 15:18:27,794 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf3f66b7-9e66-4496-94dd-94a304315ec4
2025-07-04 15:18:27,807 - DEBUG - Requesting: http://10.0.0.22:8082/project/65a473ab-fc9a-4fa6-92d6-b5c49472cdaf
2025-07-04 15:18:27,875 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c630d0-8d63-402c-940c-4e18b95e148a
2025-07-04 15:18:27,885 - DEBUG - ==>Verifying data for policy with id: 8179f679-1d94-4c50-b371-9caccf02cf5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-policy-allow-all-22389063']
2025-07-04 15:18:27,885 - INFO - VN ctest-vn-52208636 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 15:18:27,885 - DEBUG - Verifying the vn in opserver
2025-07-04 15:18:27,885 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-52208636 virtual network link through opserver 10.0.0.22
2025-07-04 15:18:27,885 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-07-04 15:18:28,174 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-07-04 15:18:28,227 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-52208636', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-52208636?flat'}
2025-07-04 15:18:28,227 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-52208636 is found in opserver
2025-07-04 15:18:28,238 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 15:18:28,243 - DEBUG - VRF ids for VN ctest-vn-52208636: {}
2025-07-04 15:18:28,243 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-04 15:18:28,249 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf3f66b7-9e66-4496-94dd-94a304315ec4
2025-07-04 15:18:28,263 - DEBUG - Requesting: http://10.0.0.22:8082/project/65a473ab-fc9a-4fa6-92d6-b5c49472cdaf
2025-07-04 15:18:28,342 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397
2025-07-04 15:18:28,355 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397
2025-07-04 15:18:28,369 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0b73adb-e83f-4be4-82cb-a20a0c906e1d
2025-07-04 15:18:28,378 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0b73adb-e83f-4be4-82cb-a20a0c906e1d
2025-07-04 15:18:28,387 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d0b60992-7cd9-46e3-b7e3-c9aab68aad31
2025-07-04 15:18:28,396 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 15:18:28,396 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397
2025-07-04 15:18:28,410 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0b73adb-e83f-4be4-82cb-a20a0c906e1d
2025-07-04 15:18:28,427 - INFO - Verified VN network id 9 for VN 65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397
2025-07-04 15:18:28,427 - INFO - Verifications in API Server for VN ctest-vn-47751798 passed
2025-07-04 15:18:28,427 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397
2025-07-04 15:18:28,439 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0b73adb-e83f-4be4-82cb-a20a0c906e1d
2025-07-04 15:18:28,449 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0b73adb-e83f-4be4-82cb-a20a0c906e1d
2025-07-04 15:18:28,456 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d0b60992-7cd9-46e3-b7e3-c9aab68aad31
2025-07-04 15:18:28,471 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-47751798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47329234', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7323044411797949112', 'uuid-lslong': '11290631919168254871'}, 'enable': 'true', 'created': '2025-07-04T15:18:26', 'last-modified': '2025-07-04T15:18:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.436040'}
2025-07-04 15:18:28,477 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 15:18:28,477 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47751798 passed
2025-07-04 15:18:28,478 - DEBUG - ====Verifying policy data for ctest-vn-47751798 in API_Server ======
2025-07-04 15:18:28,478 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-04 15:18:28,486 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf3f66b7-9e66-4496-94dd-94a304315ec4
2025-07-04 15:18:28,502 - DEBUG - Requesting: http://10.0.0.22:8082/project/65a473ab-fc9a-4fa6-92d6-b5c49472cdaf
2025-07-04 15:18:28,573 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/65a0ae17-e7a0-4ab8-9cb0-61e8ffb5f397
2025-07-04 15:18:28,583 - DEBUG - ==>Verifying data for policy with id: 8179f679-1d94-4c50-b371-9caccf02cf5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-47329234', 'ctest-policy-allow-all-22389063']
2025-07-04 15:18:28,583 - INFO - VN ctest-vn-47751798 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 15:18:28,583 - DEBUG - Verifying the vn in opserver
2025-07-04 15:18:28,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-47751798 virtual network link through opserver 10.0.0.22
2025-07-04 15:18:28,583 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-07-04 15:18:28,595 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-47751798', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-47751798?flat'}
2025-07-04 15:18:28,595 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47329234:ctest-vn-47751798 is found in opserver
2025-07-04 15:18:28,606 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 15:18:28,611 - DEBUG - VRF ids for VN ctest-vn-47751798: {}
2025-07-04 15:18:28,668 - DEBUG - Services list from nova: [