2025-05-27 14:35:37,016 - INFO - Domain Default found not creating
2025-05-27 14:35:37,164 - INFO - Project ctest-TestBasicPolicy-28232286 not found, creating it
2025-05-27 14:35:37,637 - INFO - Created Project:ctest-TestBasicPolicy-28232286, ID : 78b5d83c-11e8-421d-b5b4-70cc855bae7f
2025-05-27 14:35:39,223 - INFO - ================================================================================
2025-05-27 14:35:39,223 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-27 14:35:39,223 - 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-05-27 14:35:39,480 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-05-27 14:35:39,480 - INFO - Initial checks done. Running the testcase now
2025-05-27 14:35:39,481 - INFO -
2025-05-27 14:35:40,089 - DEBUG - Response for create_network : {'network': {'id': '774d67bc-542c-4919-af07-b3d78a6ceb6c', 'name': 'ctest-vn-94140869', 'tenant_id': '78b5d83c11e8421db5b470cc855bae7f', 'project_id': '78b5d83c11e8421db5b470cc855bae7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-vn-94140869'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 14:35:40,244 - DEBUG - Response for create_subnet : {'subnet': {'id': '65ea7224-8207-4a51-a1a7-c04244ef3774', 'name': '', 'tenant_id': '78b5d83c11e8421db5b470cc855bae7f', 'network_id': '774d67bc-542c-4919-af07-b3d78a6ceb6c', 'ip_version': 4, 'cidr': '129.234.212.0/26', 'allocation_pools': [{'start': '129.234.212.2', 'end': '129.234.212.62'}], 'gateway_ip': '129.234.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.234.212.2', 'tags': [], 'project_id': '78b5d83c11e8421db5b470cc855bae7f'}}
2025-05-27 14:35:40,269 - INFO - Created VN ctest-vn-94140869
2025-05-27 14:35:40,322 - DEBUG - VN ctest-vn-94140869 UUID is 774d67bc-542c-4919-af07-b3d78a6ceb6c
2025-05-27 14:35:40,665 - DEBUG - Response for create_network : {'network': {'id': '23c70a41-2b9c-4f67-946d-c9b802cd108f', 'name': 'ctest-vn-75010476', 'tenant_id': '78b5d83c11e8421db5b470cc855bae7f', 'project_id': '78b5d83c11e8421db5b470cc855bae7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-vn-75010476'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 14:35:40,881 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c6b0948-99a2-4675-9d4a-96a05a4a431d', 'name': '', 'tenant_id': '78b5d83c11e8421db5b470cc855bae7f', 'network_id': '23c70a41-2b9c-4f67-946d-c9b802cd108f', 'ip_version': 4, 'cidr': '46.128.18.128/26', 'allocation_pools': [{'start': '46.128.18.130', 'end': '46.128.18.190'}], 'gateway_ip': '46.128.18.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.128.18.130', 'tags': [], 'project_id': '78b5d83c11e8421db5b470cc855bae7f'}}
2025-05-27 14:35:40,900 - INFO - Created VN ctest-vn-75010476
2025-05-27 14:35:40,954 - DEBUG - VN ctest-vn-75010476 UUID is 23c70a41-2b9c-4f67-946d-c9b802cd108f
2025-05-27 14:35:41,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-94140869, 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-28232286:ctest-vn-75010476, 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-05-27 14:35:41,430 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '774d67bc-542c-4919-af07-b3d78a6ceb6c', 'name': 'ctest-vn-94140869', 'tenant_id': '78b5d83c11e8421db5b470cc855bae7f', 'project_id': '78b5d83c11e8421db5b470cc855bae7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65ea7224-8207-4a51-a1a7-c04244ef3774'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-vn-94140869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-policy-allow-all-88539576']], 'subnet_ipam': [{'subnet_cidr': '129.234.212.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 14:35:41,666 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23c70a41-2b9c-4f67-946d-c9b802cd108f', 'name': 'ctest-vn-75010476', 'tenant_id': '78b5d83c11e8421db5b470cc855bae7f', 'project_id': '78b5d83c11e8421db5b470cc855bae7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c6b0948-99a2-4675-9d4a-96a05a4a431d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-vn-75010476'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-policy-allow-all-88539576']], 'subnet_ipam': [{'subnet_cidr': '46.128.18.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 14:35:41,822 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-27 14:35:42,162 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-27 14:35:42,193 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d409ea93-6831-4f38-ae4a-402ccc6c6473
2025-05-27 14:35:42,207 - DEBUG - Requesting: http://10.0.0.22:8082/project/78b5d83c-11e8-421d-b5b4-70cc855bae7f
2025-05-27 14:35:42,290 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/774d67bc-542c-4919-af07-b3d78a6ceb6c
2025-05-27 14:35:42,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/774d67bc-542c-4919-af07-b3d78a6ceb6c
2025-05-27 14:35:42,319 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dda26df9-512b-4d64-9d97-9ee656ce3d5f
2025-05-27 14:35:42,328 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dda26df9-512b-4d64-9d97-9ee656ce3d5f
2025-05-27 14:35:42,337 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e966abb1-39d8-4edf-af66-cf9c9b17d82e
2025-05-27 14:35:42,345 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 14:35:42,345 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/774d67bc-542c-4919-af07-b3d78a6ceb6c
2025-05-27 14:35:42,357 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dda26df9-512b-4d64-9d97-9ee656ce3d5f
2025-05-27 14:35:42,374 - INFO - Verified VN network id 8 for VN 774d67bc-542c-4919-af07-b3d78a6ceb6c
2025-05-27 14:35:42,375 - INFO - Verifications in API Server for VN ctest-vn-94140869 passed
2025-05-27 14:35:42,375 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/774d67bc-542c-4919-af07-b3d78a6ceb6c
2025-05-27 14:35:42,386 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dda26df9-512b-4d64-9d97-9ee656ce3d5f
2025-05-27 14:35:42,395 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dda26df9-512b-4d64-9d97-9ee656ce3d5f
2025-05-27 14:35:42,404 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e966abb1-39d8-4edf-af66-cf9c9b17d82e
2025-05-27 14:35:42,419 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-94140869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28232286', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8596641322283845913', 'uuid-lslong': '12612247019796097900'}, 'enable': 'true', 'created': '2025-05-27T14:35:40', 'last-modified': '2025-05-27T14:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019519'}
2025-05-27 14:35:42,429 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 14:35:42,429 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94140869 passed
2025-05-27 14:35:42,429 - DEBUG - ====Verifying policy data for ctest-vn-94140869 in API_Server ======
2025-05-27 14:35:42,429 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-27 14:35:42,436 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d409ea93-6831-4f38-ae4a-402ccc6c6473
2025-05-27 14:35:42,453 - DEBUG - Requesting: http://10.0.0.22:8082/project/78b5d83c-11e8-421d-b5b4-70cc855bae7f
2025-05-27 14:35:42,536 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/774d67bc-542c-4919-af07-b3d78a6ceb6c
2025-05-27 14:35:42,548 - DEBUG - ==>Verifying data for policy with id: e5f20297-476c-4aa5-af0a-3377ddf35713, fqn: ['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-policy-allow-all-88539576']
2025-05-27 14:35:42,548 - INFO - VN ctest-vn-94140869 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 14:35:42,548 - DEBUG - Verifying the vn in opserver
2025-05-27 14:35:42,548 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-94140869 virtual network link through opserver 10.0.0.22
2025-05-27 14:35:42,548 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-27 14:35:42,881 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-27 14:35:42,938 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-94140869', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-94140869?flat'}
2025-05-27 14:35:42,939 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-94140869 is found in opserver
2025-05-27 14:35:42,951 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 14:35:42,957 - DEBUG - VRF ids for VN ctest-vn-94140869: {}
2025-05-27 14:35:42,957 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-27 14:35:42,963 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d409ea93-6831-4f38-ae4a-402ccc6c6473
2025-05-27 14:35:42,975 - DEBUG - Requesting: http://10.0.0.22:8082/project/78b5d83c-11e8-421d-b5b4-70cc855bae7f
2025-05-27 14:35:43,049 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23c70a41-2b9c-4f67-946d-c9b802cd108f
2025-05-27 14:35:43,063 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23c70a41-2b9c-4f67-946d-c9b802cd108f
2025-05-27 14:35:43,075 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e61acc62-18f0-4b21-b6ce-03a533450cc6
2025-05-27 14:35:43,082 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e61acc62-18f0-4b21-b6ce-03a533450cc6
2025-05-27 14:35:43,090 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/01d45775-bc44-471e-89de-f1c5d745ce4d
2025-05-27 14:35:43,097 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 14:35:43,097 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23c70a41-2b9c-4f67-946d-c9b802cd108f
2025-05-27 14:35:43,107 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e61acc62-18f0-4b21-b6ce-03a533450cc6
2025-05-27 14:35:43,121 - INFO - Verified VN network id 9 for VN 23c70a41-2b9c-4f67-946d-c9b802cd108f
2025-05-27 14:35:43,121 - INFO - Verifications in API Server for VN ctest-vn-75010476 passed
2025-05-27 14:35:43,121 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23c70a41-2b9c-4f67-946d-c9b802cd108f
2025-05-27 14:35:43,132 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e61acc62-18f0-4b21-b6ce-03a533450cc6
2025-05-27 14:35:43,139 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e61acc62-18f0-4b21-b6ce-03a533450cc6
2025-05-27 14:35:43,146 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/01d45775-bc44-471e-89de-f1c5d745ce4d
2025-05-27 14:35:43,160 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-75010476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28232286', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2578040586713714535', 'uuid-lslong': '10695426482232955023'}, 'enable': 'true', 'created': '2025-05-27T14:35:40', 'last-modified': '2025-05-27T14:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521579'}
2025-05-27 14:35:43,167 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 14:35:43,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75010476 passed
2025-05-27 14:35:43,167 - DEBUG - ====Verifying policy data for ctest-vn-75010476 in API_Server ======
2025-05-27 14:35:43,167 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-27 14:35:43,173 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d409ea93-6831-4f38-ae4a-402ccc6c6473
2025-05-27 14:35:43,185 - DEBUG - Requesting: http://10.0.0.22:8082/project/78b5d83c-11e8-421d-b5b4-70cc855bae7f
2025-05-27 14:35:43,263 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/23c70a41-2b9c-4f67-946d-c9b802cd108f
2025-05-27 14:35:43,274 - DEBUG - ==>Verifying data for policy with id: e5f20297-476c-4aa5-af0a-3377ddf35713, fqn: ['default-domain', 'ctest-TestBasicPolicy-28232286', 'ctest-policy-allow-all-88539576']
2025-05-27 14:35:43,274 - INFO - VN ctest-vn-75010476 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 14:35:43,274 - DEBUG - Verifying the vn in opserver
2025-05-27 14:35:43,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-75010476 virtual network link through opserver 10.0.0.22
2025-05-27 14:35:43,274 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-27 14:35:43,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-75010476', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-75010476?flat'}
2025-05-27 14:35:43,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28232286:ctest-vn-75010476 is found in opserver
2025-05-27 14:35:43,298 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 14:35:43,303 - DEBUG - VRF ids for VN ctest-vn-75010476: {}
2025-05-27 14:35:43,361 - DEBUG - Services list from nova: [