2025-06-18 09:14:24,867 - INFO - Domain Default found not creating
2025-06-18 09:14:25,022 - INFO - Project ctest-TestBasicPolicy-77896428 not found, creating it
2025-06-18 09:14:25,528 - INFO - Created Project:ctest-TestBasicPolicy-77896428, ID : 243849b5-a19a-4265-adea-3969a3f93174
2025-06-18 09:14:27,194 - INFO - ================================================================================
2025-06-18 09:14:27,194 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 09:14:27,194 - 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-18 09:14:27,448 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-06-18 09:14:27,448 - INFO - Initial checks done. Running the testcase now
2025-06-18 09:14:27,448 - INFO -
2025-06-18 09:14:28,059 - DEBUG - Response for create_network : {'network': {'id': 'b3b1ac4b-565e-4e65-9b91-b1e625cced4a', 'name': 'ctest-vn-00531099', 'tenant_id': '243849b5a19a4265adea3969a3f93174', 'project_id': '243849b5a19a4265adea3969a3f93174', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-vn-00531099'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:28,220 - DEBUG - Response for create_subnet : {'subnet': {'id': '77989871-7c6b-4a81-b569-5842eefacf4c', 'name': '', 'tenant_id': '243849b5a19a4265adea3969a3f93174', 'network_id': 'b3b1ac4b-565e-4e65-9b91-b1e625cced4a', 'ip_version': 4, 'cidr': '17.118.13.64/26', 'allocation_pools': [{'start': '17.118.13.66', 'end': '17.118.13.126'}], 'gateway_ip': '17.118.13.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.118.13.66', 'tags': [], 'project_id': '243849b5a19a4265adea3969a3f93174'}}
2025-06-18 09:14:28,240 - INFO - Created VN ctest-vn-00531099
2025-06-18 09:14:28,293 - DEBUG - VN ctest-vn-00531099 UUID is b3b1ac4b-565e-4e65-9b91-b1e625cced4a
2025-06-18 09:14:28,631 - DEBUG - Response for create_network : {'network': {'id': '5efe3b7e-7763-44d7-946a-15677a87bfac', 'name': 'ctest-vn-60915846', 'tenant_id': '243849b5a19a4265adea3969a3f93174', 'project_id': '243849b5a19a4265adea3969a3f93174', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-vn-60915846'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:28,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '76f9d577-d0cb-4e0e-99a5-9ca8b4492c4d', 'name': '', 'tenant_id': '243849b5a19a4265adea3969a3f93174', 'network_id': '5efe3b7e-7763-44d7-946a-15677a87bfac', 'ip_version': 4, 'cidr': '54.128.48.128/26', 'allocation_pools': [{'start': '54.128.48.130', 'end': '54.128.48.190'}], 'gateway_ip': '54.128.48.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.128.48.130', 'tags': [], 'project_id': '243849b5a19a4265adea3969a3f93174'}}
2025-06-18 09:14:28,879 - INFO - Created VN ctest-vn-60915846
2025-06-18 09:14:28,933 - DEBUG - VN ctest-vn-60915846 UUID is 5efe3b7e-7763-44d7-946a-15677a87bfac
2025-06-18 09:14:29,066 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-00531099, 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-77896428:ctest-vn-60915846, 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-18 09:14:29,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3b1ac4b-565e-4e65-9b91-b1e625cced4a', 'name': 'ctest-vn-00531099', 'tenant_id': '243849b5a19a4265adea3969a3f93174', 'project_id': '243849b5a19a4265adea3969a3f93174', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77989871-7c6b-4a81-b569-5842eefacf4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-vn-00531099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-policy-allow-all-85425104']], 'subnet_ipam': [{'subnet_cidr': '17.118.13.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:29,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5efe3b7e-7763-44d7-946a-15677a87bfac', 'name': 'ctest-vn-60915846', 'tenant_id': '243849b5a19a4265adea3969a3f93174', 'project_id': '243849b5a19a4265adea3969a3f93174', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76f9d577-d0cb-4e0e-99a5-9ca8b4492c4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-vn-60915846'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-policy-allow-all-85425104']], 'subnet_ipam': [{'subnet_cidr': '54.128.48.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:14:29,841 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-18 09:14:30,185 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-18 09:14:30,215 - DEBUG - Requesting: http://10.0.0.27:8082/domain/383b4f04-063a-456f-a421-5e003f8f1820
2025-06-18 09:14:30,229 - DEBUG - Requesting: http://10.0.0.27:8082/project/243849b5-a19a-4265-adea-3969a3f93174
2025-06-18 09:14:30,380 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b3b1ac4b-565e-4e65-9b91-b1e625cced4a
2025-06-18 09:14:30,394 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b3b1ac4b-565e-4e65-9b91-b1e625cced4a
2025-06-18 09:14:30,405 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b4dab5e4-1066-40a0-a0da-6bfdb90d20d1
2025-06-18 09:14:30,414 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b4dab5e4-1066-40a0-a0da-6bfdb90d20d1
2025-06-18 09:14:30,424 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2274ea2f-93bd-4bc4-b5bb-ae66c44a7d74
2025-06-18 09:14:30,432 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 09:14:30,432 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b3b1ac4b-565e-4e65-9b91-b1e625cced4a
2025-06-18 09:14:30,443 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b4dab5e4-1066-40a0-a0da-6bfdb90d20d1
2025-06-18 09:14:30,460 - INFO - Verified VN network id 9 for VN b3b1ac4b-565e-4e65-9b91-b1e625cced4a
2025-06-18 09:14:30,460 - INFO - Verifications in API Server for VN ctest-vn-00531099 passed
2025-06-18 09:14:30,460 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b3b1ac4b-565e-4e65-9b91-b1e625cced4a
2025-06-18 09:14:30,471 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b4dab5e4-1066-40a0-a0da-6bfdb90d20d1
2025-06-18 09:14:30,479 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b4dab5e4-1066-40a0-a0da-6bfdb90d20d1
2025-06-18 09:14:30,487 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2274ea2f-93bd-4bc4-b5bb-ae66c44a7d74
2025-06-18 09:14:30,500 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-00531099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77896428', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12948319843238432357', 'uuid-lslong': '11209936549536656714'}, 'enable': 'true', 'created': '2025-06-18T09:14:28', 'last-modified': '2025-06-18T09:14:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.117215'}
2025-06-18 09:14:30,508 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 09:14:30,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00531099 passed
2025-06-18 09:14:30,508 - DEBUG - ====Verifying policy data for ctest-vn-00531099 in API_Server ======
2025-06-18 09:14:30,508 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-18 09:14:30,514 - DEBUG - Requesting: http://10.0.0.27:8082/domain/383b4f04-063a-456f-a421-5e003f8f1820
2025-06-18 09:14:30,527 - DEBUG - Requesting: http://10.0.0.27:8082/project/243849b5-a19a-4265-adea-3969a3f93174
2025-06-18 09:14:30,675 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b3b1ac4b-565e-4e65-9b91-b1e625cced4a
2025-06-18 09:14:30,694 - DEBUG - ==>Verifying data for policy with id: 29d684fb-908a-4331-bfe7-90b8c7f39ea5, fqn: ['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-policy-allow-all-85425104']
2025-06-18 09:14:30,694 - INFO - VN ctest-vn-00531099 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 09:14:30,695 - DEBUG - Verifying the vn in opserver
2025-06-18 09:14:30,695 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-00531099 virtual network link through opserver 10.0.0.27
2025-06-18 09:14:30,695 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-18 09:14:31,076 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-18 09:14:31,201 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-00531099', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-00531099?flat'}
2025-06-18 09:14:31,201 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-00531099 is found in opserver
2025-06-18 09:14:31,228 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 09:14:31,237 - DEBUG - VRF ids for VN ctest-vn-00531099: {}
2025-06-18 09:14:31,237 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-18 09:14:31,272 - DEBUG - Requesting: http://10.0.0.27:8082/domain/383b4f04-063a-456f-a421-5e003f8f1820
2025-06-18 09:14:31,300 - DEBUG - Requesting: http://10.0.0.27:8082/project/243849b5-a19a-4265-adea-3969a3f93174
2025-06-18 09:14:31,391 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5efe3b7e-7763-44d7-946a-15677a87bfac
2025-06-18 09:14:31,411 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5efe3b7e-7763-44d7-946a-15677a87bfac
2025-06-18 09:14:31,429 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/617c56fc-d153-4c87-b331-ad25386a1499
2025-06-18 09:14:31,445 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/617c56fc-d153-4c87-b331-ad25386a1499
2025-06-18 09:14:31,453 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d77c2e90-ee75-4f7b-b6c9-f45787e0420c
2025-06-18 09:14:31,460 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 09:14:31,460 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5efe3b7e-7763-44d7-946a-15677a87bfac
2025-06-18 09:14:31,476 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/617c56fc-d153-4c87-b331-ad25386a1499
2025-06-18 09:14:31,500 - INFO - Verified VN network id 10 for VN 5efe3b7e-7763-44d7-946a-15677a87bfac
2025-06-18 09:14:31,500 - INFO - Verifications in API Server for VN ctest-vn-60915846 passed
2025-06-18 09:14:31,500 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5efe3b7e-7763-44d7-946a-15677a87bfac
2025-06-18 09:14:31,512 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/617c56fc-d153-4c87-b331-ad25386a1499
2025-06-18 09:14:31,520 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/617c56fc-d153-4c87-b331-ad25386a1499
2025-06-18 09:14:31,527 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d77c2e90-ee75-4f7b-b6c9-f45787e0420c
2025-06-18 09:14:31,543 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-60915846', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77896428', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6844973898004645079', 'uuid-lslong': '10694383799326195628'}, 'enable': 'true', 'created': '2025-06-18T09:14:28', 'last-modified': '2025-06-18T09:14:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.896072'}
2025-06-18 09:14:31,551 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 09:14:31,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60915846 passed
2025-06-18 09:14:31,551 - DEBUG - ====Verifying policy data for ctest-vn-60915846 in API_Server ======
2025-06-18 09:14:31,551 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-18 09:14:31,559 - DEBUG - Requesting: http://10.0.0.27:8082/domain/383b4f04-063a-456f-a421-5e003f8f1820
2025-06-18 09:14:31,574 - DEBUG - Requesting: http://10.0.0.27:8082/project/243849b5-a19a-4265-adea-3969a3f93174
2025-06-18 09:14:31,656 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5efe3b7e-7763-44d7-946a-15677a87bfac
2025-06-18 09:14:31,669 - DEBUG - ==>Verifying data for policy with id: 29d684fb-908a-4331-bfe7-90b8c7f39ea5, fqn: ['default-domain', 'ctest-TestBasicPolicy-77896428', 'ctest-policy-allow-all-85425104']
2025-06-18 09:14:31,669 - INFO - VN ctest-vn-60915846 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 09:14:31,669 - DEBUG - Verifying the vn in opserver
2025-06-18 09:14:31,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-60915846 virtual network link through opserver 10.0.0.27
2025-06-18 09:14:31,669 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-18 09:14:31,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-60915846', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-60915846?flat'}
2025-06-18 09:14:31,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77896428:ctest-vn-60915846 is found in opserver
2025-06-18 09:14:31,692 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 09:14:31,698 - DEBUG - VRF ids for VN ctest-vn-60915846: {}
2025-06-18 09:14:31,756 - DEBUG - Services list from nova: [