2025-07-30 17:11:28,014 - INFO - Domain Default found not creating
2025-07-30 17:11:28,260 - INFO - Project ctest-TestBasicPolicy-73865779 not found, creating it
2025-07-30 17:11:28,877 - INFO - Created Project:ctest-TestBasicPolicy-73865779, ID : 301c318b-0456-4947-a29f-e69e17bee522
2025-07-30 17:11:30,830 - INFO - ================================================================================
2025-07-30 17:11:30,830 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-30 17:11:30,830 - 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-30 17:11:31,130 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-30 17:11:31,130 - INFO - Initial checks done. Running the testcase now
2025-07-30 17:11:31,130 - INFO -
2025-07-30 17:11:31,896 - DEBUG - Response for create_network : {'network': {'id': '695098df-6394-4c2c-acf2-4565a9835cd1', 'name': 'ctest-vn-67070861', 'tenant_id': '301c318b04564947a29fe69e17bee522', 'project_id': '301c318b04564947a29fe69e17bee522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-vn-67070861'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 17:11:32,097 - DEBUG - Response for create_subnet : {'subnet': {'id': '46add0ea-c70c-4bf4-8003-442730cb8395', 'name': '', 'tenant_id': '301c318b04564947a29fe69e17bee522', 'network_id': '695098df-6394-4c2c-acf2-4565a9835cd1', 'ip_version': 4, 'cidr': '123.246.88.192/26', 'allocation_pools': [{'start': '123.246.88.194', 'end': '123.246.88.254'}], 'gateway_ip': '123.246.88.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.246.88.194', 'tags': [], 'project_id': '301c318b04564947a29fe69e17bee522'}}
2025-07-30 17:11:32,120 - INFO - Created VN ctest-vn-67070861
2025-07-30 17:11:32,177 - DEBUG - VN ctest-vn-67070861 UUID is 695098df-6394-4c2c-acf2-4565a9835cd1
2025-07-30 17:11:32,742 - DEBUG - Response for create_network : {'network': {'id': '5723fb49-f0ae-4f91-8e1a-242c08531b2f', 'name': 'ctest-vn-09788288', 'tenant_id': '301c318b04564947a29fe69e17bee522', 'project_id': '301c318b04564947a29fe69e17bee522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-vn-09788288'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 17:11:33,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '701ca6ae-94f7-4234-bb35-0ed9bfede91c', 'name': '', 'tenant_id': '301c318b04564947a29fe69e17bee522', 'network_id': '5723fb49-f0ae-4f91-8e1a-242c08531b2f', 'ip_version': 4, 'cidr': '191.116.150.192/26', 'allocation_pools': [{'start': '191.116.150.194', 'end': '191.116.150.254'}], 'gateway_ip': '191.116.150.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.116.150.194', 'tags': [], 'project_id': '301c318b04564947a29fe69e17bee522'}}
2025-07-30 17:11:33,089 - INFO - Created VN ctest-vn-09788288
2025-07-30 17:11:33,150 - DEBUG - VN ctest-vn-09788288 UUID is 5723fb49-f0ae-4f91-8e1a-242c08531b2f
2025-07-30 17:11:33,343 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-67070861, 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-73865779:ctest-vn-09788288, 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-30 17:11:33,806 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '695098df-6394-4c2c-acf2-4565a9835cd1', 'name': 'ctest-vn-67070861', 'tenant_id': '301c318b04564947a29fe69e17bee522', 'project_id': '301c318b04564947a29fe69e17bee522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46add0ea-c70c-4bf4-8003-442730cb8395'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-vn-67070861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-policy-allow-all-62437365']], 'subnet_ipam': [{'subnet_cidr': '123.246.88.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 17:11:34,191 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5723fb49-f0ae-4f91-8e1a-242c08531b2f', 'name': 'ctest-vn-09788288', 'tenant_id': '301c318b04564947a29fe69e17bee522', 'project_id': '301c318b04564947a29fe69e17bee522', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['701ca6ae-94f7-4234-bb35-0ed9bfede91c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-vn-09788288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-policy-allow-all-62437365']], 'subnet_ipam': [{'subnet_cidr': '191.116.150.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 17:11:34,384 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 17:11:34,700 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 17:11:34,753 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511
2025-07-30 17:11:34,780 - DEBUG - Requesting: http://10.0.0.254:8082/project/301c318b-0456-4947-a29f-e69e17bee522
2025-07-30 17:11:34,908 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/695098df-6394-4c2c-acf2-4565a9835cd1
2025-07-30 17:11:34,938 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/695098df-6394-4c2c-acf2-4565a9835cd1
2025-07-30 17:11:34,963 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bad5de6-c638-472a-8e38-a1c95fd882f8
2025-07-30 17:11:34,982 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bad5de6-c638-472a-8e38-a1c95fd882f8
2025-07-30 17:11:35,003 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/84fe26d0-76dd-4077-9d0a-4494732aff9c
2025-07-30 17:11:35,022 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 17:11:35,022 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/695098df-6394-4c2c-acf2-4565a9835cd1
2025-07-30 17:11:35,059 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bad5de6-c638-472a-8e38-a1c95fd882f8
2025-07-30 17:11:35,109 - INFO - Verified VN network id 11 for VN 695098df-6394-4c2c-acf2-4565a9835cd1
2025-07-30 17:11:35,109 - INFO - Verifications in API Server for VN ctest-vn-67070861 passed
2025-07-30 17:11:35,110 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/695098df-6394-4c2c-acf2-4565a9835cd1
2025-07-30 17:11:35,148 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bad5de6-c638-472a-8e38-a1c95fd882f8
2025-07-30 17:11:35,170 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bad5de6-c638-472a-8e38-a1c95fd882f8
2025-07-30 17:11:35,195 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/84fe26d0-76dd-4077-9d0a-4494732aff9c
2025-07-30 17:11:35,234 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-67070861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73865779', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7588733457335077932', 'uuid-lslong': '12462099421825555665'}, 'enable': 'true', 'created': '2025-07-30T17:11:31', 'last-modified': '2025-07-30T17:11:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.477606'}
2025-07-30 17:11:35,261 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 17:11:35,261 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67070861 passed
2025-07-30 17:11:35,262 - DEBUG - ====Verifying policy data for ctest-vn-67070861 in API_Server ======
2025-07-30 17:11:35,262 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 17:11:35,279 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511
2025-07-30 17:11:35,318 - DEBUG - Requesting: http://10.0.0.254:8082/project/301c318b-0456-4947-a29f-e69e17bee522
2025-07-30 17:11:35,457 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/695098df-6394-4c2c-acf2-4565a9835cd1
2025-07-30 17:11:35,489 - DEBUG - ==>Verifying data for policy with id: 55aa0fde-4c60-4e16-9cbc-531b3797204b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-policy-allow-all-62437365']
2025-07-30 17:11:35,489 - INFO - VN ctest-vn-67070861 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 17:11:35,490 - DEBUG - Verifying the vn in opserver
2025-07-30 17:11:35,490 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-67070861 virtual network link through opserver 10.0.0.254
2025-07-30 17:11:35,490 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-30 17:11:35,808 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-30 17:11:35,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-67070861', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-67070861?flat'}
2025-07-30 17:11:35,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-67070861 is found in opserver
2025-07-30 17:11:35,994 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 17:11:36,005 - DEBUG - VRF ids for VN ctest-vn-67070861: {}
2025-07-30 17:11:36,005 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 17:11:36,015 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511
2025-07-30 17:11:36,044 - DEBUG - Requesting: http://10.0.0.254:8082/project/301c318b-0456-4947-a29f-e69e17bee522
2025-07-30 17:11:36,184 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5723fb49-f0ae-4f91-8e1a-242c08531b2f
2025-07-30 17:11:36,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5723fb49-f0ae-4f91-8e1a-242c08531b2f
2025-07-30 17:11:36,226 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3379d68-01d2-45a0-877a-ae9136ddf8dd
2025-07-30 17:11:36,240 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3379d68-01d2-45a0-877a-ae9136ddf8dd
2025-07-30 17:11:36,252 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc49baf2-e35a-41a7-8de1-a2ebbecdb8d7
2025-07-30 17:11:36,267 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 17:11:36,267 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5723fb49-f0ae-4f91-8e1a-242c08531b2f
2025-07-30 17:11:36,290 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3379d68-01d2-45a0-877a-ae9136ddf8dd
2025-07-30 17:11:36,318 - INFO - Verified VN network id 12 for VN 5723fb49-f0ae-4f91-8e1a-242c08531b2f
2025-07-30 17:11:36,318 - INFO - Verifications in API Server for VN ctest-vn-09788288 passed
2025-07-30 17:11:36,319 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5723fb49-f0ae-4f91-8e1a-242c08531b2f
2025-07-30 17:11:36,345 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3379d68-01d2-45a0-877a-ae9136ddf8dd
2025-07-30 17:11:36,355 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3379d68-01d2-45a0-877a-ae9136ddf8dd
2025-07-30 17:11:36,366 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cc49baf2-e35a-41a7-8de1-a2ebbecdb8d7
2025-07-30 17:11:36,386 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-09788288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73865779', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6279138600473743249', 'uuid-lslong': '10239536474317069103'}, 'enable': 'true', 'created': '2025-07-30T17:11:32', 'last-modified': '2025-07-30T17:11:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.261622'}
2025-07-30 17:11:36,399 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 17:11:36,399 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09788288 passed
2025-07-30 17:11:36,400 - DEBUG - ====Verifying policy data for ctest-vn-09788288 in API_Server ======
2025-07-30 17:11:36,400 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-30 17:11:36,412 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511
2025-07-30 17:11:36,436 - DEBUG - Requesting: http://10.0.0.254:8082/project/301c318b-0456-4947-a29f-e69e17bee522
2025-07-30 17:11:36,536 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5723fb49-f0ae-4f91-8e1a-242c08531b2f
2025-07-30 17:11:36,560 - DEBUG - ==>Verifying data for policy with id: 55aa0fde-4c60-4e16-9cbc-531b3797204b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73865779', 'ctest-policy-allow-all-62437365']
2025-07-30 17:11:36,560 - INFO - VN ctest-vn-09788288 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 17:11:36,560 - DEBUG - Verifying the vn in opserver
2025-07-30 17:11:36,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-09788288 virtual network link through opserver 10.0.0.254
2025-07-30 17:11:36,560 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-30 17:11:36,580 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-09788288', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-09788288?flat'}
2025-07-30 17:11:36,580 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73865779:ctest-vn-09788288 is found in opserver
2025-07-30 17:11:36,613 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 17:11:36,622 - DEBUG - VRF ids for VN ctest-vn-09788288: {}
2025-07-30 17:11:36,732 - DEBUG - Services list from nova: [