2025-02-03 19:05:06,968 - INFO - Domain Default found not creating
2025-02-03 19:05:07,184 - INFO - Project ctest-TestBasicPolicy-85188586 not found, creating it
2025-02-03 19:05:08,004 - INFO - Created Project:ctest-TestBasicPolicy-85188586, ID : 32ecc1c7-b26e-44c8-99dc-5bb9d6e54486
2025-02-03 19:05:09,683 - INFO - ================================================================================
2025-02-03 19:05:09,684 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 19:05:09,684 - 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-03 19:05:09,960 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.20': '0'}} with
2025-02-03 19:05:09,960 - INFO - Initial checks done. Running the testcase now
2025-02-03 19:05:09,960 - INFO -
2025-02-03 19:05:10,594 - DEBUG - Response for create_network : {'network': {'id': '852d69bd-c0a5-4ffa-a6af-81f8f41f215c', 'name': 'ctest-vn-08615394', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-08615394'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 19:05:10,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc194581-ca13-421f-877c-b9dc6c59bacc', 'name': '', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'network_id': '852d69bd-c0a5-4ffa-a6af-81f8f41f215c', 'ip_version': 4, 'cidr': '103.202.187.192/26', 'allocation_pools': [{'start': '103.202.187.194', 'end': '103.202.187.254'}], 'gateway_ip': '103.202.187.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.202.187.194', 'tags': [], 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486'}}
2025-02-03 19:05:10,813 - INFO - Created VN ctest-vn-08615394
2025-02-03 19:05:10,870 - DEBUG - VN ctest-vn-08615394 UUID is 852d69bd-c0a5-4ffa-a6af-81f8f41f215c
2025-02-03 19:05:11,216 - DEBUG - Response for create_network : {'network': {'id': 'cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5', 'name': 'ctest-vn-43565288', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-43565288'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 19:05:11,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '345f1c0f-a4a6-431f-af5d-b4c05ed4af4d', 'name': '', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'network_id': 'cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5', 'ip_version': 4, 'cidr': '198.129.157.128/26', 'allocation_pools': [{'start': '198.129.157.130', 'end': '198.129.157.190'}], 'gateway_ip': '198.129.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.129.157.130', 'tags': [], 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486'}}
2025-02-03 19:05:11,416 - INFO - Created VN ctest-vn-43565288
2025-02-03 19:05:11,474 - DEBUG - VN ctest-vn-43565288 UUID is cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5
2025-02-03 19:05:11,606 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394, 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-85188586:ctest-vn-43565288, 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-03 19:05:11,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '852d69bd-c0a5-4ffa-a6af-81f8f41f215c', 'name': 'ctest-vn-08615394', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc194581-ca13-421f-877c-b9dc6c59bacc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-08615394'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599']], 'subnet_ipam': [{'subnet_cidr': '103.202.187.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 19:05:12,233 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5', 'name': 'ctest-vn-43565288', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['345f1c0f-a4a6-431f-af5d-b4c05ed4af4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-43565288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599']], 'subnet_ipam': [{'subnet_cidr': '198.129.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 19:05:12,410 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-03 19:05:12,719 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-03 19:05:13,044 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb
2025-02-03 19:05:13,064 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486
2025-02-03 19:05:13,151 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c
2025-02-03 19:05:13,165 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c
2025-02-03 19:05:13,179 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c
2025-02-03 19:05:13,189 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c
2025-02-03 19:05:13,200 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c9843a10-434c-47b5-99a8-68ecd42955f2
2025-02-03 19:05:13,211 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 19:05:13,212 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c
2025-02-03 19:05:13,228 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c
2025-02-03 19:05:13,256 - INFO - Verified VN network id 8 for VN 852d69bd-c0a5-4ffa-a6af-81f8f41f215c
2025-02-03 19:05:13,257 - INFO - Verifications in API Server for VN ctest-vn-08615394 passed
2025-02-03 19:05:13,257 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c
2025-02-03 19:05:13,273 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c
2025-02-03 19:05:13,284 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c
2025-02-03 19:05:13,294 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c9843a10-434c-47b5-99a8-68ecd42955f2
2025-02-03 19:05:13,311 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85188586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9596442644698189818', 'uuid-lslong': '12010961637467955548'}, 'enable': 'true', 'created': '2025-02-03T19:05:10', 'last-modified': '2025-02-03T19:05:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.404826'}
2025-02-03 19:05:13,322 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 19:05:13,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08615394 passed
2025-02-03 19:05:13,322 - DEBUG - ====Verifying policy data for ctest-vn-08615394 in API_Server ======
2025-02-03 19:05:13,322 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-03 19:05:13,330 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb
2025-02-03 19:05:13,346 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486
2025-02-03 19:05:13,427 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c
2025-02-03 19:05:13,441 - DEBUG - ==>Verifying data for policy with id: 22372a9c-288e-417e-b963-0cafa8d16f4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599']
2025-02-03 19:05:13,441 - INFO - VN ctest-vn-08615394 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 19:05:13,441 - DEBUG - Verifying the vn in opserver
2025-02-03 19:05:13,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394 virtual network link through opserver 10.0.0.28
2025-02-03 19:05:13,442 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-02-03 19:05:13,794 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-02-03 19:05:13,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394?flat'}
2025-02-03 19:05:13,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394 is found in opserver
2025-02-03 19:05:13,902 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 19:05:13,910 - DEBUG - VRF ids for VN ctest-vn-08615394: {}
2025-02-03 19:05:13,910 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-03 19:05:13,917 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb
2025-02-03 19:05:13,934 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486
2025-02-03 19:05:14,017 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5
2025-02-03 19:05:14,033 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5
2025-02-03 19:05:14,046 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add
2025-02-03 19:05:14,056 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add
2025-02-03 19:05:14,066 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a5961cb5-0187-4bf8-ac69-b95282a10b45
2025-02-03 19:05:14,075 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 19:05:14,075 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5
2025-02-03 19:05:14,088 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add
2025-02-03 19:05:14,113 - INFO - Verified VN network id 9 for VN cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5
2025-02-03 19:05:14,114 - INFO - Verifications in API Server for VN ctest-vn-43565288 passed
2025-02-03 19:05:14,114 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5
2025-02-03 19:05:14,130 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add
2025-02-03 19:05:14,139 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add
2025-02-03 19:05:14,148 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a5961cb5-0187-4bf8-ac69-b95282a10b45
2025-02-03 19:05:14,165 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85188586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14933604023093773159', 'uuid-lslong': '12260440417747073189'}, 'enable': 'true', 'created': '2025-02-03T19:05:11', 'last-modified': '2025-02-03T19:05:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.970663'}
2025-02-03 19:05:14,174 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 19:05:14,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43565288 passed
2025-02-03 19:05:14,175 - DEBUG - ====Verifying policy data for ctest-vn-43565288 in API_Server ======
2025-02-03 19:05:14,175 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-03 19:05:14,182 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb
2025-02-03 19:05:14,199 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486
2025-02-03 19:05:14,280 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5
2025-02-03 19:05:14,293 - DEBUG - ==>Verifying data for policy with id: 22372a9c-288e-417e-b963-0cafa8d16f4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599']
2025-02-03 19:05:14,293 - INFO - VN ctest-vn-43565288 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 19:05:14,294 - DEBUG - Verifying the vn in opserver
2025-02-03 19:05:14,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288 virtual network link through opserver 10.0.0.28
2025-02-03 19:05:14,294 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-02-03 19:05:14,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288?flat'}
2025-02-03 19:05:14,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288 is found in opserver
2025-02-03 19:05:14,322 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 19:05:14,328 - DEBUG - VRF ids for VN ctest-vn-43565288: {}
2025-02-03 19:05:14,405 - DEBUG - Services list from nova: [