2025-10-19 09:13:57,466 - INFO - Domain Default found not creating
2025-10-19 09:13:57,632 - INFO - Project ctest-TestBasicPolicy-78641610 not found, creating it
2025-10-19 09:13:58,106 - INFO - Created Project:ctest-TestBasicPolicy-78641610, ID : 0995956a-5329-4beb-a957-2fae9d262833
2025-10-19 09:13:59,594 - INFO - ================================================================================
2025-10-19 09:13:59,594 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-19 09:13:59,594 - 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-19 09:13:59,854 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-19 09:13:59,854 - INFO - Initial checks done. Running the testcase now
2025-10-19 09:13:59,854 - INFO -
2025-10-19 09:14:00,416 - DEBUG - Response for create_network : {'network': {'id': '4fed627b-39aa-4dd1-b779-57f7c5d48d05', 'name': 'ctest-vn-50007479', 'tenant_id': '0995956a53294beba9572fae9d262833', 'project_id': '0995956a53294beba9572fae9d262833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-vn-50007479'], 'port_security_enabled': True, 'description': ''}}
2025-10-19 09:14:00,608 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f468d18-30b3-4095-af01-3c0643877f37', 'name': '', 'tenant_id': '0995956a53294beba9572fae9d262833', 'network_id': '4fed627b-39aa-4dd1-b779-57f7c5d48d05', 'ip_version': 4, 'cidr': '62.64.165.64/26', 'allocation_pools': [{'start': '62.64.165.66', 'end': '62.64.165.126'}], 'gateway_ip': '62.64.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.64.165.66', 'tags': [], 'project_id': '0995956a53294beba9572fae9d262833'}}
2025-10-19 09:14:00,629 - INFO - Created VN ctest-vn-50007479
2025-10-19 09:14:00,682 - DEBUG - VN ctest-vn-50007479 UUID is 4fed627b-39aa-4dd1-b779-57f7c5d48d05
2025-10-19 09:14:01,009 - DEBUG - Response for create_network : {'network': {'id': 'd81a381b-d076-40bb-a628-5c4c506aa224', 'name': 'ctest-vn-44686043', 'tenant_id': '0995956a53294beba9572fae9d262833', 'project_id': '0995956a53294beba9572fae9d262833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-vn-44686043'], 'port_security_enabled': True, 'description': ''}}
2025-10-19 09:14:01,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d4c49ea-6169-40b9-b82d-c78e48b80f49', 'name': '', 'tenant_id': '0995956a53294beba9572fae9d262833', 'network_id': 'd81a381b-d076-40bb-a628-5c4c506aa224', 'ip_version': 4, 'cidr': '99.28.117.0/26', 'allocation_pools': [{'start': '99.28.117.2', 'end': '99.28.117.62'}], 'gateway_ip': '99.28.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.28.117.2', 'tags': [], 'project_id': '0995956a53294beba9572fae9d262833'}}
2025-10-19 09:14:01,254 - INFO - Created VN ctest-vn-44686043
2025-10-19 09:14:01,306 - DEBUG - VN ctest-vn-44686043 UUID is d81a381b-d076-40bb-a628-5c4c506aa224
2025-10-19 09:14:01,433 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-50007479, 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-78641610:ctest-vn-44686043, 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-19 09:14:01,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fed627b-39aa-4dd1-b779-57f7c5d48d05', 'name': 'ctest-vn-50007479', 'tenant_id': '0995956a53294beba9572fae9d262833', 'project_id': '0995956a53294beba9572fae9d262833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f468d18-30b3-4095-af01-3c0643877f37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-vn-50007479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-policy-allow-all-90102309']], 'subnet_ipam': [{'subnet_cidr': '62.64.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-19 09:14:01,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd81a381b-d076-40bb-a628-5c4c506aa224', 'name': 'ctest-vn-44686043', 'tenant_id': '0995956a53294beba9572fae9d262833', 'project_id': '0995956a53294beba9572fae9d262833', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d4c49ea-6169-40b9-b82d-c78e48b80f49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-vn-44686043'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-policy-allow-all-90102309']], 'subnet_ipam': [{'subnet_cidr': '99.28.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-19 09:14:02,118 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 09:14:02,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 09:14:02,446 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e
2025-10-19 09:14:02,459 - DEBUG - Requesting: http://10.0.0.254:8082/project/0995956a-5329-4beb-a957-2fae9d262833
2025-10-19 09:14:02,532 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fed627b-39aa-4dd1-b779-57f7c5d48d05
2025-10-19 09:14:02,543 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fed627b-39aa-4dd1-b779-57f7c5d48d05
2025-10-19 09:14:02,552 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0622c7b6-1796-44ae-9ad4-211e81d8623e
2025-10-19 09:14:02,558 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0622c7b6-1796-44ae-9ad4-211e81d8623e
2025-10-19 09:14:02,565 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e59c3c3a-869c-47c4-a431-a3ecd5909ceb
2025-10-19 09:14:02,572 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-19 09:14:02,572 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fed627b-39aa-4dd1-b779-57f7c5d48d05
2025-10-19 09:14:02,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0622c7b6-1796-44ae-9ad4-211e81d8623e
2025-10-19 09:14:02,596 - INFO - Verified VN network id 11 for VN 4fed627b-39aa-4dd1-b779-57f7c5d48d05
2025-10-19 09:14:02,596 - INFO - Verifications in API Server for VN ctest-vn-50007479 passed
2025-10-19 09:14:02,596 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fed627b-39aa-4dd1-b779-57f7c5d48d05
2025-10-19 09:14:02,605 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0622c7b6-1796-44ae-9ad4-211e81d8623e
2025-10-19 09:14:02,612 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0622c7b6-1796-44ae-9ad4-211e81d8623e
2025-10-19 09:14:02,620 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e59c3c3a-869c-47c4-a431-a3ecd5909ceb
2025-10-19 09:14:02,633 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-50007479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78641610', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5759367779864694225', 'uuid-lslong': '13220694902810381573'}, 'enable': 'true', 'created': '2025-10-19T09:14:00', 'last-modified': '2025-10-19T09:14:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918950'}
2025-10-19 09:14:02,639 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-19 09:14:02,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50007479 passed
2025-10-19 09:14:02,640 - DEBUG - ====Verifying policy data for ctest-vn-50007479 in API_Server ======
2025-10-19 09:14:02,640 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 09:14:02,646 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e
2025-10-19 09:14:02,657 - DEBUG - Requesting: http://10.0.0.254:8082/project/0995956a-5329-4beb-a957-2fae9d262833
2025-10-19 09:14:02,729 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fed627b-39aa-4dd1-b779-57f7c5d48d05
2025-10-19 09:14:02,739 - DEBUG - ==>Verifying data for policy with id: 169aad89-3238-4802-8cff-b8337624fd51, fqn: ['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-policy-allow-all-90102309']
2025-10-19 09:14:02,739 - INFO - VN ctest-vn-50007479 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-19 09:14:02,739 - DEBUG - Verifying the vn in opserver
2025-10-19 09:14:02,739 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-50007479 virtual network link through opserver 10.0.0.254
2025-10-19 09:14:02,740 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-19 09:14:03,037 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-19 09:14:03,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-50007479', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-50007479?flat'}
2025-10-19 09:14:03,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-50007479 is found in opserver
2025-10-19 09:14:03,115 - DEBUG - Do not have enough data to verify VN in agent
2025-10-19 09:14:03,120 - DEBUG - VRF ids for VN ctest-vn-50007479: {}
2025-10-19 09:14:03,120 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 09:14:03,127 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e
2025-10-19 09:14:03,139 - DEBUG - Requesting: http://10.0.0.254:8082/project/0995956a-5329-4beb-a957-2fae9d262833
2025-10-19 09:14:03,214 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d81a381b-d076-40bb-a628-5c4c506aa224
2025-10-19 09:14:03,226 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d81a381b-d076-40bb-a628-5c4c506aa224
2025-10-19 09:14:03,236 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e834c709-2044-4a94-81d7-d01f1f23c172
2025-10-19 09:14:03,243 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e834c709-2044-4a94-81d7-d01f1f23c172
2025-10-19 09:14:03,250 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/55964a81-041b-45d9-9006-91d0eea44f56
2025-10-19 09:14:03,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-19 09:14:03,257 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d81a381b-d076-40bb-a628-5c4c506aa224
2025-10-19 09:14:03,266 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e834c709-2044-4a94-81d7-d01f1f23c172
2025-10-19 09:14:03,280 - INFO - Verified VN network id 12 for VN d81a381b-d076-40bb-a628-5c4c506aa224
2025-10-19 09:14:03,280 - INFO - Verifications in API Server for VN ctest-vn-44686043 passed
2025-10-19 09:14:03,280 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d81a381b-d076-40bb-a628-5c4c506aa224
2025-10-19 09:14:03,289 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e834c709-2044-4a94-81d7-d01f1f23c172
2025-10-19 09:14:03,297 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e834c709-2044-4a94-81d7-d01f1f23c172
2025-10-19 09:14:03,305 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/55964a81-041b-45d9-9006-91d0eea44f56
2025-10-19 09:14:03,317 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-44686043', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78641610', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15571820353699594427', 'uuid-lslong': '11972921092200899108'}, 'enable': 'true', 'created': '2025-10-19T09:14:00', 'last-modified': '2025-10-19T09:14:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372281'}
2025-10-19 09:14:03,323 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-19 09:14:03,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44686043 passed
2025-10-19 09:14:03,323 - DEBUG - ====Verifying policy data for ctest-vn-44686043 in API_Server ======
2025-10-19 09:14:03,323 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-19 09:14:03,329 - DEBUG - Requesting: http://10.0.0.254:8082/domain/94e2fb0d-e7fe-4dee-8a23-db56e512bd9e
2025-10-19 09:14:03,339 - DEBUG - Requesting: http://10.0.0.254:8082/project/0995956a-5329-4beb-a957-2fae9d262833
2025-10-19 09:14:03,409 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d81a381b-d076-40bb-a628-5c4c506aa224
2025-10-19 09:14:03,418 - DEBUG - ==>Verifying data for policy with id: 169aad89-3238-4802-8cff-b8337624fd51, fqn: ['default-domain', 'ctest-TestBasicPolicy-78641610', 'ctest-policy-allow-all-90102309']
2025-10-19 09:14:03,419 - INFO - VN ctest-vn-44686043 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-19 09:14:03,419 - DEBUG - Verifying the vn in opserver
2025-10-19 09:14:03,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-44686043 virtual network link through opserver 10.0.0.254
2025-10-19 09:14:03,419 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-19 09:14:03,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-44686043', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-44686043?flat'}
2025-10-19 09:14:03,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78641610:ctest-vn-44686043 is found in opserver
2025-10-19 09:14:03,438 - DEBUG - Do not have enough data to verify VN in agent
2025-10-19 09:14:03,442 - DEBUG - VRF ids for VN ctest-vn-44686043: {}
2025-10-19 09:14:03,510 - DEBUG - Services list from nova: [