2025-07-11 13:18:49,881 - INFO - Domain Default found not creating
2025-07-11 13:18:50,141 - INFO - Project ctest-TestBasicPolicy-69429056 not found, creating it
2025-07-11 13:18:51,000 - INFO - Created Project:ctest-TestBasicPolicy-69429056, ID : 3dbf9e65-e258-4851-a17e-461d1ba1f22a
2025-07-11 13:18:52,537 - INFO - ================================================================================
2025-07-11 13:18:52,537 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-11 13:18:52,537 - 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-07-11 13:18:52,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-11 13:18:52,792 - INFO - Initial checks done. Running the testcase now
2025-07-11 13:18:52,792 - INFO -
2025-07-11 13:18:53,385 - DEBUG - Response for create_network : {'network': {'id': '0f34cff4-607d-4072-8d9d-84b50e6b8b30', 'name': 'ctest-vn-32001832', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-32001832'], 'port_security_enabled': True, 'description': ''}}
2025-07-11 13:18:53,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '931d351d-b839-4197-bb58-44436560218f', 'name': '', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'network_id': '0f34cff4-607d-4072-8d9d-84b50e6b8b30', 'ip_version': 4, 'cidr': '176.232.226.192/26', 'allocation_pools': [{'start': '176.232.226.194', 'end': '176.232.226.254'}], 'gateway_ip': '176.232.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.232.226.194', 'tags': [], 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a'}}
2025-07-11 13:18:53,596 - INFO - Created VN ctest-vn-32001832
2025-07-11 13:18:53,653 - DEBUG - VN ctest-vn-32001832 UUID is 0f34cff4-607d-4072-8d9d-84b50e6b8b30
2025-07-11 13:18:54,003 - DEBUG - Response for create_network : {'network': {'id': '6241f450-20c8-4a6d-946c-b9003d27e128', 'name': 'ctest-vn-96725864', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-96725864'], 'port_security_enabled': True, 'description': ''}}
2025-07-11 13:18:54,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '69e99d18-6ad7-4e11-baa1-ccf0132bd662', 'name': '', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'network_id': '6241f450-20c8-4a6d-946c-b9003d27e128', 'ip_version': 4, 'cidr': '174.13.40.64/26', 'allocation_pools': [{'start': '174.13.40.66', 'end': '174.13.40.126'}], 'gateway_ip': '174.13.40.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.13.40.66', 'tags': [], 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a'}}
2025-07-11 13:18:54,195 - INFO - Created VN ctest-vn-96725864
2025-07-11 13:18:54,249 - DEBUG - VN ctest-vn-96725864 UUID is 6241f450-20c8-4a6d-946c-b9003d27e128
2025-07-11 13:18:54,381 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832, 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-69429056:ctest-vn-96725864, 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-07-11 13:18:54,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f34cff4-607d-4072-8d9d-84b50e6b8b30', 'name': 'ctest-vn-32001832', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['931d351d-b839-4197-bb58-44436560218f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-32001832'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988']], 'subnet_ipam': [{'subnet_cidr': '176.232.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-11 13:18:55,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6241f450-20c8-4a6d-946c-b9003d27e128', 'name': 'ctest-vn-96725864', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69e99d18-6ad7-4e11-baa1-ccf0132bd662'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-96725864'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988']], 'subnet_ipam': [{'subnet_cidr': '174.13.40.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-11 13:18:55,168 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-11 13:18:55,607 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-11 13:18:55,650 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211
2025-07-11 13:18:55,672 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a
2025-07-11 13:18:55,753 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30
2025-07-11 13:18:55,767 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30
2025-07-11 13:18:55,779 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060
2025-07-11 13:18:55,789 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060
2025-07-11 13:18:55,799 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/305bfed2-f1e0-4393-82bf-a0cb29aa1eac
2025-07-11 13:18:55,807 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-11 13:18:55,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30
2025-07-11 13:18:55,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060
2025-07-11 13:18:55,836 - INFO - Verified VN network id 8 for VN 0f34cff4-607d-4072-8d9d-84b50e6b8b30
2025-07-11 13:18:55,836 - INFO - Verifications in API Server for VN ctest-vn-32001832 passed
2025-07-11 13:18:55,836 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30
2025-07-11 13:18:55,848 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060
2025-07-11 13:18:55,858 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060
2025-07-11 13:18:55,866 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/305bfed2-f1e0-4393-82bf-a0cb29aa1eac
2025-07-11 13:18:55,882 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69429056', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1095729257855664242', 'uuid-lslong': '10204458243857287984'}, 'enable': 'true', 'created': '2025-07-11T13:18:53', 'last-modified': '2025-07-11T13:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.206253'}
2025-07-11 13:18:55,890 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-11 13:18:55,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32001832 passed
2025-07-11 13:18:55,890 - DEBUG - ====Verifying policy data for ctest-vn-32001832 in API_Server ======
2025-07-11 13:18:55,890 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-11 13:18:55,897 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211
2025-07-11 13:18:55,910 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a
2025-07-11 13:18:55,992 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30
2025-07-11 13:18:56,005 - DEBUG - ==>Verifying data for policy with id: e9f49dea-ff43-48ad-b24e-9e8c6a214c14, fqn: ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988']
2025-07-11 13:18:56,006 - INFO - VN ctest-vn-32001832 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-11 13:18:56,006 - DEBUG - Verifying the vn in opserver
2025-07-11 13:18:56,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832 virtual network link through opserver 10.0.0.50
2025-07-11 13:18:56,006 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-11 13:18:56,305 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-11 13:18:56,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832?flat'}
2025-07-11 13:18:56,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832 is found in opserver
2025-07-11 13:18:56,385 - DEBUG - Do not have enough data to verify VN in agent
2025-07-11 13:18:56,391 - DEBUG - VRF ids for VN ctest-vn-32001832: {}
2025-07-11 13:18:56,392 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-11 13:18:56,399 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211
2025-07-11 13:18:56,412 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a
2025-07-11 13:18:56,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128
2025-07-11 13:18:56,502 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128
2025-07-11 13:18:56,514 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0
2025-07-11 13:18:56,524 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0
2025-07-11 13:18:56,534 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d006aabd-2fb9-4877-a20f-2d9d8b176c73
2025-07-11 13:18:56,543 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-11 13:18:56,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128
2025-07-11 13:18:56,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0
2025-07-11 13:18:56,572 - INFO - Verified VN network id 9 for VN 6241f450-20c8-4a6d-946c-b9003d27e128
2025-07-11 13:18:56,572 - INFO - Verifications in API Server for VN ctest-vn-96725864 passed
2025-07-11 13:18:56,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128
2025-07-11 13:18:56,584 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0
2025-07-11 13:18:56,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0
2025-07-11 13:18:56,602 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d006aabd-2fb9-4877-a20f-2d9d8b176c73
2025-07-11 13:18:56,616 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69429056', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7080208714187688557', 'uuid-lslong': '10695126625775247656'}, 'enable': 'true', 'created': '2025-07-11T13:18:53', 'last-modified': '2025-07-11T13:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.682056'}
2025-07-11 13:18:56,623 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-11 13:18:56,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96725864 passed
2025-07-11 13:18:56,623 - DEBUG - ====Verifying policy data for ctest-vn-96725864 in API_Server ======
2025-07-11 13:18:56,623 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-11 13:18:56,631 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211
2025-07-11 13:18:56,644 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a
2025-07-11 13:18:56,724 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128
2025-07-11 13:18:56,734 - DEBUG - ==>Verifying data for policy with id: e9f49dea-ff43-48ad-b24e-9e8c6a214c14, fqn: ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988']
2025-07-11 13:18:56,734 - INFO - VN ctest-vn-96725864 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-11 13:18:56,735 - DEBUG - Verifying the vn in opserver
2025-07-11 13:18:56,735 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864 virtual network link through opserver 10.0.0.50
2025-07-11 13:18:56,735 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-11 13:18:56,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864?flat'}
2025-07-11 13:18:56,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864 is found in opserver
2025-07-11 13:18:56,761 - DEBUG - Do not have enough data to verify VN in agent
2025-07-11 13:18:56,767 - DEBUG - VRF ids for VN ctest-vn-96725864: {}
2025-07-11 13:18:56,832 - DEBUG - Services list from nova: [