2025-08-11 13:15:05,241 - INFO - Domain Default found not creating
2025-08-11 13:15:05,372 - INFO - Project ctest-TestBasicPolicy-61342293 not found, creating it
2025-08-11 13:15:05,821 - INFO - Created Project:ctest-TestBasicPolicy-61342293, ID : 35845bc1-6da7-4396-9c46-70d0afa87e9e
2025-08-11 13:15:07,314 - INFO - ================================================================================
2025-08-11 13:15:07,314 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 13:15:07,314 - 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-08-11 13:15:07,577 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.14': '0'}} with
2025-08-11 13:15:07,577 - INFO - Initial checks done. Running the testcase now
2025-08-11 13:15:07,577 - INFO -
2025-08-11 13:15:08,171 - DEBUG - Response for create_network : {'network': {'id': 'f5d43f14-a394-47a6-abcd-b42f12c3babf', 'name': 'ctest-vn-01979535', 'tenant_id': '35845bc16da743969c4670d0afa87e9e', 'project_id': '35845bc16da743969c4670d0afa87e9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-vn-01979535'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:15:08,360 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a046230a-8cec-46d0-b2d5-2103e6e7a12a', 'name': '', 'tenant_id': '35845bc16da743969c4670d0afa87e9e', 'network_id': 'f5d43f14-a394-47a6-abcd-b42f12c3babf', 'ip_version': 4, 'cidr': '211.56.128.192/26', 'allocation_pools': [{'start': '211.56.128.194', 'end': '211.56.128.254'}], 'gateway_ip': '211.56.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.56.128.194', 'tags': [], 'project_id': '35845bc16da743969c4670d0afa87e9e'}}
2025-08-11 13:15:08,378 - INFO - Created VN ctest-vn-01979535
2025-08-11 13:15:08,432 - DEBUG - VN ctest-vn-01979535 UUID is f5d43f14-a394-47a6-abcd-b42f12c3babf
2025-08-11 13:15:08,769 - DEBUG - Response for create_network : {'network': {'id': 'a9e77c02-9f1c-4ad7-93ef-cbe5d4550032', 'name': 'ctest-vn-31927329', 'tenant_id': '35845bc16da743969c4670d0afa87e9e', 'project_id': '35845bc16da743969c4670d0afa87e9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-vn-31927329'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:15:08,952 - DEBUG - Response for create_subnet : {'subnet': {'id': '154387aa-c8c3-43b1-a5ef-eaf2bc752b50', 'name': '', 'tenant_id': '35845bc16da743969c4670d0afa87e9e', 'network_id': 'a9e77c02-9f1c-4ad7-93ef-cbe5d4550032', 'ip_version': 4, 'cidr': '22.235.31.64/26', 'allocation_pools': [{'start': '22.235.31.66', 'end': '22.235.31.126'}], 'gateway_ip': '22.235.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.235.31.66', 'tags': [], 'project_id': '35845bc16da743969c4670d0afa87e9e'}}
2025-08-11 13:15:08,969 - INFO - Created VN ctest-vn-31927329
2025-08-11 13:15:09,024 - DEBUG - VN ctest-vn-31927329 UUID is a9e77c02-9f1c-4ad7-93ef-cbe5d4550032
2025-08-11 13:15:09,172 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-01979535, 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-61342293:ctest-vn-31927329, 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-08-11 13:15:09,466 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5d43f14-a394-47a6-abcd-b42f12c3babf', 'name': 'ctest-vn-01979535', 'tenant_id': '35845bc16da743969c4670d0afa87e9e', 'project_id': '35845bc16da743969c4670d0afa87e9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a046230a-8cec-46d0-b2d5-2103e6e7a12a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-vn-01979535'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-policy-allow-all-34075885']], 'subnet_ipam': [{'subnet_cidr': '211.56.128.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:15:09,702 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9e77c02-9f1c-4ad7-93ef-cbe5d4550032', 'name': 'ctest-vn-31927329', 'tenant_id': '35845bc16da743969c4670d0afa87e9e', 'project_id': '35845bc16da743969c4670d0afa87e9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['154387aa-c8c3-43b1-a5ef-eaf2bc752b50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-vn-31927329'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-policy-allow-all-34075885']], 'subnet_ipam': [{'subnet_cidr': '22.235.31.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 13:15:09,880 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-11 13:15:10,210 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-11 13:15:10,237 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9ee603c8-0d79-48cc-97e1-16c583c1be07
2025-08-11 13:15:10,250 - DEBUG - Requesting: http://10.0.0.57:8082/project/35845bc1-6da7-4396-9c46-70d0afa87e9e
2025-08-11 13:15:10,327 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f5d43f14-a394-47a6-abcd-b42f12c3babf
2025-08-11 13:15:10,338 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f5d43f14-a394-47a6-abcd-b42f12c3babf
2025-08-11 13:15:10,347 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2076eab-91de-4f00-8bea-da7c4499fdbd
2025-08-11 13:15:10,355 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2076eab-91de-4f00-8bea-da7c4499fdbd
2025-08-11 13:15:10,361 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ff81ee49-8cbf-4db4-9755-e48129560349
2025-08-11 13:15:10,367 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 13:15:10,367 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f5d43f14-a394-47a6-abcd-b42f12c3babf
2025-08-11 13:15:10,376 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2076eab-91de-4f00-8bea-da7c4499fdbd
2025-08-11 13:15:10,390 - INFO - Verified VN network id 12 for VN f5d43f14-a394-47a6-abcd-b42f12c3babf
2025-08-11 13:15:10,390 - INFO - Verifications in API Server for VN ctest-vn-01979535 passed
2025-08-11 13:15:10,390 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f5d43f14-a394-47a6-abcd-b42f12c3babf
2025-08-11 13:15:10,399 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2076eab-91de-4f00-8bea-da7c4499fdbd
2025-08-11 13:15:10,406 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2076eab-91de-4f00-8bea-da7c4499fdbd
2025-08-11 13:15:10,412 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ff81ee49-8cbf-4db4-9755-e48129560349
2025-08-11 13:15:10,427 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-01979535', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61342293', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17713852592231303078', 'uuid-lslong': '12379749064982641343'}, 'enable': 'true', 'created': '2025-08-11T13:15:08', 'last-modified': '2025-08-11T13:15:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981182'}
2025-08-11 13:15:10,433 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 13:15:10,434 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01979535 passed
2025-08-11 13:15:10,434 - DEBUG - ====Verifying policy data for ctest-vn-01979535 in API_Server ======
2025-08-11 13:15:10,434 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-11 13:15:10,439 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9ee603c8-0d79-48cc-97e1-16c583c1be07
2025-08-11 13:15:10,450 - DEBUG - Requesting: http://10.0.0.57:8082/project/35845bc1-6da7-4396-9c46-70d0afa87e9e
2025-08-11 13:15:10,520 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f5d43f14-a394-47a6-abcd-b42f12c3babf
2025-08-11 13:15:10,530 - DEBUG - ==>Verifying data for policy with id: 177ee20b-976f-442c-95ca-1dd49f28c762, fqn: ['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-policy-allow-all-34075885']
2025-08-11 13:15:10,531 - INFO - VN ctest-vn-01979535 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 13:15:10,531 - DEBUG - Verifying the vn in opserver
2025-08-11 13:15:10,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-01979535 virtual network link through opserver 10.0.0.57
2025-08-11 13:15:10,531 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-11 13:15:10,861 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-11 13:15:10,916 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-01979535', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-01979535?flat'}
2025-08-11 13:15:10,916 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-01979535 is found in opserver
2025-08-11 13:15:10,927 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 13:15:10,932 - DEBUG - VRF ids for VN ctest-vn-01979535: {}
2025-08-11 13:15:10,933 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-11 13:15:10,939 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9ee603c8-0d79-48cc-97e1-16c583c1be07
2025-08-11 13:15:10,951 - DEBUG - Requesting: http://10.0.0.57:8082/project/35845bc1-6da7-4396-9c46-70d0afa87e9e
2025-08-11 13:15:11,030 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a9e77c02-9f1c-4ad7-93ef-cbe5d4550032
2025-08-11 13:15:11,043 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a9e77c02-9f1c-4ad7-93ef-cbe5d4550032
2025-08-11 13:15:11,053 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/890b265d-4abc-46a6-9bed-2d9abef0fc28
2025-08-11 13:15:11,060 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/890b265d-4abc-46a6-9bed-2d9abef0fc28
2025-08-11 13:15:11,067 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/6b490010-d18b-41e8-934b-20261d063e2a
2025-08-11 13:15:11,073 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 13:15:11,073 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a9e77c02-9f1c-4ad7-93ef-cbe5d4550032
2025-08-11 13:15:11,082 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/890b265d-4abc-46a6-9bed-2d9abef0fc28
2025-08-11 13:15:11,095 - INFO - Verified VN network id 13 for VN a9e77c02-9f1c-4ad7-93ef-cbe5d4550032
2025-08-11 13:15:11,095 - INFO - Verifications in API Server for VN ctest-vn-31927329 passed
2025-08-11 13:15:11,096 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a9e77c02-9f1c-4ad7-93ef-cbe5d4550032
2025-08-11 13:15:11,108 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/890b265d-4abc-46a6-9bed-2d9abef0fc28
2025-08-11 13:15:11,115 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/890b265d-4abc-46a6-9bed-2d9abef0fc28
2025-08-11 13:15:11,122 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/6b490010-d18b-41e8-934b-20261d063e2a
2025-08-11 13:15:11,135 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-31927329', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61342293', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12242890462731193047', 'uuid-lslong': '10659963030979543090'}, 'enable': 'true', 'created': '2025-08-11T13:15:08', 'last-modified': '2025-08-11T13:15:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454412'}
2025-08-11 13:15:11,143 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 13:15:11,143 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31927329 passed
2025-08-11 13:15:11,143 - DEBUG - ====Verifying policy data for ctest-vn-31927329 in API_Server ======
2025-08-11 13:15:11,143 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-11 13:15:11,148 - DEBUG - Requesting: http://10.0.0.57:8082/domain/9ee603c8-0d79-48cc-97e1-16c583c1be07
2025-08-11 13:15:11,160 - DEBUG - Requesting: http://10.0.0.57:8082/project/35845bc1-6da7-4396-9c46-70d0afa87e9e
2025-08-11 13:15:11,234 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a9e77c02-9f1c-4ad7-93ef-cbe5d4550032
2025-08-11 13:15:11,245 - DEBUG - ==>Verifying data for policy with id: 177ee20b-976f-442c-95ca-1dd49f28c762, fqn: ['default-domain', 'ctest-TestBasicPolicy-61342293', 'ctest-policy-allow-all-34075885']
2025-08-11 13:15:11,245 - INFO - VN ctest-vn-31927329 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 13:15:11,245 - DEBUG - Verifying the vn in opserver
2025-08-11 13:15:11,245 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-31927329 virtual network link through opserver 10.0.0.57
2025-08-11 13:15:11,245 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-11 13:15:11,256 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-31927329', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-31927329?flat'}
2025-08-11 13:15:11,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61342293:ctest-vn-31927329 is found in opserver
2025-08-11 13:15:11,267 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 13:15:11,273 - DEBUG - VRF ids for VN ctest-vn-31927329: {}
2025-08-11 13:15:11,334 - DEBUG - Services list from nova: [