2025-07-21 18:58:40,221 - INFO - Domain Default found not creating
2025-07-21 18:58:40,569 - INFO - Project ctest-TestBasicPolicy-35586069 not found, creating it
2025-07-21 18:58:41,220 - INFO - Created Project:ctest-TestBasicPolicy-35586069, ID : 621b541b-1125-4b14-af24-185da06b645f
2025-07-21 18:58:43,661 - INFO - ================================================================================
2025-07-21 18:58:43,661 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 18:58:43,661 - 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-21 18:58:43,989 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-21 18:58:43,989 - INFO - Initial checks done. Running the testcase now
2025-07-21 18:58:43,990 - INFO -
2025-07-21 18:58:45,126 - DEBUG - Response for create_network : {'network': {'id': '9b736412-a770-4792-89a0-593210fb4038', 'name': 'ctest-vn-83720573', 'tenant_id': '621b541b11254b14af24185da06b645f', 'project_id': '621b541b11254b14af24185da06b645f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-vn-83720573'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 18:58:45,397 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac652811-2cb4-4029-851b-3b7958e42050', 'name': '', 'tenant_id': '621b541b11254b14af24185da06b645f', 'network_id': '9b736412-a770-4792-89a0-593210fb4038', 'ip_version': 4, 'cidr': '199.54.56.192/26', 'allocation_pools': [{'start': '199.54.56.194', 'end': '199.54.56.254'}], 'gateway_ip': '199.54.56.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.54.56.194', 'tags': [], 'project_id': '621b541b11254b14af24185da06b645f'}}
2025-07-21 18:58:45,417 - INFO - Created VN ctest-vn-83720573
2025-07-21 18:58:45,469 - DEBUG - VN ctest-vn-83720573 UUID is 9b736412-a770-4792-89a0-593210fb4038
2025-07-21 18:58:45,991 - DEBUG - Response for create_network : {'network': {'id': '5ffed94a-5dc9-4109-9366-d0d2a6602867', 'name': 'ctest-vn-87408898', 'tenant_id': '621b541b11254b14af24185da06b645f', 'project_id': '621b541b11254b14af24185da06b645f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-vn-87408898'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 18:58:46,194 - DEBUG - Response for create_subnet : {'subnet': {'id': '597c6470-5ce4-4d44-9cc0-c5cd4c22658a', 'name': '', 'tenant_id': '621b541b11254b14af24185da06b645f', 'network_id': '5ffed94a-5dc9-4109-9366-d0d2a6602867', 'ip_version': 4, 'cidr': '219.228.243.192/26', 'allocation_pools': [{'start': '219.228.243.194', 'end': '219.228.243.254'}], 'gateway_ip': '219.228.243.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.228.243.194', 'tags': [], 'project_id': '621b541b11254b14af24185da06b645f'}}
2025-07-21 18:58:46,214 - INFO - Created VN ctest-vn-87408898
2025-07-21 18:58:46,274 - DEBUG - VN ctest-vn-87408898 UUID is 5ffed94a-5dc9-4109-9366-d0d2a6602867
2025-07-21 18:58:46,438 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-83720573, 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-35586069:ctest-vn-87408898, 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-21 18:58:46,937 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b736412-a770-4792-89a0-593210fb4038', 'name': 'ctest-vn-83720573', 'tenant_id': '621b541b11254b14af24185da06b645f', 'project_id': '621b541b11254b14af24185da06b645f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac652811-2cb4-4029-851b-3b7958e42050'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-vn-83720573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-policy-allow-all-85757554']], 'subnet_ipam': [{'subnet_cidr': '199.54.56.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 18:58:47,286 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ffed94a-5dc9-4109-9366-d0d2a6602867', 'name': 'ctest-vn-87408898', 'tenant_id': '621b541b11254b14af24185da06b645f', 'project_id': '621b541b11254b14af24185da06b645f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['597c6470-5ce4-4d44-9cc0-c5cd4c22658a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-vn-87408898'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-policy-allow-all-85757554']], 'subnet_ipam': [{'subnet_cidr': '219.228.243.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 18:58:47,482 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 18:58:47,815 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 18:58:47,866 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b73c11fd-0857-42d0-b42c-88d15666e272
2025-07-21 18:58:47,906 - DEBUG - Requesting: http://10.0.0.254:8082/project/621b541b-1125-4b14-af24-185da06b645f
2025-07-21 18:58:48,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9b736412-a770-4792-89a0-593210fb4038
2025-07-21 18:58:48,068 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9b736412-a770-4792-89a0-593210fb4038
2025-07-21 18:58:48,088 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5f28232d-3362-44a2-81b5-17616de418fd
2025-07-21 18:58:48,101 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5f28232d-3362-44a2-81b5-17616de418fd
2025-07-21 18:58:48,117 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/54e495ec-1431-41ac-83e0-1ab8916b400e
2025-07-21 18:58:48,132 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 18:58:48,132 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9b736412-a770-4792-89a0-593210fb4038
2025-07-21 18:58:48,157 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5f28232d-3362-44a2-81b5-17616de418fd
2025-07-21 18:58:48,188 - INFO - Verified VN network id 9 for VN 9b736412-a770-4792-89a0-593210fb4038
2025-07-21 18:58:48,188 - INFO - Verifications in API Server for VN ctest-vn-83720573 passed
2025-07-21 18:58:48,188 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9b736412-a770-4792-89a0-593210fb4038
2025-07-21 18:58:48,202 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5f28232d-3362-44a2-81b5-17616de418fd
2025-07-21 18:58:48,212 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5f28232d-3362-44a2-81b5-17616de418fd
2025-07-21 18:58:48,222 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/54e495ec-1431-41ac-83e0-1ab8916b400e
2025-07-21 18:58:48,243 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-83720573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35586069', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11201406729481897874', 'uuid-lslong': '9917024451037970488'}, 'enable': 'true', 'created': '2025-07-21T18:58:45', 'last-modified': '2025-07-21T18:58:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.356688'}
2025-07-21 18:58:48,251 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 18:58:48,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83720573 passed
2025-07-21 18:58:48,252 - DEBUG - ====Verifying policy data for ctest-vn-83720573 in API_Server ======
2025-07-21 18:58:48,252 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 18:58:48,259 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b73c11fd-0857-42d0-b42c-88d15666e272
2025-07-21 18:58:48,271 - DEBUG - Requesting: http://10.0.0.254:8082/project/621b541b-1125-4b14-af24-185da06b645f
2025-07-21 18:58:48,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9b736412-a770-4792-89a0-593210fb4038
2025-07-21 18:58:48,395 - DEBUG - ==>Verifying data for policy with id: 867083c4-beb5-4d12-a5a9-789a372c1b1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-policy-allow-all-85757554']
2025-07-21 18:58:48,395 - INFO - VN ctest-vn-83720573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 18:58:48,395 - DEBUG - Verifying the vn in opserver
2025-07-21 18:58:48,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-83720573 virtual network link through opserver 10.0.0.254
2025-07-21 18:58:48,395 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 18:58:48,723 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 18:58:48,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-83720573', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-83720573?flat'}
2025-07-21 18:58:48,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-83720573 is found in opserver
2025-07-21 18:58:48,847 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 18:58:48,856 - DEBUG - VRF ids for VN ctest-vn-83720573: {}
2025-07-21 18:58:48,856 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 18:58:48,865 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b73c11fd-0857-42d0-b42c-88d15666e272
2025-07-21 18:58:48,888 - DEBUG - Requesting: http://10.0.0.254:8082/project/621b541b-1125-4b14-af24-185da06b645f
2025-07-21 18:58:49,012 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5ffed94a-5dc9-4109-9366-d0d2a6602867
2025-07-21 18:58:49,046 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5ffed94a-5dc9-4109-9366-d0d2a6602867
2025-07-21 18:58:49,072 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c88e7004-87db-457a-a0a0-1d6ebd52eead
2025-07-21 18:58:49,091 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c88e7004-87db-457a-a0a0-1d6ebd52eead
2025-07-21 18:58:49,109 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6fab0d66-99aa-4f87-8739-bb0074335d77
2025-07-21 18:58:49,144 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 18:58:49,144 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5ffed94a-5dc9-4109-9366-d0d2a6602867
2025-07-21 18:58:49,176 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c88e7004-87db-457a-a0a0-1d6ebd52eead
2025-07-21 18:58:49,219 - INFO - Verified VN network id 10 for VN 5ffed94a-5dc9-4109-9366-d0d2a6602867
2025-07-21 18:58:49,220 - INFO - Verifications in API Server for VN ctest-vn-87408898 passed
2025-07-21 18:58:49,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5ffed94a-5dc9-4109-9366-d0d2a6602867
2025-07-21 18:58:49,252 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c88e7004-87db-457a-a0a0-1d6ebd52eead
2025-07-21 18:58:49,275 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c88e7004-87db-457a-a0a0-1d6ebd52eead
2025-07-21 18:58:49,296 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6fab0d66-99aa-4f87-8739-bb0074335d77
2025-07-21 18:58:49,325 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-87408898', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35586069', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6917204991111938313', 'uuid-lslong': '10621406374352922727'}, 'enable': 'true', 'created': '2025-07-21T18:58:45', 'last-modified': '2025-07-21T18:58:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.075373'}
2025-07-21 18:58:49,339 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 18:58:49,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87408898 passed
2025-07-21 18:58:49,340 - DEBUG - ====Verifying policy data for ctest-vn-87408898 in API_Server ======
2025-07-21 18:58:49,340 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-21 18:58:49,348 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b73c11fd-0857-42d0-b42c-88d15666e272
2025-07-21 18:58:49,361 - DEBUG - Requesting: http://10.0.0.254:8082/project/621b541b-1125-4b14-af24-185da06b645f
2025-07-21 18:58:49,457 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5ffed94a-5dc9-4109-9366-d0d2a6602867
2025-07-21 18:58:49,472 - DEBUG - ==>Verifying data for policy with id: 867083c4-beb5-4d12-a5a9-789a372c1b1e, fqn: ['default-domain', 'ctest-TestBasicPolicy-35586069', 'ctest-policy-allow-all-85757554']
2025-07-21 18:58:49,472 - INFO - VN ctest-vn-87408898 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 18:58:49,472 - DEBUG - Verifying the vn in opserver
2025-07-21 18:58:49,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-87408898 virtual network link through opserver 10.0.0.254
2025-07-21 18:58:49,472 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-21 18:58:49,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-87408898', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-87408898?flat'}
2025-07-21 18:58:49,492 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35586069:ctest-vn-87408898 is found in opserver
2025-07-21 18:58:49,516 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 18:58:49,522 - DEBUG - VRF ids for VN ctest-vn-87408898: {}
2025-07-21 18:58:49,609 - DEBUG - Services list from nova: [