2025-10-31 09:01:37,645 - INFO - Domain Default found not creating
2025-10-31 09:01:37,846 - INFO - Project ctest-TestBasicPolicy-50973276 not found, creating it
2025-10-31 09:01:38,339 - INFO - Created Project:ctest-TestBasicPolicy-50973276, ID : 28a16e2e-228d-4e21-b81f-4b4ba8457724
2025-10-31 09:01:39,963 - INFO - ================================================================================
2025-10-31 09:01:39,963 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 09:01:39,963 - 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 09:01:40,227 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-10-31 09:01:40,227 - INFO - Initial checks done. Running the testcase now
2025-10-31 09:01:40,227 - INFO -
2025-10-31 09:01:40,808 - DEBUG - Response for create_network : {'network': {'id': 'b8555b40-9187-472d-8ae4-a112ccdde291', 'name': 'ctest-vn-37539573', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-37539573'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 09:01:40,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c2b9e76-c625-47f5-8417-1761ef545710', 'name': '', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'network_id': 'b8555b40-9187-472d-8ae4-a112ccdde291', 'ip_version': 4, 'cidr': '94.196.10.0/26', 'allocation_pools': [{'start': '94.196.10.2', 'end': '94.196.10.62'}], 'gateway_ip': '94.196.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.196.10.2', 'tags': [], 'project_id': '28a16e2e228d4e21b81f4b4ba8457724'}}
2025-10-31 09:01:41,008 - INFO - Created VN ctest-vn-37539573
2025-10-31 09:01:41,062 - DEBUG - VN ctest-vn-37539573 UUID is b8555b40-9187-472d-8ae4-a112ccdde291
2025-10-31 09:01:41,375 - DEBUG - Response for create_network : {'network': {'id': '8cfdc7a6-211b-4680-9684-74fbd22907e8', 'name': 'ctest-vn-76523744', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-76523744'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 09:01:41,611 - DEBUG - Response for create_subnet : {'subnet': {'id': '7901bf30-b88c-4b92-b71f-012a943bf70e', 'name': '', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'network_id': '8cfdc7a6-211b-4680-9684-74fbd22907e8', 'ip_version': 4, 'cidr': '3.61.255.0/26', 'allocation_pools': [{'start': '3.61.255.2', 'end': '3.61.255.62'}], 'gateway_ip': '3.61.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.61.255.2', 'tags': [], 'project_id': '28a16e2e228d4e21b81f4b4ba8457724'}}
2025-10-31 09:01:41,638 - INFO - Created VN ctest-vn-76523744
2025-10-31 09:01:41,692 - DEBUG - VN ctest-vn-76523744 UUID is 8cfdc7a6-211b-4680-9684-74fbd22907e8
2025-10-31 09:01:41,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573, 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-50973276:ctest-vn-76523744, 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 09:01:42,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8555b40-9187-472d-8ae4-a112ccdde291', 'name': 'ctest-vn-37539573', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c2b9e76-c625-47f5-8417-1761ef545710'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-37539573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257']], 'subnet_ipam': [{'subnet_cidr': '94.196.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 09:01:42,376 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8cfdc7a6-211b-4680-9684-74fbd22907e8', 'name': 'ctest-vn-76523744', 'tenant_id': '28a16e2e228d4e21b81f4b4ba8457724', 'project_id': '28a16e2e228d4e21b81f4b4ba8457724', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7901bf30-b88c-4b92-b71f-012a943bf70e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-vn-76523744'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257']], 'subnet_ipam': [{'subnet_cidr': '3.61.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 09:01:42,540 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 09:01:42,850 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 09:01:42,884 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0
2025-10-31 09:01:42,902 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724
2025-10-31 09:01:42,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291
2025-10-31 09:01:42,991 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291
2025-10-31 09:01:43,002 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239
2025-10-31 09:01:43,010 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239
2025-10-31 09:01:43,019 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6b38a2c3-ef3b-4f14-9294-a3ff208dc596
2025-10-31 09:01:43,026 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 09:01:43,026 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291
2025-10-31 09:01:43,036 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239
2025-10-31 09:01:43,052 - INFO - Verified VN network id 11 for VN b8555b40-9187-472d-8ae4-a112ccdde291
2025-10-31 09:01:43,052 - INFO - Verifications in API Server for VN ctest-vn-37539573 passed
2025-10-31 09:01:43,052 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291
2025-10-31 09:01:43,061 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239
2025-10-31 09:01:43,068 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3820b9a2-0e84-4912-ac09-8b7b2736d239
2025-10-31 09:01:43,076 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6b38a2c3-ef3b-4f14-9294-a3ff208dc596
2025-10-31 09:01:43,090 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50973276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13282623008876742445', 'uuid-lslong': '10008301374042661521'}, 'enable': 'true', 'created': '2025-10-31T09:01:40', 'last-modified': '2025-10-31T09:01:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988661'}
2025-10-31 09:01:43,097 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 09:01:43,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37539573 passed
2025-10-31 09:01:43,097 - DEBUG - ====Verifying policy data for ctest-vn-37539573 in API_Server ======
2025-10-31 09:01:43,097 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 09:01:43,103 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0
2025-10-31 09:01:43,115 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724
2025-10-31 09:01:43,191 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b8555b40-9187-472d-8ae4-a112ccdde291
2025-10-31 09:01:43,201 - DEBUG - ==>Verifying data for policy with id: 5798fbd4-bab4-4c86-b0c9-33f9a986c079, fqn: ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257']
2025-10-31 09:01:43,201 - INFO - VN ctest-vn-37539573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 09:01:43,201 - DEBUG - Verifying the vn in opserver
2025-10-31 09:01:43,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573 virtual network link through opserver 10.0.0.254
2025-10-31 09:01:43,201 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-31 09:01:43,502 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-31 09:01:43,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573?flat'}
2025-10-31 09:01:43,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-37539573 is found in opserver
2025-10-31 09:01:43,577 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 09:01:43,581 - DEBUG - VRF ids for VN ctest-vn-37539573: {}
2025-10-31 09:01:43,581 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 09:01:43,588 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0
2025-10-31 09:01:43,599 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724
2025-10-31 09:01:43,672 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8
2025-10-31 09:01:43,684 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8
2025-10-31 09:01:43,693 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14
2025-10-31 09:01:43,701 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14
2025-10-31 09:01:43,708 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3dbbc0d3-31f0-40bb-b968-58847f9c122d
2025-10-31 09:01:43,716 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 09:01:43,716 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8
2025-10-31 09:01:43,726 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14
2025-10-31 09:01:43,741 - INFO - Verified VN network id 12 for VN 8cfdc7a6-211b-4680-9684-74fbd22907e8
2025-10-31 09:01:43,741 - INFO - Verifications in API Server for VN ctest-vn-76523744 passed
2025-10-31 09:01:43,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8
2025-10-31 09:01:43,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14
2025-10-31 09:01:43,763 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/970d8a52-df28-446c-8fb3-02802298ff14
2025-10-31 09:01:43,771 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3dbbc0d3-31f0-40bb-b968-58847f9c122d
2025-10-31 09:01:43,786 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50973276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10159495850751641216', 'uuid-lslong': '10845922427526514664'}, 'enable': 'true', 'created': '2025-10-31T09:01:41', 'last-modified': '2025-10-31T09:01:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441268'}
2025-10-31 09:01:43,794 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 09:01:43,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76523744 passed
2025-10-31 09:01:43,795 - DEBUG - ====Verifying policy data for ctest-vn-76523744 in API_Server ======
2025-10-31 09:01:43,795 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 09:01:43,802 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2edc14c0-6a3e-4d2a-9edf-b1e7cdce0fb0
2025-10-31 09:01:43,819 - DEBUG - Requesting: http://10.0.0.254:8082/project/28a16e2e-228d-4e21-b81f-4b4ba8457724
2025-10-31 09:01:43,894 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8cfdc7a6-211b-4680-9684-74fbd22907e8
2025-10-31 09:01:43,904 - DEBUG - ==>Verifying data for policy with id: 5798fbd4-bab4-4c86-b0c9-33f9a986c079, fqn: ['default-domain', 'ctest-TestBasicPolicy-50973276', 'ctest-policy-allow-all-48018257']
2025-10-31 09:01:43,904 - INFO - VN ctest-vn-76523744 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 09:01:43,904 - DEBUG - Verifying the vn in opserver
2025-10-31 09:01:43,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744 virtual network link through opserver 10.0.0.254
2025-10-31 09:01:43,904 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-31 09:01:43,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744?flat'}
2025-10-31 09:01:43,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50973276:ctest-vn-76523744 is found in opserver
2025-10-31 09:01:43,926 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 09:01:43,934 - DEBUG - VRF ids for VN ctest-vn-76523744: {}
2025-10-31 09:01:44,000 - DEBUG - Services list from nova: [