2025-10-16 10:42:41,164 - INFO - Domain Default found not creating
2025-10-16 10:42:41,323 - INFO - Project ctest-TestBasicPolicy-61397078 not found, creating it
2025-10-16 10:42:41,822 - INFO - Created Project:ctest-TestBasicPolicy-61397078, ID : cc600642-8fd0-417a-a854-6549c7ddfee2
2025-10-16 10:42:43,363 - INFO - ================================================================================
2025-10-16 10:42:43,364 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 10:42:43,364 - 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-16 10:42:43,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.18': '0'}} with
2025-10-16 10:42:43,617 - INFO - Initial checks done. Running the testcase now
2025-10-16 10:42:43,617 - INFO -
2025-10-16 10:42:44,217 - DEBUG - Response for create_network : {'network': {'id': '9f17a244-182e-47f5-a9ec-82d5046e1032', 'name': 'ctest-vn-36664637', 'tenant_id': 'cc6006428fd0417aa8546549c7ddfee2', 'project_id': 'cc6006428fd0417aa8546549c7ddfee2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-vn-36664637'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:42:44,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '84502576-b692-4d8c-a364-0299401913c5', 'name': '', 'tenant_id': 'cc6006428fd0417aa8546549c7ddfee2', 'network_id': '9f17a244-182e-47f5-a9ec-82d5046e1032', 'ip_version': 4, 'cidr': '215.33.167.192/26', 'allocation_pools': [{'start': '215.33.167.194', 'end': '215.33.167.254'}], 'gateway_ip': '215.33.167.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.33.167.194', 'tags': [], 'project_id': 'cc6006428fd0417aa8546549c7ddfee2'}}
2025-10-16 10:42:44,447 - INFO - Created VN ctest-vn-36664637
2025-10-16 10:42:44,500 - DEBUG - VN ctest-vn-36664637 UUID is 9f17a244-182e-47f5-a9ec-82d5046e1032
2025-10-16 10:42:44,836 - DEBUG - Response for create_network : {'network': {'id': 'd6176fbe-ea69-4c46-a817-3c4776347a75', 'name': 'ctest-vn-19912441', 'tenant_id': 'cc6006428fd0417aa8546549c7ddfee2', 'project_id': 'cc6006428fd0417aa8546549c7ddfee2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-vn-19912441'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:42:45,051 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ef5ee94-fa0d-4d4d-84f4-df67ec7b477c', 'name': '', 'tenant_id': 'cc6006428fd0417aa8546549c7ddfee2', 'network_id': 'd6176fbe-ea69-4c46-a817-3c4776347a75', 'ip_version': 4, 'cidr': '174.9.239.64/26', 'allocation_pools': [{'start': '174.9.239.66', 'end': '174.9.239.126'}], 'gateway_ip': '174.9.239.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.9.239.66', 'tags': [], 'project_id': 'cc6006428fd0417aa8546549c7ddfee2'}}
2025-10-16 10:42:45,069 - INFO - Created VN ctest-vn-19912441
2025-10-16 10:42:45,124 - DEBUG - VN ctest-vn-19912441 UUID is d6176fbe-ea69-4c46-a817-3c4776347a75
2025-10-16 10:42:45,275 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-36664637, 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-61397078:ctest-vn-19912441, 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-16 10:42:45,563 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f17a244-182e-47f5-a9ec-82d5046e1032', 'name': 'ctest-vn-36664637', 'tenant_id': 'cc6006428fd0417aa8546549c7ddfee2', 'project_id': 'cc6006428fd0417aa8546549c7ddfee2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84502576-b692-4d8c-a364-0299401913c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-vn-36664637'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-policy-allow-all-52400234']], 'subnet_ipam': [{'subnet_cidr': '215.33.167.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:42:45,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6176fbe-ea69-4c46-a817-3c4776347a75', 'name': 'ctest-vn-19912441', 'tenant_id': 'cc6006428fd0417aa8546549c7ddfee2', 'project_id': 'cc6006428fd0417aa8546549c7ddfee2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ef5ee94-fa0d-4d4d-84f4-df67ec7b477c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-vn-19912441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-policy-allow-all-52400234']], 'subnet_ipam': [{'subnet_cidr': '174.9.239.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 10:42:45,936 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-16 10:42:46,292 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-16 10:42:46,319 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289
2025-10-16 10:42:46,332 - DEBUG - Requesting: http://10.0.0.48:8082/project/cc600642-8fd0-417a-a854-6549c7ddfee2
2025-10-16 10:42:46,404 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9f17a244-182e-47f5-a9ec-82d5046e1032
2025-10-16 10:42:46,415 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9f17a244-182e-47f5-a9ec-82d5046e1032
2025-10-16 10:42:46,424 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d3aca13c-5eb6-41ab-bbfb-b8bd0be6eb8e
2025-10-16 10:42:46,430 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d3aca13c-5eb6-41ab-bbfb-b8bd0be6eb8e
2025-10-16 10:42:46,436 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9df9bfd7-4777-4098-8edf-75415ca46cee
2025-10-16 10:42:46,442 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 10:42:46,442 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9f17a244-182e-47f5-a9ec-82d5046e1032
2025-10-16 10:42:46,450 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d3aca13c-5eb6-41ab-bbfb-b8bd0be6eb8e
2025-10-16 10:42:46,462 - INFO - Verified VN network id 11 for VN 9f17a244-182e-47f5-a9ec-82d5046e1032
2025-10-16 10:42:46,463 - INFO - Verifications in API Server for VN ctest-vn-36664637 passed
2025-10-16 10:42:46,463 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9f17a244-182e-47f5-a9ec-82d5046e1032
2025-10-16 10:42:46,472 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d3aca13c-5eb6-41ab-bbfb-b8bd0be6eb8e
2025-10-16 10:42:46,479 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d3aca13c-5eb6-41ab-bbfb-b8bd0be6eb8e
2025-10-16 10:42:46,485 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9df9bfd7-4777-4098-8edf-75415ca46cee
2025-10-16 10:42:46,497 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-36664637', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61397078', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11463809789842049013', 'uuid-lslong': '12244305338327502898'}, 'enable': 'true', 'created': '2025-10-16T10:42:44', 'last-modified': '2025-10-16T10:42:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953823'}
2025-10-16 10:42:46,503 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 10:42:46,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36664637 passed
2025-10-16 10:42:46,503 - DEBUG - ====Verifying policy data for ctest-vn-36664637 in API_Server ======
2025-10-16 10:42:46,503 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-16 10:42:46,508 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289
2025-10-16 10:42:46,518 - DEBUG - Requesting: http://10.0.0.48:8082/project/cc600642-8fd0-417a-a854-6549c7ddfee2
2025-10-16 10:42:46,590 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9f17a244-182e-47f5-a9ec-82d5046e1032
2025-10-16 10:42:46,599 - DEBUG - ==>Verifying data for policy with id: 45df7f4f-500c-457e-ae13-cef3d3f28d65, fqn: ['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-policy-allow-all-52400234']
2025-10-16 10:42:46,600 - INFO - VN ctest-vn-36664637 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 10:42:46,600 - DEBUG - Verifying the vn in opserver
2025-10-16 10:42:46,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-36664637 virtual network link through opserver 10.0.0.48
2025-10-16 10:42:46,600 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-16 10:42:46,932 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-16 10:42:46,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-36664637', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-36664637?flat'}
2025-10-16 10:42:46,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-36664637 is found in opserver
2025-10-16 10:42:46,999 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 10:42:47,004 - DEBUG - VRF ids for VN ctest-vn-36664637: {}
2025-10-16 10:42:47,004 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-16 10:42:47,010 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289
2025-10-16 10:42:47,022 - DEBUG - Requesting: http://10.0.0.48:8082/project/cc600642-8fd0-417a-a854-6549c7ddfee2
2025-10-16 10:42:47,096 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6176fbe-ea69-4c46-a817-3c4776347a75
2025-10-16 10:42:47,108 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6176fbe-ea69-4c46-a817-3c4776347a75
2025-10-16 10:42:47,117 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/6e774866-bd13-46e5-a504-4d2f3c1e88eb
2025-10-16 10:42:47,123 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/6e774866-bd13-46e5-a504-4d2f3c1e88eb
2025-10-16 10:42:47,131 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7c36173f-5a38-4cc5-a4c2-b83b593a1b38
2025-10-16 10:42:47,137 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 10:42:47,137 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6176fbe-ea69-4c46-a817-3c4776347a75
2025-10-16 10:42:47,146 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/6e774866-bd13-46e5-a504-4d2f3c1e88eb
2025-10-16 10:42:47,161 - INFO - Verified VN network id 12 for VN d6176fbe-ea69-4c46-a817-3c4776347a75
2025-10-16 10:42:47,161 - INFO - Verifications in API Server for VN ctest-vn-19912441 passed
2025-10-16 10:42:47,162 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6176fbe-ea69-4c46-a817-3c4776347a75
2025-10-16 10:42:47,171 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/6e774866-bd13-46e5-a504-4d2f3c1e88eb
2025-10-16 10:42:47,178 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/6e774866-bd13-46e5-a504-4d2f3c1e88eb
2025-10-16 10:42:47,185 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7c36173f-5a38-4cc5-a4c2-b83b593a1b38
2025-10-16 10:42:47,198 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-19912441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61397078', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15426921914348162118', 'uuid-lslong': '12112216000459733621'}, 'enable': 'true', 'created': '2025-10-16T10:42:44', 'last-modified': '2025-10-16T10:42:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432107'}
2025-10-16 10:42:47,203 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 10:42:47,204 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19912441 passed
2025-10-16 10:42:47,204 - DEBUG - ====Verifying policy data for ctest-vn-19912441 in API_Server ======
2025-10-16 10:42:47,204 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-16 10:42:47,208 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289
2025-10-16 10:42:47,218 - DEBUG - Requesting: http://10.0.0.48:8082/project/cc600642-8fd0-417a-a854-6549c7ddfee2
2025-10-16 10:42:47,292 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d6176fbe-ea69-4c46-a817-3c4776347a75
2025-10-16 10:42:47,300 - DEBUG - ==>Verifying data for policy with id: 45df7f4f-500c-457e-ae13-cef3d3f28d65, fqn: ['default-domain', 'ctest-TestBasicPolicy-61397078', 'ctest-policy-allow-all-52400234']
2025-10-16 10:42:47,300 - INFO - VN ctest-vn-19912441 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 10:42:47,300 - DEBUG - Verifying the vn in opserver
2025-10-16 10:42:47,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-19912441 virtual network link through opserver 10.0.0.48
2025-10-16 10:42:47,301 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-16 10:42:47,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-19912441', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-19912441?flat'}
2025-10-16 10:42:47,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61397078:ctest-vn-19912441 is found in opserver
2025-10-16 10:42:47,325 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 10:42:47,331 - DEBUG - VRF ids for VN ctest-vn-19912441: {}
2025-10-16 10:42:47,388 - DEBUG - Services list from nova: [