2026-04-29 02:22:43,855 - INFO - Domain Default found not creating
2026-04-29 02:22:44,093 - INFO - Project ctest-TestBasicPolicy-89687964 not found, creating it
2026-04-29 02:22:44,603 - INFO - Created Project:ctest-TestBasicPolicy-89687964, ID : 40da2d9c-3c61-4d76-94bd-cadf8bb7e7a2
2026-04-29 02:22:46,365 - INFO - ================================================================================
2026-04-29 02:22:46,365 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 02:22:46,365 - 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-04-29 02:22:46,625 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-29 02:22:46,625 - INFO - Initial checks done. Running the testcase now
2026-04-29 02:22:46,626 - INFO -
2026-04-29 02:22:47,243 - DEBUG - Response for create_network : {'network': {'id': 'efcaf4c0-27b6-41be-a4d7-5d7a5d06004e', 'name': 'ctest-vn-76757521', 'tenant_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'project_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-vn-76757521'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 02:22:47,463 - DEBUG - Response for create_subnet : {'subnet': {'id': '04cb9d42-0ac5-4eaf-bc7f-5f3a4b0cacca', 'name': '', 'tenant_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'network_id': 'efcaf4c0-27b6-41be-a4d7-5d7a5d06004e', 'ip_version': 4, 'cidr': '173.10.189.0/26', 'allocation_pools': [{'start': '173.10.189.2', 'end': '173.10.189.62'}], 'gateway_ip': '173.10.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.10.189.2', 'tags': [], 'project_id': '40da2d9c3c614d7694bdcadf8bb7e7a2'}}
2026-04-29 02:22:47,484 - INFO - Created VN ctest-vn-76757521
2026-04-29 02:22:47,536 - DEBUG - VN ctest-vn-76757521 UUID is efcaf4c0-27b6-41be-a4d7-5d7a5d06004e
2026-04-29 02:22:47,851 - DEBUG - Response for create_network : {'network': {'id': 'e75d6ab9-384b-4c7c-8629-5f35c4d30001', 'name': 'ctest-vn-76886710', 'tenant_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'project_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-vn-76886710'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 02:22:48,104 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd21b7b3-5306-4570-94fe-72ce05765377', 'name': '', 'tenant_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'network_id': 'e75d6ab9-384b-4c7c-8629-5f35c4d30001', 'ip_version': 4, 'cidr': '33.96.99.192/26', 'allocation_pools': [{'start': '33.96.99.194', 'end': '33.96.99.254'}], 'gateway_ip': '33.96.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.96.99.194', 'tags': [], 'project_id': '40da2d9c3c614d7694bdcadf8bb7e7a2'}}
2026-04-29 02:22:48,127 - INFO - Created VN ctest-vn-76886710
2026-04-29 02:22:48,180 - DEBUG - VN ctest-vn-76886710 UUID is e75d6ab9-384b-4c7c-8629-5f35c4d30001
2026-04-29 02:22:48,301 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76757521, 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-89687964:ctest-vn-76886710, 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-04-29 02:22:48,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efcaf4c0-27b6-41be-a4d7-5d7a5d06004e', 'name': 'ctest-vn-76757521', 'tenant_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'project_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04cb9d42-0ac5-4eaf-bc7f-5f3a4b0cacca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-vn-76757521'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-policy-allow-all-85038462']], 'subnet_ipam': [{'subnet_cidr': '173.10.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 02:22:48,851 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e75d6ab9-384b-4c7c-8629-5f35c4d30001', 'name': 'ctest-vn-76886710', 'tenant_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'project_id': '40da2d9c3c614d7694bdcadf8bb7e7a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd21b7b3-5306-4570-94fe-72ce05765377'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-vn-76886710'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-policy-allow-all-85038462']], 'subnet_ipam': [{'subnet_cidr': '33.96.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 02:22:49,004 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 02:22:49,340 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 02:22:49,375 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72
2026-04-29 02:22:49,388 - DEBUG - Requesting: http://10.0.0.50:8082/project/40da2d9c-3c61-4d76-94bd-cadf8bb7e7a2
2026-04-29 02:22:49,462 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/efcaf4c0-27b6-41be-a4d7-5d7a5d06004e
2026-04-29 02:22:49,475 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/efcaf4c0-27b6-41be-a4d7-5d7a5d06004e
2026-04-29 02:22:49,487 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc7bc6ed-d41f-4787-97ee-8f3dcfd9cc5d
2026-04-29 02:22:49,495 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc7bc6ed-d41f-4787-97ee-8f3dcfd9cc5d
2026-04-29 02:22:49,502 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b1cd7699-5e02-43e8-9479-0a41b33a0165
2026-04-29 02:22:49,510 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 02:22:49,510 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/efcaf4c0-27b6-41be-a4d7-5d7a5d06004e
2026-04-29 02:22:49,521 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc7bc6ed-d41f-4787-97ee-8f3dcfd9cc5d
2026-04-29 02:22:49,536 - INFO - Verified VN network id 12 for VN efcaf4c0-27b6-41be-a4d7-5d7a5d06004e
2026-04-29 02:22:49,536 - INFO - Verifications in API Server for VN ctest-vn-76757521 passed
2026-04-29 02:22:49,536 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/efcaf4c0-27b6-41be-a4d7-5d7a5d06004e
2026-04-29 02:22:49,546 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc7bc6ed-d41f-4787-97ee-8f3dcfd9cc5d
2026-04-29 02:22:49,553 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bc7bc6ed-d41f-4787-97ee-8f3dcfd9cc5d
2026-04-29 02:22:49,561 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b1cd7699-5e02-43e8-9479-0a41b33a0165
2026-04-29 02:22:49,574 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76757521', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89687964', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17278892026497483198', 'uuid-lslong': '11878065322341040206'}, 'enable': 'true', 'created': '2026-04-29T02:22:47', 'last-modified': '2026-04-29T02:22:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993867'}
2026-04-29 02:22:49,580 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 02:22:49,581 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76757521 passed
2026-04-29 02:22:49,581 - DEBUG - ====Verifying policy data for ctest-vn-76757521 in API_Server ======
2026-04-29 02:22:49,581 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 02:22:49,587 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72
2026-04-29 02:22:49,599 - DEBUG - Requesting: http://10.0.0.50:8082/project/40da2d9c-3c61-4d76-94bd-cadf8bb7e7a2
2026-04-29 02:22:49,676 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/efcaf4c0-27b6-41be-a4d7-5d7a5d06004e
2026-04-29 02:22:49,689 - DEBUG - ==>Verifying data for policy with id: 466d4d53-0437-4ad6-a0fe-ed12f9c1f209, fqn: ['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-policy-allow-all-85038462']
2026-04-29 02:22:49,689 - INFO - VN ctest-vn-76757521 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 02:22:49,689 - DEBUG - Verifying the vn in opserver
2026-04-29 02:22:49,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76757521 virtual network link through opserver 10.0.0.50
2026-04-29 02:22:49,689 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 02:22:50,033 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 02:22:50,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76757521', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76757521?flat'}
2026-04-29 02:22:50,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76757521 is found in opserver
2026-04-29 02:22:50,118 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 02:22:50,125 - DEBUG - VRF ids for VN ctest-vn-76757521: {}
2026-04-29 02:22:50,125 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 02:22:50,132 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72
2026-04-29 02:22:50,145 - DEBUG - Requesting: http://10.0.0.50:8082/project/40da2d9c-3c61-4d76-94bd-cadf8bb7e7a2
2026-04-29 02:22:50,224 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e75d6ab9-384b-4c7c-8629-5f35c4d30001
2026-04-29 02:22:50,253 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e75d6ab9-384b-4c7c-8629-5f35c4d30001
2026-04-29 02:22:50,266 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/385831d6-b29f-46cb-81b6-84da12bf74a3
2026-04-29 02:22:50,274 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/385831d6-b29f-46cb-81b6-84da12bf74a3
2026-04-29 02:22:50,282 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a1f0e74a-d4f1-4d1c-8ef3-6ad1b7588270
2026-04-29 02:22:50,290 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 02:22:50,290 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e75d6ab9-384b-4c7c-8629-5f35c4d30001
2026-04-29 02:22:50,299 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/385831d6-b29f-46cb-81b6-84da12bf74a3
2026-04-29 02:22:50,315 - INFO - Verified VN network id 13 for VN e75d6ab9-384b-4c7c-8629-5f35c4d30001
2026-04-29 02:22:50,315 - INFO - Verifications in API Server for VN ctest-vn-76886710 passed
2026-04-29 02:22:50,316 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e75d6ab9-384b-4c7c-8629-5f35c4d30001
2026-04-29 02:22:50,328 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/385831d6-b29f-46cb-81b6-84da12bf74a3
2026-04-29 02:22:50,336 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/385831d6-b29f-46cb-81b6-84da12bf74a3
2026-04-29 02:22:50,343 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a1f0e74a-d4f1-4d1c-8ef3-6ad1b7588270
2026-04-29 02:22:50,355 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76886710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89687964', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16671598739341397116', 'uuid-lslong': '9667362759667548161'}, 'enable': 'true', 'created': '2026-04-29T02:22:47', 'last-modified': '2026-04-29T02:22:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536212'}
2026-04-29 02:22:50,361 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 02:22:50,361 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76886710 passed
2026-04-29 02:22:50,361 - DEBUG - ====Verifying policy data for ctest-vn-76886710 in API_Server ======
2026-04-29 02:22:50,361 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 02:22:50,368 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0cd39402-a790-4a04-8c5b-fa283d970f72
2026-04-29 02:22:50,379 - DEBUG - Requesting: http://10.0.0.50:8082/project/40da2d9c-3c61-4d76-94bd-cadf8bb7e7a2
2026-04-29 02:22:50,452 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e75d6ab9-384b-4c7c-8629-5f35c4d30001
2026-04-29 02:22:50,462 - DEBUG - ==>Verifying data for policy with id: 466d4d53-0437-4ad6-a0fe-ed12f9c1f209, fqn: ['default-domain', 'ctest-TestBasicPolicy-89687964', 'ctest-policy-allow-all-85038462']
2026-04-29 02:22:50,462 - INFO - VN ctest-vn-76886710 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 02:22:50,462 - DEBUG - Verifying the vn in opserver
2026-04-29 02:22:50,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76886710 virtual network link through opserver 10.0.0.50
2026-04-29 02:22:50,462 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 02:22:50,473 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76886710', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76886710?flat'}
2026-04-29 02:22:50,473 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89687964:ctest-vn-76886710 is found in opserver
2026-04-29 02:22:50,484 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 02:22:50,490 - DEBUG - VRF ids for VN ctest-vn-76886710: {}
2026-04-29 02:22:50,553 - DEBUG - Services list from nova: [