2025-10-31 02:32:44,268 - INFO - Domain Default found not creating
2025-10-31 02:32:44,441 - INFO - Project ctest-TestBasicPolicy-92679836 not found, creating it
2025-10-31 02:32:44,911 - INFO - Created Project:ctest-TestBasicPolicy-92679836, ID : 8fb923e7-11ef-48da-98fa-7dd15d8da155
2025-10-31 02:32:47,007 - INFO - ================================================================================
2025-10-31 02:32:47,007 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 02:32:47,007 - 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-10-31 02:32:47,265 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with
2025-10-31 02:32:47,265 - INFO - Initial checks done. Running the testcase now
2025-10-31 02:32:47,265 - INFO -
2025-10-31 02:32:47,806 - DEBUG - Response for create_network : {'network': {'id': '4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf', 'name': 'ctest-vn-25109708', 'tenant_id': '8fb923e711ef48da98fa7dd15d8da155', 'project_id': '8fb923e711ef48da98fa7dd15d8da155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-vn-25109708'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 02:32:48,041 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6a181e2-831d-4fc2-81e1-a73771982eae', 'name': '', 'tenant_id': '8fb923e711ef48da98fa7dd15d8da155', 'network_id': '4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf', 'ip_version': 4, 'cidr': '158.87.192.192/26', 'allocation_pools': [{'start': '158.87.192.194', 'end': '158.87.192.254'}], 'gateway_ip': '158.87.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.87.192.194', 'tags': [], 'project_id': '8fb923e711ef48da98fa7dd15d8da155'}}
2025-10-31 02:32:48,060 - INFO - Created VN ctest-vn-25109708
2025-10-31 02:32:48,110 - DEBUG - VN ctest-vn-25109708 UUID is 4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf
2025-10-31 02:32:48,396 - DEBUG - Response for create_network : {'network': {'id': '120a7824-230e-431a-8174-99b7dbb421cf', 'name': 'ctest-vn-00130185', 'tenant_id': '8fb923e711ef48da98fa7dd15d8da155', 'project_id': '8fb923e711ef48da98fa7dd15d8da155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-vn-00130185'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 02:32:48,637 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a3994bb-516f-4327-beb2-61716f48832e', 'name': '', 'tenant_id': '8fb923e711ef48da98fa7dd15d8da155', 'network_id': '120a7824-230e-431a-8174-99b7dbb421cf', 'ip_version': 4, 'cidr': '196.131.128.192/26', 'allocation_pools': [{'start': '196.131.128.194', 'end': '196.131.128.254'}], 'gateway_ip': '196.131.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.131.128.194', 'tags': [], 'project_id': '8fb923e711ef48da98fa7dd15d8da155'}}
2025-10-31 02:32:48,659 - INFO - Created VN ctest-vn-00130185
2025-10-31 02:32:48,715 - DEBUG - VN ctest-vn-00130185 UUID is 120a7824-230e-431a-8174-99b7dbb421cf
2025-10-31 02:32:48,828 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-25109708, 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-92679836:ctest-vn-00130185, 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-10-31 02:32:49,122 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf', 'name': 'ctest-vn-25109708', 'tenant_id': '8fb923e711ef48da98fa7dd15d8da155', 'project_id': '8fb923e711ef48da98fa7dd15d8da155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6a181e2-831d-4fc2-81e1-a73771982eae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-vn-25109708'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-policy-allow-all-94987200']], 'subnet_ipam': [{'subnet_cidr': '158.87.192.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 02:32:49,342 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '120a7824-230e-431a-8174-99b7dbb421cf', 'name': 'ctest-vn-00130185', 'tenant_id': '8fb923e711ef48da98fa7dd15d8da155', 'project_id': '8fb923e711ef48da98fa7dd15d8da155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a3994bb-516f-4327-beb2-61716f48832e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-vn-00130185'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-policy-allow-all-94987200']], 'subnet_ipam': [{'subnet_cidr': '196.131.128.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 02:32:49,495 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 02:32:49,801 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 02:32:49,832 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c
2025-10-31 02:32:49,843 - DEBUG - Requesting: http://10.0.0.137:8082/project/8fb923e7-11ef-48da-98fa-7dd15d8da155
2025-10-31 02:32:49,917 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf
2025-10-31 02:32:49,928 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf
2025-10-31 02:32:49,936 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bfd54b7c-2036-4334-a7e0-8a45454b152b
2025-10-31 02:32:49,943 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bfd54b7c-2036-4334-a7e0-8a45454b152b
2025-10-31 02:32:49,949 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/66d07ea9-a29e-463d-b65e-0531a3a67e78
2025-10-31 02:32:49,956 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 02:32:49,956 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf
2025-10-31 02:32:49,964 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bfd54b7c-2036-4334-a7e0-8a45454b152b
2025-10-31 02:32:49,978 - INFO - Verified VN network id 11 for VN 4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf
2025-10-31 02:32:49,978 - INFO - Verifications in API Server for VN ctest-vn-25109708 passed
2025-10-31 02:32:49,978 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf
2025-10-31 02:32:49,986 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bfd54b7c-2036-4334-a7e0-8a45454b152b
2025-10-31 02:32:49,992 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/bfd54b7c-2036-4334-a7e0-8a45454b152b
2025-10-31 02:32:49,998 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/66d07ea9-a29e-463d-b65e-0531a3a67e78
2025-10-31 02:32:50,009 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-25109708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92679836', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5050511682643512603', 'uuid-lslong': '12898020131396775119'}, 'enable': 'true', 'created': '2025-10-31T02:32:47', 'last-modified': '2025-10-31T02:32:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907199'}
2025-10-31 02:32:50,016 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 02:32:50,016 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25109708 passed
2025-10-31 02:32:50,016 - DEBUG - ====Verifying policy data for ctest-vn-25109708 in API_Server ======
2025-10-31 02:32:50,016 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 02:32:50,021 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c
2025-10-31 02:32:50,031 - DEBUG - Requesting: http://10.0.0.137:8082/project/8fb923e7-11ef-48da-98fa-7dd15d8da155
2025-10-31 02:32:50,099 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/4617059d-d9ed-4d1b-b2fe-f8f90dbdeccf
2025-10-31 02:32:50,108 - DEBUG - ==>Verifying data for policy with id: 8a3d98ff-c6ed-4709-8d52-aaf2d3bfe97c, fqn: ['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-policy-allow-all-94987200']
2025-10-31 02:32:50,108 - INFO - VN ctest-vn-25109708 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 02:32:50,108 - DEBUG - Verifying the vn in opserver
2025-10-31 02:32:50,108 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-25109708 virtual network link through opserver 10.0.0.137
2025-10-31 02:32:50,108 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 02:32:50,405 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 02:32:50,460 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-25109708', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-25109708?flat'}
2025-10-31 02:32:50,460 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-25109708 is found in opserver
2025-10-31 02:32:50,470 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 02:32:50,474 - DEBUG - VRF ids for VN ctest-vn-25109708: {}
2025-10-31 02:32:50,475 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 02:32:50,480 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c
2025-10-31 02:32:50,491 - DEBUG - Requesting: http://10.0.0.137:8082/project/8fb923e7-11ef-48da-98fa-7dd15d8da155
2025-10-31 02:32:50,561 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/120a7824-230e-431a-8174-99b7dbb421cf
2025-10-31 02:32:50,573 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/120a7824-230e-431a-8174-99b7dbb421cf
2025-10-31 02:32:50,582 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/172eebeb-cf73-4bca-8fff-18a71df1391c
2025-10-31 02:32:50,589 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/172eebeb-cf73-4bca-8fff-18a71df1391c
2025-10-31 02:32:50,594 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/e483ac96-40d6-45f6-b251-4fe811f238a0
2025-10-31 02:32:50,601 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 02:32:50,601 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/120a7824-230e-431a-8174-99b7dbb421cf
2025-10-31 02:32:50,609 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/172eebeb-cf73-4bca-8fff-18a71df1391c
2025-10-31 02:32:50,620 - INFO - Verified VN network id 12 for VN 120a7824-230e-431a-8174-99b7dbb421cf
2025-10-31 02:32:50,620 - INFO - Verifications in API Server for VN ctest-vn-00130185 passed
2025-10-31 02:32:50,620 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/120a7824-230e-431a-8174-99b7dbb421cf
2025-10-31 02:32:50,628 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/172eebeb-cf73-4bca-8fff-18a71df1391c
2025-10-31 02:32:50,634 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/172eebeb-cf73-4bca-8fff-18a71df1391c
2025-10-31 02:32:50,639 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/e483ac96-40d6-45f6-b251-4fe811f238a0
2025-10-31 02:32:50,650 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-00130185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92679836', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1299983539052102426', 'uuid-lslong': '9328249743135220175'}, 'enable': 'true', 'created': '2025-10-31T02:32:48', 'last-modified': '2025-10-31T02:32:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.327057'}
2025-10-31 02:32:50,656 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 02:32:50,656 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00130185 passed
2025-10-31 02:32:50,656 - DEBUG - ====Verifying policy data for ctest-vn-00130185 in API_Server ======
2025-10-31 02:32:50,656 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 02:32:50,660 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f20c8f27-e4ee-40d7-847d-cb256a7ec21c
2025-10-31 02:32:50,669 - DEBUG - Requesting: http://10.0.0.137:8082/project/8fb923e7-11ef-48da-98fa-7dd15d8da155
2025-10-31 02:32:50,745 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/120a7824-230e-431a-8174-99b7dbb421cf
2025-10-31 02:32:50,754 - DEBUG - ==>Verifying data for policy with id: 8a3d98ff-c6ed-4709-8d52-aaf2d3bfe97c, fqn: ['default-domain', 'ctest-TestBasicPolicy-92679836', 'ctest-policy-allow-all-94987200']
2025-10-31 02:32:50,754 - INFO - VN ctest-vn-00130185 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 02:32:50,754 - DEBUG - Verifying the vn in opserver
2025-10-31 02:32:50,754 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-00130185 virtual network link through opserver 10.0.0.137
2025-10-31 02:32:50,754 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 02:32:50,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-00130185', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-00130185?flat'}
2025-10-31 02:32:50,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92679836:ctest-vn-00130185 is found in opserver
2025-10-31 02:32:50,772 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 02:32:50,776 - DEBUG - VRF ids for VN ctest-vn-00130185: {}
2025-10-31 02:32:50,831 - DEBUG - Services list from nova: [