2025-10-24 17:23:30,426 - INFO - Domain Default found not creating
2025-10-24 17:23:30,698 - INFO - Project ctest-TestBasicPolicy-95222612 not found, creating it
2025-10-24 17:23:31,310 - INFO - Created Project:ctest-TestBasicPolicy-95222612, ID : d26bf623-4bb1-4519-8e42-0a91dab98489
2025-10-24 17:23:33,113 - INFO - ================================================================================
2025-10-24 17:23:33,113 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-24 17:23:33,113 - 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-24 17:23:33,395 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-10-24 17:23:33,395 - INFO - Initial checks done. Running the testcase now
2025-10-24 17:23:33,395 - INFO -
2025-10-24 17:23:33,964 - DEBUG - Response for create_network : {'network': {'id': '72b33cac-9f5b-45f2-b6f1-02fe6e23dad9', 'name': 'ctest-vn-29559351', 'tenant_id': 'd26bf6234bb145198e420a91dab98489', 'project_id': 'd26bf6234bb145198e420a91dab98489', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-vn-29559351'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 17:23:34,186 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9e2bc46-83e2-418e-80c9-c1817e72b96d', 'name': '', 'tenant_id': 'd26bf6234bb145198e420a91dab98489', 'network_id': '72b33cac-9f5b-45f2-b6f1-02fe6e23dad9', 'ip_version': 4, 'cidr': '217.55.218.0/26', 'allocation_pools': [{'start': '217.55.218.2', 'end': '217.55.218.62'}], 'gateway_ip': '217.55.218.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.55.218.2', 'tags': [], 'project_id': 'd26bf6234bb145198e420a91dab98489'}}
2025-10-24 17:23:34,203 - INFO - Created VN ctest-vn-29559351
2025-10-24 17:23:34,259 - DEBUG - VN ctest-vn-29559351 UUID is 72b33cac-9f5b-45f2-b6f1-02fe6e23dad9
2025-10-24 17:23:34,589 - DEBUG - Response for create_network : {'network': {'id': 'f8a0008a-61b8-4aa5-bdf9-c3d362b9df62', 'name': 'ctest-vn-03405425', 'tenant_id': 'd26bf6234bb145198e420a91dab98489', 'project_id': 'd26bf6234bb145198e420a91dab98489', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-vn-03405425'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 17:23:34,815 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aee5b6c8-494a-40cf-b492-8d4566a18621', 'name': '', 'tenant_id': 'd26bf6234bb145198e420a91dab98489', 'network_id': 'f8a0008a-61b8-4aa5-bdf9-c3d362b9df62', 'ip_version': 4, 'cidr': '151.9.79.128/26', 'allocation_pools': [{'start': '151.9.79.130', 'end': '151.9.79.190'}], 'gateway_ip': '151.9.79.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.9.79.130', 'tags': [], 'project_id': 'd26bf6234bb145198e420a91dab98489'}}
2025-10-24 17:23:34,834 - INFO - Created VN ctest-vn-03405425
2025-10-24 17:23:34,887 - DEBUG - VN ctest-vn-03405425 UUID is f8a0008a-61b8-4aa5-bdf9-c3d362b9df62
2025-10-24 17:23:35,021 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-29559351, 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-95222612:ctest-vn-03405425, 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-24 17:23:35,366 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72b33cac-9f5b-45f2-b6f1-02fe6e23dad9', 'name': 'ctest-vn-29559351', 'tenant_id': 'd26bf6234bb145198e420a91dab98489', 'project_id': 'd26bf6234bb145198e420a91dab98489', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9e2bc46-83e2-418e-80c9-c1817e72b96d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-vn-29559351'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-policy-allow-all-75615244']], 'subnet_ipam': [{'subnet_cidr': '217.55.218.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 17:23:35,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8a0008a-61b8-4aa5-bdf9-c3d362b9df62', 'name': 'ctest-vn-03405425', 'tenant_id': 'd26bf6234bb145198e420a91dab98489', 'project_id': 'd26bf6234bb145198e420a91dab98489', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aee5b6c8-494a-40cf-b492-8d4566a18621'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-vn-03405425'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-policy-allow-all-75615244']], 'subnet_ipam': [{'subnet_cidr': '151.9.79.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 17:23:35,831 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 17:23:36,131 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 17:23:36,183 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e1955660-f330-4b0e-b6fd-9240fd6ddcb2
2025-10-24 17:23:36,204 - DEBUG - Requesting: http://10.0.0.22:8082/project/d26bf623-4bb1-4519-8e42-0a91dab98489
2025-10-24 17:23:36,300 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72b33cac-9f5b-45f2-b6f1-02fe6e23dad9
2025-10-24 17:23:36,316 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72b33cac-9f5b-45f2-b6f1-02fe6e23dad9
2025-10-24 17:23:36,327 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/828a0dab-844f-4d0c-8c49-3490a1a30032
2025-10-24 17:23:36,335 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/828a0dab-844f-4d0c-8c49-3490a1a30032
2025-10-24 17:23:36,345 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/47af81ae-e1c6-44c4-9d89-c2eda91b5f57
2025-10-24 17:23:36,356 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 17:23:36,356 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72b33cac-9f5b-45f2-b6f1-02fe6e23dad9
2025-10-24 17:23:36,374 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/828a0dab-844f-4d0c-8c49-3490a1a30032
2025-10-24 17:23:36,396 - INFO - Verified VN network id 11 for VN 72b33cac-9f5b-45f2-b6f1-02fe6e23dad9
2025-10-24 17:23:36,397 - INFO - Verifications in API Server for VN ctest-vn-29559351 passed
2025-10-24 17:23:36,397 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72b33cac-9f5b-45f2-b6f1-02fe6e23dad9
2025-10-24 17:23:36,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/828a0dab-844f-4d0c-8c49-3490a1a30032
2025-10-24 17:23:36,429 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/828a0dab-844f-4d0c-8c49-3490a1a30032
2025-10-24 17:23:36,443 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/47af81ae-e1c6-44c4-9d89-c2eda91b5f57
2025-10-24 17:23:36,468 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-29559351', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95222612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8265016453260592626', 'uuid-lslong': '13182320876082944729'}, 'enable': 'true', 'created': '2025-10-24T17:23:33', 'last-modified': '2025-10-24T17:23:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.141316'}
2025-10-24 17:23:36,477 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 17:23:36,477 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29559351 passed
2025-10-24 17:23:36,477 - DEBUG - ====Verifying policy data for ctest-vn-29559351 in API_Server ======
2025-10-24 17:23:36,477 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 17:23:36,485 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e1955660-f330-4b0e-b6fd-9240fd6ddcb2
2025-10-24 17:23:36,502 - DEBUG - Requesting: http://10.0.0.22:8082/project/d26bf623-4bb1-4519-8e42-0a91dab98489
2025-10-24 17:23:36,605 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/72b33cac-9f5b-45f2-b6f1-02fe6e23dad9
2025-10-24 17:23:36,620 - DEBUG - ==>Verifying data for policy with id: 08c28e2f-9592-4c76-9256-6246a76850e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-policy-allow-all-75615244']
2025-10-24 17:23:36,620 - INFO - VN ctest-vn-29559351 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 17:23:36,620 - DEBUG - Verifying the vn in opserver
2025-10-24 17:23:36,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-29559351 virtual network link through opserver 10.0.0.22
2025-10-24 17:23:36,620 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-24 17:23:36,944 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-24 17:23:37,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-29559351', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-29559351?flat'}
2025-10-24 17:23:37,012 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-29559351 is found in opserver
2025-10-24 17:23:37,024 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 17:23:37,030 - DEBUG - VRF ids for VN ctest-vn-29559351: {}
2025-10-24 17:23:37,030 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 17:23:37,035 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e1955660-f330-4b0e-b6fd-9240fd6ddcb2
2025-10-24 17:23:37,049 - DEBUG - Requesting: http://10.0.0.22:8082/project/d26bf623-4bb1-4519-8e42-0a91dab98489
2025-10-24 17:23:37,129 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f8a0008a-61b8-4aa5-bdf9-c3d362b9df62
2025-10-24 17:23:37,148 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f8a0008a-61b8-4aa5-bdf9-c3d362b9df62
2025-10-24 17:23:37,161 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/00a67b0d-15ff-4cd5-a9df-ac8230af9fd8
2025-10-24 17:23:37,171 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/00a67b0d-15ff-4cd5-a9df-ac8230af9fd8
2025-10-24 17:23:37,179 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f984c31b-5cc9-44e1-ab65-a0a9eee4f911
2025-10-24 17:23:37,186 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 17:23:37,186 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f8a0008a-61b8-4aa5-bdf9-c3d362b9df62
2025-10-24 17:23:37,195 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/00a67b0d-15ff-4cd5-a9df-ac8230af9fd8
2025-10-24 17:23:37,209 - INFO - Verified VN network id 12 for VN f8a0008a-61b8-4aa5-bdf9-c3d362b9df62
2025-10-24 17:23:37,209 - INFO - Verifications in API Server for VN ctest-vn-03405425 passed
2025-10-24 17:23:37,209 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f8a0008a-61b8-4aa5-bdf9-c3d362b9df62
2025-10-24 17:23:37,219 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/00a67b0d-15ff-4cd5-a9df-ac8230af9fd8
2025-10-24 17:23:37,226 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/00a67b0d-15ff-4cd5-a9df-ac8230af9fd8
2025-10-24 17:23:37,234 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f984c31b-5cc9-44e1-ab65-a0a9eee4f911
2025-10-24 17:23:37,249 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-03405425', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95222612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17915319912024787621', 'uuid-lslong': '13689187855031197538'}, 'enable': 'true', 'created': '2025-10-24T17:23:34', 'last-modified': '2025-10-24T17:23:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.610962'}
2025-10-24 17:23:37,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 17:23:37,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03405425 passed
2025-10-24 17:23:37,258 - DEBUG - ====Verifying policy data for ctest-vn-03405425 in API_Server ======
2025-10-24 17:23:37,258 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-24 17:23:37,266 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e1955660-f330-4b0e-b6fd-9240fd6ddcb2
2025-10-24 17:23:37,283 - DEBUG - Requesting: http://10.0.0.22:8082/project/d26bf623-4bb1-4519-8e42-0a91dab98489
2025-10-24 17:23:37,358 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f8a0008a-61b8-4aa5-bdf9-c3d362b9df62
2025-10-24 17:23:37,368 - DEBUG - ==>Verifying data for policy with id: 08c28e2f-9592-4c76-9256-6246a76850e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-95222612', 'ctest-policy-allow-all-75615244']
2025-10-24 17:23:37,368 - INFO - VN ctest-vn-03405425 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 17:23:37,368 - DEBUG - Verifying the vn in opserver
2025-10-24 17:23:37,368 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-03405425 virtual network link through opserver 10.0.0.22
2025-10-24 17:23:37,368 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-24 17:23:37,379 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-03405425', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-03405425?flat'}
2025-10-24 17:23:37,379 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95222612:ctest-vn-03405425 is found in opserver
2025-10-24 17:23:37,390 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 17:23:37,396 - DEBUG - VRF ids for VN ctest-vn-03405425: {}
2025-10-24 17:23:37,464 - DEBUG - Services list from nova: [