2025-10-07 15:49:06,500 - INFO - Domain Default found not creating
2025-10-07 15:49:06,681 - INFO - Project ctest-TestBasicPolicy-33437384 not found, creating it
2025-10-07 15:49:07,154 - INFO - Created Project:ctest-TestBasicPolicy-33437384, ID : a01d72cc-3fbf-45f1-af40-ed678351f387
2025-10-07 15:49:08,733 - INFO - ================================================================================
2025-10-07 15:49:08,733 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-07 15:49:08,734 - 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-07 15:49:08,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-07 15:49:08,991 - INFO - Initial checks done. Running the testcase now
2025-10-07 15:49:08,991 - INFO -
2025-10-07 15:49:09,590 - DEBUG - Response for create_network : {'network': {'id': 'ba7ff6d6-35b5-470f-bb13-69a3ac908982', 'name': 'ctest-vn-89183173', 'tenant_id': 'a01d72cc3fbf45f1af40ed678351f387', 'project_id': 'a01d72cc3fbf45f1af40ed678351f387', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-vn-89183173'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 15:49:09,792 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ca80d3f-b1ad-4a1a-a976-26d10d3e5aa5', 'name': '', 'tenant_id': 'a01d72cc3fbf45f1af40ed678351f387', 'network_id': 'ba7ff6d6-35b5-470f-bb13-69a3ac908982', 'ip_version': 4, 'cidr': '129.180.248.192/26', 'allocation_pools': [{'start': '129.180.248.194', 'end': '129.180.248.254'}], 'gateway_ip': '129.180.248.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.180.248.194', 'tags': [], 'project_id': 'a01d72cc3fbf45f1af40ed678351f387'}}
2025-10-07 15:49:09,815 - INFO - Created VN ctest-vn-89183173
2025-10-07 15:49:09,869 - DEBUG - VN ctest-vn-89183173 UUID is ba7ff6d6-35b5-470f-bb13-69a3ac908982
2025-10-07 15:49:10,179 - DEBUG - Response for create_network : {'network': {'id': 'bc05e623-def8-4ab8-863d-c1ad3d460139', 'name': 'ctest-vn-11355778', 'tenant_id': 'a01d72cc3fbf45f1af40ed678351f387', 'project_id': 'a01d72cc3fbf45f1af40ed678351f387', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-vn-11355778'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 15:49:10,334 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fb70b45-312b-4504-bad8-bef74bb579fe', 'name': '', 'tenant_id': 'a01d72cc3fbf45f1af40ed678351f387', 'network_id': 'bc05e623-def8-4ab8-863d-c1ad3d460139', 'ip_version': 4, 'cidr': '206.54.155.128/26', 'allocation_pools': [{'start': '206.54.155.130', 'end': '206.54.155.190'}], 'gateway_ip': '206.54.155.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.54.155.130', 'tags': [], 'project_id': 'a01d72cc3fbf45f1af40ed678351f387'}}
2025-10-07 15:49:10,353 - INFO - Created VN ctest-vn-11355778
2025-10-07 15:49:10,405 - DEBUG - VN ctest-vn-11355778 UUID is bc05e623-def8-4ab8-863d-c1ad3d460139
2025-10-07 15:49:10,521 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-89183173, 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-33437384:ctest-vn-11355778, 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-07 15:49:10,808 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba7ff6d6-35b5-470f-bb13-69a3ac908982', 'name': 'ctest-vn-89183173', 'tenant_id': 'a01d72cc3fbf45f1af40ed678351f387', 'project_id': 'a01d72cc3fbf45f1af40ed678351f387', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ca80d3f-b1ad-4a1a-a976-26d10d3e5aa5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-vn-89183173'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-policy-allow-all-17764683']], 'subnet_ipam': [{'subnet_cidr': '129.180.248.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 15:49:11,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc05e623-def8-4ab8-863d-c1ad3d460139', 'name': 'ctest-vn-11355778', 'tenant_id': 'a01d72cc3fbf45f1af40ed678351f387', 'project_id': 'a01d72cc3fbf45f1af40ed678351f387', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fb70b45-312b-4504-bad8-bef74bb579fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-vn-11355778'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-policy-allow-all-17764683']], 'subnet_ipam': [{'subnet_cidr': '206.54.155.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 15:49:11,221 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 15:49:11,559 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 15:49:11,586 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dfa7a7b9-40e0-4046-a557-36da65b9b4a0
2025-10-07 15:49:11,599 - DEBUG - Requesting: http://10.0.0.254:8082/project/a01d72cc-3fbf-45f1-af40-ed678351f387
2025-10-07 15:49:11,671 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba7ff6d6-35b5-470f-bb13-69a3ac908982
2025-10-07 15:49:11,684 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba7ff6d6-35b5-470f-bb13-69a3ac908982
2025-10-07 15:49:11,694 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/92bd8a46-786b-4959-bf82-6a217eab2695
2025-10-07 15:49:11,702 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/92bd8a46-786b-4959-bf82-6a217eab2695
2025-10-07 15:49:11,709 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/87408d2b-8465-4e18-8f3a-ec341da1dd5e
2025-10-07 15:49:11,715 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 15:49:11,715 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba7ff6d6-35b5-470f-bb13-69a3ac908982
2025-10-07 15:49:11,724 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/92bd8a46-786b-4959-bf82-6a217eab2695
2025-10-07 15:49:11,737 - INFO - Verified VN network id 11 for VN ba7ff6d6-35b5-470f-bb13-69a3ac908982
2025-10-07 15:49:11,737 - INFO - Verifications in API Server for VN ctest-vn-89183173 passed
2025-10-07 15:49:11,737 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba7ff6d6-35b5-470f-bb13-69a3ac908982
2025-10-07 15:49:11,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/92bd8a46-786b-4959-bf82-6a217eab2695
2025-10-07 15:49:11,751 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/92bd8a46-786b-4959-bf82-6a217eab2695
2025-10-07 15:49:11,758 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/87408d2b-8465-4e18-8f3a-ec341da1dd5e
2025-10-07 15:49:11,768 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-89183173', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33437384', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13438731212981356303', 'uuid-lslong': '13480234261345765762'}, 'enable': 'true', 'created': '2025-10-07T15:49:09', 'last-modified': '2025-10-07T15:49:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986038'}
2025-10-07 15:49:11,777 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 15:49:11,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89183173 passed
2025-10-07 15:49:11,777 - DEBUG - ====Verifying policy data for ctest-vn-89183173 in API_Server ======
2025-10-07 15:49:11,777 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 15:49:11,784 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dfa7a7b9-40e0-4046-a557-36da65b9b4a0
2025-10-07 15:49:11,797 - DEBUG - Requesting: http://10.0.0.254:8082/project/a01d72cc-3fbf-45f1-af40-ed678351f387
2025-10-07 15:49:11,867 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ba7ff6d6-35b5-470f-bb13-69a3ac908982
2025-10-07 15:49:11,876 - DEBUG - ==>Verifying data for policy with id: 2c976712-15ac-4754-b3d5-53f9f216e3e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-policy-allow-all-17764683']
2025-10-07 15:49:11,877 - INFO - VN ctest-vn-89183173 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 15:49:11,877 - DEBUG - Verifying the vn in opserver
2025-10-07 15:49:11,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-89183173 virtual network link through opserver 10.0.0.254
2025-10-07 15:49:11,877 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-07 15:49:12,215 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-07 15:49:12,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-89183173', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-89183173?flat'}
2025-10-07 15:49:12,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-89183173 is found in opserver
2025-10-07 15:49:12,278 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 15:49:12,282 - DEBUG - VRF ids for VN ctest-vn-89183173: {}
2025-10-07 15:49:12,282 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 15:49:12,288 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dfa7a7b9-40e0-4046-a557-36da65b9b4a0
2025-10-07 15:49:12,299 - DEBUG - Requesting: http://10.0.0.254:8082/project/a01d72cc-3fbf-45f1-af40-ed678351f387
2025-10-07 15:49:12,368 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc05e623-def8-4ab8-863d-c1ad3d460139
2025-10-07 15:49:12,380 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc05e623-def8-4ab8-863d-c1ad3d460139
2025-10-07 15:49:12,390 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66efe848-b50a-42f4-adb4-8bdf36b81360
2025-10-07 15:49:12,398 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66efe848-b50a-42f4-adb4-8bdf36b81360
2025-10-07 15:49:12,404 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7e95457d-802a-44c1-b072-563a06642122
2025-10-07 15:49:12,410 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 15:49:12,411 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc05e623-def8-4ab8-863d-c1ad3d460139
2025-10-07 15:49:12,422 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66efe848-b50a-42f4-adb4-8bdf36b81360
2025-10-07 15:49:12,436 - INFO - Verified VN network id 12 for VN bc05e623-def8-4ab8-863d-c1ad3d460139
2025-10-07 15:49:12,436 - INFO - Verifications in API Server for VN ctest-vn-11355778 passed
2025-10-07 15:49:12,436 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc05e623-def8-4ab8-863d-c1ad3d460139
2025-10-07 15:49:12,445 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66efe848-b50a-42f4-adb4-8bdf36b81360
2025-10-07 15:49:12,452 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66efe848-b50a-42f4-adb4-8bdf36b81360
2025-10-07 15:49:12,458 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7e95457d-802a-44c1-b072-563a06642122
2025-10-07 15:49:12,469 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-11355778', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33437384', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13548488095753063096', 'uuid-lslong': '9673100524463194425'}, 'enable': 'true', 'created': '2025-10-07T15:49:10', 'last-modified': '2025-10-07T15:49:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443750'}
2025-10-07 15:49:12,475 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 15:49:12,475 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11355778 passed
2025-10-07 15:49:12,476 - DEBUG - ====Verifying policy data for ctest-vn-11355778 in API_Server ======
2025-10-07 15:49:12,476 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-07 15:49:12,481 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dfa7a7b9-40e0-4046-a557-36da65b9b4a0
2025-10-07 15:49:12,493 - DEBUG - Requesting: http://10.0.0.254:8082/project/a01d72cc-3fbf-45f1-af40-ed678351f387
2025-10-07 15:49:12,565 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc05e623-def8-4ab8-863d-c1ad3d460139
2025-10-07 15:49:12,575 - DEBUG - ==>Verifying data for policy with id: 2c976712-15ac-4754-b3d5-53f9f216e3e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-33437384', 'ctest-policy-allow-all-17764683']
2025-10-07 15:49:12,575 - INFO - VN ctest-vn-11355778 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 15:49:12,575 - DEBUG - Verifying the vn in opserver
2025-10-07 15:49:12,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-11355778 virtual network link through opserver 10.0.0.254
2025-10-07 15:49:12,575 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-07 15:49:12,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-11355778', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-11355778?flat'}
2025-10-07 15:49:12,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33437384:ctest-vn-11355778 is found in opserver
2025-10-07 15:49:12,595 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 15:49:12,600 - DEBUG - VRF ids for VN ctest-vn-11355778: {}
2025-10-07 15:49:12,660 - DEBUG - Services list from nova: [