2025-07-14 02:07:05,427 - INFO - Domain Default found not creating
2025-07-14 02:07:05,567 - INFO - Project ctest-TestBasicPolicy-07296675 not found, creating it
2025-07-14 02:07:06,036 - INFO - Created Project:ctest-TestBasicPolicy-07296675, ID : 4db10916-76f2-44f4-a627-4adb3599a505
2025-07-14 02:07:07,514 - INFO - ================================================================================
2025-07-14 02:07:07,514 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-14 02:07:07,514 - 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-07-14 02:07:07,779 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with
2025-07-14 02:07:07,779 - INFO - Initial checks done. Running the testcase now
2025-07-14 02:07:07,779 - INFO -
2025-07-14 02:07:08,390 - DEBUG - Response for create_network : {'network': {'id': 'f0d0a0b6-122f-42b5-b66a-7ca4f212f494', 'name': 'ctest-vn-00437984', 'tenant_id': '4db1091676f244f4a6274adb3599a505', 'project_id': '4db1091676f244f4a6274adb3599a505', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-vn-00437984'], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:07:08,540 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef8ba51a-2590-4a84-824f-2dbb50ed1317', 'name': '', 'tenant_id': '4db1091676f244f4a6274adb3599a505', 'network_id': 'f0d0a0b6-122f-42b5-b66a-7ca4f212f494', 'ip_version': 4, 'cidr': '220.219.48.64/26', 'allocation_pools': [{'start': '220.219.48.66', 'end': '220.219.48.126'}], 'gateway_ip': '220.219.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.219.48.66', 'tags': [], 'project_id': '4db1091676f244f4a6274adb3599a505'}}
2025-07-14 02:07:08,559 - INFO - Created VN ctest-vn-00437984
2025-07-14 02:07:08,609 - DEBUG - VN ctest-vn-00437984 UUID is f0d0a0b6-122f-42b5-b66a-7ca4f212f494
2025-07-14 02:07:08,918 - DEBUG - Response for create_network : {'network': {'id': 'b184f5b9-d0b0-4162-8fd8-f7fb1338b620', 'name': 'ctest-vn-06508320', 'tenant_id': '4db1091676f244f4a6274adb3599a505', 'project_id': '4db1091676f244f4a6274adb3599a505', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-vn-06508320'], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:07:09,108 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb7a96d5-2845-424b-aa01-ccd743855a48', 'name': '', 'tenant_id': '4db1091676f244f4a6274adb3599a505', 'network_id': 'b184f5b9-d0b0-4162-8fd8-f7fb1338b620', 'ip_version': 4, 'cidr': '208.222.191.128/26', 'allocation_pools': [{'start': '208.222.191.130', 'end': '208.222.191.190'}], 'gateway_ip': '208.222.191.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.222.191.130', 'tags': [], 'project_id': '4db1091676f244f4a6274adb3599a505'}}
2025-07-14 02:07:09,125 - INFO - Created VN ctest-vn-06508320
2025-07-14 02:07:09,177 - DEBUG - VN ctest-vn-06508320 UUID is b184f5b9-d0b0-4162-8fd8-f7fb1338b620
2025-07-14 02:07:09,299 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-00437984, 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-07296675:ctest-vn-06508320, 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-07-14 02:07:09,610 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0d0a0b6-122f-42b5-b66a-7ca4f212f494', 'name': 'ctest-vn-00437984', 'tenant_id': '4db1091676f244f4a6274adb3599a505', 'project_id': '4db1091676f244f4a6274adb3599a505', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef8ba51a-2590-4a84-824f-2dbb50ed1317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-vn-00437984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-policy-allow-all-31558204']], 'subnet_ipam': [{'subnet_cidr': '220.219.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:07:09,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b184f5b9-d0b0-4162-8fd8-f7fb1338b620', 'name': 'ctest-vn-06508320', 'tenant_id': '4db1091676f244f4a6274adb3599a505', 'project_id': '4db1091676f244f4a6274adb3599a505', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb7a96d5-2845-424b-aa01-ccd743855a48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-vn-06508320'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-policy-allow-all-31558204']], 'subnet_ipam': [{'subnet_cidr': '208.222.191.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-14 02:07:10,017 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-14 02:07:10,312 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-14 02:07:10,339 - DEBUG - Requesting: http://10.0.0.249:8082/domain/284e0e17-c510-4835-ba29-3ac94defaa9d
2025-07-14 02:07:10,353 - DEBUG - Requesting: http://10.0.0.249:8082/project/4db10916-76f2-44f4-a627-4adb3599a505
2025-07-14 02:07:10,430 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f0d0a0b6-122f-42b5-b66a-7ca4f212f494
2025-07-14 02:07:10,442 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f0d0a0b6-122f-42b5-b66a-7ca4f212f494
2025-07-14 02:07:10,453 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0057792e-9ef6-4c07-9c4b-c631b8d95196
2025-07-14 02:07:10,463 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0057792e-9ef6-4c07-9c4b-c631b8d95196
2025-07-14 02:07:10,470 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/81668495-0b2b-4354-9dc3-8a4d5c0a2995
2025-07-14 02:07:10,476 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-14 02:07:10,476 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f0d0a0b6-122f-42b5-b66a-7ca4f212f494
2025-07-14 02:07:10,485 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0057792e-9ef6-4c07-9c4b-c631b8d95196
2025-07-14 02:07:10,500 - INFO - Verified VN network id 9 for VN f0d0a0b6-122f-42b5-b66a-7ca4f212f494
2025-07-14 02:07:10,501 - INFO - Verifications in API Server for VN ctest-vn-00437984 passed
2025-07-14 02:07:10,501 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f0d0a0b6-122f-42b5-b66a-7ca4f212f494
2025-07-14 02:07:10,511 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0057792e-9ef6-4c07-9c4b-c631b8d95196
2025-07-14 02:07:10,520 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0057792e-9ef6-4c07-9c4b-c631b8d95196
2025-07-14 02:07:10,528 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/81668495-0b2b-4354-9dc3-8a4d5c0a2995
2025-07-14 02:07:10,541 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-00437984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07296675', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17352546068108100277', 'uuid-lslong': '13144455510312023188'}, 'enable': 'true', 'created': '2025-07-14T02:07:08', 'last-modified': '2025-07-14T02:07:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964150'}
2025-07-14 02:07:10,547 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-14 02:07:10,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00437984 passed
2025-07-14 02:07:10,547 - DEBUG - ====Verifying policy data for ctest-vn-00437984 in API_Server ======
2025-07-14 02:07:10,547 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-14 02:07:10,553 - DEBUG - Requesting: http://10.0.0.249:8082/domain/284e0e17-c510-4835-ba29-3ac94defaa9d
2025-07-14 02:07:10,565 - DEBUG - Requesting: http://10.0.0.249:8082/project/4db10916-76f2-44f4-a627-4adb3599a505
2025-07-14 02:07:10,638 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f0d0a0b6-122f-42b5-b66a-7ca4f212f494
2025-07-14 02:07:10,648 - DEBUG - ==>Verifying data for policy with id: 16af4a8d-b930-4b07-8cc0-8245cc7926d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-policy-allow-all-31558204']
2025-07-14 02:07:10,648 - INFO - VN ctest-vn-00437984 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-14 02:07:10,648 - DEBUG - Verifying the vn in opserver
2025-07-14 02:07:10,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-00437984 virtual network link through opserver 10.0.0.249
2025-07-14 02:07:10,648 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-14 02:07:10,949 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-14 02:07:11,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-00437984', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-00437984?flat'}
2025-07-14 02:07:11,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-00437984 is found in opserver
2025-07-14 02:07:11,017 - DEBUG - Do not have enough data to verify VN in agent
2025-07-14 02:07:11,022 - DEBUG - VRF ids for VN ctest-vn-00437984: {}
2025-07-14 02:07:11,022 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-14 02:07:11,028 - DEBUG - Requesting: http://10.0.0.249:8082/domain/284e0e17-c510-4835-ba29-3ac94defaa9d
2025-07-14 02:07:11,040 - DEBUG - Requesting: http://10.0.0.249:8082/project/4db10916-76f2-44f4-a627-4adb3599a505
2025-07-14 02:07:11,113 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b184f5b9-d0b0-4162-8fd8-f7fb1338b620
2025-07-14 02:07:11,126 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b184f5b9-d0b0-4162-8fd8-f7fb1338b620
2025-07-14 02:07:11,135 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0d8d887c-3ae9-4992-b0b6-473b64923cf9
2025-07-14 02:07:11,142 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0d8d887c-3ae9-4992-b0b6-473b64923cf9
2025-07-14 02:07:11,148 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/50a44959-9e05-47b3-b757-2d49ded293b9
2025-07-14 02:07:11,154 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-14 02:07:11,154 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b184f5b9-d0b0-4162-8fd8-f7fb1338b620
2025-07-14 02:07:11,163 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0d8d887c-3ae9-4992-b0b6-473b64923cf9
2025-07-14 02:07:11,176 - INFO - Verified VN network id 10 for VN b184f5b9-d0b0-4162-8fd8-f7fb1338b620
2025-07-14 02:07:11,176 - INFO - Verifications in API Server for VN ctest-vn-06508320 passed
2025-07-14 02:07:11,176 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b184f5b9-d0b0-4162-8fd8-f7fb1338b620
2025-07-14 02:07:11,238 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0d8d887c-3ae9-4992-b0b6-473b64923cf9
2025-07-14 02:07:11,246 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0d8d887c-3ae9-4992-b0b6-473b64923cf9
2025-07-14 02:07:11,253 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/50a44959-9e05-47b3-b757-2d49ded293b9
2025-07-14 02:07:11,265 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-06508320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07296675', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12791619020058018146', 'uuid-lslong': '10365307200124532256'}, 'enable': 'true', 'created': '2025-07-14T02:07:08', 'last-modified': '2025-07-14T02:07:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449139'}
2025-07-14 02:07:11,272 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-14 02:07:11,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06508320 passed
2025-07-14 02:07:11,272 - DEBUG - ====Verifying policy data for ctest-vn-06508320 in API_Server ======
2025-07-14 02:07:11,272 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-14 02:07:11,278 - DEBUG - Requesting: http://10.0.0.249:8082/domain/284e0e17-c510-4835-ba29-3ac94defaa9d
2025-07-14 02:07:11,291 - DEBUG - Requesting: http://10.0.0.249:8082/project/4db10916-76f2-44f4-a627-4adb3599a505
2025-07-14 02:07:11,368 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b184f5b9-d0b0-4162-8fd8-f7fb1338b620
2025-07-14 02:07:11,379 - DEBUG - ==>Verifying data for policy with id: 16af4a8d-b930-4b07-8cc0-8245cc7926d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-07296675', 'ctest-policy-allow-all-31558204']
2025-07-14 02:07:11,379 - INFO - VN ctest-vn-06508320 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-14 02:07:11,379 - DEBUG - Verifying the vn in opserver
2025-07-14 02:07:11,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-06508320 virtual network link through opserver 10.0.0.249
2025-07-14 02:07:11,379 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-14 02:07:11,390 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-06508320', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-06508320?flat'}
2025-07-14 02:07:11,391 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07296675:ctest-vn-06508320 is found in opserver
2025-07-14 02:07:11,401 - DEBUG - Do not have enough data to verify VN in agent
2025-07-14 02:07:11,406 - DEBUG - VRF ids for VN ctest-vn-06508320: {}
2025-07-14 02:07:11,471 - DEBUG - Services list from nova: [