2025-02-12 08:17:18,535 - INFO - Domain Default found not creating
2025-02-12 08:17:18,707 - INFO - Project ctest-TestBasicPolicy-89720379 not found, creating it
2025-02-12 08:17:19,200 - INFO - Created Project:ctest-TestBasicPolicy-89720379, ID : adc6d6ce-27b4-4f70-89f8-a327f6576fa2
2025-02-12 08:17:20,879 - INFO - ================================================================================
2025-02-12 08:17:20,879 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-12 08:17:20,879 - 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-02-12 08:17:21,142 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with
2025-02-12 08:17:21,142 - INFO - Initial checks done. Running the testcase now
2025-02-12 08:17:21,142 - INFO -
2025-02-12 08:17:21,767 - DEBUG - Response for create_network : {'network': {'id': 'e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e', 'name': 'ctest-vn-24719230', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-24719230'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 08:17:22,009 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa8a63b9-4624-4c78-9200-9e5ec8b793d7', 'name': '', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'network_id': 'e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e', 'ip_version': 4, 'cidr': '112.255.19.64/26', 'allocation_pools': [{'start': '112.255.19.66', 'end': '112.255.19.126'}], 'gateway_ip': '112.255.19.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.255.19.66', 'tags': [], 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2'}}
2025-02-12 08:17:22,030 - INFO - Created VN ctest-vn-24719230
2025-02-12 08:17:22,086 - DEBUG - VN ctest-vn-24719230 UUID is e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e
2025-02-12 08:17:22,670 - DEBUG - Response for create_network : {'network': {'id': '370a0e82-06be-4ad1-8a8b-74cea2a3b7dc', 'name': 'ctest-vn-50701577', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-50701577'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 08:17:23,144 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e71caf9-c04c-42b9-ac99-b204160d6b13', 'name': '', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'network_id': '370a0e82-06be-4ad1-8a8b-74cea2a3b7dc', 'ip_version': 4, 'cidr': '153.141.4.128/26', 'allocation_pools': [{'start': '153.141.4.130', 'end': '153.141.4.190'}], 'gateway_ip': '153.141.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.141.4.130', 'tags': [], 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2'}}
2025-02-12 08:17:23,182 - INFO - Created VN ctest-vn-50701577
2025-02-12 08:17:23,238 - DEBUG - VN ctest-vn-50701577 UUID is 370a0e82-06be-4ad1-8a8b-74cea2a3b7dc
2025-02-12 08:17:23,371 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230, 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-89720379:ctest-vn-50701577, 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-02-12 08:17:23,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e', 'name': 'ctest-vn-24719230', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa8a63b9-4624-4c78-9200-9e5ec8b793d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-24719230'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505']], 'subnet_ipam': [{'subnet_cidr': '112.255.19.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 08:17:23,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '370a0e82-06be-4ad1-8a8b-74cea2a3b7dc', 'name': 'ctest-vn-50701577', 'tenant_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'project_id': 'adc6d6ce27b44f7089f8a327f6576fa2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e71caf9-c04c-42b9-ac99-b204160d6b13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-vn-50701577'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505']], 'subnet_ipam': [{'subnet_cidr': '153.141.4.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 08:17:24,095 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-12 08:17:24,472 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-12 08:17:24,503 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791
2025-02-12 08:17:24,519 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2
2025-02-12 08:17:24,600 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e
2025-02-12 08:17:24,613 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e
2025-02-12 08:17:24,624 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce
2025-02-12 08:17:24,634 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce
2025-02-12 08:17:24,642 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/cc2c4d0f-acb7-4e7c-8c6e-9774d8811aa6
2025-02-12 08:17:24,650 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 08:17:24,650 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e
2025-02-12 08:17:24,661 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce
2025-02-12 08:17:24,678 - INFO - Verified VN network id 9 for VN e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e
2025-02-12 08:17:24,678 - INFO - Verifications in API Server for VN ctest-vn-24719230 passed
2025-02-12 08:17:24,678 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e
2025-02-12 08:17:24,689 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce
2025-02-12 08:17:24,698 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/ca92bd8c-3006-45ce-9f39-dbadf29a74ce
2025-02-12 08:17:24,707 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/cc2c4d0f-acb7-4e7c-8c6e-9774d8811aa6
2025-02-12 08:17:24,722 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89720379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16530842529499466282', 'uuid-lslong': '11249521059433724558'}, 'enable': 'true', 'created': '2025-02-12T08:17:21', 'last-modified': '2025-02-12T08:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.063262'}
2025-02-12 08:17:24,729 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 08:17:24,730 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24719230 passed
2025-02-12 08:17:24,730 - DEBUG - ====Verifying policy data for ctest-vn-24719230 in API_Server ======
2025-02-12 08:17:24,730 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-12 08:17:24,736 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791
2025-02-12 08:17:24,749 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2
2025-02-12 08:17:24,837 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e56959b2-48bc-4a2a-9c1e-53cd10d2ba8e
2025-02-12 08:17:24,850 - DEBUG - ==>Verifying data for policy with id: 166278e0-7f8f-4b39-8b24-098752f7ca89, fqn: ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505']
2025-02-12 08:17:24,850 - INFO - VN ctest-vn-24719230 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 08:17:24,850 - DEBUG - Verifying the vn in opserver
2025-02-12 08:17:24,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230 virtual network link through opserver 10.0.0.12
2025-02-12 08:17:24,850 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-12 08:17:25,186 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-12 08:17:25,252 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230?flat'}
2025-02-12 08:17:25,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-24719230 is found in opserver
2025-02-12 08:17:25,269 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 08:17:25,275 - DEBUG - VRF ids for VN ctest-vn-24719230: {}
2025-02-12 08:17:25,276 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-12 08:17:25,283 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791
2025-02-12 08:17:25,298 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2
2025-02-12 08:17:25,379 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc
2025-02-12 08:17:25,394 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc
2025-02-12 08:17:25,406 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3
2025-02-12 08:17:25,418 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3
2025-02-12 08:17:25,428 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b339099e-80a2-494f-8146-51259807a7fa
2025-02-12 08:17:25,436 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 08:17:25,436 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc
2025-02-12 08:17:25,447 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3
2025-02-12 08:17:25,465 - INFO - Verified VN network id 10 for VN 370a0e82-06be-4ad1-8a8b-74cea2a3b7dc
2025-02-12 08:17:25,465 - INFO - Verifications in API Server for VN ctest-vn-50701577 passed
2025-02-12 08:17:25,465 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc
2025-02-12 08:17:25,477 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3
2025-02-12 08:17:25,486 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/517d60d8-5465-43f5-bcab-ae18111b0cd3
2025-02-12 08:17:25,495 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b339099e-80a2-494f-8146-51259807a7fa
2025-02-12 08:17:25,510 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89720379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3965998373474814673', 'uuid-lslong': '9983201429837559772'}, 'enable': 'true', 'created': '2025-02-12T08:17:22', 'last-modified': '2025-02-12T08:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597473'}
2025-02-12 08:17:25,517 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 08:17:25,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50701577 passed
2025-02-12 08:17:25,517 - DEBUG - ====Verifying policy data for ctest-vn-50701577 in API_Server ======
2025-02-12 08:17:25,517 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-12 08:17:25,524 - DEBUG - Requesting: http://10.0.0.12:8082/domain/6320f057-964d-40b3-9820-b5a9f33ba791
2025-02-12 08:17:25,537 - DEBUG - Requesting: http://10.0.0.12:8082/project/adc6d6ce-27b4-4f70-89f8-a327f6576fa2
2025-02-12 08:17:25,620 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/370a0e82-06be-4ad1-8a8b-74cea2a3b7dc
2025-02-12 08:17:25,632 - DEBUG - ==>Verifying data for policy with id: 166278e0-7f8f-4b39-8b24-098752f7ca89, fqn: ['default-domain', 'ctest-TestBasicPolicy-89720379', 'ctest-policy-allow-all-15655505']
2025-02-12 08:17:25,632 - INFO - VN ctest-vn-50701577 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 08:17:25,632 - DEBUG - Verifying the vn in opserver
2025-02-12 08:17:25,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577 virtual network link through opserver 10.0.0.12
2025-02-12 08:17:25,632 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-12 08:17:25,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577?flat'}
2025-02-12 08:17:25,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89720379:ctest-vn-50701577 is found in opserver
2025-02-12 08:17:25,658 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 08:17:25,665 - DEBUG - VRF ids for VN ctest-vn-50701577: {}
2025-02-12 08:17:25,749 - DEBUG - Services list from nova: [