2025-09-29 21:03:43,077 - INFO - Domain Default found not creating
2025-09-29 21:03:43,192 - INFO - Project ctest-TestBasicPolicy-00016437 not found, creating it
2025-09-29 21:03:43,605 - INFO - Created Project:ctest-TestBasicPolicy-00016437, ID : 526b816d-4e9d-40ee-9965-799abb6e0f54
2025-09-29 21:03:44,909 - INFO - ================================================================================
2025-09-29 21:03:44,909 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-29 21:03:44,909 - 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-29 21:03:45,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-29 21:03:45,162 - INFO - Initial checks done. Running the testcase now
2025-09-29 21:03:45,162 - INFO -
2025-09-29 21:03:45,676 - DEBUG - Response for create_network : {'network': {'id': 'f1213dea-0f23-4d0e-b715-cefa4f8feb1b', 'name': 'ctest-vn-11924117', 'tenant_id': '526b816d4e9d40ee9965799abb6e0f54', 'project_id': '526b816d4e9d40ee9965799abb6e0f54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-vn-11924117'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 21:03:45,824 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a1fc859-a37b-42bd-a2d9-a862cb4e5780', 'name': '', 'tenant_id': '526b816d4e9d40ee9965799abb6e0f54', 'network_id': 'f1213dea-0f23-4d0e-b715-cefa4f8feb1b', 'ip_version': 4, 'cidr': '164.102.134.64/26', 'allocation_pools': [{'start': '164.102.134.66', 'end': '164.102.134.126'}], 'gateway_ip': '164.102.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.102.134.66', 'tags': [], 'project_id': '526b816d4e9d40ee9965799abb6e0f54'}}
2025-09-29 21:03:45,839 - INFO - Created VN ctest-vn-11924117
2025-09-29 21:03:45,889 - DEBUG - VN ctest-vn-11924117 UUID is f1213dea-0f23-4d0e-b715-cefa4f8feb1b
2025-09-29 21:03:46,180 - DEBUG - Response for create_network : {'network': {'id': '86123b08-8bdf-4bca-945d-e95a40205ffe', 'name': 'ctest-vn-04188983', 'tenant_id': '526b816d4e9d40ee9965799abb6e0f54', 'project_id': '526b816d4e9d40ee9965799abb6e0f54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-vn-04188983'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 21:03:46,386 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd850fd23-70df-4695-a37b-30e71cdc2f04', 'name': '', 'tenant_id': '526b816d4e9d40ee9965799abb6e0f54', 'network_id': '86123b08-8bdf-4bca-945d-e95a40205ffe', 'ip_version': 4, 'cidr': '198.89.1.192/26', 'allocation_pools': [{'start': '198.89.1.194', 'end': '198.89.1.254'}], 'gateway_ip': '198.89.1.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.89.1.194', 'tags': [], 'project_id': '526b816d4e9d40ee9965799abb6e0f54'}}
2025-09-29 21:03:46,399 - INFO - Created VN ctest-vn-04188983
2025-09-29 21:03:46,449 - DEBUG - VN ctest-vn-04188983 UUID is 86123b08-8bdf-4bca-945d-e95a40205ffe
2025-09-29 21:03:46,593 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-11924117, 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-00016437:ctest-vn-04188983, 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-29 21:03:46,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1213dea-0f23-4d0e-b715-cefa4f8feb1b', 'name': 'ctest-vn-11924117', 'tenant_id': '526b816d4e9d40ee9965799abb6e0f54', 'project_id': '526b816d4e9d40ee9965799abb6e0f54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a1fc859-a37b-42bd-a2d9-a862cb4e5780'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-vn-11924117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-policy-allow-all-33481637']], 'subnet_ipam': [{'subnet_cidr': '164.102.134.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 21:03:47,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86123b08-8bdf-4bca-945d-e95a40205ffe', 'name': 'ctest-vn-04188983', 'tenant_id': '526b816d4e9d40ee9965799abb6e0f54', 'project_id': '526b816d4e9d40ee9965799abb6e0f54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d850fd23-70df-4695-a37b-30e71cdc2f04'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-vn-04188983'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-policy-allow-all-33481637']], 'subnet_ipam': [{'subnet_cidr': '198.89.1.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 21:03:47,253 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 21:03:47,542 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 21:03:47,569 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb
2025-09-29 21:03:47,580 - DEBUG - Requesting: http://10.0.0.254:8082/project/526b816d-4e9d-40ee-9965-799abb6e0f54
2025-09-29 21:03:47,648 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f1213dea-0f23-4d0e-b715-cefa4f8feb1b
2025-09-29 21:03:47,658 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f1213dea-0f23-4d0e-b715-cefa4f8feb1b
2025-09-29 21:03:47,667 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bebe9cfe-878c-4e91-8365-40b8ca5b3c24
2025-09-29 21:03:47,673 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bebe9cfe-878c-4e91-8365-40b8ca5b3c24
2025-09-29 21:03:47,679 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b5e8442b-f52a-4101-ab41-4ca20103018c
2025-09-29 21:03:47,684 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 21:03:47,684 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f1213dea-0f23-4d0e-b715-cefa4f8feb1b
2025-09-29 21:03:47,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bebe9cfe-878c-4e91-8365-40b8ca5b3c24
2025-09-29 21:03:47,704 - INFO - Verified VN network id 11 for VN f1213dea-0f23-4d0e-b715-cefa4f8feb1b
2025-09-29 21:03:47,704 - INFO - Verifications in API Server for VN ctest-vn-11924117 passed
2025-09-29 21:03:47,704 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f1213dea-0f23-4d0e-b715-cefa4f8feb1b
2025-09-29 21:03:47,712 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bebe9cfe-878c-4e91-8365-40b8ca5b3c24
2025-09-29 21:03:47,717 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bebe9cfe-878c-4e91-8365-40b8ca5b3c24
2025-09-29 21:03:47,722 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b5e8442b-f52a-4101-ab41-4ca20103018c
2025-09-29 21:03:47,732 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-11924117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00016437', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17375236912857697550', 'uuid-lslong': '13192678257923713819'}, 'enable': 'true', 'created': '2025-09-29T21:03:45', 'last-modified': '2025-09-29T21:03:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.878147'}
2025-09-29 21:03:47,738 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 21:03:47,738 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11924117 passed
2025-09-29 21:03:47,739 - DEBUG - ====Verifying policy data for ctest-vn-11924117 in API_Server ======
2025-09-29 21:03:47,739 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 21:03:47,743 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb
2025-09-29 21:03:47,753 - DEBUG - Requesting: http://10.0.0.254:8082/project/526b816d-4e9d-40ee-9965-799abb6e0f54
2025-09-29 21:03:47,821 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f1213dea-0f23-4d0e-b715-cefa4f8feb1b
2025-09-29 21:03:47,828 - DEBUG - ==>Verifying data for policy with id: fedd60e8-9a47-4939-a81c-a0fe471fda08, fqn: ['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-policy-allow-all-33481637']
2025-09-29 21:03:47,828 - INFO - VN ctest-vn-11924117 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 21:03:47,828 - DEBUG - Verifying the vn in opserver
2025-09-29 21:03:47,828 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-11924117 virtual network link through opserver 10.0.0.254
2025-09-29 21:03:47,828 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-29 21:03:48,115 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-29 21:03:48,158 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-11924117', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-11924117?flat'}
2025-09-29 21:03:48,158 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-11924117 is found in opserver
2025-09-29 21:03:48,165 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 21:03:48,169 - DEBUG - VRF ids for VN ctest-vn-11924117: {}
2025-09-29 21:03:48,169 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 21:03:48,172 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb
2025-09-29 21:03:48,181 - DEBUG - Requesting: http://10.0.0.254:8082/project/526b816d-4e9d-40ee-9965-799abb6e0f54
2025-09-29 21:03:48,242 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86123b08-8bdf-4bca-945d-e95a40205ffe
2025-09-29 21:03:48,250 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86123b08-8bdf-4bca-945d-e95a40205ffe
2025-09-29 21:03:48,257 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b07228f-30f5-4a9b-b0c8-427fcb1f764a
2025-09-29 21:03:48,262 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b07228f-30f5-4a9b-b0c8-427fcb1f764a
2025-09-29 21:03:48,266 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d13ce474-1f34-4151-ada1-6d18c61685f2
2025-09-29 21:03:48,271 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 21:03:48,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86123b08-8bdf-4bca-945d-e95a40205ffe
2025-09-29 21:03:48,277 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b07228f-30f5-4a9b-b0c8-427fcb1f764a
2025-09-29 21:03:48,287 - INFO - Verified VN network id 12 for VN 86123b08-8bdf-4bca-945d-e95a40205ffe
2025-09-29 21:03:48,287 - INFO - Verifications in API Server for VN ctest-vn-04188983 passed
2025-09-29 21:03:48,287 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86123b08-8bdf-4bca-945d-e95a40205ffe
2025-09-29 21:03:48,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b07228f-30f5-4a9b-b0c8-427fcb1f764a
2025-09-29 21:03:48,299 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b07228f-30f5-4a9b-b0c8-427fcb1f764a
2025-09-29 21:03:48,303 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d13ce474-1f34-4151-ada1-6d18c61685f2
2025-09-29 21:03:48,312 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-04188983', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00016437', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9660849058555579338', 'uuid-lslong': '10690957664279617534'}, 'enable': 'true', 'created': '2025-09-29T21:03:46', 'last-modified': '2025-09-29T21:03:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.247286'}
2025-09-29 21:03:48,316 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 21:03:48,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04188983 passed
2025-09-29 21:03:48,317 - DEBUG - ====Verifying policy data for ctest-vn-04188983 in API_Server ======
2025-09-29 21:03:48,317 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 21:03:48,320 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb
2025-09-29 21:03:48,328 - DEBUG - Requesting: http://10.0.0.254:8082/project/526b816d-4e9d-40ee-9965-799abb6e0f54
2025-09-29 21:03:48,397 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86123b08-8bdf-4bca-945d-e95a40205ffe
2025-09-29 21:03:48,405 - DEBUG - ==>Verifying data for policy with id: fedd60e8-9a47-4939-a81c-a0fe471fda08, fqn: ['default-domain', 'ctest-TestBasicPolicy-00016437', 'ctest-policy-allow-all-33481637']
2025-09-29 21:03:48,405 - INFO - VN ctest-vn-04188983 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 21:03:48,405 - DEBUG - Verifying the vn in opserver
2025-09-29 21:03:48,405 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-04188983 virtual network link through opserver 10.0.0.254
2025-09-29 21:03:48,405 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-29 21:03:48,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-04188983', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-04188983?flat'}
2025-09-29 21:03:48,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00016437:ctest-vn-04188983 is found in opserver
2025-09-29 21:03:48,421 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 21:03:48,425 - DEBUG - VRF ids for VN ctest-vn-04188983: {}
2025-09-29 21:03:48,473 - DEBUG - Services list from nova: [