2025-07-02 16:52:11,759 - INFO - Domain Default found not creating
2025-07-02 16:52:11,916 - INFO - Project ctest-TestBasicPolicy-53174795 not found, creating it
2025-07-02 16:52:12,386 - INFO - Created Project:ctest-TestBasicPolicy-53174795, ID : 79315550-3eda-4128-86c5-0ab19ff34941
2025-07-02 16:52:13,873 - INFO - ================================================================================
2025-07-02 16:52:13,873 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-02 16:52:13,873 - 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-07-02 16:52:14,128 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-02 16:52:14,128 - INFO - Initial checks done. Running the testcase now
2025-07-02 16:52:14,128 - INFO -
2025-07-02 16:52:14,711 - DEBUG - Response for create_network : {'network': {'id': '1f2dfe52-ac6d-4b30-a351-8e83076aa8f9', 'name': 'ctest-vn-99908883', 'tenant_id': '793155503eda412886c50ab19ff34941', 'project_id': '793155503eda412886c50ab19ff34941', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-vn-99908883'], 'port_security_enabled': True, 'description': ''}}
2025-07-02 16:52:14,905 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a145f0e-a857-4c96-aa77-cc1a765021e8', 'name': '', 'tenant_id': '793155503eda412886c50ab19ff34941', 'network_id': '1f2dfe52-ac6d-4b30-a351-8e83076aa8f9', 'ip_version': 4, 'cidr': '107.175.11.192/26', 'allocation_pools': [{'start': '107.175.11.194', 'end': '107.175.11.254'}], 'gateway_ip': '107.175.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.175.11.194', 'tags': [], 'project_id': '793155503eda412886c50ab19ff34941'}}
2025-07-02 16:52:14,992 - INFO - Created VN ctest-vn-99908883
2025-07-02 16:52:15,049 - DEBUG - VN ctest-vn-99908883 UUID is 1f2dfe52-ac6d-4b30-a351-8e83076aa8f9
2025-07-02 16:52:15,351 - DEBUG - Response for create_network : {'network': {'id': 'b3d9f190-5f17-4aff-a14a-aff22203ed62', 'name': 'ctest-vn-98329807', 'tenant_id': '793155503eda412886c50ab19ff34941', 'project_id': '793155503eda412886c50ab19ff34941', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-vn-98329807'], 'port_security_enabled': True, 'description': ''}}
2025-07-02 16:52:15,545 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c34cac6-95a6-4a3e-b635-47502ae22a58', 'name': '', 'tenant_id': '793155503eda412886c50ab19ff34941', 'network_id': 'b3d9f190-5f17-4aff-a14a-aff22203ed62', 'ip_version': 4, 'cidr': '104.20.177.0/26', 'allocation_pools': [{'start': '104.20.177.2', 'end': '104.20.177.62'}], 'gateway_ip': '104.20.177.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.20.177.2', 'tags': [], 'project_id': '793155503eda412886c50ab19ff34941'}}
2025-07-02 16:52:15,564 - INFO - Created VN ctest-vn-98329807
2025-07-02 16:52:15,617 - DEBUG - VN ctest-vn-98329807 UUID is b3d9f190-5f17-4aff-a14a-aff22203ed62
2025-07-02 16:52:15,730 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-99908883, 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-53174795:ctest-vn-98329807, 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-07-02 16:52:16,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f2dfe52-ac6d-4b30-a351-8e83076aa8f9', 'name': 'ctest-vn-99908883', 'tenant_id': '793155503eda412886c50ab19ff34941', 'project_id': '793155503eda412886c50ab19ff34941', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a145f0e-a857-4c96-aa77-cc1a765021e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-vn-99908883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-policy-allow-all-61807088']], 'subnet_ipam': [{'subnet_cidr': '107.175.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-02 16:52:16,297 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3d9f190-5f17-4aff-a14a-aff22203ed62', 'name': 'ctest-vn-98329807', 'tenant_id': '793155503eda412886c50ab19ff34941', 'project_id': '793155503eda412886c50ab19ff34941', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c34cac6-95a6-4a3e-b635-47502ae22a58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-vn-98329807'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-policy-allow-all-61807088']], 'subnet_ipam': [{'subnet_cidr': '104.20.177.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-02 16:52:16,457 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-02 16:52:16,769 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-02 16:52:16,802 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5147c601-786e-4fad-b0db-df42c3969458
2025-07-02 16:52:16,819 - DEBUG - Requesting: http://10.0.0.254:8082/project/79315550-3eda-4128-86c5-0ab19ff34941
2025-07-02 16:52:16,898 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1f2dfe52-ac6d-4b30-a351-8e83076aa8f9
2025-07-02 16:52:16,911 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1f2dfe52-ac6d-4b30-a351-8e83076aa8f9
2025-07-02 16:52:16,922 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a8625de-0d38-4b30-8077-d4721c34e3c3
2025-07-02 16:52:16,931 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a8625de-0d38-4b30-8077-d4721c34e3c3
2025-07-02 16:52:16,939 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5dd6df5a-fcec-402d-b883-3a546921e5d1
2025-07-02 16:52:16,947 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-02 16:52:16,947 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1f2dfe52-ac6d-4b30-a351-8e83076aa8f9
2025-07-02 16:52:16,958 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a8625de-0d38-4b30-8077-d4721c34e3c3
2025-07-02 16:52:16,979 - INFO - Verified VN network id 8 for VN 1f2dfe52-ac6d-4b30-a351-8e83076aa8f9
2025-07-02 16:52:16,979 - INFO - Verifications in API Server for VN ctest-vn-99908883 passed
2025-07-02 16:52:16,979 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1f2dfe52-ac6d-4b30-a351-8e83076aa8f9
2025-07-02 16:52:16,992 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a8625de-0d38-4b30-8077-d4721c34e3c3
2025-07-02 16:52:17,003 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a8625de-0d38-4b30-8077-d4721c34e3c3
2025-07-02 16:52:17,013 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5dd6df5a-fcec-402d-b883-3a546921e5d1
2025-07-02 16:52:17,029 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-99908883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53174795', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2246731420161362736', 'uuid-lslong': '11768343994712107257'}, 'enable': 'true', 'created': '2025-07-02T16:52:14', 'last-modified': '2025-07-02T16:52:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005327'}
2025-07-02 16:52:17,036 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-02 16:52:17,037 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99908883 passed
2025-07-02 16:52:17,037 - DEBUG - ====Verifying policy data for ctest-vn-99908883 in API_Server ======
2025-07-02 16:52:17,037 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-02 16:52:17,045 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5147c601-786e-4fad-b0db-df42c3969458
2025-07-02 16:52:17,060 - DEBUG - Requesting: http://10.0.0.254:8082/project/79315550-3eda-4128-86c5-0ab19ff34941
2025-07-02 16:52:17,133 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1f2dfe52-ac6d-4b30-a351-8e83076aa8f9
2025-07-02 16:52:17,145 - DEBUG - ==>Verifying data for policy with id: b46d617f-9194-40b6-b775-575a71faa64c, fqn: ['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-policy-allow-all-61807088']
2025-07-02 16:52:17,145 - INFO - VN ctest-vn-99908883 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-02 16:52:17,145 - DEBUG - Verifying the vn in opserver
2025-07-02 16:52:17,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-99908883 virtual network link through opserver 10.0.0.254
2025-07-02 16:52:17,145 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-02 16:52:17,439 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-02 16:52:17,512 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-99908883', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-99908883?flat'}
2025-07-02 16:52:17,512 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-99908883 is found in opserver
2025-07-02 16:52:17,526 - DEBUG - Do not have enough data to verify VN in agent
2025-07-02 16:52:17,531 - DEBUG - VRF ids for VN ctest-vn-99908883: {}
2025-07-02 16:52:17,531 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-02 16:52:17,538 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5147c601-786e-4fad-b0db-df42c3969458
2025-07-02 16:52:17,551 - DEBUG - Requesting: http://10.0.0.254:8082/project/79315550-3eda-4128-86c5-0ab19ff34941
2025-07-02 16:52:17,628 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3d9f190-5f17-4aff-a14a-aff22203ed62
2025-07-02 16:52:17,644 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3d9f190-5f17-4aff-a14a-aff22203ed62
2025-07-02 16:52:17,658 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3f357fd-0170-4de9-917e-75402beab6e0
2025-07-02 16:52:17,669 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3f357fd-0170-4de9-917e-75402beab6e0
2025-07-02 16:52:17,678 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6181abf8-85f9-4c75-b4be-3def6037e6ee
2025-07-02 16:52:17,686 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-02 16:52:17,686 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3d9f190-5f17-4aff-a14a-aff22203ed62
2025-07-02 16:52:17,698 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3f357fd-0170-4de9-917e-75402beab6e0
2025-07-02 16:52:17,720 - INFO - Verified VN network id 9 for VN b3d9f190-5f17-4aff-a14a-aff22203ed62
2025-07-02 16:52:17,720 - INFO - Verifications in API Server for VN ctest-vn-98329807 passed
2025-07-02 16:52:17,720 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3d9f190-5f17-4aff-a14a-aff22203ed62
2025-07-02 16:52:17,730 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3f357fd-0170-4de9-917e-75402beab6e0
2025-07-02 16:52:17,738 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3f357fd-0170-4de9-917e-75402beab6e0
2025-07-02 16:52:17,747 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6181abf8-85f9-4c75-b4be-3def6037e6ee
2025-07-02 16:52:17,764 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-98329807', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53174795', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12959655005108259583', 'uuid-lslong': '11622295242870615394'}, 'enable': 'true', 'created': '2025-07-02T16:52:15', 'last-modified': '2025-07-02T16:52:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.487494'}
2025-07-02 16:52:17,773 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-02 16:52:17,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98329807 passed
2025-07-02 16:52:17,774 - DEBUG - ====Verifying policy data for ctest-vn-98329807 in API_Server ======
2025-07-02 16:52:17,774 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-02 16:52:17,785 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5147c601-786e-4fad-b0db-df42c3969458
2025-07-02 16:52:17,805 - DEBUG - Requesting: http://10.0.0.254:8082/project/79315550-3eda-4128-86c5-0ab19ff34941
2025-07-02 16:52:17,880 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3d9f190-5f17-4aff-a14a-aff22203ed62
2025-07-02 16:52:17,892 - DEBUG - ==>Verifying data for policy with id: b46d617f-9194-40b6-b775-575a71faa64c, fqn: ['default-domain', 'ctest-TestBasicPolicy-53174795', 'ctest-policy-allow-all-61807088']
2025-07-02 16:52:17,892 - INFO - VN ctest-vn-98329807 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-02 16:52:17,892 - DEBUG - Verifying the vn in opserver
2025-07-02 16:52:17,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-98329807 virtual network link through opserver 10.0.0.254
2025-07-02 16:52:17,892 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-02 16:52:17,906 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-98329807', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-98329807?flat'}
2025-07-02 16:52:17,906 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53174795:ctest-vn-98329807 is found in opserver
2025-07-02 16:52:17,921 - DEBUG - Do not have enough data to verify VN in agent
2025-07-02 16:52:17,935 - DEBUG - VRF ids for VN ctest-vn-98329807: {}
2025-07-02 16:52:17,995 - DEBUG - Services list from nova: [