2025-05-08 13:01:23,785 - INFO - Domain Default found not creating
2025-05-08 13:01:24,242 - INFO - Project ctest-TestBasicPolicy-27957291 not found, creating it
2025-05-08 13:01:25,061 - INFO - Created Project:ctest-TestBasicPolicy-27957291, ID : 02ee8b3f-2020-4295-8f4e-3ec779ac71a7
2025-05-08 13:01:27,388 - INFO - ================================================================================
2025-05-08 13:01:27,388 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-08 13:01:27,388 - 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-05-08 13:01:27,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-08 13:01:27,706 - INFO - Initial checks done. Running the testcase now
2025-05-08 13:01:27,706 - INFO -
2025-05-08 13:01:28,471 - DEBUG - Response for create_network : {'network': {'id': 'ffe31355-438f-4aac-906c-c947e2f259db', 'name': 'ctest-vn-12835939', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-12835939'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 13:01:28,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '725185a0-d862-4685-91ad-a2ae6edc7a70', 'name': '', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'network_id': 'ffe31355-438f-4aac-906c-c947e2f259db', 'ip_version': 4, 'cidr': '44.69.252.0/26', 'allocation_pools': [{'start': '44.69.252.2', 'end': '44.69.252.62'}], 'gateway_ip': '44.69.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.69.252.2', 'tags': [], 'project_id': '02ee8b3f202042958f4e3ec779ac71a7'}}
2025-05-08 13:01:28,701 - INFO - Created VN ctest-vn-12835939
2025-05-08 13:01:28,758 - DEBUG - VN ctest-vn-12835939 UUID is ffe31355-438f-4aac-906c-c947e2f259db
2025-05-08 13:01:29,164 - DEBUG - Response for create_network : {'network': {'id': 'e2a48668-9056-4c6d-b567-af0feb0471f0', 'name': 'ctest-vn-05659247', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-05659247'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 13:01:29,355 - DEBUG - Response for create_subnet : {'subnet': {'id': '93e469a7-8bcb-490e-8592-58b73036d7d3', 'name': '', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'network_id': 'e2a48668-9056-4c6d-b567-af0feb0471f0', 'ip_version': 4, 'cidr': '48.152.196.192/26', 'allocation_pools': [{'start': '48.152.196.194', 'end': '48.152.196.254'}], 'gateway_ip': '48.152.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.152.196.194', 'tags': [], 'project_id': '02ee8b3f202042958f4e3ec779ac71a7'}}
2025-05-08 13:01:29,377 - INFO - Created VN ctest-vn-05659247
2025-05-08 13:01:29,435 - DEBUG - VN ctest-vn-05659247 UUID is e2a48668-9056-4c6d-b567-af0feb0471f0
2025-05-08 13:01:29,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939, 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-27957291:ctest-vn-05659247, 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-05-08 13:01:30,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffe31355-438f-4aac-906c-c947e2f259db', 'name': 'ctest-vn-12835939', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['725185a0-d862-4685-91ad-a2ae6edc7a70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-12835939'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743']], 'subnet_ipam': [{'subnet_cidr': '44.69.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 13:01:30,425 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2a48668-9056-4c6d-b567-af0feb0471f0', 'name': 'ctest-vn-05659247', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93e469a7-8bcb-490e-8592-58b73036d7d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-05659247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743']], 'subnet_ipam': [{'subnet_cidr': '48.152.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 13:01:30,626 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 13:01:30,947 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 13:01:31,002 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c
2025-05-08 13:01:31,025 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7
2025-05-08 13:01:31,155 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db
2025-05-08 13:01:31,186 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db
2025-05-08 13:01:31,204 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd
2025-05-08 13:01:31,219 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd
2025-05-08 13:01:31,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad2ea037-afde-4a6d-a8d1-6da19441de4e
2025-05-08 13:01:31,265 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 13:01:31,265 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db
2025-05-08 13:01:31,287 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd
2025-05-08 13:01:31,339 - INFO - Verified VN network id 8 for VN ffe31355-438f-4aac-906c-c947e2f259db
2025-05-08 13:01:31,340 - INFO - Verifications in API Server for VN ctest-vn-12835939 passed
2025-05-08 13:01:31,340 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db
2025-05-08 13:01:31,361 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd
2025-05-08 13:01:31,375 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd
2025-05-08 13:01:31,388 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad2ea037-afde-4a6d-a8d1-6da19441de4e
2025-05-08 13:01:31,413 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27957291', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18438602556311554732', 'uuid-lslong': '10406914149533768155'}, 'enable': 'true', 'created': '2025-05-08T13:01:28', 'last-modified': '2025-05-08T13:01:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380550'}
2025-05-08 13:01:31,427 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 13:01:31,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12835939 passed
2025-05-08 13:01:31,427 - DEBUG - ====Verifying policy data for ctest-vn-12835939 in API_Server ======
2025-05-08 13:01:31,427 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 13:01:31,439 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c
2025-05-08 13:01:31,469 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7
2025-05-08 13:01:31,576 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db
2025-05-08 13:01:31,588 - DEBUG - ==>Verifying data for policy with id: dfb2ddc8-ee01-4ac2-b5d4-2104eb7cf2d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743']
2025-05-08 13:01:31,589 - INFO - VN ctest-vn-12835939 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 13:01:31,589 - DEBUG - Verifying the vn in opserver
2025-05-08 13:01:31,589 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939 virtual network link through opserver 10.0.0.254
2025-05-08 13:01:31,589 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-08 13:01:31,899 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-08 13:01:31,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939?flat'}
2025-05-08 13:01:31,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939 is found in opserver
2025-05-08 13:01:31,988 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 13:01:31,998 - DEBUG - VRF ids for VN ctest-vn-12835939: {}
2025-05-08 13:01:31,998 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 13:01:32,008 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c
2025-05-08 13:01:32,027 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7
2025-05-08 13:01:32,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0
2025-05-08 13:01:32,154 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0
2025-05-08 13:01:32,175 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c
2025-05-08 13:01:32,191 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c
2025-05-08 13:01:32,206 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bae5dbc5-d25f-46df-a223-d3ce0528aafa
2025-05-08 13:01:32,221 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 13:01:32,221 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0
2025-05-08 13:01:32,243 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c
2025-05-08 13:01:32,274 - INFO - Verified VN network id 9 for VN e2a48668-9056-4c6d-b567-af0feb0471f0
2025-05-08 13:01:32,274 - INFO - Verifications in API Server for VN ctest-vn-05659247 passed
2025-05-08 13:01:32,274 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0
2025-05-08 13:01:32,292 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c
2025-05-08 13:01:32,305 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c
2025-05-08 13:01:32,319 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bae5dbc5-d25f-46df-a223-d3ce0528aafa
2025-05-08 13:01:32,347 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27957291', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16331325932408556653', 'uuid-lslong': '13071608926368461296'}, 'enable': 'true', 'created': '2025-05-08T13:01:29', 'last-modified': '2025-05-08T13:01:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.986500'}
2025-05-08 13:01:32,364 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 13:01:32,364 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05659247 passed
2025-05-08 13:01:32,364 - DEBUG - ====Verifying policy data for ctest-vn-05659247 in API_Server ======
2025-05-08 13:01:32,365 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-08 13:01:32,375 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c
2025-05-08 13:01:32,400 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7
2025-05-08 13:01:32,497 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0
2025-05-08 13:01:32,517 - DEBUG - ==>Verifying data for policy with id: dfb2ddc8-ee01-4ac2-b5d4-2104eb7cf2d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743']
2025-05-08 13:01:32,517 - INFO - VN ctest-vn-05659247 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 13:01:32,517 - DEBUG - Verifying the vn in opserver
2025-05-08 13:01:32,517 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247 virtual network link through opserver 10.0.0.254
2025-05-08 13:01:32,518 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-08 13:01:32,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247?flat'}
2025-05-08 13:01:32,539 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247 is found in opserver
2025-05-08 13:01:32,551 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 13:01:32,557 - DEBUG - VRF ids for VN ctest-vn-05659247: {}
2025-05-08 13:01:32,676 - DEBUG - Services list from nova: [