2025-01-16 02:34:24,567 - INFO - Domain Default found not creating
2025-01-16 02:34:24,762 - INFO - Project ctest-TestBasicPolicy-92259881 not found, creating it
2025-01-16 02:34:25,300 - INFO - Created Project:ctest-TestBasicPolicy-92259881, ID : 793c1f12-4fd4-4188-836c-9b20a5119e18
2025-01-16 02:34:27,716 - INFO - ================================================================================
2025-01-16 02:34:27,716 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-16 02:34:27,716 - 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-01-16 02:34:27,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.23': '0'}} with
2025-01-16 02:34:27,972 - INFO - Initial checks done. Running the testcase now
2025-01-16 02:34:27,972 - INFO -
2025-01-16 02:34:28,570 - DEBUG - Response for create_network : {'network': {'id': '9dc8a7a8-fc46-423b-80d2-28cd06e43bdc', 'name': 'ctest-vn-84728462', 'tenant_id': '793c1f124fd44188836c9b20a5119e18', 'project_id': '793c1f124fd44188836c9b20a5119e18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-vn-84728462'], 'port_security_enabled': True, 'description': ''}}
2025-01-16 02:34:28,778 - DEBUG - Response for create_subnet : {'subnet': {'id': '34265fd2-cd62-4962-81c6-e14b8453f25b', 'name': '', 'tenant_id': '793c1f124fd44188836c9b20a5119e18', 'network_id': '9dc8a7a8-fc46-423b-80d2-28cd06e43bdc', 'ip_version': 4, 'cidr': '116.205.12.0/26', 'allocation_pools': [{'start': '116.205.12.2', 'end': '116.205.12.62'}], 'gateway_ip': '116.205.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.205.12.2', 'tags': [], 'project_id': '793c1f124fd44188836c9b20a5119e18'}}
2025-01-16 02:34:28,800 - INFO - Created VN ctest-vn-84728462
2025-01-16 02:34:28,856 - DEBUG - VN ctest-vn-84728462 UUID is 9dc8a7a8-fc46-423b-80d2-28cd06e43bdc
2025-01-16 02:34:29,180 - DEBUG - Response for create_network : {'network': {'id': '11e34749-27c7-4ee3-8ea8-285a4a501d04', 'name': 'ctest-vn-07476260', 'tenant_id': '793c1f124fd44188836c9b20a5119e18', 'project_id': '793c1f124fd44188836c9b20a5119e18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-vn-07476260'], 'port_security_enabled': True, 'description': ''}}
2025-01-16 02:34:29,352 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb0ca1b6-8801-46b1-b66e-217b8529e5f3', 'name': '', 'tenant_id': '793c1f124fd44188836c9b20a5119e18', 'network_id': '11e34749-27c7-4ee3-8ea8-285a4a501d04', 'ip_version': 4, 'cidr': '94.119.53.0/26', 'allocation_pools': [{'start': '94.119.53.2', 'end': '94.119.53.62'}], 'gateway_ip': '94.119.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.119.53.2', 'tags': [], 'project_id': '793c1f124fd44188836c9b20a5119e18'}}
2025-01-16 02:34:29,376 - INFO - Created VN ctest-vn-07476260
2025-01-16 02:34:29,432 - DEBUG - VN ctest-vn-07476260 UUID is 11e34749-27c7-4ee3-8ea8-285a4a501d04
2025-01-16 02:34:29,561 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-84728462, 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-92259881:ctest-vn-07476260, 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-01-16 02:34:29,892 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9dc8a7a8-fc46-423b-80d2-28cd06e43bdc', 'name': 'ctest-vn-84728462', 'tenant_id': '793c1f124fd44188836c9b20a5119e18', 'project_id': '793c1f124fd44188836c9b20a5119e18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34265fd2-cd62-4962-81c6-e14b8453f25b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-vn-84728462'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-policy-allow-all-70678840']], 'subnet_ipam': [{'subnet_cidr': '116.205.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-16 02:34:30,155 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11e34749-27c7-4ee3-8ea8-285a4a501d04', 'name': 'ctest-vn-07476260', 'tenant_id': '793c1f124fd44188836c9b20a5119e18', 'project_id': '793c1f124fd44188836c9b20a5119e18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb0ca1b6-8801-46b1-b66e-217b8529e5f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-vn-07476260'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-policy-allow-all-70678840']], 'subnet_ipam': [{'subnet_cidr': '94.119.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-16 02:34:30,320 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-16 02:34:30,669 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-16 02:34:30,709 - DEBUG - Requesting: http://10.0.0.24:8082/domain/dea5725e-ca52-4bf1-898d-7446fcf384b8
2025-01-16 02:34:30,726 - DEBUG - Requesting: http://10.0.0.24:8082/project/793c1f12-4fd4-4188-836c-9b20a5119e18
2025-01-16 02:34:30,809 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9dc8a7a8-fc46-423b-80d2-28cd06e43bdc
2025-01-16 02:34:30,826 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9dc8a7a8-fc46-423b-80d2-28cd06e43bdc
2025-01-16 02:34:30,841 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e80dcf60-5fa3-46a2-aa03-1f551a89e874
2025-01-16 02:34:30,851 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e80dcf60-5fa3-46a2-aa03-1f551a89e874
2025-01-16 02:34:30,861 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4fbbdc6b-2990-4f79-8075-06935c7e2d62
2025-01-16 02:34:30,869 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-16 02:34:30,870 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9dc8a7a8-fc46-423b-80d2-28cd06e43bdc
2025-01-16 02:34:30,882 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e80dcf60-5fa3-46a2-aa03-1f551a89e874
2025-01-16 02:34:30,903 - INFO - Verified VN network id 8 for VN 9dc8a7a8-fc46-423b-80d2-28cd06e43bdc
2025-01-16 02:34:30,904 - INFO - Verifications in API Server for VN ctest-vn-84728462 passed
2025-01-16 02:34:30,904 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9dc8a7a8-fc46-423b-80d2-28cd06e43bdc
2025-01-16 02:34:30,921 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e80dcf60-5fa3-46a2-aa03-1f551a89e874
2025-01-16 02:34:30,932 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e80dcf60-5fa3-46a2-aa03-1f551a89e874
2025-01-16 02:34:30,944 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4fbbdc6b-2990-4f79-8075-06935c7e2d62
2025-01-16 02:34:30,963 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-84728462', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92259881', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11369521603525624379', 'uuid-lslong': '9282526643013041116'}, 'enable': 'true', 'created': '2025-01-16T02:34:28', 'last-modified': '2025-01-16T02:34:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.107269'}
2025-01-16 02:34:30,973 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-16 02:34:30,974 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84728462 passed
2025-01-16 02:34:30,974 - DEBUG - ====Verifying policy data for ctest-vn-84728462 in API_Server ======
2025-01-16 02:34:30,974 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-16 02:34:30,983 - DEBUG - Requesting: http://10.0.0.24:8082/domain/dea5725e-ca52-4bf1-898d-7446fcf384b8
2025-01-16 02:34:30,998 - DEBUG - Requesting: http://10.0.0.24:8082/project/793c1f12-4fd4-4188-836c-9b20a5119e18
2025-01-16 02:34:31,077 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/9dc8a7a8-fc46-423b-80d2-28cd06e43bdc
2025-01-16 02:34:31,091 - DEBUG - ==>Verifying data for policy with id: 4d399e12-a919-45de-85d5-92a542f72e75, fqn: ['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-policy-allow-all-70678840']
2025-01-16 02:34:31,091 - INFO - VN ctest-vn-84728462 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-16 02:34:31,092 - DEBUG - Verifying the vn in opserver
2025-01-16 02:34:31,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-84728462 virtual network link through opserver 10.0.0.24
2025-01-16 02:34:31,092 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-16 02:34:31,436 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-16 02:34:31,506 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-84728462', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-84728462?flat'}
2025-01-16 02:34:31,506 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-84728462 is found in opserver
2025-01-16 02:34:31,521 - DEBUG - Do not have enough data to verify VN in agent
2025-01-16 02:34:31,527 - DEBUG - VRF ids for VN ctest-vn-84728462: {}
2025-01-16 02:34:31,527 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-16 02:34:31,534 - DEBUG - Requesting: http://10.0.0.24:8082/domain/dea5725e-ca52-4bf1-898d-7446fcf384b8
2025-01-16 02:34:31,548 - DEBUG - Requesting: http://10.0.0.24:8082/project/793c1f12-4fd4-4188-836c-9b20a5119e18
2025-01-16 02:34:31,635 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/11e34749-27c7-4ee3-8ea8-285a4a501d04
2025-01-16 02:34:31,656 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/11e34749-27c7-4ee3-8ea8-285a4a501d04
2025-01-16 02:34:31,671 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/af1ac704-a14c-40d5-ae3d-cfef7c0be143
2025-01-16 02:34:31,682 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/af1ac704-a14c-40d5-ae3d-cfef7c0be143
2025-01-16 02:34:31,692 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ee7d0d78-3c9a-4a5e-90ef-9ad59e472f9d
2025-01-16 02:34:31,700 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-16 02:34:31,701 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/11e34749-27c7-4ee3-8ea8-285a4a501d04
2025-01-16 02:34:31,713 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/af1ac704-a14c-40d5-ae3d-cfef7c0be143
2025-01-16 02:34:31,732 - INFO - Verified VN network id 9 for VN 11e34749-27c7-4ee3-8ea8-285a4a501d04
2025-01-16 02:34:31,733 - INFO - Verifications in API Server for VN ctest-vn-07476260 passed
2025-01-16 02:34:31,733 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/11e34749-27c7-4ee3-8ea8-285a4a501d04
2025-01-16 02:34:31,746 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/af1ac704-a14c-40d5-ae3d-cfef7c0be143
2025-01-16 02:34:31,755 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/af1ac704-a14c-40d5-ae3d-cfef7c0be143
2025-01-16 02:34:31,764 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ee7d0d78-3c9a-4a5e-90ef-9ad59e472f9d
2025-01-16 02:34:31,779 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-07476260', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92259881', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1288952297883651811', 'uuid-lslong': '10279510517732089092'}, 'enable': 'true', 'created': '2025-01-16T02:34:29', 'last-modified': '2025-01-16T02:34:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.652510'}
2025-01-16 02:34:31,787 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-16 02:34:31,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07476260 passed
2025-01-16 02:34:31,787 - DEBUG - ====Verifying policy data for ctest-vn-07476260 in API_Server ======
2025-01-16 02:34:31,787 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-16 02:34:31,795 - DEBUG - Requesting: http://10.0.0.24:8082/domain/dea5725e-ca52-4bf1-898d-7446fcf384b8
2025-01-16 02:34:31,813 - DEBUG - Requesting: http://10.0.0.24:8082/project/793c1f12-4fd4-4188-836c-9b20a5119e18
2025-01-16 02:34:31,897 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/11e34749-27c7-4ee3-8ea8-285a4a501d04
2025-01-16 02:34:31,910 - DEBUG - ==>Verifying data for policy with id: 4d399e12-a919-45de-85d5-92a542f72e75, fqn: ['default-domain', 'ctest-TestBasicPolicy-92259881', 'ctest-policy-allow-all-70678840']
2025-01-16 02:34:31,910 - INFO - VN ctest-vn-07476260 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-16 02:34:31,910 - DEBUG - Verifying the vn in opserver
2025-01-16 02:34:31,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-07476260 virtual network link through opserver 10.0.0.24
2025-01-16 02:34:31,910 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-16 02:34:31,923 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-07476260', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-07476260?flat'}
2025-01-16 02:34:31,923 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92259881:ctest-vn-07476260 is found in opserver
2025-01-16 02:34:31,939 - DEBUG - Do not have enough data to verify VN in agent
2025-01-16 02:34:31,948 - DEBUG - VRF ids for VN ctest-vn-07476260: {}
2025-01-16 02:34:32,022 - DEBUG - Services list from nova: [