2025-08-18 02:10:24,003 - INFO - Domain Default found not creating
2025-08-18 02:10:24,135 - INFO - Project ctest-TestBasicPolicy-30282196 not found, creating it
2025-08-18 02:10:24,588 - INFO - Created Project:ctest-TestBasicPolicy-30282196, ID : b92f9c84-62d2-46e4-b96f-308735c05543
2025-08-18 02:10:25,964 - INFO - ================================================================================
2025-08-18 02:10:25,964 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-18 02:10:25,965 - 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-08-18 02:10:26,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-08-18 02:10:26,222 - INFO - Initial checks done. Running the testcase now
2025-08-18 02:10:26,222 - INFO -
2025-08-18 02:10:26,738 - DEBUG - Response for create_network : {'network': {'id': '0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95', 'name': 'ctest-vn-35480586', 'tenant_id': 'b92f9c8462d246e4b96f308735c05543', 'project_id': 'b92f9c8462d246e4b96f308735c05543', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-vn-35480586'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 02:10:26,946 - DEBUG - Response for create_subnet : {'subnet': {'id': '39692ac6-328c-4d3f-824c-c21a8cf01bd8', 'name': '', 'tenant_id': 'b92f9c8462d246e4b96f308735c05543', 'network_id': '0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95', 'ip_version': 4, 'cidr': '13.198.183.128/26', 'allocation_pools': [{'start': '13.198.183.130', 'end': '13.198.183.190'}], 'gateway_ip': '13.198.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.198.183.130', 'tags': [], 'project_id': 'b92f9c8462d246e4b96f308735c05543'}}
2025-08-18 02:10:26,964 - INFO - Created VN ctest-vn-35480586
2025-08-18 02:10:27,021 - DEBUG - VN ctest-vn-35480586 UUID is 0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95
2025-08-18 02:10:27,322 - DEBUG - Response for create_network : {'network': {'id': '9642a0cf-e702-4022-8c33-2299518d2d83', 'name': 'ctest-vn-72475024', 'tenant_id': 'b92f9c8462d246e4b96f308735c05543', 'project_id': 'b92f9c8462d246e4b96f308735c05543', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-vn-72475024'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 02:10:27,509 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f78fb611-4d25-4d95-8fdb-97df312f8eab', 'name': '', 'tenant_id': 'b92f9c8462d246e4b96f308735c05543', 'network_id': '9642a0cf-e702-4022-8c33-2299518d2d83', 'ip_version': 4, 'cidr': '58.242.175.64/26', 'allocation_pools': [{'start': '58.242.175.66', 'end': '58.242.175.126'}], 'gateway_ip': '58.242.175.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.242.175.66', 'tags': [], 'project_id': 'b92f9c8462d246e4b96f308735c05543'}}
2025-08-18 02:10:27,524 - INFO - Created VN ctest-vn-72475024
2025-08-18 02:10:27,577 - DEBUG - VN ctest-vn-72475024 UUID is 9642a0cf-e702-4022-8c33-2299518d2d83
2025-08-18 02:10:27,721 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-35480586, 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-30282196:ctest-vn-72475024, 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-08-18 02:10:28,002 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95', 'name': 'ctest-vn-35480586', 'tenant_id': 'b92f9c8462d246e4b96f308735c05543', 'project_id': 'b92f9c8462d246e4b96f308735c05543', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39692ac6-328c-4d3f-824c-c21a8cf01bd8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-vn-35480586'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-policy-allow-all-52254627']], 'subnet_ipam': [{'subnet_cidr': '13.198.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 02:10:28,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9642a0cf-e702-4022-8c33-2299518d2d83', 'name': 'ctest-vn-72475024', 'tenant_id': 'b92f9c8462d246e4b96f308735c05543', 'project_id': 'b92f9c8462d246e4b96f308735c05543', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f78fb611-4d25-4d95-8fdb-97df312f8eab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-vn-72475024'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-policy-allow-all-52254627']], 'subnet_ipam': [{'subnet_cidr': '58.242.175.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 02:10:28,369 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-18 02:10:28,659 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-18 02:10:28,684 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2
2025-08-18 02:10:28,696 - DEBUG - Requesting: http://10.0.0.249:8082/project/b92f9c84-62d2-46e4-b96f-308735c05543
2025-08-18 02:10:28,767 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95
2025-08-18 02:10:28,777 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95
2025-08-18 02:10:28,786 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/754b8d0c-ffcf-42b4-8375-2f5646b51151
2025-08-18 02:10:28,792 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/754b8d0c-ffcf-42b4-8375-2f5646b51151
2025-08-18 02:10:28,798 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/57213429-b2d6-45af-81af-68f5570586c9
2025-08-18 02:10:28,803 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 02:10:28,803 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95
2025-08-18 02:10:28,812 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/754b8d0c-ffcf-42b4-8375-2f5646b51151
2025-08-18 02:10:28,824 - INFO - Verified VN network id 12 for VN 0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95
2025-08-18 02:10:28,824 - INFO - Verifications in API Server for VN ctest-vn-35480586 passed
2025-08-18 02:10:28,824 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95
2025-08-18 02:10:28,833 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/754b8d0c-ffcf-42b4-8375-2f5646b51151
2025-08-18 02:10:28,838 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/754b8d0c-ffcf-42b4-8375-2f5646b51151
2025-08-18 02:10:28,844 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/57213429-b2d6-45af-81af-68f5570586c9
2025-08-18 02:10:28,855 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-35480586', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30282196', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1087585151734464997', 'uuid-lslong': '11407334283189738645'}, 'enable': 'true', 'created': '2025-08-18T02:10:26', 'last-modified': '2025-08-18T02:10:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.873016'}
2025-08-18 02:10:28,861 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 02:10:28,861 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35480586 passed
2025-08-18 02:10:28,861 - DEBUG - ====Verifying policy data for ctest-vn-35480586 in API_Server ======
2025-08-18 02:10:28,861 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-18 02:10:28,865 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2
2025-08-18 02:10:28,875 - DEBUG - Requesting: http://10.0.0.249:8082/project/b92f9c84-62d2-46e4-b96f-308735c05543
2025-08-18 02:10:28,948 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0f17e0ee-e81f-41e5-9e4e-fe1787a8dc95
2025-08-18 02:10:28,957 - DEBUG - ==>Verifying data for policy with id: 258baebb-4540-4b2d-afa4-641b64e3749e, fqn: ['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-policy-allow-all-52254627']
2025-08-18 02:10:28,958 - INFO - VN ctest-vn-35480586 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 02:10:28,958 - DEBUG - Verifying the vn in opserver
2025-08-18 02:10:28,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-35480586 virtual network link through opserver 10.0.0.249
2025-08-18 02:10:28,958 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-18 02:10:29,246 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-18 02:10:29,293 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-35480586', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-35480586?flat'}
2025-08-18 02:10:29,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-35480586 is found in opserver
2025-08-18 02:10:29,303 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 02:10:29,307 - DEBUG - VRF ids for VN ctest-vn-35480586: {}
2025-08-18 02:10:29,308 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-18 02:10:29,313 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2
2025-08-18 02:10:29,324 - DEBUG - Requesting: http://10.0.0.249:8082/project/b92f9c84-62d2-46e4-b96f-308735c05543
2025-08-18 02:10:29,393 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9642a0cf-e702-4022-8c33-2299518d2d83
2025-08-18 02:10:29,404 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9642a0cf-e702-4022-8c33-2299518d2d83
2025-08-18 02:10:29,413 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/61794fc5-9440-460e-93c7-3955ef8c4a1d
2025-08-18 02:10:29,420 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/61794fc5-9440-460e-93c7-3955ef8c4a1d
2025-08-18 02:10:29,426 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0bbc8872-345c-4f5f-97ab-26a496900e5b
2025-08-18 02:10:29,431 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 02:10:29,431 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9642a0cf-e702-4022-8c33-2299518d2d83
2025-08-18 02:10:29,439 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/61794fc5-9440-460e-93c7-3955ef8c4a1d
2025-08-18 02:10:29,451 - INFO - Verified VN network id 13 for VN 9642a0cf-e702-4022-8c33-2299518d2d83
2025-08-18 02:10:29,451 - INFO - Verifications in API Server for VN ctest-vn-72475024 passed
2025-08-18 02:10:29,451 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9642a0cf-e702-4022-8c33-2299518d2d83
2025-08-18 02:10:29,459 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/61794fc5-9440-460e-93c7-3955ef8c4a1d
2025-08-18 02:10:29,465 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/61794fc5-9440-460e-93c7-3955ef8c4a1d
2025-08-18 02:10:29,471 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0bbc8872-345c-4f5f-97ab-26a496900e5b
2025-08-18 02:10:29,482 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-72475024', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30282196', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10827393268946452514', 'uuid-lslong': '10102456431015701891'}, 'enable': 'true', 'created': '2025-08-18T02:10:27', 'last-modified': '2025-08-18T02:10:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.317870'}
2025-08-18 02:10:29,488 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 02:10:29,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72475024 passed
2025-08-18 02:10:29,488 - DEBUG - ====Verifying policy data for ctest-vn-72475024 in API_Server ======
2025-08-18 02:10:29,488 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-18 02:10:29,493 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2
2025-08-18 02:10:29,502 - DEBUG - Requesting: http://10.0.0.249:8082/project/b92f9c84-62d2-46e4-b96f-308735c05543
2025-08-18 02:10:29,571 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9642a0cf-e702-4022-8c33-2299518d2d83
2025-08-18 02:10:29,580 - DEBUG - ==>Verifying data for policy with id: 258baebb-4540-4b2d-afa4-641b64e3749e, fqn: ['default-domain', 'ctest-TestBasicPolicy-30282196', 'ctest-policy-allow-all-52254627']
2025-08-18 02:10:29,580 - INFO - VN ctest-vn-72475024 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 02:10:29,580 - DEBUG - Verifying the vn in opserver
2025-08-18 02:10:29,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-72475024 virtual network link through opserver 10.0.0.249
2025-08-18 02:10:29,580 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-18 02:10:29,589 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-72475024', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-72475024?flat'}
2025-08-18 02:10:29,589 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30282196:ctest-vn-72475024 is found in opserver
2025-08-18 02:10:29,599 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 02:10:29,603 - DEBUG - VRF ids for VN ctest-vn-72475024: {}
2025-08-18 02:10:29,651 - DEBUG - Services list from nova: [