2025-11-03 12:25:14,149 - INFO - Domain Default found not creating
2025-11-03 12:25:14,272 - INFO - Project ctest-TestBasicPolicy-39532309 not found, creating it
2025-11-03 12:25:14,691 - INFO - Created Project:ctest-TestBasicPolicy-39532309, ID : b1301f4b-6637-494f-9a05-a4d679845dd0
2025-11-03 12:25:16,104 - INFO - ================================================================================
2025-11-03 12:25:16,104 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 12:25:16,104 - 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-11-03 12:25:16,360 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-03 12:25:16,360 - INFO - Initial checks done. Running the testcase now
2025-11-03 12:25:16,360 - INFO -
2025-11-03 12:25:16,895 - DEBUG - Response for create_network : {'network': {'id': '648f69de-c4a5-4fa1-8beb-16901a71f059', 'name': 'ctest-vn-97904079', 'tenant_id': 'b1301f4b6637494f9a05a4d679845dd0', 'project_id': 'b1301f4b6637494f9a05a4d679845dd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-vn-97904079'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 12:25:17,031 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0d26bf0-78c5-4d4c-b4a0-782071e0b733', 'name': '', 'tenant_id': 'b1301f4b6637494f9a05a4d679845dd0', 'network_id': '648f69de-c4a5-4fa1-8beb-16901a71f059', 'ip_version': 4, 'cidr': '85.94.188.192/26', 'allocation_pools': [{'start': '85.94.188.194', 'end': '85.94.188.254'}], 'gateway_ip': '85.94.188.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.94.188.194', 'tags': [], 'project_id': 'b1301f4b6637494f9a05a4d679845dd0'}}
2025-11-03 12:25:17,046 - INFO - Created VN ctest-vn-97904079
2025-11-03 12:25:17,096 - DEBUG - VN ctest-vn-97904079 UUID is 648f69de-c4a5-4fa1-8beb-16901a71f059
2025-11-03 12:25:17,393 - DEBUG - Response for create_network : {'network': {'id': 'b43d11fd-8a0f-4255-975b-0354687032be', 'name': 'ctest-vn-22085273', 'tenant_id': 'b1301f4b6637494f9a05a4d679845dd0', 'project_id': 'b1301f4b6637494f9a05a4d679845dd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-vn-22085273'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 12:25:17,568 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db107d8a-3b0f-4694-ba33-f04ab69a2156', 'name': '', 'tenant_id': 'b1301f4b6637494f9a05a4d679845dd0', 'network_id': 'b43d11fd-8a0f-4255-975b-0354687032be', 'ip_version': 4, 'cidr': '13.22.77.128/26', 'allocation_pools': [{'start': '13.22.77.130', 'end': '13.22.77.190'}], 'gateway_ip': '13.22.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.22.77.130', 'tags': [], 'project_id': 'b1301f4b6637494f9a05a4d679845dd0'}}
2025-11-03 12:25:17,585 - INFO - Created VN ctest-vn-22085273
2025-11-03 12:25:17,636 - DEBUG - VN ctest-vn-22085273 UUID is b43d11fd-8a0f-4255-975b-0354687032be
2025-11-03 12:25:17,787 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-97904079, 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-39532309:ctest-vn-22085273, 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-11-03 12:25:18,067 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '648f69de-c4a5-4fa1-8beb-16901a71f059', 'name': 'ctest-vn-97904079', 'tenant_id': 'b1301f4b6637494f9a05a4d679845dd0', 'project_id': 'b1301f4b6637494f9a05a4d679845dd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0d26bf0-78c5-4d4c-b4a0-782071e0b733'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-vn-97904079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-policy-allow-all-01913071']], 'subnet_ipam': [{'subnet_cidr': '85.94.188.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 12:25:18,283 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b43d11fd-8a0f-4255-975b-0354687032be', 'name': 'ctest-vn-22085273', 'tenant_id': 'b1301f4b6637494f9a05a4d679845dd0', 'project_id': 'b1301f4b6637494f9a05a4d679845dd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db107d8a-3b0f-4694-ba33-f04ab69a2156'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-vn-22085273'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-policy-allow-all-01913071']], 'subnet_ipam': [{'subnet_cidr': '13.22.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 12:25:18,436 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 12:25:18,730 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 12:25:18,756 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd
2025-11-03 12:25:18,766 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1301f4b-6637-494f-9a05-a4d679845dd0
2025-11-03 12:25:18,834 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/648f69de-c4a5-4fa1-8beb-16901a71f059
2025-11-03 12:25:18,843 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/648f69de-c4a5-4fa1-8beb-16901a71f059
2025-11-03 12:25:18,851 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ea4cfa4-49fd-4114-b6df-b4dc617d585e
2025-11-03 12:25:18,858 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ea4cfa4-49fd-4114-b6df-b4dc617d585e
2025-11-03 12:25:18,865 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bc8e42e1-97e2-4802-ae03-2f7f87032905
2025-11-03 12:25:18,870 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 12:25:18,870 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/648f69de-c4a5-4fa1-8beb-16901a71f059
2025-11-03 12:25:18,879 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ea4cfa4-49fd-4114-b6df-b4dc617d585e
2025-11-03 12:25:18,892 - INFO - Verified VN network id 9 for VN 648f69de-c4a5-4fa1-8beb-16901a71f059
2025-11-03 12:25:18,892 - INFO - Verifications in API Server for VN ctest-vn-97904079 passed
2025-11-03 12:25:18,892 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/648f69de-c4a5-4fa1-8beb-16901a71f059
2025-11-03 12:25:18,901 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ea4cfa4-49fd-4114-b6df-b4dc617d585e
2025-11-03 12:25:18,908 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ea4cfa4-49fd-4114-b6df-b4dc617d585e
2025-11-03 12:25:18,915 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bc8e42e1-97e2-4802-ae03-2f7f87032905
2025-11-03 12:25:18,924 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-97904079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39532309', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7246126730965241761', 'uuid-lslong': '10082176998973763673'}, 'enable': 'true', 'created': '2025-11-03T12:25:16', 'last-modified': '2025-11-03T12:25:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880166'}
2025-11-03 12:25:18,929 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 12:25:18,929 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97904079 passed
2025-11-03 12:25:18,929 - DEBUG - ====Verifying policy data for ctest-vn-97904079 in API_Server ======
2025-11-03 12:25:18,929 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 12:25:18,934 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd
2025-11-03 12:25:18,942 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1301f4b-6637-494f-9a05-a4d679845dd0
2025-11-03 12:25:19,009 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/648f69de-c4a5-4fa1-8beb-16901a71f059
2025-11-03 12:25:19,017 - DEBUG - ==>Verifying data for policy with id: 9b89d62a-985e-40ea-b3a1-a7a09bd0dbe6, fqn: ['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-policy-allow-all-01913071']
2025-11-03 12:25:19,018 - INFO - VN ctest-vn-97904079 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 12:25:19,018 - DEBUG - Verifying the vn in opserver
2025-11-03 12:25:19,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-97904079 virtual network link through opserver 10.0.0.22
2025-11-03 12:25:19,018 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 12:25:19,308 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 12:25:19,362 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-97904079', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-97904079?flat'}
2025-11-03 12:25:19,363 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-97904079 is found in opserver
2025-11-03 12:25:19,371 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 12:25:19,375 - DEBUG - VRF ids for VN ctest-vn-97904079: {}
2025-11-03 12:25:19,375 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 12:25:19,380 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd
2025-11-03 12:25:19,389 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1301f4b-6637-494f-9a05-a4d679845dd0
2025-11-03 12:25:19,453 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b43d11fd-8a0f-4255-975b-0354687032be
2025-11-03 12:25:19,462 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b43d11fd-8a0f-4255-975b-0354687032be
2025-11-03 12:25:19,470 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7db33b0d-d399-48d7-9964-88437c453edc
2025-11-03 12:25:19,476 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7db33b0d-d399-48d7-9964-88437c453edc
2025-11-03 12:25:19,482 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d96d9492-df5b-445d-98f5-99931037dc42
2025-11-03 12:25:19,487 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 12:25:19,487 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b43d11fd-8a0f-4255-975b-0354687032be
2025-11-03 12:25:19,495 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7db33b0d-d399-48d7-9964-88437c453edc
2025-11-03 12:25:19,506 - INFO - Verified VN network id 10 for VN b43d11fd-8a0f-4255-975b-0354687032be
2025-11-03 12:25:19,506 - INFO - Verifications in API Server for VN ctest-vn-22085273 passed
2025-11-03 12:25:19,506 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b43d11fd-8a0f-4255-975b-0354687032be
2025-11-03 12:25:19,514 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7db33b0d-d399-48d7-9964-88437c453edc
2025-11-03 12:25:19,519 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7db33b0d-d399-48d7-9964-88437c453edc
2025-11-03 12:25:19,524 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d96d9492-df5b-445d-98f5-99931037dc42
2025-11-03 12:25:19,534 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-22085273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39532309', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12987556681047032405', 'uuid-lslong': '10906314583672107710'}, 'enable': 'true', 'created': '2025-11-03T12:25:17', 'last-modified': '2025-11-03T12:25:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.264548'}
2025-11-03 12:25:19,539 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 12:25:19,540 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22085273 passed
2025-11-03 12:25:19,540 - DEBUG - ====Verifying policy data for ctest-vn-22085273 in API_Server ======
2025-11-03 12:25:19,540 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-03 12:25:19,544 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd
2025-11-03 12:25:19,555 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1301f4b-6637-494f-9a05-a4d679845dd0
2025-11-03 12:25:19,627 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b43d11fd-8a0f-4255-975b-0354687032be
2025-11-03 12:25:19,635 - DEBUG - ==>Verifying data for policy with id: 9b89d62a-985e-40ea-b3a1-a7a09bd0dbe6, fqn: ['default-domain', 'ctest-TestBasicPolicy-39532309', 'ctest-policy-allow-all-01913071']
2025-11-03 12:25:19,635 - INFO - VN ctest-vn-22085273 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 12:25:19,636 - DEBUG - Verifying the vn in opserver
2025-11-03 12:25:19,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-22085273 virtual network link through opserver 10.0.0.22
2025-11-03 12:25:19,636 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-03 12:25:19,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-22085273', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-22085273?flat'}
2025-11-03 12:25:19,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39532309:ctest-vn-22085273 is found in opserver
2025-11-03 12:25:19,653 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 12:25:19,657 - DEBUG - VRF ids for VN ctest-vn-22085273: {}
2025-11-03 12:25:19,708 - DEBUG - Services list from nova: [