2025-01-06 02:14:08,180 - INFO - Domain Default found not creating
2025-01-06 02:14:08,323 - INFO - Project ctest-TestBasicPolicy-94162460 not found, creating it
2025-01-06 02:14:08,767 - INFO - Created Project:ctest-TestBasicPolicy-94162460, ID : 4bc716b2-391e-47c0-9ad6-f6a6da820d20
2025-01-06 02:14:10,297 - INFO - ================================================================================
2025-01-06 02:14:10,297 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-06 02:14:10,297 - 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-06 02:14:10,552 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.10': '0'}} with
2025-01-06 02:14:10,552 - INFO - Initial checks done. Running the testcase now
2025-01-06 02:14:10,552 - INFO -
2025-01-06 02:14:11,079 - DEBUG - Response for create_network : {'network': {'id': '31c46a42-0a52-44bc-936a-ba97c1ee2736', 'name': 'ctest-vn-47410231', 'tenant_id': '4bc716b2391e47c09ad6f6a6da820d20', 'project_id': '4bc716b2391e47c09ad6f6a6da820d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-vn-47410231'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 02:14:11,257 - DEBUG - Response for create_subnet : {'subnet': {'id': 'feb3a971-25a4-4665-b2c9-0bf750ecba61', 'name': '', 'tenant_id': '4bc716b2391e47c09ad6f6a6da820d20', 'network_id': '31c46a42-0a52-44bc-936a-ba97c1ee2736', 'ip_version': 4, 'cidr': '167.54.205.64/26', 'allocation_pools': [{'start': '167.54.205.66', 'end': '167.54.205.126'}], 'gateway_ip': '167.54.205.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.54.205.66', 'tags': [], 'project_id': '4bc716b2391e47c09ad6f6a6da820d20'}}
2025-01-06 02:14:11,274 - INFO - Created VN ctest-vn-47410231
2025-01-06 02:14:11,326 - DEBUG - VN ctest-vn-47410231 UUID is 31c46a42-0a52-44bc-936a-ba97c1ee2736
2025-01-06 02:14:11,638 - DEBUG - Response for create_network : {'network': {'id': '242b3104-0221-4ea9-88bc-7832a6368c6d', 'name': 'ctest-vn-37899198', 'tenant_id': '4bc716b2391e47c09ad6f6a6da820d20', 'project_id': '4bc716b2391e47c09ad6f6a6da820d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-vn-37899198'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 02:14:11,796 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d2cbbec-2c38-4dd6-aca3-9c6c1f5c3831', 'name': '', 'tenant_id': '4bc716b2391e47c09ad6f6a6da820d20', 'network_id': '242b3104-0221-4ea9-88bc-7832a6368c6d', 'ip_version': 4, 'cidr': '200.50.81.192/26', 'allocation_pools': [{'start': '200.50.81.194', 'end': '200.50.81.254'}], 'gateway_ip': '200.50.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.50.81.194', 'tags': [], 'project_id': '4bc716b2391e47c09ad6f6a6da820d20'}}
2025-01-06 02:14:11,933 - INFO - Created VN ctest-vn-37899198
2025-01-06 02:14:11,982 - DEBUG - VN ctest-vn-37899198 UUID is 242b3104-0221-4ea9-88bc-7832a6368c6d
2025-01-06 02:14:12,134 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-47410231, 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-94162460:ctest-vn-37899198, 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-06 02:14:12,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31c46a42-0a52-44bc-936a-ba97c1ee2736', 'name': 'ctest-vn-47410231', 'tenant_id': '4bc716b2391e47c09ad6f6a6da820d20', 'project_id': '4bc716b2391e47c09ad6f6a6da820d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['feb3a971-25a4-4665-b2c9-0bf750ecba61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-vn-47410231'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-policy-allow-all-34910065']], 'subnet_ipam': [{'subnet_cidr': '167.54.205.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 02:14:12,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '242b3104-0221-4ea9-88bc-7832a6368c6d', 'name': 'ctest-vn-37899198', 'tenant_id': '4bc716b2391e47c09ad6f6a6da820d20', 'project_id': '4bc716b2391e47c09ad6f6a6da820d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d2cbbec-2c38-4dd6-aca3-9c6c1f5c3831'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-vn-37899198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-policy-allow-all-34910065']], 'subnet_ipam': [{'subnet_cidr': '200.50.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 02:14:12,795 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-06 02:14:13,088 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-06 02:14:13,116 - DEBUG - Requesting: http://10.0.0.31:8082/domain/eda99fe6-ea64-440a-b3b8-1fba5b11cf3c
2025-01-06 02:14:13,129 - DEBUG - Requesting: http://10.0.0.31:8082/project/4bc716b2-391e-47c0-9ad6-f6a6da820d20
2025-01-06 02:14:13,203 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/31c46a42-0a52-44bc-936a-ba97c1ee2736
2025-01-06 02:14:13,215 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/31c46a42-0a52-44bc-936a-ba97c1ee2736
2025-01-06 02:14:13,224 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d471a32d-c454-4055-925c-9d7d40c82aac
2025-01-06 02:14:13,233 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d471a32d-c454-4055-925c-9d7d40c82aac
2025-01-06 02:14:13,242 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/4e414b45-f9d6-45be-ba73-3b1d0cf474d0
2025-01-06 02:14:13,250 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 02:14:13,250 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/31c46a42-0a52-44bc-936a-ba97c1ee2736
2025-01-06 02:14:13,258 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d471a32d-c454-4055-925c-9d7d40c82aac
2025-01-06 02:14:13,271 - INFO - Verified VN network id 9 for VN 31c46a42-0a52-44bc-936a-ba97c1ee2736
2025-01-06 02:14:13,271 - INFO - Verifications in API Server for VN ctest-vn-47410231 passed
2025-01-06 02:14:13,271 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/31c46a42-0a52-44bc-936a-ba97c1ee2736
2025-01-06 02:14:13,281 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d471a32d-c454-4055-925c-9d7d40c82aac
2025-01-06 02:14:13,288 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/d471a32d-c454-4055-925c-9d7d40c82aac
2025-01-06 02:14:13,296 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/4e414b45-f9d6-45be-ba73-3b1d0cf474d0
2025-01-06 02:14:13,310 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-47410231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94162460', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3586108035167306940', 'uuid-lslong': '10622507832063174454'}, 'enable': 'true', 'created': '2025-01-06T02:14:11', 'last-modified': '2025-01-06T02:14:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917876'}
2025-01-06 02:14:13,317 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 02:14:13,317 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47410231 passed
2025-01-06 02:14:13,317 - DEBUG - ====Verifying policy data for ctest-vn-47410231 in API_Server ======
2025-01-06 02:14:13,317 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-06 02:14:13,324 - DEBUG - Requesting: http://10.0.0.31:8082/domain/eda99fe6-ea64-440a-b3b8-1fba5b11cf3c
2025-01-06 02:14:13,337 - DEBUG - Requesting: http://10.0.0.31:8082/project/4bc716b2-391e-47c0-9ad6-f6a6da820d20
2025-01-06 02:14:13,408 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/31c46a42-0a52-44bc-936a-ba97c1ee2736
2025-01-06 02:14:13,416 - DEBUG - ==>Verifying data for policy with id: 4dc8de40-59f7-41b4-b173-99c2f6672a82, fqn: ['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-policy-allow-all-34910065']
2025-01-06 02:14:13,416 - INFO - VN ctest-vn-47410231 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 02:14:13,416 - DEBUG - Verifying the vn in opserver
2025-01-06 02:14:13,416 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-47410231 virtual network link through opserver 10.0.0.31
2025-01-06 02:14:13,416 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-06 02:14:13,727 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-06 02:14:13,783 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-47410231', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-47410231?flat'}
2025-01-06 02:14:13,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-47410231 is found in opserver
2025-01-06 02:14:13,794 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 02:14:13,799 - DEBUG - VRF ids for VN ctest-vn-47410231: {}
2025-01-06 02:14:13,799 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-06 02:14:13,805 - DEBUG - Requesting: http://10.0.0.31:8082/domain/eda99fe6-ea64-440a-b3b8-1fba5b11cf3c
2025-01-06 02:14:13,816 - DEBUG - Requesting: http://10.0.0.31:8082/project/4bc716b2-391e-47c0-9ad6-f6a6da820d20
2025-01-06 02:14:13,885 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/242b3104-0221-4ea9-88bc-7832a6368c6d
2025-01-06 02:14:13,897 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/242b3104-0221-4ea9-88bc-7832a6368c6d
2025-01-06 02:14:13,907 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/96aca521-f1c6-45df-8d93-c10f1e35abd6
2025-01-06 02:14:13,914 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/96aca521-f1c6-45df-8d93-c10f1e35abd6
2025-01-06 02:14:13,920 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/75eb618e-bca5-4b76-a0b7-3d04d601c961
2025-01-06 02:14:13,926 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-06 02:14:13,926 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/242b3104-0221-4ea9-88bc-7832a6368c6d
2025-01-06 02:14:13,933 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/96aca521-f1c6-45df-8d93-c10f1e35abd6
2025-01-06 02:14:13,943 - INFO - Verified VN network id 10 for VN 242b3104-0221-4ea9-88bc-7832a6368c6d
2025-01-06 02:14:13,943 - INFO - Verifications in API Server for VN ctest-vn-37899198 passed
2025-01-06 02:14:13,943 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/242b3104-0221-4ea9-88bc-7832a6368c6d
2025-01-06 02:14:13,952 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/96aca521-f1c6-45df-8d93-c10f1e35abd6
2025-01-06 02:14:13,958 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/96aca521-f1c6-45df-8d93-c10f1e35abd6
2025-01-06 02:14:13,964 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/75eb618e-bca5-4b76-a0b7-3d04d601c961
2025-01-06 02:14:13,977 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-37899198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94162460', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2606230702649331369', 'uuid-lslong': '9852882243712093293'}, 'enable': 'true', 'created': '2025-01-06T02:14:11', 'last-modified': '2025-01-06T02:14:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358764'}
2025-01-06 02:14:13,983 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-06 02:14:13,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37899198 passed
2025-01-06 02:14:13,983 - DEBUG - ====Verifying policy data for ctest-vn-37899198 in API_Server ======
2025-01-06 02:14:13,983 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-06 02:14:13,989 - DEBUG - Requesting: http://10.0.0.31:8082/domain/eda99fe6-ea64-440a-b3b8-1fba5b11cf3c
2025-01-06 02:14:14,003 - DEBUG - Requesting: http://10.0.0.31:8082/project/4bc716b2-391e-47c0-9ad6-f6a6da820d20
2025-01-06 02:14:14,073 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/242b3104-0221-4ea9-88bc-7832a6368c6d
2025-01-06 02:14:14,081 - DEBUG - ==>Verifying data for policy with id: 4dc8de40-59f7-41b4-b173-99c2f6672a82, fqn: ['default-domain', 'ctest-TestBasicPolicy-94162460', 'ctest-policy-allow-all-34910065']
2025-01-06 02:14:14,081 - INFO - VN ctest-vn-37899198 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 02:14:14,081 - DEBUG - Verifying the vn in opserver
2025-01-06 02:14:14,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-37899198 virtual network link through opserver 10.0.0.31
2025-01-06 02:14:14,081 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-06 02:14:14,091 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-37899198', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-37899198?flat'}
2025-01-06 02:14:14,091 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94162460:ctest-vn-37899198 is found in opserver
2025-01-06 02:14:14,101 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 02:14:14,106 - DEBUG - VRF ids for VN ctest-vn-37899198: {}
2025-01-06 02:14:14,167 - DEBUG - Services list from nova: [