2025-11-06 02:04:23,292 - INFO - Domain Default found not creating
2025-11-06 02:04:23,436 - INFO - Project ctest-TestBasicPolicy-05177334 not found, creating it
2025-11-06 02:04:23,852 - INFO - Created Project:ctest-TestBasicPolicy-05177334, ID : daa07341-314f-49e3-809b-8abf411c0462
2025-11-06 02:04:25,219 - INFO - ================================================================================
2025-11-06 02:04:25,219 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-06 02:04:25,220 - 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-11-06 02:04:25,473 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with
2025-11-06 02:04:25,473 - INFO - Initial checks done. Running the testcase now
2025-11-06 02:04:25,473 - INFO -
2025-11-06 02:04:26,004 - DEBUG - Response for create_network : {'network': {'id': '1372eac9-dc04-4353-8ad7-da0943bfd954', 'name': 'ctest-vn-78048532', 'tenant_id': 'daa07341314f49e3809b8abf411c0462', 'project_id': 'daa07341314f49e3809b8abf411c0462', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-vn-78048532'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:04:26,170 - DEBUG - Response for create_subnet : {'subnet': {'id': '0863c46a-8b1d-4458-afb8-c7df5e78410a', 'name': '', 'tenant_id': 'daa07341314f49e3809b8abf411c0462', 'network_id': '1372eac9-dc04-4353-8ad7-da0943bfd954', 'ip_version': 4, 'cidr': '212.34.49.64/26', 'allocation_pools': [{'start': '212.34.49.66', 'end': '212.34.49.126'}], 'gateway_ip': '212.34.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.34.49.66', 'tags': [], 'project_id': 'daa07341314f49e3809b8abf411c0462'}}
2025-11-06 02:04:26,186 - INFO - Created VN ctest-vn-78048532
2025-11-06 02:04:26,236 - DEBUG - VN ctest-vn-78048532 UUID is 1372eac9-dc04-4353-8ad7-da0943bfd954
2025-11-06 02:04:26,555 - DEBUG - Response for create_network : {'network': {'id': 'd7cd2718-8847-46fb-af81-1a30e582d04b', 'name': 'ctest-vn-51683067', 'tenant_id': 'daa07341314f49e3809b8abf411c0462', 'project_id': 'daa07341314f49e3809b8abf411c0462', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-vn-51683067'], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:04:26,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '61d2d2e6-53c5-4905-b033-3799c622828a', 'name': '', 'tenant_id': 'daa07341314f49e3809b8abf411c0462', 'network_id': 'd7cd2718-8847-46fb-af81-1a30e582d04b', 'ip_version': 4, 'cidr': '190.219.136.128/26', 'allocation_pools': [{'start': '190.219.136.130', 'end': '190.219.136.190'}], 'gateway_ip': '190.219.136.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.219.136.130', 'tags': [], 'project_id': 'daa07341314f49e3809b8abf411c0462'}}
2025-11-06 02:04:26,718 - INFO - Created VN ctest-vn-51683067
2025-11-06 02:04:26,768 - DEBUG - VN ctest-vn-51683067 UUID is d7cd2718-8847-46fb-af81-1a30e582d04b
2025-11-06 02:04:26,916 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-78048532, 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-05177334:ctest-vn-51683067, 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-11-06 02:04:27,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1372eac9-dc04-4353-8ad7-da0943bfd954', 'name': 'ctest-vn-78048532', 'tenant_id': 'daa07341314f49e3809b8abf411c0462', 'project_id': 'daa07341314f49e3809b8abf411c0462', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0863c46a-8b1d-4458-afb8-c7df5e78410a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-vn-78048532'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-policy-allow-all-07149046']], 'subnet_ipam': [{'subnet_cidr': '212.34.49.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:04:27,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7cd2718-8847-46fb-af81-1a30e582d04b', 'name': 'ctest-vn-51683067', 'tenant_id': 'daa07341314f49e3809b8abf411c0462', 'project_id': 'daa07341314f49e3809b8abf411c0462', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61d2d2e6-53c5-4905-b033-3799c622828a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-vn-51683067'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-policy-allow-all-07149046']], 'subnet_ipam': [{'subnet_cidr': '190.219.136.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-06 02:04:27,600 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 02:04:27,897 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 02:04:27,924 - DEBUG - Requesting: http://10.0.0.22:8082/domain/88ab238c-1b4f-4648-9342-589a67e6b8e9
2025-11-06 02:04:27,934 - DEBUG - Requesting: http://10.0.0.22:8082/project/daa07341-314f-49e3-809b-8abf411c0462
2025-11-06 02:04:28,007 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1372eac9-dc04-4353-8ad7-da0943bfd954
2025-11-06 02:04:28,017 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1372eac9-dc04-4353-8ad7-da0943bfd954
2025-11-06 02:04:28,024 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4cf63731-cf6a-4d8d-9ef6-d07eba5c1ee3
2025-11-06 02:04:28,030 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4cf63731-cf6a-4d8d-9ef6-d07eba5c1ee3
2025-11-06 02:04:28,036 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dd0336fd-5843-4616-97c3-651b9c8d0fd6
2025-11-06 02:04:28,042 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 02:04:28,042 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1372eac9-dc04-4353-8ad7-da0943bfd954
2025-11-06 02:04:28,051 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4cf63731-cf6a-4d8d-9ef6-d07eba5c1ee3
2025-11-06 02:04:28,064 - INFO - Verified VN network id 12 for VN 1372eac9-dc04-4353-8ad7-da0943bfd954
2025-11-06 02:04:28,064 - INFO - Verifications in API Server for VN ctest-vn-78048532 passed
2025-11-06 02:04:28,064 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1372eac9-dc04-4353-8ad7-da0943bfd954
2025-11-06 02:04:28,072 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4cf63731-cf6a-4d8d-9ef6-d07eba5c1ee3
2025-11-06 02:04:28,078 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4cf63731-cf6a-4d8d-9ef6-d07eba5c1ee3
2025-11-06 02:04:28,083 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dd0336fd-5843-4616-97c3-651b9c8d0fd6
2025-11-06 02:04:28,092 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-78048532', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05177334', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1401440586766238547', 'uuid-lslong': '10004704830553053524'}, 'enable': 'true', 'created': '2025-11-06T02:04:25', 'last-modified': '2025-11-06T02:04:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912477'}
2025-11-06 02:04:28,098 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-06 02:04:28,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78048532 passed
2025-11-06 02:04:28,098 - DEBUG - ====Verifying policy data for ctest-vn-78048532 in API_Server ======
2025-11-06 02:04:28,098 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 02:04:28,104 - DEBUG - Requesting: http://10.0.0.22:8082/domain/88ab238c-1b4f-4648-9342-589a67e6b8e9
2025-11-06 02:04:28,114 - DEBUG - Requesting: http://10.0.0.22:8082/project/daa07341-314f-49e3-809b-8abf411c0462
2025-11-06 02:04:28,180 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1372eac9-dc04-4353-8ad7-da0943bfd954
2025-11-06 02:04:28,187 - DEBUG - ==>Verifying data for policy with id: c617c3b0-06f8-4b67-8339-d6bf376666de, fqn: ['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-policy-allow-all-07149046']
2025-11-06 02:04:28,188 - INFO - VN ctest-vn-78048532 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 02:04:28,188 - DEBUG - Verifying the vn in opserver
2025-11-06 02:04:28,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-78048532 virtual network link through opserver 10.0.0.22
2025-11-06 02:04:28,188 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-06 02:04:28,475 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-06 02:04:28,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-78048532', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-78048532?flat'}
2025-11-06 02:04:28,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-78048532 is found in opserver
2025-11-06 02:04:28,534 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 02:04:28,538 - DEBUG - VRF ids for VN ctest-vn-78048532: {}
2025-11-06 02:04:28,538 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 02:04:28,543 - DEBUG - Requesting: http://10.0.0.22:8082/domain/88ab238c-1b4f-4648-9342-589a67e6b8e9
2025-11-06 02:04:28,553 - DEBUG - Requesting: http://10.0.0.22:8082/project/daa07341-314f-49e3-809b-8abf411c0462
2025-11-06 02:04:28,623 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d7cd2718-8847-46fb-af81-1a30e582d04b
2025-11-06 02:04:28,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d7cd2718-8847-46fb-af81-1a30e582d04b
2025-11-06 02:04:28,640 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e0324c4-b8c1-451b-bfff-e50f5015e3f5
2025-11-06 02:04:28,647 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e0324c4-b8c1-451b-bfff-e50f5015e3f5
2025-11-06 02:04:28,656 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/587d5117-4445-4f3a-b7c9-a997cd701713
2025-11-06 02:04:28,661 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 02:04:28,662 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d7cd2718-8847-46fb-af81-1a30e582d04b
2025-11-06 02:04:28,669 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e0324c4-b8c1-451b-bfff-e50f5015e3f5
2025-11-06 02:04:28,681 - INFO - Verified VN network id 13 for VN d7cd2718-8847-46fb-af81-1a30e582d04b
2025-11-06 02:04:28,681 - INFO - Verifications in API Server for VN ctest-vn-51683067 passed
2025-11-06 02:04:28,681 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d7cd2718-8847-46fb-af81-1a30e582d04b
2025-11-06 02:04:28,690 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e0324c4-b8c1-451b-bfff-e50f5015e3f5
2025-11-06 02:04:28,696 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e0324c4-b8c1-451b-bfff-e50f5015e3f5
2025-11-06 02:04:28,701 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/587d5117-4445-4f3a-b7c9-a997cd701713
2025-11-06 02:04:28,711 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-51683067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05177334', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15550128074699261691', 'uuid-lslong': '12646418025944371275'}, 'enable': 'true', 'created': '2025-11-06T02:04:26', 'last-modified': '2025-11-06T02:04:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318902'}
2025-11-06 02:04:28,716 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-06 02:04:28,717 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51683067 passed
2025-11-06 02:04:28,717 - DEBUG - ====Verifying policy data for ctest-vn-51683067 in API_Server ======
2025-11-06 02:04:28,717 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-06 02:04:28,721 - DEBUG - Requesting: http://10.0.0.22:8082/domain/88ab238c-1b4f-4648-9342-589a67e6b8e9
2025-11-06 02:04:28,730 - DEBUG - Requesting: http://10.0.0.22:8082/project/daa07341-314f-49e3-809b-8abf411c0462
2025-11-06 02:04:28,794 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d7cd2718-8847-46fb-af81-1a30e582d04b
2025-11-06 02:04:28,802 - DEBUG - ==>Verifying data for policy with id: c617c3b0-06f8-4b67-8339-d6bf376666de, fqn: ['default-domain', 'ctest-TestBasicPolicy-05177334', 'ctest-policy-allow-all-07149046']
2025-11-06 02:04:28,802 - INFO - VN ctest-vn-51683067 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-06 02:04:28,802 - DEBUG - Verifying the vn in opserver
2025-11-06 02:04:28,802 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-51683067 virtual network link through opserver 10.0.0.22
2025-11-06 02:04:28,802 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-06 02:04:28,810 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-51683067', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-51683067?flat'}
2025-11-06 02:04:28,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05177334:ctest-vn-51683067 is found in opserver
2025-11-06 02:04:28,818 - DEBUG - Do not have enough data to verify VN in agent
2025-11-06 02:04:28,822 - DEBUG - VRF ids for VN ctest-vn-51683067: {}
2025-11-06 02:04:28,870 - DEBUG - Services list from nova: [