2025-09-18 19:05:00,205 - INFO - Domain Default found not creating
2025-09-18 19:05:00,371 - INFO - Project ctest-TestBasicPolicy-06128015 not found, creating it
2025-09-18 19:05:00,844 - INFO - Created Project:ctest-TestBasicPolicy-06128015, ID : 500d524f-4a87-4ac1-9b56-256ab22c1ec7
2025-09-18 19:05:02,325 - INFO - ================================================================================
2025-09-18 19:05:02,325 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-18 19:05:02,326 - 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-09-18 19:05:02,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-09-18 19:05:02,582 - INFO - Initial checks done. Running the testcase now
2025-09-18 19:05:02,582 - INFO -
2025-09-18 19:05:03,135 - DEBUG - Response for create_network : {'network': {'id': '6dad22e7-baa4-4f0a-88b2-cb2410934a08', 'name': 'ctest-vn-70923373', 'tenant_id': '500d524f4a874ac19b56256ab22c1ec7', 'project_id': '500d524f4a874ac19b56256ab22c1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-vn-70923373'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:05:03,315 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7ad48ee-6041-433e-8ef9-d7f2aee1cc32', 'name': '', 'tenant_id': '500d524f4a874ac19b56256ab22c1ec7', 'network_id': '6dad22e7-baa4-4f0a-88b2-cb2410934a08', 'ip_version': 4, 'cidr': '132.141.244.192/26', 'allocation_pools': [{'start': '132.141.244.194', 'end': '132.141.244.254'}], 'gateway_ip': '132.141.244.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.141.244.194', 'tags': [], 'project_id': '500d524f4a874ac19b56256ab22c1ec7'}}
2025-09-18 19:05:03,332 - INFO - Created VN ctest-vn-70923373
2025-09-18 19:05:03,383 - DEBUG - VN ctest-vn-70923373 UUID is 6dad22e7-baa4-4f0a-88b2-cb2410934a08
2025-09-18 19:05:03,689 - DEBUG - Response for create_network : {'network': {'id': '5db6a206-17ab-420b-bd10-dfde6616863c', 'name': 'ctest-vn-51087396', 'tenant_id': '500d524f4a874ac19b56256ab22c1ec7', 'project_id': '500d524f4a874ac19b56256ab22c1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-vn-51087396'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:05:03,837 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c841724-4341-46f0-9e72-0bcd6f86f779', 'name': '', 'tenant_id': '500d524f4a874ac19b56256ab22c1ec7', 'network_id': '5db6a206-17ab-420b-bd10-dfde6616863c', 'ip_version': 4, 'cidr': '135.158.183.0/26', 'allocation_pools': [{'start': '135.158.183.2', 'end': '135.158.183.62'}], 'gateway_ip': '135.158.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.158.183.2', 'tags': [], 'project_id': '500d524f4a874ac19b56256ab22c1ec7'}}
2025-09-18 19:05:03,863 - INFO - Created VN ctest-vn-51087396
2025-09-18 19:05:03,915 - DEBUG - VN ctest-vn-51087396 UUID is 5db6a206-17ab-420b-bd10-dfde6616863c
2025-09-18 19:05:04,066 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-70923373, 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-06128015:ctest-vn-51087396, 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-09-18 19:05:04,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dad22e7-baa4-4f0a-88b2-cb2410934a08', 'name': 'ctest-vn-70923373', 'tenant_id': '500d524f4a874ac19b56256ab22c1ec7', 'project_id': '500d524f4a874ac19b56256ab22c1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7ad48ee-6041-433e-8ef9-d7f2aee1cc32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-vn-70923373'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-policy-allow-all-85498324']], 'subnet_ipam': [{'subnet_cidr': '132.141.244.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:05:04,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5db6a206-17ab-420b-bd10-dfde6616863c', 'name': 'ctest-vn-51087396', 'tenant_id': '500d524f4a874ac19b56256ab22c1ec7', 'project_id': '500d524f4a874ac19b56256ab22c1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c841724-4341-46f0-9e72-0bcd6f86f779'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-vn-51087396'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-policy-allow-all-85498324']], 'subnet_ipam': [{'subnet_cidr': '135.158.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 19:05:04,783 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-18 19:05:05,078 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-18 19:05:05,106 - DEBUG - Requesting: http://10.0.0.65:8082/domain/bc17d518-369e-4af9-a5fa-afcd734f9215
2025-09-18 19:05:05,117 - DEBUG - Requesting: http://10.0.0.65:8082/project/500d524f-4a87-4ac1-9b56-256ab22c1ec7
2025-09-18 19:05:05,198 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/6dad22e7-baa4-4f0a-88b2-cb2410934a08
2025-09-18 19:05:05,208 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/6dad22e7-baa4-4f0a-88b2-cb2410934a08
2025-09-18 19:05:05,217 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a548a273-0d5f-43ea-b73e-049d3573c65c
2025-09-18 19:05:05,226 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a548a273-0d5f-43ea-b73e-049d3573c65c
2025-09-18 19:05:05,235 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1c0b9aa4-d368-4efb-a995-078bb5ed5913
2025-09-18 19:05:05,241 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 19:05:05,241 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/6dad22e7-baa4-4f0a-88b2-cb2410934a08
2025-09-18 19:05:05,251 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a548a273-0d5f-43ea-b73e-049d3573c65c
2025-09-18 19:05:05,266 - INFO - Verified VN network id 12 for VN 6dad22e7-baa4-4f0a-88b2-cb2410934a08
2025-09-18 19:05:05,267 - INFO - Verifications in API Server for VN ctest-vn-70923373 passed
2025-09-18 19:05:05,267 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/6dad22e7-baa4-4f0a-88b2-cb2410934a08
2025-09-18 19:05:05,277 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a548a273-0d5f-43ea-b73e-049d3573c65c
2025-09-18 19:05:05,283 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a548a273-0d5f-43ea-b73e-049d3573c65c
2025-09-18 19:05:05,290 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1c0b9aa4-d368-4efb-a995-078bb5ed5913
2025-09-18 19:05:05,303 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-70923373', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06128015', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7903011299769208586', 'uuid-lslong': '9850158690770045448'}, 'enable': 'true', 'created': '2025-09-18T19:05:03', 'last-modified': '2025-09-18T19:05:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966217'}
2025-09-18 19:05:05,311 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 19:05:05,311 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70923373 passed
2025-09-18 19:05:05,311 - DEBUG - ====Verifying policy data for ctest-vn-70923373 in API_Server ======
2025-09-18 19:05:05,311 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-18 19:05:05,317 - DEBUG - Requesting: http://10.0.0.65:8082/domain/bc17d518-369e-4af9-a5fa-afcd734f9215
2025-09-18 19:05:05,328 - DEBUG - Requesting: http://10.0.0.65:8082/project/500d524f-4a87-4ac1-9b56-256ab22c1ec7
2025-09-18 19:05:05,397 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/6dad22e7-baa4-4f0a-88b2-cb2410934a08
2025-09-18 19:05:05,406 - DEBUG - ==>Verifying data for policy with id: d2162f9c-d920-4926-97d6-851862475809, fqn: ['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-policy-allow-all-85498324']
2025-09-18 19:05:05,406 - INFO - VN ctest-vn-70923373 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 19:05:05,406 - DEBUG - Verifying the vn in opserver
2025-09-18 19:05:05,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-70923373 virtual network link through opserver 10.0.0.65
2025-09-18 19:05:05,407 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-09-18 19:05:05,698 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-09-18 19:05:05,751 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-70923373', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-70923373?flat'}
2025-09-18 19:05:05,751 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-70923373 is found in opserver
2025-09-18 19:05:05,761 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 19:05:05,766 - DEBUG - VRF ids for VN ctest-vn-70923373: {}
2025-09-18 19:05:05,766 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-18 19:05:05,771 - DEBUG - Requesting: http://10.0.0.65:8082/domain/bc17d518-369e-4af9-a5fa-afcd734f9215
2025-09-18 19:05:05,782 - DEBUG - Requesting: http://10.0.0.65:8082/project/500d524f-4a87-4ac1-9b56-256ab22c1ec7
2025-09-18 19:05:05,853 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5db6a206-17ab-420b-bd10-dfde6616863c
2025-09-18 19:05:05,864 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5db6a206-17ab-420b-bd10-dfde6616863c
2025-09-18 19:05:05,872 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1c25cb4c-19e4-4ddc-b36c-40c1e3c218f1
2025-09-18 19:05:05,879 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1c25cb4c-19e4-4ddc-b36c-40c1e3c218f1
2025-09-18 19:05:05,885 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/79290f33-89ea-4dd6-bedc-bab7e6e0ac88
2025-09-18 19:05:05,893 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 19:05:05,893 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5db6a206-17ab-420b-bd10-dfde6616863c
2025-09-18 19:05:05,901 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1c25cb4c-19e4-4ddc-b36c-40c1e3c218f1
2025-09-18 19:05:05,914 - INFO - Verified VN network id 13 for VN 5db6a206-17ab-420b-bd10-dfde6616863c
2025-09-18 19:05:05,915 - INFO - Verifications in API Server for VN ctest-vn-51087396 passed
2025-09-18 19:05:05,915 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5db6a206-17ab-420b-bd10-dfde6616863c
2025-09-18 19:05:05,925 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1c25cb4c-19e4-4ddc-b36c-40c1e3c218f1
2025-09-18 19:05:05,932 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/1c25cb4c-19e4-4ddc-b36c-40c1e3c218f1
2025-09-18 19:05:05,938 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/79290f33-89ea-4dd6-bedc-bab7e6e0ac88
2025-09-18 19:05:05,951 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-51087396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06128015', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6752762838339240459', 'uuid-lslong': '13623635019084236348'}, 'enable': 'true', 'created': '2025-09-18T19:05:03', 'last-modified': '2025-09-18T19:05:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385460'}
2025-09-18 19:05:05,959 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 19:05:05,960 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51087396 passed
2025-09-18 19:05:05,960 - DEBUG - ====Verifying policy data for ctest-vn-51087396 in API_Server ======
2025-09-18 19:05:05,960 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-18 19:05:05,967 - DEBUG - Requesting: http://10.0.0.65:8082/domain/bc17d518-369e-4af9-a5fa-afcd734f9215
2025-09-18 19:05:05,977 - DEBUG - Requesting: http://10.0.0.65:8082/project/500d524f-4a87-4ac1-9b56-256ab22c1ec7
2025-09-18 19:05:06,053 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5db6a206-17ab-420b-bd10-dfde6616863c
2025-09-18 19:05:06,065 - DEBUG - ==>Verifying data for policy with id: d2162f9c-d920-4926-97d6-851862475809, fqn: ['default-domain', 'ctest-TestBasicPolicy-06128015', 'ctest-policy-allow-all-85498324']
2025-09-18 19:05:06,065 - INFO - VN ctest-vn-51087396 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 19:05:06,065 - DEBUG - Verifying the vn in opserver
2025-09-18 19:05:06,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-51087396 virtual network link through opserver 10.0.0.65
2025-09-18 19:05:06,065 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-09-18 19:05:06,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-51087396', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-51087396?flat'}
2025-09-18 19:05:06,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06128015:ctest-vn-51087396 is found in opserver
2025-09-18 19:05:06,086 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 19:05:06,090 - DEBUG - VRF ids for VN ctest-vn-51087396: {}
2025-09-18 19:05:06,145 - DEBUG - Services list from nova: [