2025-11-18 14:47:40,259 - INFO - Domain Default found not creating
2025-11-18 14:47:40,470 - INFO - Project ctest-TestBasicPolicy-97721553 not found, creating it
2025-11-18 14:47:40,989 - INFO - Created Project:ctest-TestBasicPolicy-97721553, ID : 0b643e65-d721-4b9e-a706-2e3a4a0790d8
2025-11-18 14:47:42,656 - INFO - ================================================================================
2025-11-18 14:47:42,656 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-18 14:47:42,656 - 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-18 14:47:42,923 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with
2025-11-18 14:47:42,923 - INFO - Initial checks done. Running the testcase now
2025-11-18 14:47:42,923 - INFO -
2025-11-18 14:47:43,614 - DEBUG - Response for create_network : {'network': {'id': '7e8f8573-1017-4dce-9e76-03f46e98e583', 'name': 'ctest-vn-42427579', 'tenant_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'project_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-vn-42427579'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 14:47:43,905 - DEBUG - Response for create_subnet : {'subnet': {'id': '5326484c-c7ba-4471-9b53-84bfacc8241b', 'name': '', 'tenant_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'network_id': '7e8f8573-1017-4dce-9e76-03f46e98e583', 'ip_version': 4, 'cidr': '55.244.139.0/26', 'allocation_pools': [{'start': '55.244.139.2', 'end': '55.244.139.62'}], 'gateway_ip': '55.244.139.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.244.139.2', 'tags': [], 'project_id': '0b643e65d7214b9ea7062e3a4a0790d8'}}
2025-11-18 14:47:43,967 - INFO - Created VN ctest-vn-42427579
2025-11-18 14:47:44,038 - DEBUG - VN ctest-vn-42427579 UUID is 7e8f8573-1017-4dce-9e76-03f46e98e583
2025-11-18 14:47:44,697 - DEBUG - Response for create_network : {'network': {'id': '15b51cb0-9159-4cc4-8279-d74ec5cd43e0', 'name': 'ctest-vn-25183915', 'tenant_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'project_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-vn-25183915'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 14:47:44,959 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a3a3d6c-83a8-4778-9ff8-db161de747b3', 'name': '', 'tenant_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'network_id': '15b51cb0-9159-4cc4-8279-d74ec5cd43e0', 'ip_version': 4, 'cidr': '41.202.76.0/26', 'allocation_pools': [{'start': '41.202.76.2', 'end': '41.202.76.62'}], 'gateway_ip': '41.202.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.202.76.2', 'tags': [], 'project_id': '0b643e65d7214b9ea7062e3a4a0790d8'}}
2025-11-18 14:47:45,002 - INFO - Created VN ctest-vn-25183915
2025-11-18 14:47:45,062 - DEBUG - VN ctest-vn-25183915 UUID is 15b51cb0-9159-4cc4-8279-d74ec5cd43e0
2025-11-18 14:47:45,205 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-42427579, 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-97721553:ctest-vn-25183915, 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-18 14:47:45,564 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e8f8573-1017-4dce-9e76-03f46e98e583', 'name': 'ctest-vn-42427579', 'tenant_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'project_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5326484c-c7ba-4471-9b53-84bfacc8241b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-vn-42427579'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-policy-allow-all-87083860']], 'subnet_ipam': [{'subnet_cidr': '55.244.139.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 14:47:45,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15b51cb0-9159-4cc4-8279-d74ec5cd43e0', 'name': 'ctest-vn-25183915', 'tenant_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'project_id': '0b643e65d7214b9ea7062e3a4a0790d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a3a3d6c-83a8-4778-9ff8-db161de747b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-vn-25183915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-policy-allow-all-87083860']], 'subnet_ipam': [{'subnet_cidr': '41.202.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 14:47:46,026 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-18 14:47:46,365 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-18 14:47:46,402 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e
2025-11-18 14:47:46,416 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b643e65-d721-4b9e-a706-2e3a4a0790d8
2025-11-18 14:47:46,495 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7e8f8573-1017-4dce-9e76-03f46e98e583
2025-11-18 14:47:46,507 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7e8f8573-1017-4dce-9e76-03f46e98e583
2025-11-18 14:47:46,522 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9069c715-469d-4f0e-a643-de6678eddf69
2025-11-18 14:47:46,532 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9069c715-469d-4f0e-a643-de6678eddf69
2025-11-18 14:47:46,540 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1c0addbb-7259-4fb0-bd87-b6bfdec06265
2025-11-18 14:47:46,549 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 14:47:46,549 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7e8f8573-1017-4dce-9e76-03f46e98e583
2025-11-18 14:47:46,563 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9069c715-469d-4f0e-a643-de6678eddf69
2025-11-18 14:47:46,582 - INFO - Verified VN network id 12 for VN 7e8f8573-1017-4dce-9e76-03f46e98e583
2025-11-18 14:47:46,582 - INFO - Verifications in API Server for VN ctest-vn-42427579 passed
2025-11-18 14:47:46,582 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7e8f8573-1017-4dce-9e76-03f46e98e583
2025-11-18 14:47:46,597 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9069c715-469d-4f0e-a643-de6678eddf69
2025-11-18 14:47:46,605 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9069c715-469d-4f0e-a643-de6678eddf69
2025-11-18 14:47:46,614 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1c0addbb-7259-4fb0-bd87-b6bfdec06265
2025-11-18 14:47:46,630 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-42427579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97721553', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9119654499686239694', 'uuid-lslong': '11418318253606888835'}, 'enable': 'true', 'created': '2025-11-18T14:47:43', 'last-modified': '2025-11-18T14:47:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.103030'}
2025-11-18 14:47:46,637 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 14:47:46,638 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42427579 passed
2025-11-18 14:47:46,638 - DEBUG - ====Verifying policy data for ctest-vn-42427579 in API_Server ======
2025-11-18 14:47:46,638 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-18 14:47:46,646 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e
2025-11-18 14:47:46,660 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b643e65-d721-4b9e-a706-2e3a4a0790d8
2025-11-18 14:47:46,738 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7e8f8573-1017-4dce-9e76-03f46e98e583
2025-11-18 14:47:46,748 - DEBUG - ==>Verifying data for policy with id: 8c89b8fc-3fdd-478b-b1d0-a3821ce8a256, fqn: ['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-policy-allow-all-87083860']
2025-11-18 14:47:46,748 - INFO - VN ctest-vn-42427579 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 14:47:46,748 - DEBUG - Verifying the vn in opserver
2025-11-18 14:47:46,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-42427579 virtual network link through opserver 10.0.0.33
2025-11-18 14:47:46,749 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-18 14:47:47,048 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-18 14:47:47,129 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-42427579', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-42427579?flat'}
2025-11-18 14:47:47,129 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-42427579 is found in opserver
2025-11-18 14:47:47,141 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 14:47:47,146 - DEBUG - VRF ids for VN ctest-vn-42427579: {}
2025-11-18 14:47:47,146 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-18 14:47:47,153 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e
2025-11-18 14:47:47,166 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b643e65-d721-4b9e-a706-2e3a4a0790d8
2025-11-18 14:47:47,264 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/15b51cb0-9159-4cc4-8279-d74ec5cd43e0
2025-11-18 14:47:47,280 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/15b51cb0-9159-4cc4-8279-d74ec5cd43e0
2025-11-18 14:47:47,291 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f7ffafc4-8c54-4bf4-a34d-9f1ded2f43e1
2025-11-18 14:47:47,302 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f7ffafc4-8c54-4bf4-a34d-9f1ded2f43e1
2025-11-18 14:47:47,315 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0b7a54ca-0eae-4c75-ad24-66e3974249df
2025-11-18 14:47:47,327 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 14:47:47,328 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/15b51cb0-9159-4cc4-8279-d74ec5cd43e0
2025-11-18 14:47:47,340 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f7ffafc4-8c54-4bf4-a34d-9f1ded2f43e1
2025-11-18 14:47:47,361 - INFO - Verified VN network id 13 for VN 15b51cb0-9159-4cc4-8279-d74ec5cd43e0
2025-11-18 14:47:47,362 - INFO - Verifications in API Server for VN ctest-vn-25183915 passed
2025-11-18 14:47:47,362 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/15b51cb0-9159-4cc4-8279-d74ec5cd43e0
2025-11-18 14:47:47,373 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f7ffafc4-8c54-4bf4-a34d-9f1ded2f43e1
2025-11-18 14:47:47,383 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f7ffafc4-8c54-4bf4-a34d-9f1ded2f43e1
2025-11-18 14:47:47,392 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0b7a54ca-0eae-4c75-ad24-66e3974249df
2025-11-18 14:47:47,405 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-25183915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97721553', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1564187990259485892', 'uuid-lslong': '9401782430438605792'}, 'enable': 'true', 'created': '2025-11-18T14:47:44', 'last-modified': '2025-11-18T14:47:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597768'}
2025-11-18 14:47:47,414 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 14:47:47,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25183915 passed
2025-11-18 14:47:47,414 - DEBUG - ====Verifying policy data for ctest-vn-25183915 in API_Server ======
2025-11-18 14:47:47,414 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-18 14:47:47,422 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b498e8f4-7605-4ec1-81af-703b4297c23e
2025-11-18 14:47:47,434 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b643e65-d721-4b9e-a706-2e3a4a0790d8
2025-11-18 14:47:47,509 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/15b51cb0-9159-4cc4-8279-d74ec5cd43e0
2025-11-18 14:47:47,520 - DEBUG - ==>Verifying data for policy with id: 8c89b8fc-3fdd-478b-b1d0-a3821ce8a256, fqn: ['default-domain', 'ctest-TestBasicPolicy-97721553', 'ctest-policy-allow-all-87083860']
2025-11-18 14:47:47,521 - INFO - VN ctest-vn-25183915 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 14:47:47,521 - DEBUG - Verifying the vn in opserver
2025-11-18 14:47:47,521 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-25183915 virtual network link through opserver 10.0.0.33
2025-11-18 14:47:47,521 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-18 14:47:47,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-25183915', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-25183915?flat'}
2025-11-18 14:47:47,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97721553:ctest-vn-25183915 is found in opserver
2025-11-18 14:47:47,551 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 14:47:47,557 - DEBUG - VRF ids for VN ctest-vn-25183915: {}
2025-11-18 14:47:47,636 - DEBUG - Services list from nova: [