2025-11-04 22:49:27,744 - INFO - Domain Default found not creating
2025-11-04 22:49:27,906 - INFO - Project ctest-TestBasicPolicy-62332095 not found, creating it
2025-11-04 22:49:28,345 - INFO - Created Project:ctest-TestBasicPolicy-62332095, ID : a97d8164-d3b2-4414-b430-89a5b4965f2e
2025-11-04 22:49:29,723 - INFO - ================================================================================
2025-11-04 22:49:29,724 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 22:49:29,724 - 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-11-04 22:49:29,979 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-11-04 22:49:29,979 - INFO - Initial checks done. Running the testcase now
2025-11-04 22:49:29,979 - INFO -
2025-11-04 22:49:30,499 - DEBUG - Response for create_network : {'network': {'id': '26999ced-2eae-4761-95f0-a50f80ba4b6e', 'name': 'ctest-vn-09099334', 'tenant_id': 'a97d8164d3b24414b43089a5b4965f2e', 'project_id': 'a97d8164d3b24414b43089a5b4965f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-vn-09099334'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:49:30,711 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fb03567-d447-48b8-b215-da21330205ea', 'name': '', 'tenant_id': 'a97d8164d3b24414b43089a5b4965f2e', 'network_id': '26999ced-2eae-4761-95f0-a50f80ba4b6e', 'ip_version': 4, 'cidr': '30.104.162.0/26', 'allocation_pools': [{'start': '30.104.162.2', 'end': '30.104.162.62'}], 'gateway_ip': '30.104.162.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.104.162.2', 'tags': [], 'project_id': 'a97d8164d3b24414b43089a5b4965f2e'}}
2025-11-04 22:49:30,726 - INFO - Created VN ctest-vn-09099334
2025-11-04 22:49:30,774 - DEBUG - VN ctest-vn-09099334 UUID is 26999ced-2eae-4761-95f0-a50f80ba4b6e
2025-11-04 22:49:31,091 - DEBUG - Response for create_network : {'network': {'id': 'baee07d7-926a-4c20-964e-4b3080bf52bd', 'name': 'ctest-vn-65069372', 'tenant_id': 'a97d8164d3b24414b43089a5b4965f2e', 'project_id': 'a97d8164d3b24414b43089a5b4965f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-vn-65069372'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:49:31,298 - DEBUG - Response for create_subnet : {'subnet': {'id': '5639d834-4437-4696-9227-c1fc4b45b645', 'name': '', 'tenant_id': 'a97d8164d3b24414b43089a5b4965f2e', 'network_id': 'baee07d7-926a-4c20-964e-4b3080bf52bd', 'ip_version': 4, 'cidr': '136.132.54.64/26', 'allocation_pools': [{'start': '136.132.54.66', 'end': '136.132.54.126'}], 'gateway_ip': '136.132.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.132.54.66', 'tags': [], 'project_id': 'a97d8164d3b24414b43089a5b4965f2e'}}
2025-11-04 22:49:31,316 - INFO - Created VN ctest-vn-65069372
2025-11-04 22:49:31,370 - DEBUG - VN ctest-vn-65069372 UUID is baee07d7-926a-4c20-964e-4b3080bf52bd
2025-11-04 22:49:31,514 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-09099334, 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-62332095:ctest-vn-65069372, 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-11-04 22:49:31,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26999ced-2eae-4761-95f0-a50f80ba4b6e', 'name': 'ctest-vn-09099334', 'tenant_id': 'a97d8164d3b24414b43089a5b4965f2e', 'project_id': 'a97d8164d3b24414b43089a5b4965f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fb03567-d447-48b8-b215-da21330205ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-vn-09099334'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-policy-allow-all-96476953']], 'subnet_ipam': [{'subnet_cidr': '30.104.162.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:49:32,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'baee07d7-926a-4c20-964e-4b3080bf52bd', 'name': 'ctest-vn-65069372', 'tenant_id': 'a97d8164d3b24414b43089a5b4965f2e', 'project_id': 'a97d8164d3b24414b43089a5b4965f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5639d834-4437-4696-9227-c1fc4b45b645'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-vn-65069372'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-policy-allow-all-96476953']], 'subnet_ipam': [{'subnet_cidr': '136.132.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 22:49:32,174 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-04 22:49:32,471 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-04 22:49:32,496 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a
2025-11-04 22:49:32,508 - DEBUG - Requesting: http://10.0.0.57:8082/project/a97d8164-d3b2-4414-b430-89a5b4965f2e
2025-11-04 22:49:32,575 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/26999ced-2eae-4761-95f0-a50f80ba4b6e
2025-11-04 22:49:32,584 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/26999ced-2eae-4761-95f0-a50f80ba4b6e
2025-11-04 22:49:32,593 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a0981957-18fd-4f73-a2dd-9088d2f29504
2025-11-04 22:49:32,598 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a0981957-18fd-4f73-a2dd-9088d2f29504
2025-11-04 22:49:32,603 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a2ae627a-27fc-4c98-bc89-b1caed26523f
2025-11-04 22:49:32,608 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 22:49:32,608 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/26999ced-2eae-4761-95f0-a50f80ba4b6e
2025-11-04 22:49:32,615 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a0981957-18fd-4f73-a2dd-9088d2f29504
2025-11-04 22:49:32,626 - INFO - Verified VN network id 12 for VN 26999ced-2eae-4761-95f0-a50f80ba4b6e
2025-11-04 22:49:32,626 - INFO - Verifications in API Server for VN ctest-vn-09099334 passed
2025-11-04 22:49:32,626 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/26999ced-2eae-4761-95f0-a50f80ba4b6e
2025-11-04 22:49:32,633 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a0981957-18fd-4f73-a2dd-9088d2f29504
2025-11-04 22:49:32,638 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a0981957-18fd-4f73-a2dd-9088d2f29504
2025-11-04 22:49:32,644 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a2ae627a-27fc-4c98-bc89-b1caed26523f
2025-11-04 22:49:32,653 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-09099334', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62332095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2781426787382347617', 'uuid-lslong': '10804316992064605038'}, 'enable': 'true', 'created': '2025-11-04T22:49:30', 'last-modified': '2025-11-04T22:49:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.877062'}
2025-11-04 22:49:32,659 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 22:49:32,659 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09099334 passed
2025-11-04 22:49:32,659 - DEBUG - ====Verifying policy data for ctest-vn-09099334 in API_Server ======
2025-11-04 22:49:32,659 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-04 22:49:32,664 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a
2025-11-04 22:49:32,672 - DEBUG - Requesting: http://10.0.0.57:8082/project/a97d8164-d3b2-4414-b430-89a5b4965f2e
2025-11-04 22:49:32,738 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/26999ced-2eae-4761-95f0-a50f80ba4b6e
2025-11-04 22:49:32,746 - DEBUG - ==>Verifying data for policy with id: 5a0ac471-b1d0-4c29-9396-6e1bcb2b2324, fqn: ['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-policy-allow-all-96476953']
2025-11-04 22:49:32,746 - INFO - VN ctest-vn-09099334 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 22:49:32,746 - DEBUG - Verifying the vn in opserver
2025-11-04 22:49:32,746 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-09099334 virtual network link through opserver 10.0.0.57
2025-11-04 22:49:32,747 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-04 22:49:33,036 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-04 22:49:33,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-09099334', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-09099334?flat'}
2025-11-04 22:49:33,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-09099334 is found in opserver
2025-11-04 22:49:33,096 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 22:49:33,100 - DEBUG - VRF ids for VN ctest-vn-09099334: {}
2025-11-04 22:49:33,100 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-04 22:49:33,104 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a
2025-11-04 22:49:33,114 - DEBUG - Requesting: http://10.0.0.57:8082/project/a97d8164-d3b2-4414-b430-89a5b4965f2e
2025-11-04 22:49:33,187 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/baee07d7-926a-4c20-964e-4b3080bf52bd
2025-11-04 22:49:33,197 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/baee07d7-926a-4c20-964e-4b3080bf52bd
2025-11-04 22:49:33,204 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cbba6b07-07a0-4022-8d4d-50bba69ed377
2025-11-04 22:49:33,211 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cbba6b07-07a0-4022-8d4d-50bba69ed377
2025-11-04 22:49:33,216 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9ffa434f-3c31-4dee-8863-ba238f6ce948
2025-11-04 22:49:33,221 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 22:49:33,221 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/baee07d7-926a-4c20-964e-4b3080bf52bd
2025-11-04 22:49:33,227 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cbba6b07-07a0-4022-8d4d-50bba69ed377
2025-11-04 22:49:33,238 - INFO - Verified VN network id 13 for VN baee07d7-926a-4c20-964e-4b3080bf52bd
2025-11-04 22:49:33,238 - INFO - Verifications in API Server for VN ctest-vn-65069372 passed
2025-11-04 22:49:33,238 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/baee07d7-926a-4c20-964e-4b3080bf52bd
2025-11-04 22:49:33,245 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cbba6b07-07a0-4022-8d4d-50bba69ed377
2025-11-04 22:49:33,250 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cbba6b07-07a0-4022-8d4d-50bba69ed377
2025-11-04 22:49:33,255 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9ffa434f-3c31-4dee-8863-ba238f6ce948
2025-11-04 22:49:33,263 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-65069372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62332095', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13469712157967535136', 'uuid-lslong': '10830676825563157181'}, 'enable': 'true', 'created': '2025-11-04T22:49:31', 'last-modified': '2025-11-04T22:49:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.267544'}
2025-11-04 22:49:33,268 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 22:49:33,268 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65069372 passed
2025-11-04 22:49:33,268 - DEBUG - ====Verifying policy data for ctest-vn-65069372 in API_Server ======
2025-11-04 22:49:33,268 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-04 22:49:33,272 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a
2025-11-04 22:49:33,281 - DEBUG - Requesting: http://10.0.0.57:8082/project/a97d8164-d3b2-4414-b430-89a5b4965f2e
2025-11-04 22:49:33,348 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/baee07d7-926a-4c20-964e-4b3080bf52bd
2025-11-04 22:49:33,356 - DEBUG - ==>Verifying data for policy with id: 5a0ac471-b1d0-4c29-9396-6e1bcb2b2324, fqn: ['default-domain', 'ctest-TestBasicPolicy-62332095', 'ctest-policy-allow-all-96476953']
2025-11-04 22:49:33,356 - INFO - VN ctest-vn-65069372 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 22:49:33,356 - DEBUG - Verifying the vn in opserver
2025-11-04 22:49:33,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-65069372 virtual network link through opserver 10.0.0.57
2025-11-04 22:49:33,356 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-04 22:49:33,364 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-65069372', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-65069372?flat'}
2025-11-04 22:49:33,364 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62332095:ctest-vn-65069372 is found in opserver
2025-11-04 22:49:33,373 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 22:49:33,377 - DEBUG - VRF ids for VN ctest-vn-65069372: {}
2025-11-04 22:49:33,429 - DEBUG - Services list from nova: [