2025-04-23 10:11:17,223 - INFO - Domain Default found not creating
2025-04-23 10:11:17,409 - INFO - Project ctest-TestBasicPolicy-68032808 not found, creating it
2025-04-23 10:11:17,983 - INFO - Created Project:ctest-TestBasicPolicy-68032808, ID : 63329528-4341-439b-ae4f-9ae8d82ba1e7
2025-04-23 10:11:19,714 - INFO - ================================================================================
2025-04-23 10:11:19,714 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 10:11:19,714 - 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-04-23 10:11:19,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-04-23 10:11:19,991 - INFO - Initial checks done. Running the testcase now
2025-04-23 10:11:19,991 - INFO -
2025-04-23 10:11:20,620 - DEBUG - Response for create_network : {'network': {'id': 'be9ece6d-5d47-412e-b7eb-33b28de9823f', 'name': 'ctest-vn-57716702', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-57716702'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:11:20,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd39cacbe-5873-4725-b126-d50cb16dba3b', 'name': '', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'network_id': 'be9ece6d-5d47-412e-b7eb-33b28de9823f', 'ip_version': 4, 'cidr': '94.129.62.64/26', 'allocation_pools': [{'start': '94.129.62.66', 'end': '94.129.62.126'}], 'gateway_ip': '94.129.62.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.129.62.66', 'tags': [], 'project_id': '633295284341439bae4f9ae8d82ba1e7'}}
2025-04-23 10:11:20,855 - INFO - Created VN ctest-vn-57716702
2025-04-23 10:11:20,911 - DEBUG - VN ctest-vn-57716702 UUID is be9ece6d-5d47-412e-b7eb-33b28de9823f
2025-04-23 10:11:21,301 - DEBUG - Response for create_network : {'network': {'id': 'd2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c', 'name': 'ctest-vn-45014198', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-45014198'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:11:21,502 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef4f5020-244a-4713-84f8-0b3344de86b3', 'name': '', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'network_id': 'd2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c', 'ip_version': 4, 'cidr': '102.250.198.0/26', 'allocation_pools': [{'start': '102.250.198.2', 'end': '102.250.198.62'}], 'gateway_ip': '102.250.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.250.198.2', 'tags': [], 'project_id': '633295284341439bae4f9ae8d82ba1e7'}}
2025-04-23 10:11:21,531 - INFO - Created VN ctest-vn-45014198
2025-04-23 10:11:21,591 - DEBUG - VN ctest-vn-45014198 UUID is d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c
2025-04-23 10:11:21,723 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702, 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-68032808:ctest-vn-45014198, 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-04-23 10:11:22,063 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be9ece6d-5d47-412e-b7eb-33b28de9823f', 'name': 'ctest-vn-57716702', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d39cacbe-5873-4725-b126-d50cb16dba3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-57716702'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204']], 'subnet_ipam': [{'subnet_cidr': '94.129.62.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:11:22,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c', 'name': 'ctest-vn-45014198', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef4f5020-244a-4713-84f8-0b3344de86b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-45014198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204']], 'subnet_ipam': [{'subnet_cidr': '102.250.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 10:11:22,547 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 10:11:22,867 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 10:11:22,903 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969
2025-04-23 10:11:22,921 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7
2025-04-23 10:11:23,003 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f
2025-04-23 10:11:23,018 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f
2025-04-23 10:11:23,033 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b
2025-04-23 10:11:23,043 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b
2025-04-23 10:11:23,053 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c708cbcd-5673-485b-963f-35eb56e6a5c5
2025-04-23 10:11:23,062 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 10:11:23,063 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f
2025-04-23 10:11:23,077 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b
2025-04-23 10:11:23,098 - INFO - Verified VN network id 8 for VN be9ece6d-5d47-412e-b7eb-33b28de9823f
2025-04-23 10:11:23,098 - INFO - Verifications in API Server for VN ctest-vn-57716702 passed
2025-04-23 10:11:23,099 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f
2025-04-23 10:11:23,114 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b
2025-04-23 10:11:23,124 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b
2025-04-23 10:11:23,137 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c708cbcd-5673-485b-963f-35eb56e6a5c5
2025-04-23 10:11:23,156 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68032808', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735642882638299438', 'uuid-lslong': '13252743170445902399'}, 'enable': 'true', 'created': '2025-04-23T10:11:20', 'last-modified': '2025-04-23T10:11:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.122510'}
2025-04-23 10:11:23,167 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 10:11:23,168 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57716702 passed
2025-04-23 10:11:23,168 - DEBUG - ====Verifying policy data for ctest-vn-57716702 in API_Server ======
2025-04-23 10:11:23,168 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 10:11:23,177 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969
2025-04-23 10:11:23,192 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7
2025-04-23 10:11:23,289 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f
2025-04-23 10:11:23,304 - DEBUG - ==>Verifying data for policy with id: b563d3af-6c31-4b20-9651-ba474fbcb8d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204']
2025-04-23 10:11:23,304 - INFO - VN ctest-vn-57716702 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 10:11:23,304 - DEBUG - Verifying the vn in opserver
2025-04-23 10:11:23,304 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702 virtual network link through opserver 10.0.0.130
2025-04-23 10:11:23,305 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-23 10:11:23,611 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-23 10:11:23,698 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702?flat'}
2025-04-23 10:11:23,698 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702 is found in opserver
2025-04-23 10:11:23,712 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 10:11:23,720 - DEBUG - VRF ids for VN ctest-vn-57716702: {}
2025-04-23 10:11:23,720 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 10:11:23,729 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969
2025-04-23 10:11:23,744 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7
2025-04-23 10:11:23,831 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c
2025-04-23 10:11:23,851 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c
2025-04-23 10:11:23,866 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1
2025-04-23 10:11:23,878 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1
2025-04-23 10:11:23,889 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5630d1a7-3a84-4e0e-86a9-d85e7888e883
2025-04-23 10:11:23,899 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 10:11:23,899 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c
2025-04-23 10:11:23,914 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1
2025-04-23 10:11:23,935 - INFO - Verified VN network id 9 for VN d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c
2025-04-23 10:11:23,935 - INFO - Verifications in API Server for VN ctest-vn-45014198 passed
2025-04-23 10:11:23,935 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c
2025-04-23 10:11:23,948 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1
2025-04-23 10:11:23,959 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1
2025-04-23 10:11:23,970 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5630d1a7-3a84-4e0e-86a9-d85e7888e883
2025-04-23 10:11:23,987 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68032808', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15193876721862396649', 'uuid-lslong': '12226658555203578956'}, 'enable': 'true', 'created': '2025-04-23T10:11:21', 'last-modified': '2025-04-23T10:11:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.672418'}
2025-04-23 10:11:23,996 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 10:11:23,996 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45014198 passed
2025-04-23 10:11:23,996 - DEBUG - ====Verifying policy data for ctest-vn-45014198 in API_Server ======
2025-04-23 10:11:23,996 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-23 10:11:24,005 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969
2025-04-23 10:11:24,021 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7
2025-04-23 10:11:24,105 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c
2025-04-23 10:11:24,117 - DEBUG - ==>Verifying data for policy with id: b563d3af-6c31-4b20-9651-ba474fbcb8d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204']
2025-04-23 10:11:24,117 - INFO - VN ctest-vn-45014198 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 10:11:24,117 - DEBUG - Verifying the vn in opserver
2025-04-23 10:11:24,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198 virtual network link through opserver 10.0.0.130
2025-04-23 10:11:24,118 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-23 10:11:24,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198?flat'}
2025-04-23 10:11:24,131 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198 is found in opserver
2025-04-23 10:11:24,145 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 10:11:24,154 - DEBUG - VRF ids for VN ctest-vn-45014198: {}
2025-04-23 10:11:24,247 - DEBUG - Services list from nova: [