2025-04-28 15:57:06,763 - INFO - Domain Default found not creating
2025-04-28 15:57:06,894 - INFO - Project ctest-TestBasicPolicy-16626645 not found, creating it
2025-04-28 15:57:07,342 - INFO - Created Project:ctest-TestBasicPolicy-16626645, ID : ab021495-9f7d-4a0f-9120-f22b91c0b3cb
2025-04-28 15:57:08,723 - INFO - ================================================================================
2025-04-28 15:57:08,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 15:57:08,723 - 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-28 15:57:08,978 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.193': '0'}} with
2025-04-28 15:57:08,979 - INFO - Initial checks done. Running the testcase now
2025-04-28 15:57:08,979 - INFO -
2025-04-28 15:57:09,517 - DEBUG - Response for create_network : {'network': {'id': '0d734435-7c7c-43bf-8be1-78363124f328', 'name': 'ctest-vn-72263443', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-72263443'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:57:09,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '62176c43-269c-4dc3-9062-7405b8edd97e', 'name': '', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'network_id': '0d734435-7c7c-43bf-8be1-78363124f328', 'ip_version': 4, 'cidr': '79.49.239.0/26', 'allocation_pools': [{'start': '79.49.239.2', 'end': '79.49.239.62'}], 'gateway_ip': '79.49.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.49.239.2', 'tags': [], 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb'}}
2025-04-28 15:57:09,718 - INFO - Created VN ctest-vn-72263443
2025-04-28 15:57:09,773 - DEBUG - VN ctest-vn-72263443 UUID is 0d734435-7c7c-43bf-8be1-78363124f328
2025-04-28 15:57:10,101 - DEBUG - Response for create_network : {'network': {'id': '93544357-83ee-42af-9215-680bbc41e975', 'name': 'ctest-vn-64901461', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-64901461'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:57:10,316 - DEBUG - Response for create_subnet : {'subnet': {'id': '84f3b484-b381-48fe-9d95-173ad458362f', 'name': '', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'network_id': '93544357-83ee-42af-9215-680bbc41e975', 'ip_version': 4, 'cidr': '27.118.223.192/26', 'allocation_pools': [{'start': '27.118.223.194', 'end': '27.118.223.254'}], 'gateway_ip': '27.118.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.118.223.194', 'tags': [], 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb'}}
2025-04-28 15:57:10,335 - INFO - Created VN ctest-vn-64901461
2025-04-28 15:57:10,388 - DEBUG - VN ctest-vn-64901461 UUID is 93544357-83ee-42af-9215-680bbc41e975
2025-04-28 15:57:10,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443, 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-16626645:ctest-vn-64901461, 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-28 15:57:10,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d734435-7c7c-43bf-8be1-78363124f328', 'name': 'ctest-vn-72263443', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62176c43-269c-4dc3-9062-7405b8edd97e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-72263443'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959']], 'subnet_ipam': [{'subnet_cidr': '79.49.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:57:11,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93544357-83ee-42af-9215-680bbc41e975', 'name': 'ctest-vn-64901461', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84f3b484-b381-48fe-9d95-173ad458362f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-64901461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959']], 'subnet_ipam': [{'subnet_cidr': '27.118.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:57:11,236 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-28 15:57:11,540 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-28 15:57:11,567 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9
2025-04-28 15:57:11,582 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb
2025-04-28 15:57:11,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328
2025-04-28 15:57:11,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328
2025-04-28 15:57:11,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3
2025-04-28 15:57:11,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3
2025-04-28 15:57:11,694 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a690a6d-1b5c-49c8-b994-85b672e3bb1a
2025-04-28 15:57:11,701 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:57:11,701 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328
2025-04-28 15:57:11,711 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3
2025-04-28 15:57:11,725 - INFO - Verified VN network id 8 for VN 0d734435-7c7c-43bf-8be1-78363124f328
2025-04-28 15:57:11,726 - INFO - Verifications in API Server for VN ctest-vn-72263443 passed
2025-04-28 15:57:11,726 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328
2025-04-28 15:57:11,735 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3
2025-04-28 15:57:11,742 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3
2025-04-28 15:57:11,748 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a690a6d-1b5c-49c8-b994-85b672e3bb1a
2025-04-28 15:57:11,759 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16626645', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '969193341327262655', 'uuid-lslong': '10079469615179952936'}, 'enable': 'true', 'created': '2025-04-28T15:57:09', 'last-modified': '2025-04-28T15:57:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933195'}
2025-04-28 15:57:11,766 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:57:11,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72263443 passed
2025-04-28 15:57:11,766 - DEBUG - ====Verifying policy data for ctest-vn-72263443 in API_Server ======
2025-04-28 15:57:11,766 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-28 15:57:11,772 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9
2025-04-28 15:57:11,783 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb
2025-04-28 15:57:11,853 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328
2025-04-28 15:57:11,865 - DEBUG - ==>Verifying data for policy with id: 4d59b65c-36f7-4f89-b91f-a4d4ef7b44db, fqn: ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959']
2025-04-28 15:57:11,866 - INFO - VN ctest-vn-72263443 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:57:11,866 - DEBUG - Verifying the vn in opserver
2025-04-28 15:57:11,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443 virtual network link through opserver 10.0.0.38
2025-04-28 15:57:11,866 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-28 15:57:12,158 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-28 15:57:12,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443?flat'}
2025-04-28 15:57:12,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443 is found in opserver
2025-04-28 15:57:12,234 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:57:12,239 - DEBUG - VRF ids for VN ctest-vn-72263443: {}
2025-04-28 15:57:12,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-28 15:57:12,246 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9
2025-04-28 15:57:12,258 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb
2025-04-28 15:57:12,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975
2025-04-28 15:57:12,340 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975
2025-04-28 15:57:12,350 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825
2025-04-28 15:57:12,359 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825
2025-04-28 15:57:12,366 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47b25a16-aa42-4466-930b-e0a6a07716f3
2025-04-28 15:57:12,373 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:57:12,373 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975
2025-04-28 15:57:12,382 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825
2025-04-28 15:57:12,397 - INFO - Verified VN network id 9 for VN 93544357-83ee-42af-9215-680bbc41e975
2025-04-28 15:57:12,397 - INFO - Verifications in API Server for VN ctest-vn-64901461 passed
2025-04-28 15:57:12,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975
2025-04-28 15:57:12,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825
2025-04-28 15:57:12,414 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825
2025-04-28 15:57:12,422 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47b25a16-aa42-4466-930b-e0a6a07716f3
2025-04-28 15:57:12,434 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16626645', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10616184264773747375', 'uuid-lslong': '10526434103660767605'}, 'enable': 'true', 'created': '2025-04-28T15:57:10', 'last-modified': '2025-04-28T15:57:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371969'}
2025-04-28 15:57:12,441 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:57:12,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64901461 passed
2025-04-28 15:57:12,441 - DEBUG - ====Verifying policy data for ctest-vn-64901461 in API_Server ======
2025-04-28 15:57:12,441 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-28 15:57:12,447 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9
2025-04-28 15:57:12,458 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb
2025-04-28 15:57:12,528 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975
2025-04-28 15:57:12,538 - DEBUG - ==>Verifying data for policy with id: 4d59b65c-36f7-4f89-b91f-a4d4ef7b44db, fqn: ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959']
2025-04-28 15:57:12,538 - INFO - VN ctest-vn-64901461 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:57:12,538 - DEBUG - Verifying the vn in opserver
2025-04-28 15:57:12,538 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461 virtual network link through opserver 10.0.0.38
2025-04-28 15:57:12,538 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-28 15:57:12,549 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461?flat'}
2025-04-28 15:57:12,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461 is found in opserver
2025-04-28 15:57:12,560 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:57:12,565 - DEBUG - VRF ids for VN ctest-vn-64901461: {}
2025-04-28 15:57:12,621 - DEBUG - Services list from nova: [