2025-10-28 21:34:33,316 - INFO - Domain Default found not creating
2025-10-28 21:34:33,462 - INFO - Project ctest-TestBasicPolicy-46713631 not found, creating it
2025-10-28 21:34:33,919 - INFO - Created Project:ctest-TestBasicPolicy-46713631, ID : f6b8da37-1b49-49a9-b29e-cca7250247de
2025-10-28 21:34:35,354 - INFO - ================================================================================
2025-10-28 21:34:35,354 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-28 21:34:35,354 - 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-28 21:34:35,608 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-10-28 21:34:35,608 - INFO - Initial checks done. Running the testcase now
2025-10-28 21:34:35,609 - INFO -
2025-10-28 21:34:36,176 - DEBUG - Response for create_network : {'network': {'id': '5d4925c9-344b-48d6-b7c8-4a6a474c17fc', 'name': 'ctest-vn-75411024', 'tenant_id': 'f6b8da371b4949a9b29ecca7250247de', 'project_id': 'f6b8da371b4949a9b29ecca7250247de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-vn-75411024'], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:34:36,338 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af0290ba-7cd5-4421-b2a6-921e35878fc2', 'name': '', 'tenant_id': 'f6b8da371b4949a9b29ecca7250247de', 'network_id': '5d4925c9-344b-48d6-b7c8-4a6a474c17fc', 'ip_version': 4, 'cidr': '221.39.54.192/26', 'allocation_pools': [{'start': '221.39.54.194', 'end': '221.39.54.254'}], 'gateway_ip': '221.39.54.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.39.54.194', 'tags': [], 'project_id': 'f6b8da371b4949a9b29ecca7250247de'}}
2025-10-28 21:34:36,354 - INFO - Created VN ctest-vn-75411024
2025-10-28 21:34:36,407 - DEBUG - VN ctest-vn-75411024 UUID is 5d4925c9-344b-48d6-b7c8-4a6a474c17fc
2025-10-28 21:34:36,733 - DEBUG - Response for create_network : {'network': {'id': '16139bf1-25cc-4110-8cd2-33ac85217086', 'name': 'ctest-vn-02104181', 'tenant_id': 'f6b8da371b4949a9b29ecca7250247de', 'project_id': 'f6b8da371b4949a9b29ecca7250247de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-vn-02104181'], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:34:36,921 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c96ac54d-64a0-4ee9-b465-beac23412c0a', 'name': '', 'tenant_id': 'f6b8da371b4949a9b29ecca7250247de', 'network_id': '16139bf1-25cc-4110-8cd2-33ac85217086', 'ip_version': 4, 'cidr': '125.168.231.192/26', 'allocation_pools': [{'start': '125.168.231.194', 'end': '125.168.231.254'}], 'gateway_ip': '125.168.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.168.231.194', 'tags': [], 'project_id': 'f6b8da371b4949a9b29ecca7250247de'}}
2025-10-28 21:34:36,938 - INFO - Created VN ctest-vn-02104181
2025-10-28 21:34:36,991 - DEBUG - VN ctest-vn-02104181 UUID is 16139bf1-25cc-4110-8cd2-33ac85217086
2025-10-28 21:34:37,143 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-75411024, 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-46713631:ctest-vn-02104181, 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-28 21:34:37,430 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d4925c9-344b-48d6-b7c8-4a6a474c17fc', 'name': 'ctest-vn-75411024', 'tenant_id': 'f6b8da371b4949a9b29ecca7250247de', 'project_id': 'f6b8da371b4949a9b29ecca7250247de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af0290ba-7cd5-4421-b2a6-921e35878fc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-vn-75411024'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-policy-allow-all-04780153']], 'subnet_ipam': [{'subnet_cidr': '221.39.54.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:34:37,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16139bf1-25cc-4110-8cd2-33ac85217086', 'name': 'ctest-vn-02104181', 'tenant_id': 'f6b8da371b4949a9b29ecca7250247de', 'project_id': 'f6b8da371b4949a9b29ecca7250247de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c96ac54d-64a0-4ee9-b465-beac23412c0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-vn-02104181'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-policy-allow-all-04780153']], 'subnet_ipam': [{'subnet_cidr': '125.168.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:34:37,795 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-28 21:34:38,093 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-28 21:34:38,122 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccecda67-a2ae-4747-a0a5-148585f6afbf
2025-10-28 21:34:38,135 - DEBUG - Requesting: http://10.0.0.254:8082/project/f6b8da37-1b49-49a9-b29e-cca7250247de
2025-10-28 21:34:38,207 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d4925c9-344b-48d6-b7c8-4a6a474c17fc
2025-10-28 21:34:38,217 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d4925c9-344b-48d6-b7c8-4a6a474c17fc
2025-10-28 21:34:38,227 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dadaf4ac-3458-4acf-85fe-7b48230c2508
2025-10-28 21:34:38,234 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dadaf4ac-3458-4acf-85fe-7b48230c2508
2025-10-28 21:34:38,240 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1c4a232c-ff61-44eb-8e76-b833fed078b8
2025-10-28 21:34:38,245 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 21:34:38,245 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d4925c9-344b-48d6-b7c8-4a6a474c17fc
2025-10-28 21:34:38,253 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dadaf4ac-3458-4acf-85fe-7b48230c2508
2025-10-28 21:34:38,279 - INFO - Verified VN network id 11 for VN 5d4925c9-344b-48d6-b7c8-4a6a474c17fc
2025-10-28 21:34:38,279 - INFO - Verifications in API Server for VN ctest-vn-75411024 passed
2025-10-28 21:34:38,279 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d4925c9-344b-48d6-b7c8-4a6a474c17fc
2025-10-28 21:34:38,288 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dadaf4ac-3458-4acf-85fe-7b48230c2508
2025-10-28 21:34:38,309 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dadaf4ac-3458-4acf-85fe-7b48230c2508
2025-10-28 21:34:38,317 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1c4a232c-ff61-44eb-8e76-b833fed078b8
2025-10-28 21:34:38,330 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-75411024', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46713631', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6721945464923179222', 'uuid-lslong': '13242916524606101500'}, 'enable': 'true', 'created': '2025-10-28T21:34:36', 'last-modified': '2025-10-28T21:34:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927931'}
2025-10-28 21:34:38,335 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 21:34:38,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75411024 passed
2025-10-28 21:34:38,335 - DEBUG - ====Verifying policy data for ctest-vn-75411024 in API_Server ======
2025-10-28 21:34:38,335 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-28 21:34:38,340 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccecda67-a2ae-4747-a0a5-148585f6afbf
2025-10-28 21:34:38,350 - DEBUG - Requesting: http://10.0.0.254:8082/project/f6b8da37-1b49-49a9-b29e-cca7250247de
2025-10-28 21:34:38,420 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d4925c9-344b-48d6-b7c8-4a6a474c17fc
2025-10-28 21:34:38,429 - DEBUG - ==>Verifying data for policy with id: 84601972-12f9-42e3-a7cc-5000e409cd63, fqn: ['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-policy-allow-all-04780153']
2025-10-28 21:34:38,429 - INFO - VN ctest-vn-75411024 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 21:34:38,429 - DEBUG - Verifying the vn in opserver
2025-10-28 21:34:38,429 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-75411024 virtual network link through opserver 10.0.0.254
2025-10-28 21:34:38,429 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-28 21:34:38,732 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-28 21:34:38,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-75411024', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-75411024?flat'}
2025-10-28 21:34:38,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-75411024 is found in opserver
2025-10-28 21:34:38,799 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 21:34:38,804 - DEBUG - VRF ids for VN ctest-vn-75411024: {}
2025-10-28 21:34:38,804 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-28 21:34:38,810 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccecda67-a2ae-4747-a0a5-148585f6afbf
2025-10-28 21:34:38,821 - DEBUG - Requesting: http://10.0.0.254:8082/project/f6b8da37-1b49-49a9-b29e-cca7250247de
2025-10-28 21:34:38,892 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16139bf1-25cc-4110-8cd2-33ac85217086
2025-10-28 21:34:38,903 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16139bf1-25cc-4110-8cd2-33ac85217086
2025-10-28 21:34:38,912 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6d8669f-34a1-4143-b510-cccffc3c0859
2025-10-28 21:34:38,919 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6d8669f-34a1-4143-b510-cccffc3c0859
2025-10-28 21:34:38,926 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b6daed93-6d80-4ff7-b903-ceb9ce6eec81
2025-10-28 21:34:38,932 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 21:34:38,932 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16139bf1-25cc-4110-8cd2-33ac85217086
2025-10-28 21:34:38,942 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6d8669f-34a1-4143-b510-cccffc3c0859
2025-10-28 21:34:38,957 - INFO - Verified VN network id 12 for VN 16139bf1-25cc-4110-8cd2-33ac85217086
2025-10-28 21:34:38,957 - INFO - Verifications in API Server for VN ctest-vn-02104181 passed
2025-10-28 21:34:38,957 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16139bf1-25cc-4110-8cd2-33ac85217086
2025-10-28 21:34:38,965 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6d8669f-34a1-4143-b510-cccffc3c0859
2025-10-28 21:34:38,971 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6d8669f-34a1-4143-b510-cccffc3c0859
2025-10-28 21:34:38,977 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b6daed93-6d80-4ff7-b903-ceb9ce6eec81
2025-10-28 21:34:38,987 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-02104181', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46713631', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1590786553415483664', 'uuid-lslong': '10147229726480101510'}, 'enable': 'true', 'created': '2025-10-28T21:34:36', 'last-modified': '2025-10-28T21:34:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.363508'}
2025-10-28 21:34:38,993 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 21:34:38,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02104181 passed
2025-10-28 21:34:38,993 - DEBUG - ====Verifying policy data for ctest-vn-02104181 in API_Server ======
2025-10-28 21:34:38,993 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-28 21:34:38,998 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccecda67-a2ae-4747-a0a5-148585f6afbf
2025-10-28 21:34:39,008 - DEBUG - Requesting: http://10.0.0.254:8082/project/f6b8da37-1b49-49a9-b29e-cca7250247de
2025-10-28 21:34:39,074 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/16139bf1-25cc-4110-8cd2-33ac85217086
2025-10-28 21:34:39,083 - DEBUG - ==>Verifying data for policy with id: 84601972-12f9-42e3-a7cc-5000e409cd63, fqn: ['default-domain', 'ctest-TestBasicPolicy-46713631', 'ctest-policy-allow-all-04780153']
2025-10-28 21:34:39,083 - INFO - VN ctest-vn-02104181 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 21:34:39,083 - DEBUG - Verifying the vn in opserver
2025-10-28 21:34:39,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-02104181 virtual network link through opserver 10.0.0.254
2025-10-28 21:34:39,083 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-28 21:34:39,092 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-02104181', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-02104181?flat'}
2025-10-28 21:34:39,092 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46713631:ctest-vn-02104181 is found in opserver
2025-10-28 21:34:39,101 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 21:34:39,105 - DEBUG - VRF ids for VN ctest-vn-02104181: {}
2025-10-28 21:34:39,164 - DEBUG - Services list from nova: [