2025-06-19 02:11:33,466 - INFO - Domain Default found not creating
2025-06-19 02:11:33,618 - INFO - Project ctest-TestBasicPolicy-96441395 not found, creating it
2025-06-19 02:11:34,098 - INFO - Created Project:ctest-TestBasicPolicy-96441395, ID : 978f435f-9070-481e-b6d9-bc4a24cd5d82
2025-06-19 02:11:35,493 - INFO - ================================================================================
2025-06-19 02:11:35,494 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 02:11:35,494 - 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-06-19 02:11:35,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with
2025-06-19 02:11:35,750 - INFO - Initial checks done. Running the testcase now
2025-06-19 02:11:35,750 - INFO -
2025-06-19 02:11:36,278 - DEBUG - Response for create_network : {'network': {'id': 'd1247392-a07d-4499-937d-fb55920be786', 'name': 'ctest-vn-85038275', 'tenant_id': '978f435f9070481eb6d9bc4a24cd5d82', 'project_id': '978f435f9070481eb6d9bc4a24cd5d82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-vn-85038275'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:11:36,481 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4c28914-bd98-4460-b226-938f4588cb24', 'name': '', 'tenant_id': '978f435f9070481eb6d9bc4a24cd5d82', 'network_id': 'd1247392-a07d-4499-937d-fb55920be786', 'ip_version': 4, 'cidr': '25.171.230.64/26', 'allocation_pools': [{'start': '25.171.230.66', 'end': '25.171.230.126'}], 'gateway_ip': '25.171.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.171.230.66', 'tags': [], 'project_id': '978f435f9070481eb6d9bc4a24cd5d82'}}
2025-06-19 02:11:36,498 - INFO - Created VN ctest-vn-85038275
2025-06-19 02:11:36,555 - DEBUG - VN ctest-vn-85038275 UUID is d1247392-a07d-4499-937d-fb55920be786
2025-06-19 02:11:36,841 - DEBUG - Response for create_network : {'network': {'id': 'b513f804-9d55-4788-a025-d46f9c85c3c0', 'name': 'ctest-vn-31889726', 'tenant_id': '978f435f9070481eb6d9bc4a24cd5d82', 'project_id': '978f435f9070481eb6d9bc4a24cd5d82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-vn-31889726'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:11:37,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '95f816aa-abbd-4895-a43f-1b97a4731fe5', 'name': '', 'tenant_id': '978f435f9070481eb6d9bc4a24cd5d82', 'network_id': 'b513f804-9d55-4788-a025-d46f9c85c3c0', 'ip_version': 4, 'cidr': '89.82.112.128/26', 'allocation_pools': [{'start': '89.82.112.130', 'end': '89.82.112.190'}], 'gateway_ip': '89.82.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.82.112.130', 'tags': [], 'project_id': '978f435f9070481eb6d9bc4a24cd5d82'}}
2025-06-19 02:11:37,050 - INFO - Created VN ctest-vn-31889726
2025-06-19 02:11:37,103 - DEBUG - VN ctest-vn-31889726 UUID is b513f804-9d55-4788-a025-d46f9c85c3c0
2025-06-19 02:11:37,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-85038275, 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-96441395:ctest-vn-31889726, 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-06-19 02:11:37,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1247392-a07d-4499-937d-fb55920be786', 'name': 'ctest-vn-85038275', 'tenant_id': '978f435f9070481eb6d9bc4a24cd5d82', 'project_id': '978f435f9070481eb6d9bc4a24cd5d82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4c28914-bd98-4460-b226-938f4588cb24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-vn-85038275'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-policy-allow-all-39085804']], 'subnet_ipam': [{'subnet_cidr': '25.171.230.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:11:37,741 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b513f804-9d55-4788-a025-d46f9c85c3c0', 'name': 'ctest-vn-31889726', 'tenant_id': '978f435f9070481eb6d9bc4a24cd5d82', 'project_id': '978f435f9070481eb6d9bc4a24cd5d82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95f816aa-abbd-4895-a43f-1b97a4731fe5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-vn-31889726'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-policy-allow-all-39085804']], 'subnet_ipam': [{'subnet_cidr': '89.82.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 02:11:37,907 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 02:11:38,212 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 02:11:38,243 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a656dad-1240-471e-abd8-f19f258cf646
2025-06-19 02:11:38,257 - DEBUG - Requesting: http://10.0.0.38:8082/project/978f435f-9070-481e-b6d9-bc4a24cd5d82
2025-06-19 02:11:38,335 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1247392-a07d-4499-937d-fb55920be786
2025-06-19 02:11:38,348 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1247392-a07d-4499-937d-fb55920be786
2025-06-19 02:11:38,361 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/244b8595-e22d-4b80-891b-1e0e75ba023f
2025-06-19 02:11:38,371 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/244b8595-e22d-4b80-891b-1e0e75ba023f
2025-06-19 02:11:38,389 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e0b22ba-9685-4290-a685-9d487e843c12
2025-06-19 02:11:38,396 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 02:11:38,396 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1247392-a07d-4499-937d-fb55920be786
2025-06-19 02:11:38,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/244b8595-e22d-4b80-891b-1e0e75ba023f
2025-06-19 02:11:38,425 - INFO - Verified VN network id 8 for VN d1247392-a07d-4499-937d-fb55920be786
2025-06-19 02:11:38,425 - INFO - Verifications in API Server for VN ctest-vn-85038275 passed
2025-06-19 02:11:38,425 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1247392-a07d-4499-937d-fb55920be786
2025-06-19 02:11:38,436 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/244b8595-e22d-4b80-891b-1e0e75ba023f
2025-06-19 02:11:38,447 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/244b8595-e22d-4b80-891b-1e0e75ba023f
2025-06-19 02:11:38,454 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e0b22ba-9685-4290-a685-9d487e843c12
2025-06-19 02:11:38,468 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-85038275', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96441395', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15070297326683505817', 'uuid-lslong': '10627927040605284230'}, 'enable': 'true', 'created': '2025-06-19T02:11:36', 'last-modified': '2025-06-19T02:11:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982029'}
2025-06-19 02:11:38,475 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 02:11:38,475 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85038275 passed
2025-06-19 02:11:38,475 - DEBUG - ====Verifying policy data for ctest-vn-85038275 in API_Server ======
2025-06-19 02:11:38,475 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 02:11:38,481 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a656dad-1240-471e-abd8-f19f258cf646
2025-06-19 02:11:38,492 - DEBUG - Requesting: http://10.0.0.38:8082/project/978f435f-9070-481e-b6d9-bc4a24cd5d82
2025-06-19 02:11:38,581 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d1247392-a07d-4499-937d-fb55920be786
2025-06-19 02:11:38,597 - DEBUG - ==>Verifying data for policy with id: dfb7967c-382f-45a8-9aef-04fc49190594, fqn: ['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-policy-allow-all-39085804']
2025-06-19 02:11:38,598 - INFO - VN ctest-vn-85038275 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 02:11:38,598 - DEBUG - Verifying the vn in opserver
2025-06-19 02:11:38,598 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-85038275 virtual network link through opserver 10.0.0.38
2025-06-19 02:11:38,598 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 02:11:38,892 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 02:11:38,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-85038275', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-85038275?flat'}
2025-06-19 02:11:38,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-85038275 is found in opserver
2025-06-19 02:11:38,957 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 02:11:38,962 - DEBUG - VRF ids for VN ctest-vn-85038275: {}
2025-06-19 02:11:38,962 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 02:11:38,968 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a656dad-1240-471e-abd8-f19f258cf646
2025-06-19 02:11:38,980 - DEBUG - Requesting: http://10.0.0.38:8082/project/978f435f-9070-481e-b6d9-bc4a24cd5d82
2025-06-19 02:11:39,050 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b513f804-9d55-4788-a025-d46f9c85c3c0
2025-06-19 02:11:39,062 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b513f804-9d55-4788-a025-d46f9c85c3c0
2025-06-19 02:11:39,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/927de305-525d-43c8-a629-654a7988ce71
2025-06-19 02:11:39,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/927de305-525d-43c8-a629-654a7988ce71
2025-06-19 02:11:39,086 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ff907a54-e06e-4871-a0e6-c936fce3d007
2025-06-19 02:11:39,092 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 02:11:39,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b513f804-9d55-4788-a025-d46f9c85c3c0
2025-06-19 02:11:39,101 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/927de305-525d-43c8-a629-654a7988ce71
2025-06-19 02:11:39,117 - INFO - Verified VN network id 9 for VN b513f804-9d55-4788-a025-d46f9c85c3c0
2025-06-19 02:11:39,117 - INFO - Verifications in API Server for VN ctest-vn-31889726 passed
2025-06-19 02:11:39,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b513f804-9d55-4788-a025-d46f9c85c3c0
2025-06-19 02:11:39,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/927de305-525d-43c8-a629-654a7988ce71
2025-06-19 02:11:39,136 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/927de305-525d-43c8-a629-654a7988ce71
2025-06-19 02:11:39,145 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ff907a54-e06e-4871-a0e6-c936fce3d007
2025-06-19 02:11:39,160 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-31889726', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96441395', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13048045244125628296', 'uuid-lslong': '11539863196039234496'}, 'enable': 'true', 'created': '2025-06-19T02:11:36', 'last-modified': '2025-06-19T02:11:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.448051'}
2025-06-19 02:11:39,166 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 02:11:39,166 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31889726 passed
2025-06-19 02:11:39,167 - DEBUG - ====Verifying policy data for ctest-vn-31889726 in API_Server ======
2025-06-19 02:11:39,167 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 02:11:39,173 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a656dad-1240-471e-abd8-f19f258cf646
2025-06-19 02:11:39,185 - DEBUG - Requesting: http://10.0.0.38:8082/project/978f435f-9070-481e-b6d9-bc4a24cd5d82
2025-06-19 02:11:39,255 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b513f804-9d55-4788-a025-d46f9c85c3c0
2025-06-19 02:11:39,267 - DEBUG - ==>Verifying data for policy with id: dfb7967c-382f-45a8-9aef-04fc49190594, fqn: ['default-domain', 'ctest-TestBasicPolicy-96441395', 'ctest-policy-allow-all-39085804']
2025-06-19 02:11:39,267 - INFO - VN ctest-vn-31889726 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 02:11:39,267 - DEBUG - Verifying the vn in opserver
2025-06-19 02:11:39,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-31889726 virtual network link through opserver 10.0.0.38
2025-06-19 02:11:39,268 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 02:11:39,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-31889726', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-31889726?flat'}
2025-06-19 02:11:39,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96441395:ctest-vn-31889726 is found in opserver
2025-06-19 02:11:39,291 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 02:11:39,297 - DEBUG - VRF ids for VN ctest-vn-31889726: {}
2025-06-19 02:11:39,354 - DEBUG - Services list from nova: [