2025-06-19 17:30:18,331 - INFO - Domain Default found not creating
2025-06-19 17:30:18,500 - INFO - Project ctest-TestBasicPolicy-47311242 not found, creating it
2025-06-19 17:30:18,985 - INFO - Created Project:ctest-TestBasicPolicy-47311242, ID : d6f640a3-2613-4381-83ed-4fb787b800b1
2025-06-19 17:30:20,504 - INFO - ================================================================================
2025-06-19 17:30:20,504 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 17:30:20,504 - 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-06-19 17:30:20,760 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-19 17:30:20,760 - INFO - Initial checks done. Running the testcase now
2025-06-19 17:30:20,760 - INFO -
2025-06-19 17:30:21,337 - DEBUG - Response for create_network : {'network': {'id': 'dc45bae2-7bed-4ae3-a7bc-9c1df30621da', 'name': 'ctest-vn-25534172', 'tenant_id': 'd6f640a32613438183ed4fb787b800b1', 'project_id': 'd6f640a32613438183ed4fb787b800b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-vn-25534172'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 17:30:21,531 - DEBUG - Response for create_subnet : {'subnet': {'id': '86be5c93-f484-4888-8876-d002c9df605e', 'name': '', 'tenant_id': 'd6f640a32613438183ed4fb787b800b1', 'network_id': 'dc45bae2-7bed-4ae3-a7bc-9c1df30621da', 'ip_version': 4, 'cidr': '158.91.227.192/26', 'allocation_pools': [{'start': '158.91.227.194', 'end': '158.91.227.254'}], 'gateway_ip': '158.91.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.91.227.194', 'tags': [], 'project_id': 'd6f640a32613438183ed4fb787b800b1'}}
2025-06-19 17:30:21,549 - INFO - Created VN ctest-vn-25534172
2025-06-19 17:30:21,605 - DEBUG - VN ctest-vn-25534172 UUID is dc45bae2-7bed-4ae3-a7bc-9c1df30621da
2025-06-19 17:30:21,908 - DEBUG - Response for create_network : {'network': {'id': '0048e7f3-d582-4624-9755-311aa07347d1', 'name': 'ctest-vn-92980151', 'tenant_id': 'd6f640a32613438183ed4fb787b800b1', 'project_id': 'd6f640a32613438183ed4fb787b800b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-vn-92980151'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 17:30:22,119 - DEBUG - Response for create_subnet : {'subnet': {'id': '523bbbfd-d641-48a1-a030-a3c7352bd63a', 'name': '', 'tenant_id': 'd6f640a32613438183ed4fb787b800b1', 'network_id': '0048e7f3-d582-4624-9755-311aa07347d1', 'ip_version': 4, 'cidr': '72.66.246.64/26', 'allocation_pools': [{'start': '72.66.246.66', 'end': '72.66.246.126'}], 'gateway_ip': '72.66.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.66.246.66', 'tags': [], 'project_id': 'd6f640a32613438183ed4fb787b800b1'}}
2025-06-19 17:30:22,139 - INFO - Created VN ctest-vn-92980151
2025-06-19 17:30:22,193 - DEBUG - VN ctest-vn-92980151 UUID is 0048e7f3-d582-4624-9755-311aa07347d1
2025-06-19 17:30:22,313 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-25534172, 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-47311242:ctest-vn-92980151, 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-06-19 17:30:22,622 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc45bae2-7bed-4ae3-a7bc-9c1df30621da', 'name': 'ctest-vn-25534172', 'tenant_id': 'd6f640a32613438183ed4fb787b800b1', 'project_id': 'd6f640a32613438183ed4fb787b800b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86be5c93-f484-4888-8876-d002c9df605e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-vn-25534172'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-policy-allow-all-99107822']], 'subnet_ipam': [{'subnet_cidr': '158.91.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 17:30:22,870 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0048e7f3-d582-4624-9755-311aa07347d1', 'name': 'ctest-vn-92980151', 'tenant_id': 'd6f640a32613438183ed4fb787b800b1', 'project_id': 'd6f640a32613438183ed4fb787b800b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['523bbbfd-d641-48a1-a030-a3c7352bd63a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-vn-92980151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-policy-allow-all-99107822']], 'subnet_ipam': [{'subnet_cidr': '72.66.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 17:30:23,041 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 17:30:23,338 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 17:30:23,370 - DEBUG - Requesting: http://10.0.0.38:8082/domain/344b0948-0657-4767-83b3-b86d48e75eb8
2025-06-19 17:30:23,384 - DEBUG - Requesting: http://10.0.0.38:8082/project/d6f640a3-2613-4381-83ed-4fb787b800b1
2025-06-19 17:30:23,466 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc45bae2-7bed-4ae3-a7bc-9c1df30621da
2025-06-19 17:30:23,479 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc45bae2-7bed-4ae3-a7bc-9c1df30621da
2025-06-19 17:30:23,489 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3d4beba-d976-46dc-9de2-1e71de729adf
2025-06-19 17:30:23,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3d4beba-d976-46dc-9de2-1e71de729adf
2025-06-19 17:30:23,504 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b173c83c-8ed8-406e-b8e1-603d559f97f8
2025-06-19 17:30:23,512 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 17:30:23,512 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc45bae2-7bed-4ae3-a7bc-9c1df30621da
2025-06-19 17:30:23,522 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3d4beba-d976-46dc-9de2-1e71de729adf
2025-06-19 17:30:23,541 - INFO - Verified VN network id 8 for VN dc45bae2-7bed-4ae3-a7bc-9c1df30621da
2025-06-19 17:30:23,541 - INFO - Verifications in API Server for VN ctest-vn-25534172 passed
2025-06-19 17:30:23,541 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc45bae2-7bed-4ae3-a7bc-9c1df30621da
2025-06-19 17:30:23,552 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3d4beba-d976-46dc-9de2-1e71de729adf
2025-06-19 17:30:23,560 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3d4beba-d976-46dc-9de2-1e71de729adf
2025-06-19 17:30:23,567 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b173c83c-8ed8-406e-b8e1-603d559f97f8
2025-06-19 17:30:23,580 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-25534172', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47311242', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15872297943641705187', 'uuid-lslong': '12086707152400818650'}, 'enable': 'true', 'created': '2025-06-19T17:30:21', 'last-modified': '2025-06-19T17:30:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983162'}
2025-06-19 17:30:23,587 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 17:30:23,587 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25534172 passed
2025-06-19 17:30:23,587 - DEBUG - ====Verifying policy data for ctest-vn-25534172 in API_Server ======
2025-06-19 17:30:23,587 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 17:30:23,594 - DEBUG - Requesting: http://10.0.0.38:8082/domain/344b0948-0657-4767-83b3-b86d48e75eb8
2025-06-19 17:30:23,606 - DEBUG - Requesting: http://10.0.0.38:8082/project/d6f640a3-2613-4381-83ed-4fb787b800b1
2025-06-19 17:30:23,679 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dc45bae2-7bed-4ae3-a7bc-9c1df30621da
2025-06-19 17:30:23,690 - DEBUG - ==>Verifying data for policy with id: 9109ee87-5712-4ad5-8c95-0971dfd6e9ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-policy-allow-all-99107822']
2025-06-19 17:30:23,690 - INFO - VN ctest-vn-25534172 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 17:30:23,690 - DEBUG - Verifying the vn in opserver
2025-06-19 17:30:23,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-25534172 virtual network link through opserver 10.0.0.38
2025-06-19 17:30:23,690 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 17:30:23,993 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 17:30:24,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-25534172', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-25534172?flat'}
2025-06-19 17:30:24,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-25534172 is found in opserver
2025-06-19 17:30:24,070 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 17:30:24,076 - DEBUG - VRF ids for VN ctest-vn-25534172: {}
2025-06-19 17:30:24,076 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 17:30:24,082 - DEBUG - Requesting: http://10.0.0.38:8082/domain/344b0948-0657-4767-83b3-b86d48e75eb8
2025-06-19 17:30:24,095 - DEBUG - Requesting: http://10.0.0.38:8082/project/d6f640a3-2613-4381-83ed-4fb787b800b1
2025-06-19 17:30:24,175 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0048e7f3-d582-4624-9755-311aa07347d1
2025-06-19 17:30:24,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0048e7f3-d582-4624-9755-311aa07347d1
2025-06-19 17:30:24,202 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f3c4beb-3dc2-486a-bf9f-da6e1c0df529
2025-06-19 17:30:24,211 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f3c4beb-3dc2-486a-bf9f-da6e1c0df529
2025-06-19 17:30:24,218 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d1aefefd-1d9a-425d-ae9b-b8f990749c95
2025-06-19 17:30:24,227 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 17:30:24,227 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0048e7f3-d582-4624-9755-311aa07347d1
2025-06-19 17:30:24,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f3c4beb-3dc2-486a-bf9f-da6e1c0df529
2025-06-19 17:30:24,254 - INFO - Verified VN network id 9 for VN 0048e7f3-d582-4624-9755-311aa07347d1
2025-06-19 17:30:24,254 - INFO - Verifications in API Server for VN ctest-vn-92980151 passed
2025-06-19 17:30:24,255 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0048e7f3-d582-4624-9755-311aa07347d1
2025-06-19 17:30:24,266 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f3c4beb-3dc2-486a-bf9f-da6e1c0df529
2025-06-19 17:30:24,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0f3c4beb-3dc2-486a-bf9f-da6e1c0df529
2025-06-19 17:30:24,284 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d1aefefd-1d9a-425d-ae9b-b8f990749c95
2025-06-19 17:30:24,297 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-92980151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47311242', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '20521232768321060', 'uuid-lslong': '10904676063178344401'}, 'enable': 'true', 'created': '2025-06-19T17:30:21', 'last-modified': '2025-06-19T17:30:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449316'}
2025-06-19 17:30:24,304 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 17:30:24,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92980151 passed
2025-06-19 17:30:24,304 - DEBUG - ====Verifying policy data for ctest-vn-92980151 in API_Server ======
2025-06-19 17:30:24,304 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-19 17:30:24,311 - DEBUG - Requesting: http://10.0.0.38:8082/domain/344b0948-0657-4767-83b3-b86d48e75eb8
2025-06-19 17:30:24,324 - DEBUG - Requesting: http://10.0.0.38:8082/project/d6f640a3-2613-4381-83ed-4fb787b800b1
2025-06-19 17:30:24,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0048e7f3-d582-4624-9755-311aa07347d1
2025-06-19 17:30:24,411 - DEBUG - ==>Verifying data for policy with id: 9109ee87-5712-4ad5-8c95-0971dfd6e9ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-47311242', 'ctest-policy-allow-all-99107822']
2025-06-19 17:30:24,411 - INFO - VN ctest-vn-92980151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 17:30:24,411 - DEBUG - Verifying the vn in opserver
2025-06-19 17:30:24,411 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-92980151 virtual network link through opserver 10.0.0.38
2025-06-19 17:30:24,411 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-19 17:30:24,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-92980151', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-92980151?flat'}
2025-06-19 17:30:24,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47311242:ctest-vn-92980151 is found in opserver
2025-06-19 17:30:24,434 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 17:30:24,439 - DEBUG - VRF ids for VN ctest-vn-92980151: {}
2025-06-19 17:30:24,497 - DEBUG - Services list from nova: [