2025-07-14 11:22:31,369 - INFO - Domain Default found not creating
2025-07-14 11:22:31,505 - INFO - Project ctest-TestBasicPolicy-46870788 not found, creating it
2025-07-14 11:22:31,959 - INFO - Created Project:ctest-TestBasicPolicy-46870788, ID : 1c071baf-9693-4f5b-ae39-856275d8d07a
2025-07-14 11:22:33,362 - INFO - ================================================================================
2025-07-14 11:22:33,363 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-14 11:22:33,363 - 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-07-14 11:22:33,619 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-07-14 11:22:33,619 - INFO - Initial checks done. Running the testcase now
2025-07-14 11:22:33,620 - INFO -
2025-07-14 11:22:34,153 - DEBUG - Response for create_network : {'network': {'id': '45c03e1e-2798-4cdf-b947-49b42eaba30c', 'name': 'ctest-vn-43774385', 'tenant_id': '1c071baf96934f5bae39856275d8d07a', 'project_id': '1c071baf96934f5bae39856275d8d07a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-vn-43774385'], 'port_security_enabled': True, 'description': ''}}
2025-07-14 11:22:34,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '2303e819-031d-4225-be0e-a0bc3f4828f9', 'name': '', 'tenant_id': '1c071baf96934f5bae39856275d8d07a', 'network_id': '45c03e1e-2798-4cdf-b947-49b42eaba30c', 'ip_version': 4, 'cidr': '69.32.223.192/26', 'allocation_pools': [{'start': '69.32.223.194', 'end': '69.32.223.254'}], 'gateway_ip': '69.32.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.32.223.194', 'tags': [], 'project_id': '1c071baf96934f5bae39856275d8d07a'}}
2025-07-14 11:22:34,367 - INFO - Created VN ctest-vn-43774385
2025-07-14 11:22:34,421 - DEBUG - VN ctest-vn-43774385 UUID is 45c03e1e-2798-4cdf-b947-49b42eaba30c
2025-07-14 11:22:34,695 - DEBUG - Response for create_network : {'network': {'id': '14f197f1-d1ed-4193-ae1b-45ec5067ce72', 'name': 'ctest-vn-84891030', 'tenant_id': '1c071baf96934f5bae39856275d8d07a', 'project_id': '1c071baf96934f5bae39856275d8d07a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-vn-84891030'], 'port_security_enabled': True, 'description': ''}}
2025-07-14 11:22:34,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a90cadf-aaf8-43c4-a60e-da6eaea563e7', 'name': '', 'tenant_id': '1c071baf96934f5bae39856275d8d07a', 'network_id': '14f197f1-d1ed-4193-ae1b-45ec5067ce72', 'ip_version': 4, 'cidr': '125.224.217.128/26', 'allocation_pools': [{'start': '125.224.217.130', 'end': '125.224.217.190'}], 'gateway_ip': '125.224.217.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.224.217.130', 'tags': [], 'project_id': '1c071baf96934f5bae39856275d8d07a'}}
2025-07-14 11:22:34,996 - INFO - Created VN ctest-vn-84891030
2025-07-14 11:22:35,049 - DEBUG - VN ctest-vn-84891030 UUID is 14f197f1-d1ed-4193-ae1b-45ec5067ce72
2025-07-14 11:22:35,161 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-43774385, 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-46870788:ctest-vn-84891030, 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-07-14 11:22:35,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45c03e1e-2798-4cdf-b947-49b42eaba30c', 'name': 'ctest-vn-43774385', 'tenant_id': '1c071baf96934f5bae39856275d8d07a', 'project_id': '1c071baf96934f5bae39856275d8d07a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2303e819-031d-4225-be0e-a0bc3f4828f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-vn-43774385'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-policy-allow-all-50096183']], 'subnet_ipam': [{'subnet_cidr': '69.32.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-14 11:22:35,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14f197f1-d1ed-4193-ae1b-45ec5067ce72', 'name': 'ctest-vn-84891030', 'tenant_id': '1c071baf96934f5bae39856275d8d07a', 'project_id': '1c071baf96934f5bae39856275d8d07a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a90cadf-aaf8-43c4-a60e-da6eaea563e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-vn-84891030'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-policy-allow-all-50096183']], 'subnet_ipam': [{'subnet_cidr': '125.224.217.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-14 11:22:35,885 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-14 11:22:36,197 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-14 11:22:36,232 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fa12f195-0c64-4704-88bf-cdfdeecb46b3
2025-07-14 11:22:36,249 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c071baf-9693-4f5b-ae39-856275d8d07a
2025-07-14 11:22:36,321 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/45c03e1e-2798-4cdf-b947-49b42eaba30c
2025-07-14 11:22:36,332 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/45c03e1e-2798-4cdf-b947-49b42eaba30c
2025-07-14 11:22:36,343 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c73b5074-f58e-4a94-887a-39cb3c6ee552
2025-07-14 11:22:36,351 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c73b5074-f58e-4a94-887a-39cb3c6ee552
2025-07-14 11:22:36,359 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f38156ba-0f4f-49b8-a171-aa3ecc2e0b14
2025-07-14 11:22:36,366 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-14 11:22:36,366 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/45c03e1e-2798-4cdf-b947-49b42eaba30c
2025-07-14 11:22:36,377 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c73b5074-f58e-4a94-887a-39cb3c6ee552
2025-07-14 11:22:36,393 - INFO - Verified VN network id 8 for VN 45c03e1e-2798-4cdf-b947-49b42eaba30c
2025-07-14 11:22:36,393 - INFO - Verifications in API Server for VN ctest-vn-43774385 passed
2025-07-14 11:22:36,393 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/45c03e1e-2798-4cdf-b947-49b42eaba30c
2025-07-14 11:22:36,404 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c73b5074-f58e-4a94-887a-39cb3c6ee552
2025-07-14 11:22:36,413 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c73b5074-f58e-4a94-887a-39cb3c6ee552
2025-07-14 11:22:36,423 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f38156ba-0f4f-49b8-a171-aa3ecc2e0b14
2025-07-14 11:22:36,439 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-43774385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46870788', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5026085483379707103', 'uuid-lslong': '13350720658589065996'}, 'enable': 'true', 'created': '2025-07-14T11:22:34', 'last-modified': '2025-07-14T11:22:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007986'}
2025-07-14 11:22:36,447 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-14 11:22:36,447 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43774385 passed
2025-07-14 11:22:36,447 - DEBUG - ====Verifying policy data for ctest-vn-43774385 in API_Server ======
2025-07-14 11:22:36,447 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-14 11:22:36,455 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fa12f195-0c64-4704-88bf-cdfdeecb46b3
2025-07-14 11:22:36,469 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c071baf-9693-4f5b-ae39-856275d8d07a
2025-07-14 11:22:36,548 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/45c03e1e-2798-4cdf-b947-49b42eaba30c
2025-07-14 11:22:36,558 - DEBUG - ==>Verifying data for policy with id: 39b866be-4cf8-4558-a1af-5ae3adfa3d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-policy-allow-all-50096183']
2025-07-14 11:22:36,558 - INFO - VN ctest-vn-43774385 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-14 11:22:36,559 - DEBUG - Verifying the vn in opserver
2025-07-14 11:22:36,559 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-43774385 virtual network link through opserver 10.0.0.33
2025-07-14 11:22:36,559 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-14 11:22:36,863 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-14 11:22:36,925 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-43774385', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-43774385?flat'}
2025-07-14 11:22:36,925 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-43774385 is found in opserver
2025-07-14 11:22:36,936 - DEBUG - Do not have enough data to verify VN in agent
2025-07-14 11:22:36,942 - DEBUG - VRF ids for VN ctest-vn-43774385: {}
2025-07-14 11:22:36,942 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-14 11:22:36,949 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fa12f195-0c64-4704-88bf-cdfdeecb46b3
2025-07-14 11:22:36,962 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c071baf-9693-4f5b-ae39-856275d8d07a
2025-07-14 11:22:37,036 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/14f197f1-d1ed-4193-ae1b-45ec5067ce72
2025-07-14 11:22:37,050 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/14f197f1-d1ed-4193-ae1b-45ec5067ce72
2025-07-14 11:22:37,072 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/62a16a7e-d25f-4740-8e09-dc17967a3f21
2025-07-14 11:22:37,090 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/62a16a7e-d25f-4740-8e09-dc17967a3f21
2025-07-14 11:22:37,098 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e02e97b4-129f-4dcc-a0c9-39a2daf44917
2025-07-14 11:22:37,105 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-14 11:22:37,105 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/14f197f1-d1ed-4193-ae1b-45ec5067ce72
2025-07-14 11:22:37,119 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/62a16a7e-d25f-4740-8e09-dc17967a3f21
2025-07-14 11:22:37,143 - INFO - Verified VN network id 9 for VN 14f197f1-d1ed-4193-ae1b-45ec5067ce72
2025-07-14 11:22:37,143 - INFO - Verifications in API Server for VN ctest-vn-84891030 passed
2025-07-14 11:22:37,143 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/14f197f1-d1ed-4193-ae1b-45ec5067ce72
2025-07-14 11:22:37,157 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/62a16a7e-d25f-4740-8e09-dc17967a3f21
2025-07-14 11:22:37,170 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/62a16a7e-d25f-4740-8e09-dc17967a3f21
2025-07-14 11:22:37,181 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e02e97b4-129f-4dcc-a0c9-39a2daf44917
2025-07-14 11:22:37,198 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-84891030', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46870788', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1509154415010726291', 'uuid-lslong': '12545698068234227314'}, 'enable': 'true', 'created': '2025-07-14T11:22:34', 'last-modified': '2025-07-14T11:22:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534832'}
2025-07-14 11:22:37,207 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-14 11:22:37,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84891030 passed
2025-07-14 11:22:37,207 - DEBUG - ====Verifying policy data for ctest-vn-84891030 in API_Server ======
2025-07-14 11:22:37,207 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-14 11:22:37,215 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fa12f195-0c64-4704-88bf-cdfdeecb46b3
2025-07-14 11:22:37,228 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c071baf-9693-4f5b-ae39-856275d8d07a
2025-07-14 11:22:37,313 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/14f197f1-d1ed-4193-ae1b-45ec5067ce72
2025-07-14 11:22:37,325 - DEBUG - ==>Verifying data for policy with id: 39b866be-4cf8-4558-a1af-5ae3adfa3d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-46870788', 'ctest-policy-allow-all-50096183']
2025-07-14 11:22:37,325 - INFO - VN ctest-vn-84891030 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-14 11:22:37,325 - DEBUG - Verifying the vn in opserver
2025-07-14 11:22:37,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-84891030 virtual network link through opserver 10.0.0.33
2025-07-14 11:22:37,325 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-14 11:22:37,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-84891030', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-84891030?flat'}
2025-07-14 11:22:37,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46870788:ctest-vn-84891030 is found in opserver
2025-07-14 11:22:37,349 - DEBUG - Do not have enough data to verify VN in agent
2025-07-14 11:22:37,354 - DEBUG - VRF ids for VN ctest-vn-84891030: {}
2025-07-14 11:22:37,417 - DEBUG - Services list from nova: [