2025-10-21 14:35:47,986 - INFO - Domain Default found not creating
2025-10-21 14:35:48,110 - INFO - Project ctest-TestBasicPolicy-71292089 not found, creating it
2025-10-21 14:35:48,514 - INFO - Created Project:ctest-TestBasicPolicy-71292089, ID : 932e6e69-aa3b-41f5-b936-7aa2aa6fbd07
2025-10-21 14:35:49,838 - INFO - ================================================================================
2025-10-21 14:35:49,838 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 14:35:49,838 - 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-21 14:35:50,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-21 14:35:50,093 - INFO - Initial checks done. Running the testcase now
2025-10-21 14:35:50,094 - INFO -
2025-10-21 14:35:50,599 - DEBUG - Response for create_network : {'network': {'id': '92426c78-f683-47f9-9206-ecff05386ddc', 'name': 'ctest-vn-51366852', 'tenant_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'project_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-vn-51366852'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 14:35:50,776 - DEBUG - Response for create_subnet : {'subnet': {'id': '86d68317-9d6b-472d-b5db-6922ec1f7771', 'name': '', 'tenant_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'network_id': '92426c78-f683-47f9-9206-ecff05386ddc', 'ip_version': 4, 'cidr': '82.83.87.64/26', 'allocation_pools': [{'start': '82.83.87.66', 'end': '82.83.87.126'}], 'gateway_ip': '82.83.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.83.87.66', 'tags': [], 'project_id': '932e6e69aa3b41f5b9367aa2aa6fbd07'}}
2025-10-21 14:35:50,791 - INFO - Created VN ctest-vn-51366852
2025-10-21 14:35:50,839 - DEBUG - VN ctest-vn-51366852 UUID is 92426c78-f683-47f9-9206-ecff05386ddc
2025-10-21 14:35:51,147 - DEBUG - Response for create_network : {'network': {'id': '5335622c-a42a-40b0-98d5-c5411a2cbc72', 'name': 'ctest-vn-38168845', 'tenant_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'project_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-vn-38168845'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 14:35:51,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '5966b8e9-e8ea-45c1-afba-e502eb1e62f3', 'name': '', 'tenant_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'network_id': '5335622c-a42a-40b0-98d5-c5411a2cbc72', 'ip_version': 4, 'cidr': '168.132.164.64/26', 'allocation_pools': [{'start': '168.132.164.66', 'end': '168.132.164.126'}], 'gateway_ip': '168.132.164.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.132.164.66', 'tags': [], 'project_id': '932e6e69aa3b41f5b9367aa2aa6fbd07'}}
2025-10-21 14:35:51,326 - INFO - Created VN ctest-vn-38168845
2025-10-21 14:35:51,375 - DEBUG - VN ctest-vn-38168845 UUID is 5335622c-a42a-40b0-98d5-c5411a2cbc72
2025-10-21 14:35:51,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-51366852, 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-71292089:ctest-vn-38168845, 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-21 14:35:51,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92426c78-f683-47f9-9206-ecff05386ddc', 'name': 'ctest-vn-51366852', 'tenant_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'project_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86d68317-9d6b-472d-b5db-6922ec1f7771'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-vn-51366852'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-policy-allow-all-37120856']], 'subnet_ipam': [{'subnet_cidr': '82.83.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 14:35:52,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5335622c-a42a-40b0-98d5-c5411a2cbc72', 'name': 'ctest-vn-38168845', 'tenant_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'project_id': '932e6e69aa3b41f5b9367aa2aa6fbd07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5966b8e9-e8ea-45c1-afba-e502eb1e62f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-vn-38168845'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-policy-allow-all-37120856']], 'subnet_ipam': [{'subnet_cidr': '168.132.164.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 14:35:52,211 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 14:35:52,501 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 14:35:52,526 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2a1770f5-2bd5-4783-9760-17e9a48c1a45
2025-10-21 14:35:52,536 - DEBUG - Requesting: http://10.0.0.254:8082/project/932e6e69-aa3b-41f5-b936-7aa2aa6fbd07
2025-10-21 14:35:52,602 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92426c78-f683-47f9-9206-ecff05386ddc
2025-10-21 14:35:52,611 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92426c78-f683-47f9-9206-ecff05386ddc
2025-10-21 14:35:52,618 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4ca1e36-c533-4ab7-827f-0192425cb9f3
2025-10-21 14:35:52,623 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4ca1e36-c533-4ab7-827f-0192425cb9f3
2025-10-21 14:35:52,628 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f389808f-8c40-451f-9012-7ed4902bf7db
2025-10-21 14:35:52,633 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 14:35:52,633 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92426c78-f683-47f9-9206-ecff05386ddc
2025-10-21 14:35:52,640 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4ca1e36-c533-4ab7-827f-0192425cb9f3
2025-10-21 14:35:52,650 - INFO - Verified VN network id 11 for VN 92426c78-f683-47f9-9206-ecff05386ddc
2025-10-21 14:35:52,650 - INFO - Verifications in API Server for VN ctest-vn-51366852 passed
2025-10-21 14:35:52,650 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92426c78-f683-47f9-9206-ecff05386ddc
2025-10-21 14:35:52,656 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4ca1e36-c533-4ab7-827f-0192425cb9f3
2025-10-21 14:35:52,661 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4ca1e36-c533-4ab7-827f-0192425cb9f3
2025-10-21 14:35:52,666 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f389808f-8c40-451f-9012-7ed4902bf7db
2025-10-21 14:35:52,674 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-51366852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71292089', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10539105344788056057', 'uuid-lslong': '10522358159446142428'}, 'enable': 'true', 'created': '2025-10-21T14:35:50', 'last-modified': '2025-10-21T14:35:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884880'}
2025-10-21 14:35:52,679 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 14:35:52,679 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51366852 passed
2025-10-21 14:35:52,679 - DEBUG - ====Verifying policy data for ctest-vn-51366852 in API_Server ======
2025-10-21 14:35:52,679 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 14:35:52,683 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2a1770f5-2bd5-4783-9760-17e9a48c1a45
2025-10-21 14:35:52,691 - DEBUG - Requesting: http://10.0.0.254:8082/project/932e6e69-aa3b-41f5-b936-7aa2aa6fbd07
2025-10-21 14:35:52,756 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92426c78-f683-47f9-9206-ecff05386ddc
2025-10-21 14:35:52,763 - DEBUG - ==>Verifying data for policy with id: 504292a5-51ad-470a-843d-bd49409bf6c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-policy-allow-all-37120856']
2025-10-21 14:35:52,763 - INFO - VN ctest-vn-51366852 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 14:35:52,763 - DEBUG - Verifying the vn in opserver
2025-10-21 14:35:52,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-51366852 virtual network link through opserver 10.0.0.254
2025-10-21 14:35:52,763 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 14:35:53,049 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 14:35:53,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-51366852', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-51366852?flat'}
2025-10-21 14:35:53,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-51366852 is found in opserver
2025-10-21 14:35:53,102 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 14:35:53,106 - DEBUG - VRF ids for VN ctest-vn-51366852: {}
2025-10-21 14:35:53,106 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 14:35:53,110 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2a1770f5-2bd5-4783-9760-17e9a48c1a45
2025-10-21 14:35:53,119 - DEBUG - Requesting: http://10.0.0.254:8082/project/932e6e69-aa3b-41f5-b936-7aa2aa6fbd07
2025-10-21 14:35:53,184 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5335622c-a42a-40b0-98d5-c5411a2cbc72
2025-10-21 14:35:53,194 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5335622c-a42a-40b0-98d5-c5411a2cbc72
2025-10-21 14:35:53,202 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24fde8ca-a74f-4893-89c5-48567f854b8f
2025-10-21 14:35:53,207 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24fde8ca-a74f-4893-89c5-48567f854b8f
2025-10-21 14:35:53,212 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0df87639-5068-47f1-ac83-2350f3351979
2025-10-21 14:35:53,216 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 14:35:53,217 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5335622c-a42a-40b0-98d5-c5411a2cbc72
2025-10-21 14:35:53,223 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24fde8ca-a74f-4893-89c5-48567f854b8f
2025-10-21 14:35:53,233 - INFO - Verified VN network id 12 for VN 5335622c-a42a-40b0-98d5-c5411a2cbc72
2025-10-21 14:35:53,233 - INFO - Verifications in API Server for VN ctest-vn-38168845 passed
2025-10-21 14:35:53,233 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5335622c-a42a-40b0-98d5-c5411a2cbc72
2025-10-21 14:35:53,240 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24fde8ca-a74f-4893-89c5-48567f854b8f
2025-10-21 14:35:53,245 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24fde8ca-a74f-4893-89c5-48567f854b8f
2025-10-21 14:35:53,250 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0df87639-5068-47f1-ac83-2350f3351979
2025-10-21 14:35:53,258 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-38168845', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71292089', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5995806422785999024', 'uuid-lslong': '11012925347207101554'}, 'enable': 'true', 'created': '2025-10-21T14:35:51', 'last-modified': '2025-10-21T14:35:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.227079'}
2025-10-21 14:35:53,263 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 14:35:53,263 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38168845 passed
2025-10-21 14:35:53,263 - DEBUG - ====Verifying policy data for ctest-vn-38168845 in API_Server ======
2025-10-21 14:35:53,263 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 14:35:53,266 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2a1770f5-2bd5-4783-9760-17e9a48c1a45
2025-10-21 14:35:53,274 - DEBUG - Requesting: http://10.0.0.254:8082/project/932e6e69-aa3b-41f5-b936-7aa2aa6fbd07
2025-10-21 14:35:53,339 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5335622c-a42a-40b0-98d5-c5411a2cbc72
2025-10-21 14:35:53,347 - DEBUG - ==>Verifying data for policy with id: 504292a5-51ad-470a-843d-bd49409bf6c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-71292089', 'ctest-policy-allow-all-37120856']
2025-10-21 14:35:53,347 - INFO - VN ctest-vn-38168845 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 14:35:53,347 - DEBUG - Verifying the vn in opserver
2025-10-21 14:35:53,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-38168845 virtual network link through opserver 10.0.0.254
2025-10-21 14:35:53,347 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 14:35:53,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-38168845', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-38168845?flat'}
2025-10-21 14:35:53,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71292089:ctest-vn-38168845 is found in opserver
2025-10-21 14:35:53,362 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 14:35:53,366 - DEBUG - VRF ids for VN ctest-vn-38168845: {}
2025-10-21 14:35:53,412 - DEBUG - Services list from nova: [