2025-02-05 10:27:42,104 - INFO - Domain Default found not creating
2025-02-05 10:27:42,247 - INFO - Project ctest-TestBasicPolicy-28487798 not found, creating it
2025-02-05 10:27:42,726 - INFO - Created Project:ctest-TestBasicPolicy-28487798, ID : 1ebcadf2-5d49-4a29-a5b9-8f8e14727773
2025-02-05 10:27:44,185 - INFO - ================================================================================
2025-02-05 10:27:44,186 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-05 10:27:44,186 - 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-05 10:27:44,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.12': '0'}} with
2025-02-05 10:27:44,441 - INFO - Initial checks done. Running the testcase now
2025-02-05 10:27:44,441 - INFO -
2025-02-05 10:27:45,013 - DEBUG - Response for create_network : {'network': {'id': '6bb7c58a-de32-4427-b83a-4530a532e95b', 'name': 'ctest-vn-73704976', 'tenant_id': '1ebcadf25d494a29a5b98f8e14727773', 'project_id': '1ebcadf25d494a29a5b98f8e14727773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-vn-73704976'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 10:27:45,263 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a1ab9a7-5c97-452f-a7f1-8d9b3270ec9b', 'name': '', 'tenant_id': '1ebcadf25d494a29a5b98f8e14727773', 'network_id': '6bb7c58a-de32-4427-b83a-4530a532e95b', 'ip_version': 4, 'cidr': '213.195.187.192/26', 'allocation_pools': [{'start': '213.195.187.194', 'end': '213.195.187.254'}], 'gateway_ip': '213.195.187.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.195.187.194', 'tags': [], 'project_id': '1ebcadf25d494a29a5b98f8e14727773'}}
2025-02-05 10:27:45,283 - INFO - Created VN ctest-vn-73704976
2025-02-05 10:27:45,342 - DEBUG - VN ctest-vn-73704976 UUID is 6bb7c58a-de32-4427-b83a-4530a532e95b
2025-02-05 10:27:45,636 - DEBUG - Response for create_network : {'network': {'id': '6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6', 'name': 'ctest-vn-94439370', 'tenant_id': '1ebcadf25d494a29a5b98f8e14727773', 'project_id': '1ebcadf25d494a29a5b98f8e14727773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-vn-94439370'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 10:27:45,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '321e1be7-6aab-4364-a0cd-dba04abe1e30', 'name': '', 'tenant_id': '1ebcadf25d494a29a5b98f8e14727773', 'network_id': '6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6', 'ip_version': 4, 'cidr': '101.104.45.128/26', 'allocation_pools': [{'start': '101.104.45.130', 'end': '101.104.45.190'}], 'gateway_ip': '101.104.45.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.104.45.130', 'tags': [], 'project_id': '1ebcadf25d494a29a5b98f8e14727773'}}
2025-02-05 10:27:45,840 - INFO - Created VN ctest-vn-94439370
2025-02-05 10:27:45,894 - DEBUG - VN ctest-vn-94439370 UUID is 6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6
2025-02-05 10:27:46,006 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-73704976, 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-28487798:ctest-vn-94439370, 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-05 10:27:46,314 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bb7c58a-de32-4427-b83a-4530a532e95b', 'name': 'ctest-vn-73704976', 'tenant_id': '1ebcadf25d494a29a5b98f8e14727773', 'project_id': '1ebcadf25d494a29a5b98f8e14727773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a1ab9a7-5c97-452f-a7f1-8d9b3270ec9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-vn-73704976'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-policy-allow-all-98680970']], 'subnet_ipam': [{'subnet_cidr': '213.195.187.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 10:27:46,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6', 'name': 'ctest-vn-94439370', 'tenant_id': '1ebcadf25d494a29a5b98f8e14727773', 'project_id': '1ebcadf25d494a29a5b98f8e14727773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['321e1be7-6aab-4364-a0cd-dba04abe1e30'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-vn-94439370'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-policy-allow-all-98680970']], 'subnet_ipam': [{'subnet_cidr': '101.104.45.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 10:27:46,751 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 10:27:47,052 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 10:27:47,084 - DEBUG - Requesting: http://10.0.0.12:8082/domain/bb4cfdb3-ce49-4534-90f5-77f4caaba3b8
2025-02-05 10:27:47,098 - DEBUG - Requesting: http://10.0.0.12:8082/project/1ebcadf2-5d49-4a29-a5b9-8f8e14727773
2025-02-05 10:27:47,171 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6bb7c58a-de32-4427-b83a-4530a532e95b
2025-02-05 10:27:47,198 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6bb7c58a-de32-4427-b83a-4530a532e95b
2025-02-05 10:27:47,210 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c51a38c8-7592-4aa3-99d5-4da02be8a139
2025-02-05 10:27:47,219 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c51a38c8-7592-4aa3-99d5-4da02be8a139
2025-02-05 10:27:47,228 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ca033dbb-25bc-42d7-88df-4b8866b42d3f
2025-02-05 10:27:47,235 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 10:27:47,235 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6bb7c58a-de32-4427-b83a-4530a532e95b
2025-02-05 10:27:47,245 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c51a38c8-7592-4aa3-99d5-4da02be8a139
2025-02-05 10:27:47,260 - INFO - Verified VN network id 7 for VN 6bb7c58a-de32-4427-b83a-4530a532e95b
2025-02-05 10:27:47,260 - INFO - Verifications in API Server for VN ctest-vn-73704976 passed
2025-02-05 10:27:47,260 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6bb7c58a-de32-4427-b83a-4530a532e95b
2025-02-05 10:27:47,273 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c51a38c8-7592-4aa3-99d5-4da02be8a139
2025-02-05 10:27:47,283 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c51a38c8-7592-4aa3-99d5-4da02be8a139
2025-02-05 10:27:47,292 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ca033dbb-25bc-42d7-88df-4b8866b42d3f
2025-02-05 10:27:47,305 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-73704976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28487798', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7761889683020334119', 'uuid-lslong': '13274998926860282203'}, 'enable': 'true', 'created': '2025-02-05T10:27:44', 'last-modified': '2025-02-05T10:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017797'}
2025-02-05 10:27:47,314 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 10:27:47,314 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73704976 passed
2025-02-05 10:27:47,314 - DEBUG - ====Verifying policy data for ctest-vn-73704976 in API_Server ======
2025-02-05 10:27:47,314 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 10:27:47,320 - DEBUG - Requesting: http://10.0.0.12:8082/domain/bb4cfdb3-ce49-4534-90f5-77f4caaba3b8
2025-02-05 10:27:47,332 - DEBUG - Requesting: http://10.0.0.12:8082/project/1ebcadf2-5d49-4a29-a5b9-8f8e14727773
2025-02-05 10:27:47,406 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6bb7c58a-de32-4427-b83a-4530a532e95b
2025-02-05 10:27:47,416 - DEBUG - ==>Verifying data for policy with id: c5d11339-9016-4a37-9286-223cca2f5e81, fqn: ['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-policy-allow-all-98680970']
2025-02-05 10:27:47,416 - INFO - VN ctest-vn-73704976 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 10:27:47,416 - DEBUG - Verifying the vn in opserver
2025-02-05 10:27:47,416 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-73704976 virtual network link through opserver 10.0.0.12
2025-02-05 10:27:47,416 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-05 10:27:47,706 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-05 10:27:47,765 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-73704976', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-73704976?flat'}
2025-02-05 10:27:47,765 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-73704976 is found in opserver
2025-02-05 10:27:47,776 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 10:27:47,782 - DEBUG - VRF ids for VN ctest-vn-73704976: {}
2025-02-05 10:27:47,782 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 10:27:47,787 - DEBUG - Requesting: http://10.0.0.12:8082/domain/bb4cfdb3-ce49-4534-90f5-77f4caaba3b8
2025-02-05 10:27:47,799 - DEBUG - Requesting: http://10.0.0.12:8082/project/1ebcadf2-5d49-4a29-a5b9-8f8e14727773
2025-02-05 10:27:47,871 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6
2025-02-05 10:27:47,883 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6
2025-02-05 10:27:47,896 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/51a6637a-b1da-4cdc-89ad-bb75854fb0d8
2025-02-05 10:27:47,903 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/51a6637a-b1da-4cdc-89ad-bb75854fb0d8
2025-02-05 10:27:47,910 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/9079b66d-8a2c-4c1d-9c29-945996839c02
2025-02-05 10:27:47,921 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 10:27:47,921 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6
2025-02-05 10:27:47,932 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/51a6637a-b1da-4cdc-89ad-bb75854fb0d8
2025-02-05 10:27:47,946 - INFO - Verified VN network id 8 for VN 6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6
2025-02-05 10:27:47,946 - INFO - Verifications in API Server for VN ctest-vn-94439370 passed
2025-02-05 10:27:47,946 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6
2025-02-05 10:27:47,956 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/51a6637a-b1da-4cdc-89ad-bb75854fb0d8
2025-02-05 10:27:47,962 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/51a6637a-b1da-4cdc-89ad-bb75854fb0d8
2025-02-05 10:27:47,969 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/9079b66d-8a2c-4c1d-9c29-945996839c02
2025-02-05 10:27:47,981 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-94439370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28487798', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7795180139247258239', 'uuid-lslong': '11194158106311070406'}, 'enable': 'true', 'created': '2025-02-05T10:27:45', 'last-modified': '2025-02-05T10:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.450354'}
2025-02-05 10:27:47,987 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 10:27:47,987 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94439370 passed
2025-02-05 10:27:47,987 - DEBUG - ====Verifying policy data for ctest-vn-94439370 in API_Server ======
2025-02-05 10:27:47,987 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-05 10:27:47,994 - DEBUG - Requesting: http://10.0.0.12:8082/domain/bb4cfdb3-ce49-4534-90f5-77f4caaba3b8
2025-02-05 10:27:48,004 - DEBUG - Requesting: http://10.0.0.12:8082/project/1ebcadf2-5d49-4a29-a5b9-8f8e14727773
2025-02-05 10:27:48,079 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6c2e0b09-3803-4a7f-9b59-a37d0e3b12c6
2025-02-05 10:27:48,090 - DEBUG - ==>Verifying data for policy with id: c5d11339-9016-4a37-9286-223cca2f5e81, fqn: ['default-domain', 'ctest-TestBasicPolicy-28487798', 'ctest-policy-allow-all-98680970']
2025-02-05 10:27:48,090 - INFO - VN ctest-vn-94439370 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 10:27:48,090 - DEBUG - Verifying the vn in opserver
2025-02-05 10:27:48,090 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-94439370 virtual network link through opserver 10.0.0.12
2025-02-05 10:27:48,090 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-05 10:27:48,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-94439370', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-94439370?flat'}
2025-02-05 10:27:48,100 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28487798:ctest-vn-94439370 is found in opserver
2025-02-05 10:27:48,110 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 10:27:48,116 - DEBUG - VRF ids for VN ctest-vn-94439370: {}
2025-02-05 10:27:48,171 - DEBUG - Services list from nova: [