2026-03-09 02:16:54,167 - INFO - Domain Default found not creating
2026-03-09 02:16:54,358 - INFO - Project ctest-TestBasicPolicy-30133939 not found, creating it
2026-03-09 02:16:54,809 - INFO - Created Project:ctest-TestBasicPolicy-30133939, ID : 3ec7ccf6-2fde-43a1-b197-1b759dc6b59a
2026-03-09 02:16:56,402 - INFO - ================================================================================
2026-03-09 02:16:56,402 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-09 02:16:56,402 - 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
2026-03-09 02:16:56,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.200': '0'}} with
2026-03-09 02:16:56,663 - INFO - Initial checks done. Running the testcase now
2026-03-09 02:16:56,663 - INFO -
2026-03-09 02:16:57,259 - DEBUG - Response for create_network : {'network': {'id': 'bc7cf1e0-eb38-488c-92be-5dc611e2fe50', 'name': 'ctest-vn-97997454', 'tenant_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'project_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-vn-97997454'], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:16:57,503 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d5fd76e-b482-428d-bd8e-d7e17980564c', 'name': '', 'tenant_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'network_id': 'bc7cf1e0-eb38-488c-92be-5dc611e2fe50', 'ip_version': 4, 'cidr': '213.66.0.128/26', 'allocation_pools': [{'start': '213.66.0.130', 'end': '213.66.0.190'}], 'gateway_ip': '213.66.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.66.0.130', 'tags': [], 'project_id': '3ec7ccf62fde43a1b1971b759dc6b59a'}}
2026-03-09 02:16:57,524 - INFO - Created VN ctest-vn-97997454
2026-03-09 02:16:57,580 - DEBUG - VN ctest-vn-97997454 UUID is bc7cf1e0-eb38-488c-92be-5dc611e2fe50
2026-03-09 02:16:57,870 - DEBUG - Response for create_network : {'network': {'id': '5ba7c3ce-34d6-4254-92a2-3c181feea97f', 'name': 'ctest-vn-81290627', 'tenant_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'project_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-vn-81290627'], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:16:58,040 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acfd3852-39ba-45fd-ad65-26dfbb779bdd', 'name': '', 'tenant_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'network_id': '5ba7c3ce-34d6-4254-92a2-3c181feea97f', 'ip_version': 4, 'cidr': '11.70.218.64/26', 'allocation_pools': [{'start': '11.70.218.66', 'end': '11.70.218.126'}], 'gateway_ip': '11.70.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.70.218.66', 'tags': [], 'project_id': '3ec7ccf62fde43a1b1971b759dc6b59a'}}
2026-03-09 02:16:58,061 - INFO - Created VN ctest-vn-81290627
2026-03-09 02:16:58,112 - DEBUG - VN ctest-vn-81290627 UUID is 5ba7c3ce-34d6-4254-92a2-3c181feea97f
2026-03-09 02:16:58,237 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-97997454, 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-30133939:ctest-vn-81290627, 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]
2026-03-09 02:16:58,578 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc7cf1e0-eb38-488c-92be-5dc611e2fe50', 'name': 'ctest-vn-97997454', 'tenant_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'project_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d5fd76e-b482-428d-bd8e-d7e17980564c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-vn-97997454'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-policy-allow-all-33674916']], 'subnet_ipam': [{'subnet_cidr': '213.66.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:16:58,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ba7c3ce-34d6-4254-92a2-3c181feea97f', 'name': 'ctest-vn-81290627', 'tenant_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'project_id': '3ec7ccf62fde43a1b1971b759dc6b59a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acfd3852-39ba-45fd-ad65-26dfbb779bdd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-vn-81290627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-policy-allow-all-33674916']], 'subnet_ipam': [{'subnet_cidr': '11.70.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:16:58,996 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-09 02:16:59,321 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-09 02:16:59,360 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ddb4372-a024-4703-88eb-08a893e74ef8
2026-03-09 02:16:59,372 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ec7ccf6-2fde-43a1-b197-1b759dc6b59a
2026-03-09 02:16:59,463 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc7cf1e0-eb38-488c-92be-5dc611e2fe50
2026-03-09 02:16:59,482 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc7cf1e0-eb38-488c-92be-5dc611e2fe50
2026-03-09 02:16:59,493 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ea9c732c-542e-4893-b149-38f726d1f185
2026-03-09 02:16:59,500 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ea9c732c-542e-4893-b149-38f726d1f185
2026-03-09 02:16:59,508 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22966113-f650-49ee-86ea-22d69cc9733a
2026-03-09 02:16:59,516 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-09 02:16:59,516 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc7cf1e0-eb38-488c-92be-5dc611e2fe50
2026-03-09 02:16:59,526 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ea9c732c-542e-4893-b149-38f726d1f185
2026-03-09 02:16:59,541 - INFO - Verified VN network id 11 for VN bc7cf1e0-eb38-488c-92be-5dc611e2fe50
2026-03-09 02:16:59,541 - INFO - Verifications in API Server for VN ctest-vn-97997454 passed
2026-03-09 02:16:59,541 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc7cf1e0-eb38-488c-92be-5dc611e2fe50
2026-03-09 02:16:59,550 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ea9c732c-542e-4893-b149-38f726d1f185
2026-03-09 02:16:59,557 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ea9c732c-542e-4893-b149-38f726d1f185
2026-03-09 02:16:59,564 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22966113-f650-49ee-86ea-22d69cc9733a
2026-03-09 02:16:59,577 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-97997454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30133939', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13581996524563875980', 'uuid-lslong': '10573992080397499984'}, 'enable': 'true', 'created': '2026-03-09T02:16:57', 'last-modified': '2026-03-09T02:16:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040157'}
2026-03-09 02:16:59,584 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-09 02:16:59,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97997454 passed
2026-03-09 02:16:59,585 - DEBUG - ====Verifying policy data for ctest-vn-97997454 in API_Server ======
2026-03-09 02:16:59,585 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-09 02:16:59,591 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ddb4372-a024-4703-88eb-08a893e74ef8
2026-03-09 02:16:59,602 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ec7ccf6-2fde-43a1-b197-1b759dc6b59a
2026-03-09 02:16:59,676 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc7cf1e0-eb38-488c-92be-5dc611e2fe50
2026-03-09 02:16:59,685 - DEBUG - ==>Verifying data for policy with id: 812ac3ef-c43d-4221-aca5-c5c0a340fd04, fqn: ['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-policy-allow-all-33674916']
2026-03-09 02:16:59,685 - INFO - VN ctest-vn-97997454 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-09 02:16:59,685 - DEBUG - Verifying the vn in opserver
2026-03-09 02:16:59,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-97997454 virtual network link through opserver 10.0.0.50
2026-03-09 02:16:59,685 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-09 02:17:00,011 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-09 02:17:00,093 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-97997454', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-97997454?flat'}
2026-03-09 02:17:00,093 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-97997454 is found in opserver
2026-03-09 02:17:00,103 - DEBUG - Do not have enough data to verify VN in agent
2026-03-09 02:17:00,107 - DEBUG - VRF ids for VN ctest-vn-97997454: {}
2026-03-09 02:17:00,108 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-09 02:17:00,114 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ddb4372-a024-4703-88eb-08a893e74ef8
2026-03-09 02:17:00,127 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ec7ccf6-2fde-43a1-b197-1b759dc6b59a
2026-03-09 02:17:00,205 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ba7c3ce-34d6-4254-92a2-3c181feea97f
2026-03-09 02:17:00,218 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ba7c3ce-34d6-4254-92a2-3c181feea97f
2026-03-09 02:17:00,230 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e2e2504d-11a3-4509-8303-e383a6eb521b
2026-03-09 02:17:00,240 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e2e2504d-11a3-4509-8303-e383a6eb521b
2026-03-09 02:17:00,248 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5b02195f-2c31-4096-af31-f88ac8d3acc2
2026-03-09 02:17:00,257 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-09 02:17:00,257 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ba7c3ce-34d6-4254-92a2-3c181feea97f
2026-03-09 02:17:00,268 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e2e2504d-11a3-4509-8303-e383a6eb521b
2026-03-09 02:17:00,285 - INFO - Verified VN network id 12 for VN 5ba7c3ce-34d6-4254-92a2-3c181feea97f
2026-03-09 02:17:00,286 - INFO - Verifications in API Server for VN ctest-vn-81290627 passed
2026-03-09 02:17:00,286 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ba7c3ce-34d6-4254-92a2-3c181feea97f
2026-03-09 02:17:00,298 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e2e2504d-11a3-4509-8303-e383a6eb521b
2026-03-09 02:17:00,308 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e2e2504d-11a3-4509-8303-e383a6eb521b
2026-03-09 02:17:00,316 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5b02195f-2c31-4096-af31-f88ac8d3acc2
2026-03-09 02:17:00,329 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-81290627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30133939', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6604462668979257940', 'uuid-lslong': '10566073750077221247'}, 'enable': 'true', 'created': '2026-03-09T02:16:57', 'last-modified': '2026-03-09T02:16:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534900'}
2026-03-09 02:17:00,335 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-09 02:17:00,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81290627 passed
2026-03-09 02:17:00,335 - DEBUG - ====Verifying policy data for ctest-vn-81290627 in API_Server ======
2026-03-09 02:17:00,335 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-09 02:17:00,342 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5ddb4372-a024-4703-88eb-08a893e74ef8
2026-03-09 02:17:00,354 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ec7ccf6-2fde-43a1-b197-1b759dc6b59a
2026-03-09 02:17:00,431 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5ba7c3ce-34d6-4254-92a2-3c181feea97f
2026-03-09 02:17:00,441 - DEBUG - ==>Verifying data for policy with id: 812ac3ef-c43d-4221-aca5-c5c0a340fd04, fqn: ['default-domain', 'ctest-TestBasicPolicy-30133939', 'ctest-policy-allow-all-33674916']
2026-03-09 02:17:00,441 - INFO - VN ctest-vn-81290627 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-09 02:17:00,442 - DEBUG - Verifying the vn in opserver
2026-03-09 02:17:00,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-81290627 virtual network link through opserver 10.0.0.50
2026-03-09 02:17:00,442 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-09 02:17:00,452 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-81290627', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-81290627?flat'}
2026-03-09 02:17:00,452 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30133939:ctest-vn-81290627 is found in opserver
2026-03-09 02:17:00,462 - DEBUG - Do not have enough data to verify VN in agent
2026-03-09 02:17:00,468 - DEBUG - VRF ids for VN ctest-vn-81290627: {}
2026-03-09 02:17:00,544 - DEBUG - Services list from nova: [