2025-08-13 20:09:09,135 - INFO - Domain Default found not creating
2025-08-13 20:09:09,253 - INFO - Project ctest-TestBasicPolicy-14315394 not found, creating it
2025-08-13 20:09:09,674 - INFO - Created Project:ctest-TestBasicPolicy-14315394, ID : 67f8e763-7780-4917-910a-9df051998c63
2025-08-13 20:09:11,063 - INFO - ================================================================================
2025-08-13 20:09:11,064 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 20:09:11,064 - 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-13 20:09:11,317 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-13 20:09:11,317 - INFO - Initial checks done. Running the testcase now
2025-08-13 20:09:11,318 - INFO -
2025-08-13 20:09:11,829 - DEBUG - Response for create_network : {'network': {'id': '2fce03bf-a335-4531-9f48-1846d720cb90', 'name': 'ctest-vn-31415548', 'tenant_id': '67f8e76377804917910a9df051998c63', 'project_id': '67f8e76377804917910a9df051998c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-vn-31415548'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 20:09:11,996 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0c1c701-5c47-474d-a6a9-a8e75d689a59', 'name': '', 'tenant_id': '67f8e76377804917910a9df051998c63', 'network_id': '2fce03bf-a335-4531-9f48-1846d720cb90', 'ip_version': 4, 'cidr': '122.236.31.128/26', 'allocation_pools': [{'start': '122.236.31.130', 'end': '122.236.31.190'}], 'gateway_ip': '122.236.31.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.236.31.130', 'tags': [], 'project_id': '67f8e76377804917910a9df051998c63'}}
2025-08-13 20:09:12,011 - INFO - Created VN ctest-vn-31415548
2025-08-13 20:09:12,068 - DEBUG - VN ctest-vn-31415548 UUID is 2fce03bf-a335-4531-9f48-1846d720cb90
2025-08-13 20:09:12,382 - DEBUG - Response for create_network : {'network': {'id': '7e44f297-2912-4c25-afc4-605c4c54bc04', 'name': 'ctest-vn-09862856', 'tenant_id': '67f8e76377804917910a9df051998c63', 'project_id': '67f8e76377804917910a9df051998c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-vn-09862856'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 20:09:12,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '605efeb3-6509-47be-9299-b553feef939e', 'name': '', 'tenant_id': '67f8e76377804917910a9df051998c63', 'network_id': '7e44f297-2912-4c25-afc4-605c4c54bc04', 'ip_version': 4, 'cidr': '168.127.52.64/26', 'allocation_pools': [{'start': '168.127.52.66', 'end': '168.127.52.126'}], 'gateway_ip': '168.127.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.127.52.66', 'tags': [], 'project_id': '67f8e76377804917910a9df051998c63'}}
2025-08-13 20:09:12,597 - INFO - Created VN ctest-vn-09862856
2025-08-13 20:09:12,648 - DEBUG - VN ctest-vn-09862856 UUID is 7e44f297-2912-4c25-afc4-605c4c54bc04
2025-08-13 20:09:12,795 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-31415548, 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-14315394:ctest-vn-09862856, 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-13 20:09:13,091 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2fce03bf-a335-4531-9f48-1846d720cb90', 'name': 'ctest-vn-31415548', 'tenant_id': '67f8e76377804917910a9df051998c63', 'project_id': '67f8e76377804917910a9df051998c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0c1c701-5c47-474d-a6a9-a8e75d689a59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-vn-31415548'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-policy-allow-all-29670108']], 'subnet_ipam': [{'subnet_cidr': '122.236.31.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 20:09:13,347 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e44f297-2912-4c25-afc4-605c4c54bc04', 'name': 'ctest-vn-09862856', 'tenant_id': '67f8e76377804917910a9df051998c63', 'project_id': '67f8e76377804917910a9df051998c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['605efeb3-6509-47be-9299-b553feef939e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-vn-09862856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-policy-allow-all-29670108']], 'subnet_ipam': [{'subnet_cidr': '168.127.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 20:09:13,500 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-13 20:09:13,791 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-13 20:09:13,816 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64
2025-08-13 20:09:13,828 - DEBUG - Requesting: http://10.0.0.38:8082/project/67f8e763-7780-4917-910a-9df051998c63
2025-08-13 20:09:13,897 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2fce03bf-a335-4531-9f48-1846d720cb90
2025-08-13 20:09:13,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2fce03bf-a335-4531-9f48-1846d720cb90
2025-08-13 20:09:13,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f5be557-8123-4f72-a3b2-264ad6cdc912
2025-08-13 20:09:13,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f5be557-8123-4f72-a3b2-264ad6cdc912
2025-08-13 20:09:13,928 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ced163e-1a93-4374-bf1d-98b0df050566
2025-08-13 20:09:13,934 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 20:09:13,934 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2fce03bf-a335-4531-9f48-1846d720cb90
2025-08-13 20:09:13,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f5be557-8123-4f72-a3b2-264ad6cdc912
2025-08-13 20:09:13,954 - INFO - Verified VN network id 11 for VN 2fce03bf-a335-4531-9f48-1846d720cb90
2025-08-13 20:09:13,954 - INFO - Verifications in API Server for VN ctest-vn-31415548 passed
2025-08-13 20:09:13,954 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2fce03bf-a335-4531-9f48-1846d720cb90
2025-08-13 20:09:13,963 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f5be557-8123-4f72-a3b2-264ad6cdc912
2025-08-13 20:09:13,969 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f5be557-8123-4f72-a3b2-264ad6cdc912
2025-08-13 20:09:13,976 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ced163e-1a93-4374-bf1d-98b0df050566
2025-08-13 20:09:13,986 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-31415548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14315394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3444694886596822321', 'uuid-lslong': '11477450342889737104'}, 'enable': 'true', 'created': '2025-08-13T20:09:11', 'last-modified': '2025-08-13T20:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920878'}
2025-08-13 20:09:13,992 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 20:09:13,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31415548 passed
2025-08-13 20:09:13,992 - DEBUG - ====Verifying policy data for ctest-vn-31415548 in API_Server ======
2025-08-13 20:09:13,992 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-13 20:09:13,997 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64
2025-08-13 20:09:14,007 - DEBUG - Requesting: http://10.0.0.38:8082/project/67f8e763-7780-4917-910a-9df051998c63
2025-08-13 20:09:14,076 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2fce03bf-a335-4531-9f48-1846d720cb90
2025-08-13 20:09:14,084 - DEBUG - ==>Verifying data for policy with id: 31ff8ca4-d76b-4ccf-b443-0146ec1ed8ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-policy-allow-all-29670108']
2025-08-13 20:09:14,084 - INFO - VN ctest-vn-31415548 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 20:09:14,084 - DEBUG - Verifying the vn in opserver
2025-08-13 20:09:14,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-31415548 virtual network link through opserver 10.0.0.38
2025-08-13 20:09:14,084 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-13 20:09:14,372 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-13 20:09:14,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-31415548', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-31415548?flat'}
2025-08-13 20:09:14,429 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-31415548 is found in opserver
2025-08-13 20:09:14,439 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 20:09:14,444 - DEBUG - VRF ids for VN ctest-vn-31415548: {}
2025-08-13 20:09:14,444 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-13 20:09:14,449 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64
2025-08-13 20:09:14,459 - DEBUG - Requesting: http://10.0.0.38:8082/project/67f8e763-7780-4917-910a-9df051998c63
2025-08-13 20:09:14,531 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e44f297-2912-4c25-afc4-605c4c54bc04
2025-08-13 20:09:14,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e44f297-2912-4c25-afc4-605c4c54bc04
2025-08-13 20:09:14,555 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8cca84c-b56a-44c1-bfee-aaa9688d7166
2025-08-13 20:09:14,563 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8cca84c-b56a-44c1-bfee-aaa9688d7166
2025-08-13 20:09:14,570 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/197502d8-52e2-478a-9bf7-ba333e6dd6f2
2025-08-13 20:09:14,577 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 20:09:14,577 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e44f297-2912-4c25-afc4-605c4c54bc04
2025-08-13 20:09:14,587 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8cca84c-b56a-44c1-bfee-aaa9688d7166
2025-08-13 20:09:14,602 - INFO - Verified VN network id 12 for VN 7e44f297-2912-4c25-afc4-605c4c54bc04
2025-08-13 20:09:14,602 - INFO - Verifications in API Server for VN ctest-vn-09862856 passed
2025-08-13 20:09:14,602 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e44f297-2912-4c25-afc4-605c4c54bc04
2025-08-13 20:09:14,612 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8cca84c-b56a-44c1-bfee-aaa9688d7166
2025-08-13 20:09:14,618 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e8cca84c-b56a-44c1-bfee-aaa9688d7166
2025-08-13 20:09:14,624 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/197502d8-52e2-478a-9bf7-ba333e6dd6f2
2025-08-13 20:09:14,637 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-09862856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14315394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9098663878238293029', 'uuid-lslong': '12665354001606556676'}, 'enable': 'true', 'created': '2025-08-13T20:09:12', 'last-modified': '2025-08-13T20:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.355503'}
2025-08-13 20:09:14,644 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 20:09:14,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09862856 passed
2025-08-13 20:09:14,644 - DEBUG - ====Verifying policy data for ctest-vn-09862856 in API_Server ======
2025-08-13 20:09:14,644 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-13 20:09:14,650 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64
2025-08-13 20:09:14,663 - DEBUG - Requesting: http://10.0.0.38:8082/project/67f8e763-7780-4917-910a-9df051998c63
2025-08-13 20:09:14,731 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7e44f297-2912-4c25-afc4-605c4c54bc04
2025-08-13 20:09:14,740 - DEBUG - ==>Verifying data for policy with id: 31ff8ca4-d76b-4ccf-b443-0146ec1ed8ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-14315394', 'ctest-policy-allow-all-29670108']
2025-08-13 20:09:14,740 - INFO - VN ctest-vn-09862856 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 20:09:14,740 - DEBUG - Verifying the vn in opserver
2025-08-13 20:09:14,741 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-09862856 virtual network link through opserver 10.0.0.38
2025-08-13 20:09:14,741 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-13 20:09:14,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-09862856', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-09862856?flat'}
2025-08-13 20:09:14,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14315394:ctest-vn-09862856 is found in opserver
2025-08-13 20:09:14,760 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 20:09:14,764 - DEBUG - VRF ids for VN ctest-vn-09862856: {}
2025-08-13 20:09:14,814 - DEBUG - Services list from nova: [