2025-08-22 12:25:23,915 - INFO - Domain Default found not creating
2025-08-22 12:25:24,043 - INFO - Project ctest-TestBasicPolicy-07596474 not found, creating it
2025-08-22 12:25:24,477 - INFO - Created Project:ctest-TestBasicPolicy-07596474, ID : 0c77940a-1cb2-4e66-bd1a-ef59f9f29513
2025-08-22 12:25:25,900 - INFO - ================================================================================
2025-08-22 12:25:25,900 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-22 12:25:25,900 - 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-08-22 12:25:26,157 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with
2025-08-22 12:25:26,157 - INFO - Initial checks done. Running the testcase now
2025-08-22 12:25:26,157 - INFO -
2025-08-22 12:25:26,683 - DEBUG - Response for create_network : {'network': {'id': 'e346f5c9-c50c-449f-a293-1312630dac00', 'name': 'ctest-vn-76414027', 'tenant_id': '0c77940a1cb24e66bd1aef59f9f29513', 'project_id': '0c77940a1cb24e66bd1aef59f9f29513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-vn-76414027'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 12:25:26,876 - DEBUG - Response for create_subnet : {'subnet': {'id': '544e5a8e-1b56-4876-8891-a0289ebf8159', 'name': '', 'tenant_id': '0c77940a1cb24e66bd1aef59f9f29513', 'network_id': 'e346f5c9-c50c-449f-a293-1312630dac00', 'ip_version': 4, 'cidr': '202.130.35.128/26', 'allocation_pools': [{'start': '202.130.35.130', 'end': '202.130.35.190'}], 'gateway_ip': '202.130.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.130.35.130', 'tags': [], 'project_id': '0c77940a1cb24e66bd1aef59f9f29513'}}
2025-08-22 12:25:26,895 - INFO - Created VN ctest-vn-76414027
2025-08-22 12:25:26,948 - DEBUG - VN ctest-vn-76414027 UUID is e346f5c9-c50c-449f-a293-1312630dac00
2025-08-22 12:25:27,264 - DEBUG - Response for create_network : {'network': {'id': '5cda5ce4-3db6-4fa2-8249-c327a7ec8055', 'name': 'ctest-vn-62676974', 'tenant_id': '0c77940a1cb24e66bd1aef59f9f29513', 'project_id': '0c77940a1cb24e66bd1aef59f9f29513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-vn-62676974'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 12:25:27,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '54bee60f-85d0-4da9-b600-ba582af4903f', 'name': '', 'tenant_id': '0c77940a1cb24e66bd1aef59f9f29513', 'network_id': '5cda5ce4-3db6-4fa2-8249-c327a7ec8055', 'ip_version': 4, 'cidr': '179.251.80.64/26', 'allocation_pools': [{'start': '179.251.80.66', 'end': '179.251.80.126'}], 'gateway_ip': '179.251.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.251.80.66', 'tags': [], 'project_id': '0c77940a1cb24e66bd1aef59f9f29513'}}
2025-08-22 12:25:27,485 - INFO - Created VN ctest-vn-62676974
2025-08-22 12:25:27,536 - DEBUG - VN ctest-vn-62676974 UUID is 5cda5ce4-3db6-4fa2-8249-c327a7ec8055
2025-08-22 12:25:27,684 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-76414027, 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-07596474:ctest-vn-62676974, 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-08-22 12:25:27,991 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e346f5c9-c50c-449f-a293-1312630dac00', 'name': 'ctest-vn-76414027', 'tenant_id': '0c77940a1cb24e66bd1aef59f9f29513', 'project_id': '0c77940a1cb24e66bd1aef59f9f29513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['544e5a8e-1b56-4876-8891-a0289ebf8159'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-vn-76414027'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-policy-allow-all-29684134']], 'subnet_ipam': [{'subnet_cidr': '202.130.35.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 12:25:28,281 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cda5ce4-3db6-4fa2-8249-c327a7ec8055', 'name': 'ctest-vn-62676974', 'tenant_id': '0c77940a1cb24e66bd1aef59f9f29513', 'project_id': '0c77940a1cb24e66bd1aef59f9f29513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54bee60f-85d0-4da9-b600-ba582af4903f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-vn-62676974'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-policy-allow-all-29684134']], 'subnet_ipam': [{'subnet_cidr': '179.251.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 12:25:28,408 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-08-22 12:25:28,705 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-08-22 12:25:28,731 - DEBUG - Requesting: http://10.0.0.56:8082/domain/e29ccb50-7463-4ac0-a337-6d7d1e6cad37
2025-08-22 12:25:28,743 - DEBUG - Requesting: http://10.0.0.56:8082/project/0c77940a-1cb2-4e66-bd1a-ef59f9f29513
2025-08-22 12:25:28,820 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e346f5c9-c50c-449f-a293-1312630dac00
2025-08-22 12:25:28,835 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e346f5c9-c50c-449f-a293-1312630dac00
2025-08-22 12:25:28,849 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9a35d5a8-3236-47a9-b7ad-92b2f0e19e72
2025-08-22 12:25:28,857 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9a35d5a8-3236-47a9-b7ad-92b2f0e19e72
2025-08-22 12:25:28,865 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/1eb3d57d-3cc1-4b11-80c3-d512333a1ca7
2025-08-22 12:25:28,873 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 12:25:28,873 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e346f5c9-c50c-449f-a293-1312630dac00
2025-08-22 12:25:28,884 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9a35d5a8-3236-47a9-b7ad-92b2f0e19e72
2025-08-22 12:25:28,900 - INFO - Verified VN network id 11 for VN e346f5c9-c50c-449f-a293-1312630dac00
2025-08-22 12:25:28,900 - INFO - Verifications in API Server for VN ctest-vn-76414027 passed
2025-08-22 12:25:28,900 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e346f5c9-c50c-449f-a293-1312630dac00
2025-08-22 12:25:28,913 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9a35d5a8-3236-47a9-b7ad-92b2f0e19e72
2025-08-22 12:25:28,922 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/9a35d5a8-3236-47a9-b7ad-92b2f0e19e72
2025-08-22 12:25:28,932 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/1eb3d57d-3cc1-4b11-80c3-d512333a1ca7
2025-08-22 12:25:28,945 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-76414027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07596474', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16377047341922534559', 'uuid-lslong': '11714728025412971520'}, 'enable': 'true', 'created': '2025-08-22T12:25:26', 'last-modified': '2025-08-22T12:25:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985659'}
2025-08-22 12:25:28,952 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 12:25:28,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76414027 passed
2025-08-22 12:25:28,953 - DEBUG - ====Verifying policy data for ctest-vn-76414027 in API_Server ======
2025-08-22 12:25:28,953 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-08-22 12:25:28,959 - DEBUG - Requesting: http://10.0.0.56:8082/domain/e29ccb50-7463-4ac0-a337-6d7d1e6cad37
2025-08-22 12:25:28,970 - DEBUG - Requesting: http://10.0.0.56:8082/project/0c77940a-1cb2-4e66-bd1a-ef59f9f29513
2025-08-22 12:25:29,055 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e346f5c9-c50c-449f-a293-1312630dac00
2025-08-22 12:25:29,066 - DEBUG - ==>Verifying data for policy with id: 9c46dd04-f7dc-4041-bb5b-09908ad11296, fqn: ['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-policy-allow-all-29684134']
2025-08-22 12:25:29,066 - INFO - VN ctest-vn-76414027 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 12:25:29,067 - DEBUG - Verifying the vn in opserver
2025-08-22 12:25:29,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-76414027 virtual network link through opserver 10.0.0.56
2025-08-22 12:25:29,067 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-08-22 12:25:29,360 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-08-22 12:25:29,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-76414027', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-76414027?flat'}
2025-08-22 12:25:29,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-76414027 is found in opserver
2025-08-22 12:25:29,422 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 12:25:29,427 - DEBUG - VRF ids for VN ctest-vn-76414027: {}
2025-08-22 12:25:29,427 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-08-22 12:25:29,433 - DEBUG - Requesting: http://10.0.0.56:8082/domain/e29ccb50-7463-4ac0-a337-6d7d1e6cad37
2025-08-22 12:25:29,445 - DEBUG - Requesting: http://10.0.0.56:8082/project/0c77940a-1cb2-4e66-bd1a-ef59f9f29513
2025-08-22 12:25:29,526 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5cda5ce4-3db6-4fa2-8249-c327a7ec8055
2025-08-22 12:25:29,540 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5cda5ce4-3db6-4fa2-8249-c327a7ec8055
2025-08-22 12:25:29,551 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/995598f8-b9fa-4810-85a6-9f0a5a77c971
2025-08-22 12:25:29,559 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/995598f8-b9fa-4810-85a6-9f0a5a77c971
2025-08-22 12:25:29,566 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/7e716e59-c458-47c0-b0ec-33622eabb1a9
2025-08-22 12:25:29,573 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 12:25:29,573 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5cda5ce4-3db6-4fa2-8249-c327a7ec8055
2025-08-22 12:25:29,584 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/995598f8-b9fa-4810-85a6-9f0a5a77c971
2025-08-22 12:25:29,598 - INFO - Verified VN network id 12 for VN 5cda5ce4-3db6-4fa2-8249-c327a7ec8055
2025-08-22 12:25:29,598 - INFO - Verifications in API Server for VN ctest-vn-62676974 passed
2025-08-22 12:25:29,598 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5cda5ce4-3db6-4fa2-8249-c327a7ec8055
2025-08-22 12:25:29,607 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/995598f8-b9fa-4810-85a6-9f0a5a77c971
2025-08-22 12:25:29,613 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/995598f8-b9fa-4810-85a6-9f0a5a77c971
2025-08-22 12:25:29,619 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/7e716e59-c458-47c0-b0ec-33622eabb1a9
2025-08-22 12:25:29,631 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-62676974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07596474', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6690762331769950114', 'uuid-lslong': '9388249473318944853'}, 'enable': 'true', 'created': '2025-08-22T12:25:27', 'last-modified': '2025-08-22T12:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.425198'}
2025-08-22 12:25:29,637 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 12:25:29,637 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62676974 passed
2025-08-22 12:25:29,638 - DEBUG - ====Verifying policy data for ctest-vn-62676974 in API_Server ======
2025-08-22 12:25:29,638 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-08-22 12:25:29,642 - DEBUG - Requesting: http://10.0.0.56:8082/domain/e29ccb50-7463-4ac0-a337-6d7d1e6cad37
2025-08-22 12:25:29,653 - DEBUG - Requesting: http://10.0.0.56:8082/project/0c77940a-1cb2-4e66-bd1a-ef59f9f29513
2025-08-22 12:25:29,726 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/5cda5ce4-3db6-4fa2-8249-c327a7ec8055
2025-08-22 12:25:29,736 - DEBUG - ==>Verifying data for policy with id: 9c46dd04-f7dc-4041-bb5b-09908ad11296, fqn: ['default-domain', 'ctest-TestBasicPolicy-07596474', 'ctest-policy-allow-all-29684134']
2025-08-22 12:25:29,736 - INFO - VN ctest-vn-62676974 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 12:25:29,736 - DEBUG - Verifying the vn in opserver
2025-08-22 12:25:29,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-62676974 virtual network link through opserver 10.0.0.56
2025-08-22 12:25:29,736 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-08-22 12:25:29,745 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-62676974', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-62676974?flat'}
2025-08-22 12:25:29,745 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07596474:ctest-vn-62676974 is found in opserver
2025-08-22 12:25:29,755 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 12:25:29,760 - DEBUG - VRF ids for VN ctest-vn-62676974: {}
2025-08-22 12:25:29,809 - DEBUG - Services list from nova: [