2025-10-27 05:27:19,723 - INFO - Domain Default found not creating
2025-10-27 05:27:19,883 - INFO - Project ctest-TestBasicPolicy-73286508 not found, creating it
2025-10-27 05:27:20,365 - INFO - Created Project:ctest-TestBasicPolicy-73286508, ID : 5cf25abd-3211-4223-bda5-5966b911fdbb
2025-10-27 05:27:21,976 - INFO - ================================================================================
2025-10-27 05:27:21,977 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 05:27:21,977 - 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-27 05:27:22,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-27 05:27:22,237 - INFO - Initial checks done. Running the testcase now
2025-10-27 05:27:22,237 - INFO -
2025-10-27 05:27:22,890 - DEBUG - Response for create_network : {'network': {'id': '8c81b777-78ab-4938-83bd-94c8a3726194', 'name': 'ctest-vn-17367603', 'tenant_id': '5cf25abd32114223bda55966b911fdbb', 'project_id': '5cf25abd32114223bda55966b911fdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-vn-17367603'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 05:27:23,120 - DEBUG - Response for create_subnet : {'subnet': {'id': '33e5b2ae-db62-4f09-9bbf-ea596ce16a35', 'name': '', 'tenant_id': '5cf25abd32114223bda55966b911fdbb', 'network_id': '8c81b777-78ab-4938-83bd-94c8a3726194', 'ip_version': 4, 'cidr': '131.163.126.0/26', 'allocation_pools': [{'start': '131.163.126.2', 'end': '131.163.126.62'}], 'gateway_ip': '131.163.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.163.126.2', 'tags': [], 'project_id': '5cf25abd32114223bda55966b911fdbb'}}
2025-10-27 05:27:23,140 - INFO - Created VN ctest-vn-17367603
2025-10-27 05:27:23,195 - DEBUG - VN ctest-vn-17367603 UUID is 8c81b777-78ab-4938-83bd-94c8a3726194
2025-10-27 05:27:23,669 - DEBUG - Response for create_network : {'network': {'id': 'f2753643-e900-4a3f-871f-580bea4f441d', 'name': 'ctest-vn-17620028', 'tenant_id': '5cf25abd32114223bda55966b911fdbb', 'project_id': '5cf25abd32114223bda55966b911fdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-vn-17620028'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 05:27:24,109 - DEBUG - Response for create_subnet : {'subnet': {'id': '4eff3da5-82fb-4eac-ac23-8cc1140dc78b', 'name': '', 'tenant_id': '5cf25abd32114223bda55966b911fdbb', 'network_id': 'f2753643-e900-4a3f-871f-580bea4f441d', 'ip_version': 4, 'cidr': '22.105.4.192/26', 'allocation_pools': [{'start': '22.105.4.194', 'end': '22.105.4.254'}], 'gateway_ip': '22.105.4.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.105.4.194', 'tags': [], 'project_id': '5cf25abd32114223bda55966b911fdbb'}}
2025-10-27 05:27:24,143 - INFO - Created VN ctest-vn-17620028
2025-10-27 05:27:24,199 - DEBUG - VN ctest-vn-17620028 UUID is f2753643-e900-4a3f-871f-580bea4f441d
2025-10-27 05:27:24,330 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17367603, 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-73286508:ctest-vn-17620028, 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-27 05:27:24,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c81b777-78ab-4938-83bd-94c8a3726194', 'name': 'ctest-vn-17367603', 'tenant_id': '5cf25abd32114223bda55966b911fdbb', 'project_id': '5cf25abd32114223bda55966b911fdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33e5b2ae-db62-4f09-9bbf-ea596ce16a35'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-vn-17367603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-policy-allow-all-18389973']], 'subnet_ipam': [{'subnet_cidr': '131.163.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 05:27:24,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2753643-e900-4a3f-871f-580bea4f441d', 'name': 'ctest-vn-17620028', 'tenant_id': '5cf25abd32114223bda55966b911fdbb', 'project_id': '5cf25abd32114223bda55966b911fdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4eff3da5-82fb-4eac-ac23-8cc1140dc78b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-vn-17620028'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-policy-allow-all-18389973']], 'subnet_ipam': [{'subnet_cidr': '22.105.4.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 05:27:25,123 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 05:27:25,464 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 05:27:25,495 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce
2025-10-27 05:27:25,508 - DEBUG - Requesting: http://10.0.0.254:8082/project/5cf25abd-3211-4223-bda5-5966b911fdbb
2025-10-27 05:27:25,589 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c81b777-78ab-4938-83bd-94c8a3726194
2025-10-27 05:27:25,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c81b777-78ab-4938-83bd-94c8a3726194
2025-10-27 05:27:25,611 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e69abfc1-202b-469b-aecf-e6fed186566d
2025-10-27 05:27:25,620 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e69abfc1-202b-469b-aecf-e6fed186566d
2025-10-27 05:27:25,628 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/041d6f83-f964-44a4-ad7a-a41a8eb3a139
2025-10-27 05:27:25,635 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 05:27:25,635 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c81b777-78ab-4938-83bd-94c8a3726194
2025-10-27 05:27:25,644 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e69abfc1-202b-469b-aecf-e6fed186566d
2025-10-27 05:27:25,657 - INFO - Verified VN network id 12 for VN 8c81b777-78ab-4938-83bd-94c8a3726194
2025-10-27 05:27:25,658 - INFO - Verifications in API Server for VN ctest-vn-17367603 passed
2025-10-27 05:27:25,658 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c81b777-78ab-4938-83bd-94c8a3726194
2025-10-27 05:27:25,666 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e69abfc1-202b-469b-aecf-e6fed186566d
2025-10-27 05:27:25,672 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e69abfc1-202b-469b-aecf-e6fed186566d
2025-10-27 05:27:25,678 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/041d6f83-f964-44a4-ad7a-a41a8eb3a139
2025-10-27 05:27:25,689 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17367603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73286508', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10124575161059068216', 'uuid-lslong': '9492907179023425940'}, 'enable': 'true', 'created': '2025-10-27T05:27:22', 'last-modified': '2025-10-27T05:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050266'}
2025-10-27 05:27:25,696 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 05:27:25,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17367603 passed
2025-10-27 05:27:25,696 - DEBUG - ====Verifying policy data for ctest-vn-17367603 in API_Server ======
2025-10-27 05:27:25,696 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 05:27:25,701 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce
2025-10-27 05:27:25,711 - DEBUG - Requesting: http://10.0.0.254:8082/project/5cf25abd-3211-4223-bda5-5966b911fdbb
2025-10-27 05:27:25,783 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c81b777-78ab-4938-83bd-94c8a3726194
2025-10-27 05:27:25,793 - DEBUG - ==>Verifying data for policy with id: b73edb91-570f-45a7-a154-7f53bbf222f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-policy-allow-all-18389973']
2025-10-27 05:27:25,793 - INFO - VN ctest-vn-17367603 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 05:27:25,793 - DEBUG - Verifying the vn in opserver
2025-10-27 05:27:25,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17367603 virtual network link through opserver 10.0.0.254
2025-10-27 05:27:25,793 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-27 05:27:26,132 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-27 05:27:26,192 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17367603', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17367603?flat'}
2025-10-27 05:27:26,192 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17367603 is found in opserver
2025-10-27 05:27:26,202 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 05:27:26,207 - DEBUG - VRF ids for VN ctest-vn-17367603: {}
2025-10-27 05:27:26,208 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 05:27:26,214 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce
2025-10-27 05:27:26,226 - DEBUG - Requesting: http://10.0.0.254:8082/project/5cf25abd-3211-4223-bda5-5966b911fdbb
2025-10-27 05:27:26,297 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f2753643-e900-4a3f-871f-580bea4f441d
2025-10-27 05:27:26,309 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f2753643-e900-4a3f-871f-580bea4f441d
2025-10-27 05:27:26,318 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d1f63740-1170-4baf-9172-62be1e264f7c
2025-10-27 05:27:26,326 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d1f63740-1170-4baf-9172-62be1e264f7c
2025-10-27 05:27:26,332 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/13cf81e4-0b4e-4015-9ce1-f1571a119f78
2025-10-27 05:27:26,339 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 05:27:26,339 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f2753643-e900-4a3f-871f-580bea4f441d
2025-10-27 05:27:26,348 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d1f63740-1170-4baf-9172-62be1e264f7c
2025-10-27 05:27:26,360 - INFO - Verified VN network id 13 for VN f2753643-e900-4a3f-871f-580bea4f441d
2025-10-27 05:27:26,361 - INFO - Verifications in API Server for VN ctest-vn-17620028 passed
2025-10-27 05:27:26,361 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f2753643-e900-4a3f-871f-580bea4f441d
2025-10-27 05:27:26,369 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d1f63740-1170-4baf-9172-62be1e264f7c
2025-10-27 05:27:26,375 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d1f63740-1170-4baf-9172-62be1e264f7c
2025-10-27 05:27:26,381 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/13cf81e4-0b4e-4015-9ce1-f1571a119f78
2025-10-27 05:27:26,391 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17620028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73286508', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17470929994753526335', 'uuid-lslong': '9736597727597249565'}, 'enable': 'true', 'created': '2025-10-27T05:27:23', 'last-modified': '2025-10-27T05:27:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506682'}
2025-10-27 05:27:26,398 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 05:27:26,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17620028 passed
2025-10-27 05:27:26,398 - DEBUG - ====Verifying policy data for ctest-vn-17620028 in API_Server ======
2025-10-27 05:27:26,398 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-27 05:27:26,404 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce
2025-10-27 05:27:26,417 - DEBUG - Requesting: http://10.0.0.254:8082/project/5cf25abd-3211-4223-bda5-5966b911fdbb
2025-10-27 05:27:26,489 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f2753643-e900-4a3f-871f-580bea4f441d
2025-10-27 05:27:26,499 - DEBUG - ==>Verifying data for policy with id: b73edb91-570f-45a7-a154-7f53bbf222f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-73286508', 'ctest-policy-allow-all-18389973']
2025-10-27 05:27:26,499 - INFO - VN ctest-vn-17620028 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 05:27:26,499 - DEBUG - Verifying the vn in opserver
2025-10-27 05:27:26,499 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17620028 virtual network link through opserver 10.0.0.254
2025-10-27 05:27:26,499 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-27 05:27:26,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17620028', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17620028?flat'}
2025-10-27 05:27:26,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73286508:ctest-vn-17620028 is found in opserver
2025-10-27 05:27:26,518 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 05:27:26,522 - DEBUG - VRF ids for VN ctest-vn-17620028: {}
2025-10-27 05:27:26,587 - DEBUG - Services list from nova: [