2025-11-24 14:35:01,463 - INFO - Domain Default found not creating
2025-11-24 14:35:01,686 - INFO - Project ctest-TestBasicPolicy-02106032 not found, creating it
2025-11-24 14:35:02,199 - INFO - Created Project:ctest-TestBasicPolicy-02106032, ID : 1ac686cc-a23e-4f4a-befe-359ec4d804ff
2025-11-24 14:35:03,977 - INFO - ================================================================================
2025-11-24 14:35:03,977 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 14:35:03,977 - 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-24 14:35:04,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with
2025-11-24 14:35:04,253 - INFO - Initial checks done. Running the testcase now
2025-11-24 14:35:04,253 - INFO -
2025-11-24 14:35:05,565 - DEBUG - Response for create_network : {'network': {'id': '6ca7faea-d595-44c2-a1f6-1b7541f9fb85', 'name': 'ctest-vn-10703421', 'tenant_id': '1ac686cca23e4f4abefe359ec4d804ff', 'project_id': '1ac686cca23e4f4abefe359ec4d804ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-vn-10703421'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 14:35:05,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d529409-7c3c-4625-8382-d0aa13d9afac', 'name': '', 'tenant_id': '1ac686cca23e4f4abefe359ec4d804ff', 'network_id': '6ca7faea-d595-44c2-a1f6-1b7541f9fb85', 'ip_version': 4, 'cidr': '119.83.243.64/26', 'allocation_pools': [{'start': '119.83.243.66', 'end': '119.83.243.126'}], 'gateway_ip': '119.83.243.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.83.243.66', 'tags': [], 'project_id': '1ac686cca23e4f4abefe359ec4d804ff'}}
2025-11-24 14:35:05,807 - INFO - Created VN ctest-vn-10703421
2025-11-24 14:35:05,862 - DEBUG - VN ctest-vn-10703421 UUID is 6ca7faea-d595-44c2-a1f6-1b7541f9fb85
2025-11-24 14:35:06,185 - DEBUG - Response for create_network : {'network': {'id': 'f82394e7-7ab1-4cab-b2a9-33feabf49248', 'name': 'ctest-vn-98552780', 'tenant_id': '1ac686cca23e4f4abefe359ec4d804ff', 'project_id': '1ac686cca23e4f4abefe359ec4d804ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-vn-98552780'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 14:35:06,395 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b796f6d1-513f-43e8-85a2-debccadc7a29', 'name': '', 'tenant_id': '1ac686cca23e4f4abefe359ec4d804ff', 'network_id': 'f82394e7-7ab1-4cab-b2a9-33feabf49248', 'ip_version': 4, 'cidr': '13.34.178.0/26', 'allocation_pools': [{'start': '13.34.178.2', 'end': '13.34.178.62'}], 'gateway_ip': '13.34.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.34.178.2', 'tags': [], 'project_id': '1ac686cca23e4f4abefe359ec4d804ff'}}
2025-11-24 14:35:06,417 - INFO - Created VN ctest-vn-98552780
2025-11-24 14:35:06,470 - DEBUG - VN ctest-vn-98552780 UUID is f82394e7-7ab1-4cab-b2a9-33feabf49248
2025-11-24 14:35:06,599 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-10703421, 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-02106032:ctest-vn-98552780, 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-24 14:35:06,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ca7faea-d595-44c2-a1f6-1b7541f9fb85', 'name': 'ctest-vn-10703421', 'tenant_id': '1ac686cca23e4f4abefe359ec4d804ff', 'project_id': '1ac686cca23e4f4abefe359ec4d804ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d529409-7c3c-4625-8382-d0aa13d9afac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-vn-10703421'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-policy-allow-all-28839628']], 'subnet_ipam': [{'subnet_cidr': '119.83.243.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 14:35:07,176 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f82394e7-7ab1-4cab-b2a9-33feabf49248', 'name': 'ctest-vn-98552780', 'tenant_id': '1ac686cca23e4f4abefe359ec4d804ff', 'project_id': '1ac686cca23e4f4abefe359ec4d804ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b796f6d1-513f-43e8-85a2-debccadc7a29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-vn-98552780'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-policy-allow-all-28839628']], 'subnet_ipam': [{'subnet_cidr': '13.34.178.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 14:35:07,338 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 14:35:07,687 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 14:35:07,724 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd
2025-11-24 14:35:07,739 - DEBUG - Requesting: http://10.0.0.38:8082/project/1ac686cc-a23e-4f4a-befe-359ec4d804ff
2025-11-24 14:35:07,824 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ca7faea-d595-44c2-a1f6-1b7541f9fb85
2025-11-24 14:35:07,836 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ca7faea-d595-44c2-a1f6-1b7541f9fb85
2025-11-24 14:35:07,847 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/084a1f75-93b5-4865-a7fe-6824576db168
2025-11-24 14:35:07,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/084a1f75-93b5-4865-a7fe-6824576db168
2025-11-24 14:35:07,864 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9671a243-6281-4a04-bb0e-a55d1198d030
2025-11-24 14:35:07,872 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 14:35:07,872 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ca7faea-d595-44c2-a1f6-1b7541f9fb85
2025-11-24 14:35:07,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/084a1f75-93b5-4865-a7fe-6824576db168
2025-11-24 14:35:07,905 - INFO - Verified VN network id 10 for VN 6ca7faea-d595-44c2-a1f6-1b7541f9fb85
2025-11-24 14:35:07,905 - INFO - Verifications in API Server for VN ctest-vn-10703421 passed
2025-11-24 14:35:07,905 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ca7faea-d595-44c2-a1f6-1b7541f9fb85
2025-11-24 14:35:07,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/084a1f75-93b5-4865-a7fe-6824576db168
2025-11-24 14:35:07,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/084a1f75-93b5-4865-a7fe-6824576db168
2025-11-24 14:35:07,933 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9671a243-6281-4a04-bb0e-a55d1198d030
2025-11-24 14:35:07,946 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-10703421', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02106032', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7829502363719517378', 'uuid-lslong': '11670545674809244549'}, 'enable': 'true', 'created': '2025-11-24T14:35:05', 'last-modified': '2025-11-24T14:35:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056632'}
2025-11-24 14:35:07,954 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 14:35:07,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10703421 passed
2025-11-24 14:35:07,955 - DEBUG - ====Verifying policy data for ctest-vn-10703421 in API_Server ======
2025-11-24 14:35:07,955 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 14:35:07,962 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd
2025-11-24 14:35:07,976 - DEBUG - Requesting: http://10.0.0.38:8082/project/1ac686cc-a23e-4f4a-befe-359ec4d804ff
2025-11-24 14:35:08,054 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6ca7faea-d595-44c2-a1f6-1b7541f9fb85
2025-11-24 14:35:08,064 - DEBUG - ==>Verifying data for policy with id: a0c0e92c-5fe5-4394-9454-03cb8a09086f, fqn: ['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-policy-allow-all-28839628']
2025-11-24 14:35:08,064 - INFO - VN ctest-vn-10703421 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 14:35:08,064 - DEBUG - Verifying the vn in opserver
2025-11-24 14:35:08,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-10703421 virtual network link through opserver 10.0.0.38
2025-11-24 14:35:08,065 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-24 14:35:08,418 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-24 14:35:08,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-10703421', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-10703421?flat'}
2025-11-24 14:35:08,492 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-10703421 is found in opserver
2025-11-24 14:35:08,504 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 14:35:08,510 - DEBUG - VRF ids for VN ctest-vn-10703421: {}
2025-11-24 14:35:08,510 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 14:35:08,516 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd
2025-11-24 14:35:08,529 - DEBUG - Requesting: http://10.0.0.38:8082/project/1ac686cc-a23e-4f4a-befe-359ec4d804ff
2025-11-24 14:35:08,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f82394e7-7ab1-4cab-b2a9-33feabf49248
2025-11-24 14:35:08,616 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f82394e7-7ab1-4cab-b2a9-33feabf49248
2025-11-24 14:35:08,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe02f62-eace-4ab3-bce4-2ef8778dca82
2025-11-24 14:35:08,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe02f62-eace-4ab3-bce4-2ef8778dca82
2025-11-24 14:35:08,646 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6422ac72-0403-438e-87cb-4e84016f0c49
2025-11-24 14:35:08,655 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 14:35:08,655 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f82394e7-7ab1-4cab-b2a9-33feabf49248
2025-11-24 14:35:08,666 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe02f62-eace-4ab3-bce4-2ef8778dca82
2025-11-24 14:35:08,682 - INFO - Verified VN network id 11 for VN f82394e7-7ab1-4cab-b2a9-33feabf49248
2025-11-24 14:35:08,683 - INFO - Verifications in API Server for VN ctest-vn-98552780 passed
2025-11-24 14:35:08,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f82394e7-7ab1-4cab-b2a9-33feabf49248
2025-11-24 14:35:08,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe02f62-eace-4ab3-bce4-2ef8778dca82
2025-11-24 14:35:08,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe02f62-eace-4ab3-bce4-2ef8778dca82
2025-11-24 14:35:08,712 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6422ac72-0403-438e-87cb-4e84016f0c49
2025-11-24 14:35:08,727 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-98552780', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02106032', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17880298667507797163', 'uuid-lslong': '12873878178714915400'}, 'enable': 'true', 'created': '2025-11-24T14:35:06', 'last-modified': '2025-11-24T14:35:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.584994'}
2025-11-24 14:35:08,735 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 14:35:08,735 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98552780 passed
2025-11-24 14:35:08,735 - DEBUG - ====Verifying policy data for ctest-vn-98552780 in API_Server ======
2025-11-24 14:35:08,735 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 14:35:08,743 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd
2025-11-24 14:35:08,756 - DEBUG - Requesting: http://10.0.0.38:8082/project/1ac686cc-a23e-4f4a-befe-359ec4d804ff
2025-11-24 14:35:08,836 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f82394e7-7ab1-4cab-b2a9-33feabf49248
2025-11-24 14:35:08,848 - DEBUG - ==>Verifying data for policy with id: a0c0e92c-5fe5-4394-9454-03cb8a09086f, fqn: ['default-domain', 'ctest-TestBasicPolicy-02106032', 'ctest-policy-allow-all-28839628']
2025-11-24 14:35:08,849 - INFO - VN ctest-vn-98552780 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 14:35:08,849 - DEBUG - Verifying the vn in opserver
2025-11-24 14:35:08,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-98552780 virtual network link through opserver 10.0.0.38
2025-11-24 14:35:08,849 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-24 14:35:08,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-98552780', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-98552780?flat'}
2025-11-24 14:35:08,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02106032:ctest-vn-98552780 is found in opserver
2025-11-24 14:35:08,873 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 14:35:08,878 - DEBUG - VRF ids for VN ctest-vn-98552780: {}
2025-11-24 14:35:08,960 - DEBUG - Services list from nova: [