2025-09-04 12:33:38,986 - INFO - Domain Default found not creating
2025-09-04 12:33:39,117 - INFO - Project ctest-TestBasicPolicy-87836222 not found, creating it
2025-09-04 12:33:39,562 - INFO - Created Project:ctest-TestBasicPolicy-87836222, ID : 46f101aa-3a07-40bc-a6f1-0770991bc6ab
2025-09-04 12:33:40,898 - INFO - ================================================================================
2025-09-04 12:33:40,898 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 12:33:40,898 - 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-09-04 12:33:41,155 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-04 12:33:41,155 - INFO - Initial checks done. Running the testcase now
2025-09-04 12:33:41,155 - INFO -
2025-09-04 12:33:41,670 - DEBUG - Response for create_network : {'network': {'id': 'c6b80222-ab1d-41b9-b9b3-1b390a4c77ec', 'name': 'ctest-vn-86055143', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-86055143'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 12:33:41,843 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3bb845d-48f5-433c-8451-c1aabbc50f2c', 'name': '', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'network_id': 'c6b80222-ab1d-41b9-b9b3-1b390a4c77ec', 'ip_version': 4, 'cidr': '214.100.73.192/26', 'allocation_pools': [{'start': '214.100.73.194', 'end': '214.100.73.254'}], 'gateway_ip': '214.100.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.100.73.194', 'tags': [], 'project_id': '46f101aa3a0740bca6f10770991bc6ab'}}
2025-09-04 12:33:41,858 - INFO - Created VN ctest-vn-86055143
2025-09-04 12:33:41,910 - DEBUG - VN ctest-vn-86055143 UUID is c6b80222-ab1d-41b9-b9b3-1b390a4c77ec
2025-09-04 12:33:42,207 - DEBUG - Response for create_network : {'network': {'id': '6c7d778c-e30b-4c0e-a41d-1335fbb33c15', 'name': 'ctest-vn-87259682', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-87259682'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 12:33:42,358 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c80b57f2-0608-48ad-afed-be4b9ccbd63b', 'name': '', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'network_id': '6c7d778c-e30b-4c0e-a41d-1335fbb33c15', 'ip_version': 4, 'cidr': '166.21.174.192/26', 'allocation_pools': [{'start': '166.21.174.194', 'end': '166.21.174.254'}], 'gateway_ip': '166.21.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.21.174.194', 'tags': [], 'project_id': '46f101aa3a0740bca6f10770991bc6ab'}}
2025-09-04 12:33:42,373 - INFO - Created VN ctest-vn-87259682
2025-09-04 12:33:42,422 - DEBUG - VN ctest-vn-87259682 UUID is 6c7d778c-e30b-4c0e-a41d-1335fbb33c15
2025-09-04 12:33:42,566 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143, 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-87836222:ctest-vn-87259682, 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-09-04 12:33:42,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6b80222-ab1d-41b9-b9b3-1b390a4c77ec', 'name': 'ctest-vn-86055143', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3bb845d-48f5-433c-8451-c1aabbc50f2c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-86055143'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824']], 'subnet_ipam': [{'subnet_cidr': '214.100.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 12:33:43,071 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c7d778c-e30b-4c0e-a41d-1335fbb33c15', 'name': 'ctest-vn-87259682', 'tenant_id': '46f101aa3a0740bca6f10770991bc6ab', 'project_id': '46f101aa3a0740bca6f10770991bc6ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c80b57f2-0608-48ad-afed-be4b9ccbd63b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-vn-87259682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824']], 'subnet_ipam': [{'subnet_cidr': '166.21.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 12:33:43,234 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 12:33:43,522 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 12:33:43,546 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc
2025-09-04 12:33:43,556 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab
2025-09-04 12:33:43,630 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec
2025-09-04 12:33:43,639 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec
2025-09-04 12:33:43,646 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc
2025-09-04 12:33:43,652 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc
2025-09-04 12:33:43,657 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/afdb97fd-e938-4f76-9aef-0f88fbefebd7
2025-09-04 12:33:43,663 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 12:33:43,663 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec
2025-09-04 12:33:43,671 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc
2025-09-04 12:33:43,683 - INFO - Verified VN network id 11 for VN c6b80222-ab1d-41b9-b9b3-1b390a4c77ec
2025-09-04 12:33:43,683 - INFO - Verifications in API Server for VN ctest-vn-86055143 passed
2025-09-04 12:33:43,683 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec
2025-09-04 12:33:43,691 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc
2025-09-04 12:33:43,696 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8faa5240-d596-442c-b340-3da2897b70bc
2025-09-04 12:33:43,701 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/afdb97fd-e938-4f76-9aef-0f88fbefebd7
2025-09-04 12:33:43,711 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87836222', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14319197363147456953', 'uuid-lslong': '13381068849647745004'}, 'enable': 'true', 'created': '2025-09-04T12:33:41', 'last-modified': '2025-09-04T12:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882108'}
2025-09-04 12:33:43,716 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 12:33:43,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86055143 passed
2025-09-04 12:33:43,716 - DEBUG - ====Verifying policy data for ctest-vn-86055143 in API_Server ======
2025-09-04 12:33:43,716 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 12:33:43,721 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc
2025-09-04 12:33:43,731 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab
2025-09-04 12:33:43,797 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b80222-ab1d-41b9-b9b3-1b390a4c77ec
2025-09-04 12:33:43,804 - DEBUG - ==>Verifying data for policy with id: 91f6d65c-c3e8-446d-bdb6-b84c5eb1cadb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824']
2025-09-04 12:33:43,804 - INFO - VN ctest-vn-86055143 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 12:33:43,804 - DEBUG - Verifying the vn in opserver
2025-09-04 12:33:43,804 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143 virtual network link through opserver 10.0.0.254
2025-09-04 12:33:43,804 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 12:33:44,091 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 12:33:44,138 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143?flat'}
2025-09-04 12:33:44,138 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-86055143 is found in opserver
2025-09-04 12:33:44,146 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 12:33:44,150 - DEBUG - VRF ids for VN ctest-vn-86055143: {}
2025-09-04 12:33:44,150 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 12:33:44,154 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc
2025-09-04 12:33:44,164 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab
2025-09-04 12:33:44,230 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15
2025-09-04 12:33:44,240 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15
2025-09-04 12:33:44,247 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797
2025-09-04 12:33:44,253 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797
2025-09-04 12:33:44,259 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04591233-1474-43c9-a002-e2e20a863e84
2025-09-04 12:33:44,264 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 12:33:44,264 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15
2025-09-04 12:33:44,271 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797
2025-09-04 12:33:44,282 - INFO - Verified VN network id 12 for VN 6c7d778c-e30b-4c0e-a41d-1335fbb33c15
2025-09-04 12:33:44,282 - INFO - Verifications in API Server for VN ctest-vn-87259682 passed
2025-09-04 12:33:44,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15
2025-09-04 12:33:44,290 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797
2025-09-04 12:33:44,295 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91297f71-bfcb-46bf-a46d-9552112da797
2025-09-04 12:33:44,301 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/04591233-1474-43c9-a002-e2e20a863e84
2025-09-04 12:33:44,311 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87836222', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7817535975173344270', 'uuid-lslong': '11825629319121812501'}, 'enable': 'true', 'created': '2025-09-04T12:33:42', 'last-modified': '2025-09-04T12:33:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.263715'}
2025-09-04 12:33:44,317 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 12:33:44,317 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87259682 passed
2025-09-04 12:33:44,318 - DEBUG - ====Verifying policy data for ctest-vn-87259682 in API_Server ======
2025-09-04 12:33:44,318 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 12:33:44,323 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a379f016-8dd9-4fbc-a514-cb0eef92ebcc
2025-09-04 12:33:44,332 - DEBUG - Requesting: http://10.0.0.254:8082/project/46f101aa-3a07-40bc-a6f1-0770991bc6ab
2025-09-04 12:33:44,398 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d778c-e30b-4c0e-a41d-1335fbb33c15
2025-09-04 12:33:44,405 - DEBUG - ==>Verifying data for policy with id: 91f6d65c-c3e8-446d-bdb6-b84c5eb1cadb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87836222', 'ctest-policy-allow-all-38824824']
2025-09-04 12:33:44,406 - INFO - VN ctest-vn-87259682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 12:33:44,406 - DEBUG - Verifying the vn in opserver
2025-09-04 12:33:44,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682 virtual network link through opserver 10.0.0.254
2025-09-04 12:33:44,406 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 12:33:44,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682?flat'}
2025-09-04 12:33:44,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87836222:ctest-vn-87259682 is found in opserver
2025-09-04 12:33:44,423 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 12:33:44,426 - DEBUG - VRF ids for VN ctest-vn-87259682: {}
2025-09-04 12:33:44,477 - DEBUG - Services list from nova: [