2025-08-12 13:13:12,485 - INFO - Domain Default found not creating
2025-08-12 13:13:12,597 - INFO - Project ctest-TestBasicPolicy-75282401 not found, creating it
2025-08-12 13:13:13,084 - INFO - Created Project:ctest-TestBasicPolicy-75282401, ID : 744374c8-3f16-4dce-8547-e63d66a6af51
2025-08-12 13:13:14,458 - INFO - ================================================================================
2025-08-12 13:13:14,458 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 13:13:14,458 - 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-12 13:13:14,712 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-08-12 13:13:14,712 - INFO - Initial checks done. Running the testcase now
2025-08-12 13:13:14,713 - INFO -
2025-08-12 13:13:15,222 - DEBUG - Response for create_network : {'network': {'id': '382d283e-05f1-4443-a8dd-9ce68928ce01', 'name': 'ctest-vn-60324946', 'tenant_id': '744374c83f164dce8547e63d66a6af51', 'project_id': '744374c83f164dce8547e63d66a6af51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-vn-60324946'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 13:13:15,420 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a256fa1c-4cab-45bc-aeea-14fdc1f8c58b', 'name': '', 'tenant_id': '744374c83f164dce8547e63d66a6af51', 'network_id': '382d283e-05f1-4443-a8dd-9ce68928ce01', 'ip_version': 4, 'cidr': '167.39.89.192/26', 'allocation_pools': [{'start': '167.39.89.194', 'end': '167.39.89.254'}], 'gateway_ip': '167.39.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.39.89.194', 'tags': [], 'project_id': '744374c83f164dce8547e63d66a6af51'}}
2025-08-12 13:13:15,435 - INFO - Created VN ctest-vn-60324946
2025-08-12 13:13:15,488 - DEBUG - VN ctest-vn-60324946 UUID is 382d283e-05f1-4443-a8dd-9ce68928ce01
2025-08-12 13:13:15,788 - DEBUG - Response for create_network : {'network': {'id': 'bf3a11ca-64cf-4314-a14a-12436b62f337', 'name': 'ctest-vn-05650696', 'tenant_id': '744374c83f164dce8547e63d66a6af51', 'project_id': '744374c83f164dce8547e63d66a6af51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-vn-05650696'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 13:13:15,950 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef666943-0705-41dc-87ab-2479391a7536', 'name': '', 'tenant_id': '744374c83f164dce8547e63d66a6af51', 'network_id': 'bf3a11ca-64cf-4314-a14a-12436b62f337', 'ip_version': 4, 'cidr': '168.54.241.192/26', 'allocation_pools': [{'start': '168.54.241.194', 'end': '168.54.241.254'}], 'gateway_ip': '168.54.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.54.241.194', 'tags': [], 'project_id': '744374c83f164dce8547e63d66a6af51'}}
2025-08-12 13:13:15,966 - INFO - Created VN ctest-vn-05650696
2025-08-12 13:13:16,016 - DEBUG - VN ctest-vn-05650696 UUID is bf3a11ca-64cf-4314-a14a-12436b62f337
2025-08-12 13:13:16,127 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-60324946, 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-75282401:ctest-vn-05650696, 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-12 13:13:16,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '382d283e-05f1-4443-a8dd-9ce68928ce01', 'name': 'ctest-vn-60324946', 'tenant_id': '744374c83f164dce8547e63d66a6af51', 'project_id': '744374c83f164dce8547e63d66a6af51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a256fa1c-4cab-45bc-aeea-14fdc1f8c58b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-vn-60324946'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-policy-allow-all-63307265']], 'subnet_ipam': [{'subnet_cidr': '167.39.89.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 13:13:16,638 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf3a11ca-64cf-4314-a14a-12436b62f337', 'name': 'ctest-vn-05650696', 'tenant_id': '744374c83f164dce8547e63d66a6af51', 'project_id': '744374c83f164dce8547e63d66a6af51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef666943-0705-41dc-87ab-2479391a7536'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-vn-05650696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-policy-allow-all-63307265']], 'subnet_ipam': [{'subnet_cidr': '168.54.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 13:13:16,800 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-12 13:13:17,089 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-12 13:13:17,115 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae
2025-08-12 13:13:17,127 - DEBUG - Requesting: http://10.0.0.33:8082/project/744374c8-3f16-4dce-8547-e63d66a6af51
2025-08-12 13:13:17,198 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/382d283e-05f1-4443-a8dd-9ce68928ce01
2025-08-12 13:13:17,209 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/382d283e-05f1-4443-a8dd-9ce68928ce01
2025-08-12 13:13:17,217 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/747bfefd-67d0-4262-b68d-50dafa434028
2025-08-12 13:13:17,223 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/747bfefd-67d0-4262-b68d-50dafa434028
2025-08-12 13:13:17,228 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e8fa9270-aaf7-44a4-9ba9-d142fc1a4cdf
2025-08-12 13:13:17,233 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 13:13:17,233 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/382d283e-05f1-4443-a8dd-9ce68928ce01
2025-08-12 13:13:17,241 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/747bfefd-67d0-4262-b68d-50dafa434028
2025-08-12 13:13:17,253 - INFO - Verified VN network id 12 for VN 382d283e-05f1-4443-a8dd-9ce68928ce01
2025-08-12 13:13:17,253 - INFO - Verifications in API Server for VN ctest-vn-60324946 passed
2025-08-12 13:13:17,253 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/382d283e-05f1-4443-a8dd-9ce68928ce01
2025-08-12 13:13:17,261 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/747bfefd-67d0-4262-b68d-50dafa434028
2025-08-12 13:13:17,267 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/747bfefd-67d0-4262-b68d-50dafa434028
2025-08-12 13:13:17,272 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e8fa9270-aaf7-44a4-9ba9-d142fc1a4cdf
2025-08-12 13:13:17,283 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-60324946', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75282401', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4047935886928725059', 'uuid-lslong': '12168054282182512129'}, 'enable': 'true', 'created': '2025-08-12T13:13:15', 'last-modified': '2025-08-12T13:13:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890071'}
2025-08-12 13:13:17,289 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 13:13:17,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60324946 passed
2025-08-12 13:13:17,289 - DEBUG - ====Verifying policy data for ctest-vn-60324946 in API_Server ======
2025-08-12 13:13:17,289 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-12 13:13:17,294 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae
2025-08-12 13:13:17,303 - DEBUG - Requesting: http://10.0.0.33:8082/project/744374c8-3f16-4dce-8547-e63d66a6af51
2025-08-12 13:13:17,370 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/382d283e-05f1-4443-a8dd-9ce68928ce01
2025-08-12 13:13:17,378 - DEBUG - ==>Verifying data for policy with id: 870e13d2-5c7c-4750-82ee-2bfc24a63b37, fqn: ['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-policy-allow-all-63307265']
2025-08-12 13:13:17,378 - INFO - VN ctest-vn-60324946 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 13:13:17,378 - DEBUG - Verifying the vn in opserver
2025-08-12 13:13:17,378 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-60324946 virtual network link through opserver 10.0.0.33
2025-08-12 13:13:17,378 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-12 13:13:17,664 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-12 13:13:17,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-60324946', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-60324946?flat'}
2025-08-12 13:13:17,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-60324946 is found in opserver
2025-08-12 13:13:17,720 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 13:13:17,725 - DEBUG - VRF ids for VN ctest-vn-60324946: {}
2025-08-12 13:13:17,725 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-12 13:13:17,729 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae
2025-08-12 13:13:17,739 - DEBUG - Requesting: http://10.0.0.33:8082/project/744374c8-3f16-4dce-8547-e63d66a6af51
2025-08-12 13:13:17,810 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3a11ca-64cf-4314-a14a-12436b62f337
2025-08-12 13:13:17,820 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3a11ca-64cf-4314-a14a-12436b62f337
2025-08-12 13:13:17,829 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ae8690c-9cd0-45b5-944c-7e6ad8860370
2025-08-12 13:13:17,834 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ae8690c-9cd0-45b5-944c-7e6ad8860370
2025-08-12 13:13:17,840 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ea8521d5-0f00-4141-be9a-0c05f04ad1e6
2025-08-12 13:13:17,845 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 13:13:17,845 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3a11ca-64cf-4314-a14a-12436b62f337
2025-08-12 13:13:17,853 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ae8690c-9cd0-45b5-944c-7e6ad8860370
2025-08-12 13:13:17,864 - INFO - Verified VN network id 13 for VN bf3a11ca-64cf-4314-a14a-12436b62f337
2025-08-12 13:13:17,864 - INFO - Verifications in API Server for VN ctest-vn-05650696 passed
2025-08-12 13:13:17,864 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3a11ca-64cf-4314-a14a-12436b62f337
2025-08-12 13:13:17,872 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ae8690c-9cd0-45b5-944c-7e6ad8860370
2025-08-12 13:13:17,878 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0ae8690c-9cd0-45b5-944c-7e6ad8860370
2025-08-12 13:13:17,884 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ea8521d5-0f00-4141-be9a-0c05f04ad1e6
2025-08-12 13:13:17,894 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-05650696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75282401', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13779345570865824532', 'uuid-lslong': '11622121869156741943'}, 'enable': 'true', 'created': '2025-08-12T13:13:15', 'last-modified': '2025-08-12T13:13:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.284819'}
2025-08-12 13:13:17,899 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 13:13:17,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05650696 passed
2025-08-12 13:13:17,900 - DEBUG - ====Verifying policy data for ctest-vn-05650696 in API_Server ======
2025-08-12 13:13:17,900 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-12 13:13:17,904 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae
2025-08-12 13:13:17,914 - DEBUG - Requesting: http://10.0.0.33:8082/project/744374c8-3f16-4dce-8547-e63d66a6af51
2025-08-12 13:13:17,978 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bf3a11ca-64cf-4314-a14a-12436b62f337
2025-08-12 13:13:17,986 - DEBUG - ==>Verifying data for policy with id: 870e13d2-5c7c-4750-82ee-2bfc24a63b37, fqn: ['default-domain', 'ctest-TestBasicPolicy-75282401', 'ctest-policy-allow-all-63307265']
2025-08-12 13:13:17,986 - INFO - VN ctest-vn-05650696 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 13:13:17,986 - DEBUG - Verifying the vn in opserver
2025-08-12 13:13:17,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-05650696 virtual network link through opserver 10.0.0.33
2025-08-12 13:13:17,986 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-12 13:13:17,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-05650696', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-05650696?flat'}
2025-08-12 13:13:17,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75282401:ctest-vn-05650696 is found in opserver
2025-08-12 13:13:18,004 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 13:13:18,009 - DEBUG - VRF ids for VN ctest-vn-05650696: {}
2025-08-12 13:13:18,058 - DEBUG - Services list from nova: [