2025-06-09 02:02:12,012 - INFO - Reading existing Domain with UUID 7aee698f-3aa6-4114-8aa9-0ff605a1286e
2025-06-09 02:02:12,023 - INFO - Using existing domain ['admin_domain'](7aee698f-3aa6-4114-8aa9-0ff605a1286e)
2025-06-09 02:02:12,226 - INFO - Project ctest-TestBasicPolicy-83511205 not found, creating it
2025-06-09 02:02:12,761 - INFO - Created Project:ctest-TestBasicPolicy-83511205, ID : bad4c167-8987-45e2-91e3-f24297f29ecc
2025-06-09 02:02:14,848 - INFO - ================================================================================
2025-06-09 02:02:14,848 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 02:02:14,848 - 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-09 02:02:15,226 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2025-06-09 02:02:15,226 - INFO - Initial checks done. Running the testcase now
2025-06-09 02:02:15,226 - INFO -
2025-06-09 02:02:15,984 - DEBUG - Response for create_network : {'network': {'id': '5794131b-a726-4e02-9085-cfb200d8bb4c', 'name': 'ctest-vn-13254161', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-13254161'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-06-09 02:02:16,254 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2cfe012-cbde-4922-925e-3199dba6e32a', 'name': '', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'network_id': '5794131b-a726-4e02-9085-cfb200d8bb4c', 'ip_version': 4, 'cidr': '172.210.144.192/26', 'allocation_pools': [{'start': '172.210.144.194', 'end': '172.210.144.254'}], 'gateway_ip': '172.210.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-09T02:02:16.149255', 'updated_at': '2025-06-09T02:02:16.149255', 'dns_server_address': '172.210.144.194', 'tags': [], 'project_id': 'bad4c167898745e291e3f24297f29ecc'}}
2025-06-09 02:02:16,319 - INFO - Created VN ctest-vn-13254161
2025-06-09 02:02:16,377 - DEBUG - VN ctest-vn-13254161 UUID is 5794131b-a726-4e02-9085-cfb200d8bb4c
2025-06-09 02:02:17,089 - DEBUG - Response for create_network : {'network': {'id': '78bbe989-db79-47be-aa31-f5ff0f98439f', 'name': 'ctest-vn-08208948', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-08208948'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-06-09 02:02:17,365 - DEBUG - Response for create_subnet : {'subnet': {'id': '381a8812-5d01-45aa-a02f-7d75c91ff2e2', 'name': '', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'network_id': '78bbe989-db79-47be-aa31-f5ff0f98439f', 'ip_version': 4, 'cidr': '63.68.133.192/26', 'allocation_pools': [{'start': '63.68.133.194', 'end': '63.68.133.254'}], 'gateway_ip': '63.68.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-09T02:02:17.266820', 'updated_at': '2025-06-09T02:02:17.266820', 'dns_server_address': '63.68.133.194', 'tags': [], 'project_id': 'bad4c167898745e291e3f24297f29ecc'}}
2025-06-09 02:02:17,431 - INFO - Created VN ctest-vn-08208948
2025-06-09 02:02:17,485 - DEBUG - VN ctest-vn-08208948 UUID is 78bbe989-db79-47be-aa31-f5ff0f98439f
2025-06-09 02:02:17,700 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948, 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-09 02:02:18,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5794131b-a726-4e02-9085-cfb200d8bb4c', 'name': 'ctest-vn-13254161', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2cfe012-cbde-4922-925e-3199dba6e32a'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-13254161'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051']], 'subnet_ipam': [{'subnet_cidr': '172.210.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-09T02:02:15.904522', 'updated_at': '2025-06-09T02:02:16.164643'}}
2025-06-09 02:02:18,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78bbe989-db79-47be-aa31-f5ff0f98439f', 'name': 'ctest-vn-08208948', 'tenant_id': 'bad4c167898745e291e3f24297f29ecc', 'project_id': 'bad4c167898745e291e3f24297f29ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['381a8812-5d01-45aa-a02f-7d75c91ff2e2'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-vn-08208948'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051']], 'subnet_ipam': [{'subnet_cidr': '63.68.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-09T02:02:16.969661', 'updated_at': '2025-06-09T02:02:17.280538'}}
2025-06-09 02:02:18,665 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-09 02:02:19,012 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-09 02:02:19,096 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e
2025-06-09 02:02:19,186 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc
2025-06-09 02:02:19,267 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c
2025-06-09 02:02:19,328 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c
2025-06-09 02:02:19,449 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec
2025-06-09 02:02:19,519 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec
2025-06-09 02:02:19,574 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/63e95044-a8e9-4393-9774-19a86ac6f278
2025-06-09 02:02:19,692 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:02:19,704 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c
2025-06-09 02:02:19,763 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec
2025-06-09 02:02:19,828 - INFO - Verified VN network id 8 for VN 5794131b-a726-4e02-9085-cfb200d8bb4c
2025-06-09 02:02:19,828 - INFO - Verifications in API Server for VN ctest-vn-13254161 passed
2025-06-09 02:02:19,828 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c
2025-06-09 02:02:19,883 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec
2025-06-09 02:02:19,938 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/839fe885-cafc-4e2e-959d-6c5e9222cfec
2025-06-09 02:02:19,998 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/63e95044-a8e9-4393-9774-19a86ac6f278
2025-06-09 02:02:20,102 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83511205', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6310689987342257666', 'uuid-lslong': '10413958076789472076'}, 'enable': 'true', 'created': '2025-06-09T02:02:15', 'last-modified': '2025-06-09T02:02:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.996172'}
2025-06-09 02:02:20,155 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:02:20,155 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13254161 passed
2025-06-09 02:02:20,155 - DEBUG - ====Verifying policy data for ctest-vn-13254161 in API_Server ======
2025-06-09 02:02:20,155 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-09 02:02:20,214 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e
2025-06-09 02:02:20,274 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc
2025-06-09 02:02:20,359 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/5794131b-a726-4e02-9085-cfb200d8bb4c
2025-06-09 02:02:20,415 - DEBUG - ==>Verifying data for policy with id: 328aaedf-08a7-40ad-863e-421854cdab0a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051']
2025-06-09 02:02:20,415 - INFO - VN ctest-vn-13254161 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:02:20,415 - DEBUG - Verifying the vn in opserver
2025-06-09 02:02:20,415 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161 virtual network link through opserver 10.0.0.33
2025-06-09 02:02:20,416 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-09 02:02:20,757 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-09 02:02:20,881 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161?flat'}
2025-06-09 02:02:20,881 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-13254161 is found in opserver
2025-06-09 02:02:20,982 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:02:21,038 - DEBUG - VRF ids for VN ctest-vn-13254161: {}
2025-06-09 02:02:21,038 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-09 02:02:21,095 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e
2025-06-09 02:02:21,154 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc
2025-06-09 02:02:21,234 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f
2025-06-09 02:02:21,291 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f
2025-06-09 02:02:21,351 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13
2025-06-09 02:02:21,406 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13
2025-06-09 02:02:21,462 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/2681bc04-e384-43df-83df-13e9c112b97d
2025-06-09 02:02:21,518 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:02:21,518 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f
2025-06-09 02:02:21,575 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13
2025-06-09 02:02:21,638 - INFO - Verified VN network id 9 for VN 78bbe989-db79-47be-aa31-f5ff0f98439f
2025-06-09 02:02:21,639 - INFO - Verifications in API Server for VN ctest-vn-08208948 passed
2025-06-09 02:02:21,639 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f
2025-06-09 02:02:21,695 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13
2025-06-09 02:02:21,750 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/30903838-12c7-4afd-8f59-c5675a48ea13
2025-06-09 02:02:21,810 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/2681bc04-e384-43df-83df-13e9c112b97d
2025-06-09 02:02:21,914 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83511205', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8699803883498194878', 'uuid-lslong': '12263853736133673887'}, 'enable': 'true', 'created': '2025-06-09T02:02:16', 'last-modified': '2025-06-09T02:02:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.460861'}
2025-06-09 02:02:21,967 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:02:21,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08208948 passed
2025-06-09 02:02:21,967 - DEBUG - ====Verifying policy data for ctest-vn-08208948 in API_Server ======
2025-06-09 02:02:21,967 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-09 02:02:22,021 - DEBUG - Requesting: https://10.0.0.33:8082/domain/7aee698f-3aa6-4114-8aa9-0ff605a1286e
2025-06-09 02:02:22,086 - DEBUG - Requesting: https://10.0.0.33:8082/project/bad4c167-8987-45e2-91e3-f24297f29ecc
2025-06-09 02:02:22,174 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/78bbe989-db79-47be-aa31-f5ff0f98439f
2025-06-09 02:02:22,231 - DEBUG - ==>Verifying data for policy with id: 328aaedf-08a7-40ad-863e-421854cdab0a, fqn: ['admin_domain', 'ctest-TestBasicPolicy-83511205', 'ctest-policy-allow-all-80765051']
2025-06-09 02:02:22,231 - INFO - VN ctest-vn-08208948 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:02:22,231 - DEBUG - Verifying the vn in opserver
2025-06-09 02:02:22,231 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948 virtual network link through opserver 10.0.0.33
2025-06-09 02:02:22,231 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-09 02:02:22,290 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948?flat'}
2025-06-09 02:02:22,290 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-83511205:ctest-vn-08208948 is found in opserver
2025-06-09 02:02:22,514 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:02:22,565 - DEBUG - VRF ids for VN ctest-vn-08208948: {}
2025-06-09 02:02:22,638 - DEBUG - Services list from nova: [