2025-06-26 23:11:52,845 - INFO - Domain Default found not creating
2025-06-26 23:11:52,997 - INFO - Project ctest-TestBasicPolicy-62417524 not found, creating it
2025-06-26 23:11:53,468 - INFO - Created Project:ctest-TestBasicPolicy-62417524, ID : 29d642e5-5836-4b52-89bb-e85fdaae3ab1
2025-06-26 23:11:55,069 - INFO - ================================================================================
2025-06-26 23:11:55,069 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 23:11:55,069 - 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-26 23:11:55,331 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-26 23:11:55,331 - INFO - Initial checks done. Running the testcase now
2025-06-26 23:11:55,332 - INFO -
2025-06-26 23:11:55,946 - DEBUG - Response for create_network : {'network': {'id': 'f15bb0ab-a9b6-470c-97db-27730f416901', 'name': 'ctest-vn-17272049', 'tenant_id': '29d642e558364b5289bbe85fdaae3ab1', 'project_id': '29d642e558364b5289bbe85fdaae3ab1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-vn-17272049'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:11:56,151 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c79759a-54d2-4d60-9415-8663db7147ee', 'name': '', 'tenant_id': '29d642e558364b5289bbe85fdaae3ab1', 'network_id': 'f15bb0ab-a9b6-470c-97db-27730f416901', 'ip_version': 4, 'cidr': '27.102.244.0/26', 'allocation_pools': [{'start': '27.102.244.2', 'end': '27.102.244.62'}], 'gateway_ip': '27.102.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.102.244.2', 'tags': [], 'project_id': '29d642e558364b5289bbe85fdaae3ab1'}}
2025-06-26 23:11:56,169 - INFO - Created VN ctest-vn-17272049
2025-06-26 23:11:56,225 - DEBUG - VN ctest-vn-17272049 UUID is f15bb0ab-a9b6-470c-97db-27730f416901
2025-06-26 23:11:56,538 - DEBUG - Response for create_network : {'network': {'id': 'e2e06be6-ba45-450e-a96f-9082cbcc6fcc', 'name': 'ctest-vn-67957750', 'tenant_id': '29d642e558364b5289bbe85fdaae3ab1', 'project_id': '29d642e558364b5289bbe85fdaae3ab1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-vn-67957750'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:11:56,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '3df89048-8f5a-4f02-82c6-fef1b49043ba', 'name': '', 'tenant_id': '29d642e558364b5289bbe85fdaae3ab1', 'network_id': 'e2e06be6-ba45-450e-a96f-9082cbcc6fcc', 'ip_version': 4, 'cidr': '220.203.26.192/26', 'allocation_pools': [{'start': '220.203.26.194', 'end': '220.203.26.254'}], 'gateway_ip': '220.203.26.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.203.26.194', 'tags': [], 'project_id': '29d642e558364b5289bbe85fdaae3ab1'}}
2025-06-26 23:11:56,759 - INFO - Created VN ctest-vn-67957750
2025-06-26 23:11:56,812 - DEBUG - VN ctest-vn-67957750 UUID is e2e06be6-ba45-450e-a96f-9082cbcc6fcc
2025-06-26 23:11:56,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-17272049, 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-62417524:ctest-vn-67957750, 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-26 23:11:57,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f15bb0ab-a9b6-470c-97db-27730f416901', 'name': 'ctest-vn-17272049', 'tenant_id': '29d642e558364b5289bbe85fdaae3ab1', 'project_id': '29d642e558364b5289bbe85fdaae3ab1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c79759a-54d2-4d60-9415-8663db7147ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-vn-17272049'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-policy-allow-all-27558284']], 'subnet_ipam': [{'subnet_cidr': '27.102.244.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:11:57,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2e06be6-ba45-450e-a96f-9082cbcc6fcc', 'name': 'ctest-vn-67957750', 'tenant_id': '29d642e558364b5289bbe85fdaae3ab1', 'project_id': '29d642e558364b5289bbe85fdaae3ab1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3df89048-8f5a-4f02-82c6-fef1b49043ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-vn-67957750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-policy-allow-all-27558284']], 'subnet_ipam': [{'subnet_cidr': '220.203.26.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 23:11:57,672 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 23:11:58,005 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 23:11:58,035 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2dbf3b6-4084-44dd-8f84-5d5149ae6850
2025-06-26 23:11:58,049 - DEBUG - Requesting: http://10.0.0.254:8082/project/29d642e5-5836-4b52-89bb-e85fdaae3ab1
2025-06-26 23:11:58,123 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f15bb0ab-a9b6-470c-97db-27730f416901
2025-06-26 23:11:58,135 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f15bb0ab-a9b6-470c-97db-27730f416901
2025-06-26 23:11:58,146 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a36b685-7036-430b-951b-27de47e04cd8
2025-06-26 23:11:58,153 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a36b685-7036-430b-951b-27de47e04cd8
2025-06-26 23:11:58,162 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/07394a5d-0432-4e65-b8d1-2d2f8e709aa2
2025-06-26 23:11:58,169 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 23:11:58,169 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f15bb0ab-a9b6-470c-97db-27730f416901
2025-06-26 23:11:58,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a36b685-7036-430b-951b-27de47e04cd8
2025-06-26 23:11:58,196 - INFO - Verified VN network id 8 for VN f15bb0ab-a9b6-470c-97db-27730f416901
2025-06-26 23:11:58,197 - INFO - Verifications in API Server for VN ctest-vn-17272049 passed
2025-06-26 23:11:58,197 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f15bb0ab-a9b6-470c-97db-27730f416901
2025-06-26 23:11:58,207 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a36b685-7036-430b-951b-27de47e04cd8
2025-06-26 23:11:58,215 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a36b685-7036-430b-951b-27de47e04cd8
2025-06-26 23:11:58,222 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/07394a5d-0432-4e65-b8d1-2d2f8e709aa2
2025-06-26 23:11:58,234 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-17272049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62417524', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17391688637354493708', 'uuid-lslong': '10942383094757419265'}, 'enable': 'true', 'created': '2025-06-26T23:11:55', 'last-modified': '2025-06-26T23:11:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007511'}
2025-06-26 23:11:58,241 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 23:11:58,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17272049 passed
2025-06-26 23:11:58,241 - DEBUG - ====Verifying policy data for ctest-vn-17272049 in API_Server ======
2025-06-26 23:11:58,241 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 23:11:58,247 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2dbf3b6-4084-44dd-8f84-5d5149ae6850
2025-06-26 23:11:58,258 - DEBUG - Requesting: http://10.0.0.254:8082/project/29d642e5-5836-4b52-89bb-e85fdaae3ab1
2025-06-26 23:11:58,334 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f15bb0ab-a9b6-470c-97db-27730f416901
2025-06-26 23:11:58,345 - DEBUG - ==>Verifying data for policy with id: 4c2cd4fe-a3ba-498d-b438-e7902d601b5e, fqn: ['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-policy-allow-all-27558284']
2025-06-26 23:11:58,345 - INFO - VN ctest-vn-17272049 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 23:11:58,346 - DEBUG - Verifying the vn in opserver
2025-06-26 23:11:58,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-17272049 virtual network link through opserver 10.0.0.254
2025-06-26 23:11:58,346 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-26 23:11:58,676 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-26 23:11:58,737 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-17272049', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-17272049?flat'}
2025-06-26 23:11:58,737 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-17272049 is found in opserver
2025-06-26 23:11:58,749 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 23:11:58,754 - DEBUG - VRF ids for VN ctest-vn-17272049: {}
2025-06-26 23:11:58,754 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 23:11:58,761 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2dbf3b6-4084-44dd-8f84-5d5149ae6850
2025-06-26 23:11:58,774 - DEBUG - Requesting: http://10.0.0.254:8082/project/29d642e5-5836-4b52-89bb-e85fdaae3ab1
2025-06-26 23:11:58,850 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2e06be6-ba45-450e-a96f-9082cbcc6fcc
2025-06-26 23:11:58,864 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2e06be6-ba45-450e-a96f-9082cbcc6fcc
2025-06-26 23:11:58,874 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e56fdaab-9de6-469c-b5fa-c446baa6a071
2025-06-26 23:11:58,882 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e56fdaab-9de6-469c-b5fa-c446baa6a071
2025-06-26 23:11:58,890 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/70e645f3-81ca-4035-a3ba-f5f3c37b1885
2025-06-26 23:11:58,897 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 23:11:58,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2e06be6-ba45-450e-a96f-9082cbcc6fcc
2025-06-26 23:11:58,909 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e56fdaab-9de6-469c-b5fa-c446baa6a071
2025-06-26 23:11:58,926 - INFO - Verified VN network id 9 for VN e2e06be6-ba45-450e-a96f-9082cbcc6fcc
2025-06-26 23:11:58,926 - INFO - Verifications in API Server for VN ctest-vn-67957750 passed
2025-06-26 23:11:58,926 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2e06be6-ba45-450e-a96f-9082cbcc6fcc
2025-06-26 23:11:58,937 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e56fdaab-9de6-469c-b5fa-c446baa6a071
2025-06-26 23:11:58,945 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e56fdaab-9de6-469c-b5fa-c446baa6a071
2025-06-26 23:11:58,952 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/70e645f3-81ca-4035-a3ba-f5f3c37b1885
2025-06-26 23:11:58,966 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-67957750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62417524', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16348185286066652430', 'uuid-lslong': '12209136006264025036'}, 'enable': 'true', 'created': '2025-06-26T23:11:56', 'last-modified': '2025-06-26T23:11:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499930'}
2025-06-26 23:11:58,973 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 23:11:58,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67957750 passed
2025-06-26 23:11:58,973 - DEBUG - ====Verifying policy data for ctest-vn-67957750 in API_Server ======
2025-06-26 23:11:58,973 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 23:11:58,981 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b2dbf3b6-4084-44dd-8f84-5d5149ae6850
2025-06-26 23:11:58,995 - DEBUG - Requesting: http://10.0.0.254:8082/project/29d642e5-5836-4b52-89bb-e85fdaae3ab1
2025-06-26 23:11:59,071 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2e06be6-ba45-450e-a96f-9082cbcc6fcc
2025-06-26 23:11:59,083 - DEBUG - ==>Verifying data for policy with id: 4c2cd4fe-a3ba-498d-b438-e7902d601b5e, fqn: ['default-domain', 'ctest-TestBasicPolicy-62417524', 'ctest-policy-allow-all-27558284']
2025-06-26 23:11:59,083 - INFO - VN ctest-vn-67957750 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 23:11:59,083 - DEBUG - Verifying the vn in opserver
2025-06-26 23:11:59,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-67957750 virtual network link through opserver 10.0.0.254
2025-06-26 23:11:59,083 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-26 23:11:59,096 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-67957750', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-67957750?flat'}
2025-06-26 23:11:59,096 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62417524:ctest-vn-67957750 is found in opserver
2025-06-26 23:11:59,111 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 23:11:59,117 - DEBUG - VRF ids for VN ctest-vn-67957750: {}
2025-06-26 23:11:59,179 - DEBUG - Services list from nova: [