2025-10-27 11:59:15,464 - INFO - Domain Default found not creating
2025-10-27 11:59:15,644 - INFO - Project ctest-TestBasicPolicy-29300346 not found, creating it
2025-10-27 11:59:16,098 - INFO - Created Project:ctest-TestBasicPolicy-29300346, ID : 574a5858-ca86-4c8b-a14f-9058d7b55471
2025-10-27 11:59:17,547 - INFO - ================================================================================
2025-10-27 11:59:17,548 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 11:59:17,548 - 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-10-27 11:59:17,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-10-27 11:59:17,825 - INFO - Initial checks done. Running the testcase now
2025-10-27 11:59:17,826 - INFO -
2025-10-27 11:59:18,461 - DEBUG - Response for create_network : {'network': {'id': '893d7f98-2e63-4360-9f6c-50e14c2b4712', 'name': 'ctest-vn-17606718', 'tenant_id': '574a5858ca864c8ba14f9058d7b55471', 'project_id': '574a5858ca864c8ba14f9058d7b55471', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-vn-17606718'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:59:18,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '58c1b24b-2365-42db-b81a-dbb4d14aa7f3', 'name': '', 'tenant_id': '574a5858ca864c8ba14f9058d7b55471', 'network_id': '893d7f98-2e63-4360-9f6c-50e14c2b4712', 'ip_version': 4, 'cidr': '141.217.255.0/26', 'allocation_pools': [{'start': '141.217.255.2', 'end': '141.217.255.62'}], 'gateway_ip': '141.217.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.217.255.2', 'tags': [], 'project_id': '574a5858ca864c8ba14f9058d7b55471'}}
2025-10-27 11:59:18,717 - INFO - Created VN ctest-vn-17606718
2025-10-27 11:59:18,770 - DEBUG - VN ctest-vn-17606718 UUID is 893d7f98-2e63-4360-9f6c-50e14c2b4712
2025-10-27 11:59:19,124 - DEBUG - Response for create_network : {'network': {'id': 'd2feda55-18c4-49f9-b150-15c085bcb32b', 'name': 'ctest-vn-69359345', 'tenant_id': '574a5858ca864c8ba14f9058d7b55471', 'project_id': '574a5858ca864c8ba14f9058d7b55471', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-vn-69359345'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:59:19,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '413f9da1-6516-4944-aee2-19e0f34d1dce', 'name': '', 'tenant_id': '574a5858ca864c8ba14f9058d7b55471', 'network_id': 'd2feda55-18c4-49f9-b150-15c085bcb32b', 'ip_version': 4, 'cidr': '148.147.128.128/26', 'allocation_pools': [{'start': '148.147.128.130', 'end': '148.147.128.190'}], 'gateway_ip': '148.147.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.147.128.130', 'tags': [], 'project_id': '574a5858ca864c8ba14f9058d7b55471'}}
2025-10-27 11:59:19,406 - INFO - Created VN ctest-vn-69359345
2025-10-27 11:59:19,458 - DEBUG - VN ctest-vn-69359345 UUID is d2feda55-18c4-49f9-b150-15c085bcb32b
2025-10-27 11:59:19,579 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-17606718, 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-29300346:ctest-vn-69359345, 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-10-27 11:59:19,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '893d7f98-2e63-4360-9f6c-50e14c2b4712', 'name': 'ctest-vn-17606718', 'tenant_id': '574a5858ca864c8ba14f9058d7b55471', 'project_id': '574a5858ca864c8ba14f9058d7b55471', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58c1b24b-2365-42db-b81a-dbb4d14aa7f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-vn-17606718'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-policy-allow-all-58122602']], 'subnet_ipam': [{'subnet_cidr': '141.217.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:59:20,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2feda55-18c4-49f9-b150-15c085bcb32b', 'name': 'ctest-vn-69359345', 'tenant_id': '574a5858ca864c8ba14f9058d7b55471', 'project_id': '574a5858ca864c8ba14f9058d7b55471', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['413f9da1-6516-4944-aee2-19e0f34d1dce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-vn-69359345'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-policy-allow-all-58122602']], 'subnet_ipam': [{'subnet_cidr': '148.147.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:59:20,387 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-27 11:59:20,724 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-27 11:59:20,760 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e22588a5-5897-4ef2-bd63-97f077905c30
2025-10-27 11:59:20,776 - DEBUG - Requesting: http://10.0.0.33:8082/project/574a5858-ca86-4c8b-a14f-9058d7b55471
2025-10-27 11:59:20,860 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/893d7f98-2e63-4360-9f6c-50e14c2b4712
2025-10-27 11:59:20,874 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/893d7f98-2e63-4360-9f6c-50e14c2b4712
2025-10-27 11:59:20,887 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7efc38b-e646-42e7-a202-7d889ec74be1
2025-10-27 11:59:20,895 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7efc38b-e646-42e7-a202-7d889ec74be1
2025-10-27 11:59:20,906 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4b5c4056-8bce-4518-b2e5-f325ede04e9e
2025-10-27 11:59:20,914 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:59:20,914 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/893d7f98-2e63-4360-9f6c-50e14c2b4712
2025-10-27 11:59:20,927 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7efc38b-e646-42e7-a202-7d889ec74be1
2025-10-27 11:59:20,945 - INFO - Verified VN network id 11 for VN 893d7f98-2e63-4360-9f6c-50e14c2b4712
2025-10-27 11:59:20,945 - INFO - Verifications in API Server for VN ctest-vn-17606718 passed
2025-10-27 11:59:20,945 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/893d7f98-2e63-4360-9f6c-50e14c2b4712
2025-10-27 11:59:20,957 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7efc38b-e646-42e7-a202-7d889ec74be1
2025-10-27 11:59:20,968 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7efc38b-e646-42e7-a202-7d889ec74be1
2025-10-27 11:59:20,978 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4b5c4056-8bce-4518-b2e5-f325ede04e9e
2025-10-27 11:59:20,994 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-17606718', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29300346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9889200648365491040', 'uuid-lslong': '11487645678091061010'}, 'enable': 'true', 'created': '2025-10-27T11:59:18', 'last-modified': '2025-10-27T11:59:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.119075'}
2025-10-27 11:59:21,002 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:59:21,002 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17606718 passed
2025-10-27 11:59:21,003 - DEBUG - ====Verifying policy data for ctest-vn-17606718 in API_Server ======
2025-10-27 11:59:21,003 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-27 11:59:21,009 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e22588a5-5897-4ef2-bd63-97f077905c30
2025-10-27 11:59:21,023 - DEBUG - Requesting: http://10.0.0.33:8082/project/574a5858-ca86-4c8b-a14f-9058d7b55471
2025-10-27 11:59:21,100 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/893d7f98-2e63-4360-9f6c-50e14c2b4712
2025-10-27 11:59:21,110 - DEBUG - ==>Verifying data for policy with id: b53d8014-3211-4e16-849c-f44636bf3c4f, fqn: ['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-policy-allow-all-58122602']
2025-10-27 11:59:21,110 - INFO - VN ctest-vn-17606718 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:59:21,110 - DEBUG - Verifying the vn in opserver
2025-10-27 11:59:21,110 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-17606718 virtual network link through opserver 10.0.0.33
2025-10-27 11:59:21,110 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-27 11:59:21,424 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-27 11:59:21,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-17606718', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-17606718?flat'}
2025-10-27 11:59:21,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-17606718 is found in opserver
2025-10-27 11:59:21,510 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:59:21,516 - DEBUG - VRF ids for VN ctest-vn-17606718: {}
2025-10-27 11:59:21,516 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-27 11:59:21,526 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e22588a5-5897-4ef2-bd63-97f077905c30
2025-10-27 11:59:21,541 - DEBUG - Requesting: http://10.0.0.33:8082/project/574a5858-ca86-4c8b-a14f-9058d7b55471
2025-10-27 11:59:21,613 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2feda55-18c4-49f9-b150-15c085bcb32b
2025-10-27 11:59:21,627 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2feda55-18c4-49f9-b150-15c085bcb32b
2025-10-27 11:59:21,639 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/24cc696a-b78d-4ca6-bef2-802a92de2afe
2025-10-27 11:59:21,648 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/24cc696a-b78d-4ca6-bef2-802a92de2afe
2025-10-27 11:59:21,657 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ef15efa-7b61-4c31-ad27-6f71d042f3ca
2025-10-27 11:59:21,666 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:59:21,666 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2feda55-18c4-49f9-b150-15c085bcb32b
2025-10-27 11:59:21,681 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/24cc696a-b78d-4ca6-bef2-802a92de2afe
2025-10-27 11:59:21,699 - INFO - Verified VN network id 12 for VN d2feda55-18c4-49f9-b150-15c085bcb32b
2025-10-27 11:59:21,699 - INFO - Verifications in API Server for VN ctest-vn-69359345 passed
2025-10-27 11:59:21,699 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2feda55-18c4-49f9-b150-15c085bcb32b
2025-10-27 11:59:21,709 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/24cc696a-b78d-4ca6-bef2-802a92de2afe
2025-10-27 11:59:21,716 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/24cc696a-b78d-4ca6-bef2-802a92de2afe
2025-10-27 11:59:21,723 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ef15efa-7b61-4c31-ad27-6f71d042f3ca
2025-10-27 11:59:21,737 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-69359345', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29300346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15203829451071965689', 'uuid-lslong': '12776736059471737643'}, 'enable': 'true', 'created': '2025-10-27T11:59:19', 'last-modified': '2025-10-27T11:59:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591085'}
2025-10-27 11:59:21,744 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:59:21,744 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69359345 passed
2025-10-27 11:59:21,744 - DEBUG - ====Verifying policy data for ctest-vn-69359345 in API_Server ======
2025-10-27 11:59:21,744 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-27 11:59:21,750 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e22588a5-5897-4ef2-bd63-97f077905c30
2025-10-27 11:59:21,763 - DEBUG - Requesting: http://10.0.0.33:8082/project/574a5858-ca86-4c8b-a14f-9058d7b55471
2025-10-27 11:59:21,837 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d2feda55-18c4-49f9-b150-15c085bcb32b
2025-10-27 11:59:21,847 - DEBUG - ==>Verifying data for policy with id: b53d8014-3211-4e16-849c-f44636bf3c4f, fqn: ['default-domain', 'ctest-TestBasicPolicy-29300346', 'ctest-policy-allow-all-58122602']
2025-10-27 11:59:21,847 - INFO - VN ctest-vn-69359345 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:59:21,847 - DEBUG - Verifying the vn in opserver
2025-10-27 11:59:21,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-69359345 virtual network link through opserver 10.0.0.33
2025-10-27 11:59:21,847 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-27 11:59:21,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-69359345', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-69359345?flat'}
2025-10-27 11:59:21,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29300346:ctest-vn-69359345 is found in opserver
2025-10-27 11:59:21,868 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:59:21,874 - DEBUG - VRF ids for VN ctest-vn-69359345: {}
2025-10-27 11:59:21,942 - DEBUG - Services list from nova: [