2025-08-11 11:16:45,137 - INFO - Domain Default found not creating 2025-08-11 11:16:45,261 - INFO - Project ctest-TestBasicPolicy-48253198 not found, creating it 2025-08-11 11:16:45,771 - INFO - Created Project:ctest-TestBasicPolicy-48253198, ID : 1aeb0163-1ead-4b32-983c-a57d233f873e 2025-08-11 11:16:47,116 - INFO - ================================================================================ 2025-08-11 11:16:47,116 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-11 11:16:47,116 - 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-08-11 11:16:48,364 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2025-08-11 11:16:48,364 - INFO - Initial checks done. Running the testcase now 2025-08-11 11:16:48,364 - INFO - 2025-08-11 11:16:49,040 - DEBUG - Response for create_network : {'network': {'id': '514bf624-083b-48a8-a842-4869119ea21f', 'name': 'ctest-vn-87953544', 'tenant_id': '1aeb01631ead4b32983ca57d233f873e', 'project_id': '1aeb01631ead4b32983ca57d233f873e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-vn-87953544'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:16:49,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '35324ae6-74a0-45a5-ba7a-5790e96f8d92', 'name': '', 'tenant_id': '1aeb01631ead4b32983ca57d233f873e', 'network_id': '514bf624-083b-48a8-a842-4869119ea21f', 'ip_version': 4, 'cidr': '205.28.198.0/26', 'allocation_pools': [{'start': '205.28.198.2', 'end': '205.28.198.62'}], 'gateway_ip': '205.28.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.28.198.2', 'tags': [], 'project_id': '1aeb01631ead4b32983ca57d233f873e'}} 2025-08-11 11:16:49,319 - INFO - Created VN ctest-vn-87953544 2025-08-11 11:16:49,330 - DEBUG - VN ctest-vn-87953544 UUID is 514bf624-083b-48a8-a842-4869119ea21f 2025-08-11 11:16:49,662 - DEBUG - Response for create_network : {'network': {'id': '42da9647-db72-4ddb-8984-f349389f6231', 'name': 'ctest-vn-81137289', 'tenant_id': '1aeb01631ead4b32983ca57d233f873e', 'project_id': '1aeb01631ead4b32983ca57d233f873e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-vn-81137289'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:16:49,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd53e794-d76f-480c-9cfb-68e0fcd3ccd7', 'name': '', 'tenant_id': '1aeb01631ead4b32983ca57d233f873e', 'network_id': '42da9647-db72-4ddb-8984-f349389f6231', 'ip_version': 4, 'cidr': '18.66.223.64/26', 'allocation_pools': [{'start': '18.66.223.66', 'end': '18.66.223.126'}], 'gateway_ip': '18.66.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.66.223.66', 'tags': [], 'project_id': '1aeb01631ead4b32983ca57d233f873e'}} 2025-08-11 11:16:49,939 - INFO - Created VN ctest-vn-81137289 2025-08-11 11:16:49,951 - DEBUG - VN ctest-vn-81137289 UUID is 42da9647-db72-4ddb-8984-f349389f6231 2025-08-11 11:16:50,060 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544, 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-48253198:ctest-vn-81137289, 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-08-11 11:16:50,366 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '514bf624-083b-48a8-a842-4869119ea21f', 'name': 'ctest-vn-87953544', 'tenant_id': '1aeb01631ead4b32983ca57d233f873e', 'project_id': '1aeb01631ead4b32983ca57d233f873e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35324ae6-74a0-45a5-ba7a-5790e96f8d92'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-vn-87953544'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-policy-allow-all-39514279']], 'subnet_ipam': [{'subnet_cidr': '205.28.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:16:50,699 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42da9647-db72-4ddb-8984-f349389f6231', 'name': 'ctest-vn-81137289', 'tenant_id': '1aeb01631ead4b32983ca57d233f873e', 'project_id': '1aeb01631ead4b32983ca57d233f873e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd53e794-d76f-480c-9cfb-68e0fcd3ccd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-vn-81137289'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-policy-allow-all-39514279']], 'subnet_ipam': [{'subnet_cidr': '18.66.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:16:50,796 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:16:51,150 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:16:51,175 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:16:51,190 - DEBUG - Requesting: http://10.0.0.56:8082/project/1aeb0163-1ead-4b32-983c-a57d233f873e 2025-08-11 11:16:51,279 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/514bf624-083b-48a8-a842-4869119ea21f 2025-08-11 11:16:51,290 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/514bf624-083b-48a8-a842-4869119ea21f 2025-08-11 11:16:51,300 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3d4a4fd1-7ed3-4521-8d79-7b4b0d291fa4 2025-08-11 11:16:51,306 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3d4a4fd1-7ed3-4521-8d79-7b4b0d291fa4 2025-08-11 11:16:51,313 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/4ca49d34-c2db-4d07-aee2-6662d50fe8e1 2025-08-11 11:16:51,319 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:16:51,319 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/514bf624-083b-48a8-a842-4869119ea21f 2025-08-11 11:16:51,328 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3d4a4fd1-7ed3-4521-8d79-7b4b0d291fa4 2025-08-11 11:16:51,342 - INFO - Verified VN network id 11 for VN 514bf624-083b-48a8-a842-4869119ea21f 2025-08-11 11:16:51,342 - INFO - Verifications in API Server for VN ctest-vn-87953544 passed 2025-08-11 11:16:51,343 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/514bf624-083b-48a8-a842-4869119ea21f 2025-08-11 11:16:51,352 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3d4a4fd1-7ed3-4521-8d79-7b4b0d291fa4 2025-08-11 11:16:51,358 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3d4a4fd1-7ed3-4521-8d79-7b4b0d291fa4 2025-08-11 11:16:51,364 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/4ca49d34-c2db-4d07-aee2-6662d50fe8e1 2025-08-11 11:16:51,377 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48253198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5858046374942820520', 'uuid-lslong': '12124332762939171359'}, 'enable': 'true', 'created': '2025-08-11T11:16:48', 'last-modified': '2025-08-11T11:16:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059085'} 2025-08-11 11:16:51,382 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:16:51,388 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48253198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5858046374942820520', 'uuid-lslong': '12124332762939171359'}, 'enable': 'true', 'created': '2025-08-11T11:16:48', 'last-modified': '2025-08-11T11:16:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073855'} 2025-08-11 11:16:51,393 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:16:51,399 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48253198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5858046374942820520', 'uuid-lslong': '12124332762939171359'}, 'enable': 'true', 'created': '2025-08-11T11:16:48', 'last-modified': '2025-08-11T11:16:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.085545'} 2025-08-11 11:16:51,405 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:16:51,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87953544 passed 2025-08-11 11:16:51,405 - DEBUG - ====Verifying policy data for ctest-vn-87953544 in API_Server ====== 2025-08-11 11:16:51,405 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:16:51,410 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:16:51,421 - DEBUG - Requesting: http://10.0.0.56:8082/project/1aeb0163-1ead-4b32-983c-a57d233f873e 2025-08-11 11:16:51,514 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/514bf624-083b-48a8-a842-4869119ea21f 2025-08-11 11:16:51,524 - DEBUG - ==>Verifying data for policy with id: 5fa03d63-c871-4678-b5f8-c1cf36aa66b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-policy-allow-all-39514279'] 2025-08-11 11:16:51,524 - INFO - VN ctest-vn-87953544 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 11:16:51,524 - DEBUG - Verifying the vn in opserver 2025-08-11 11:16:51,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 virtual network link through opserver 10.0.0.56 2025-08-11 11:16:51,524 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-11 11:16:51,888 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-11 11:16:51,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544?flat'} 2025-08-11 11:16:51,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 virtual network link through opserver 10.0.0.38 2025-08-11 11:16:51,940 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 11:16:52,234 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 11:16:52,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544?flat'} 2025-08-11 11:16:52,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 virtual network link through opserver 10.0.0.22 2025-08-11 11:16:52,293 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 11:16:52,580 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 11:16:52,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544?flat'} 2025-08-11 11:16:52,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is found in opserver 2025-08-11 11:16:52,655 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 11:16:52,664 - DEBUG - VRF ids for VN ctest-vn-87953544: {} 2025-08-11 11:16:52,664 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:16:52,670 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:16:52,681 - DEBUG - Requesting: http://10.0.0.56:8082/project/1aeb0163-1ead-4b32-983c-a57d233f873e 2025-08-11 11:16:52,771 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/42da9647-db72-4ddb-8984-f349389f6231 2025-08-11 11:16:52,783 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/42da9647-db72-4ddb-8984-f349389f6231 2025-08-11 11:16:52,794 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/47d47ad7-1838-40fd-9dce-0de788a9cb15 2025-08-11 11:16:52,801 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/47d47ad7-1838-40fd-9dce-0de788a9cb15 2025-08-11 11:16:52,808 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9892c5ac-f04c-421f-97b3-afaebaf7f65a 2025-08-11 11:16:52,815 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 11:16:52,815 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/42da9647-db72-4ddb-8984-f349389f6231 2025-08-11 11:16:52,825 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/47d47ad7-1838-40fd-9dce-0de788a9cb15 2025-08-11 11:16:52,840 - INFO - Verified VN network id 12 for VN 42da9647-db72-4ddb-8984-f349389f6231 2025-08-11 11:16:52,840 - INFO - Verifications in API Server for VN ctest-vn-81137289 passed 2025-08-11 11:16:52,841 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/42da9647-db72-4ddb-8984-f349389f6231 2025-08-11 11:16:52,852 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/47d47ad7-1838-40fd-9dce-0de788a9cb15 2025-08-11 11:16:52,861 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/47d47ad7-1838-40fd-9dce-0de788a9cb15 2025-08-11 11:16:52,867 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/9892c5ac-f04c-421f-97b3-afaebaf7f65a 2025-08-11 11:16:52,879 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48253198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4817327986794712539', 'uuid-lslong': '9909312575930065457'}, 'enable': 'true', 'created': '2025-08-11T11:16:49', 'last-modified': '2025-08-11T11:16:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.348712'} 2025-08-11 11:16:52,885 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 11:16:52,891 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48253198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4817327986794712539', 'uuid-lslong': '9909312575930065457'}, 'enable': 'true', 'created': '2025-08-11T11:16:49', 'last-modified': '2025-08-11T11:16:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.357449'} 2025-08-11 11:16:52,897 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 11:16:52,902 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48253198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4817327986794712539', 'uuid-lslong': '9909312575930065457'}, 'enable': 'true', 'created': '2025-08-11T11:16:49', 'last-modified': '2025-08-11T11:16:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.368391'} 2025-08-11 11:16:52,908 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 11:16:52,908 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81137289 passed 2025-08-11 11:16:52,908 - DEBUG - ====Verifying policy data for ctest-vn-81137289 in API_Server ====== 2025-08-11 11:16:52,908 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:16:52,913 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:16:52,923 - DEBUG - Requesting: http://10.0.0.56:8082/project/1aeb0163-1ead-4b32-983c-a57d233f873e 2025-08-11 11:16:53,016 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/42da9647-db72-4ddb-8984-f349389f6231 2025-08-11 11:16:53,032 - DEBUG - ==>Verifying data for policy with id: 5fa03d63-c871-4678-b5f8-c1cf36aa66b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-48253198', 'ctest-policy-allow-all-39514279'] 2025-08-11 11:16:53,032 - INFO - VN ctest-vn-81137289 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 11:16:53,032 - DEBUG - Verifying the vn in opserver 2025-08-11 11:16:53,032 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289 virtual network link through opserver 10.0.0.56 2025-08-11 11:16:53,032 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-11 11:16:53,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289?flat'} 2025-08-11 11:16:53,079 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289 virtual network link through opserver 10.0.0.38 2025-08-11 11:16:53,079 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 11:16:53,125 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289?flat'} 2025-08-11 11:16:53,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289 virtual network link through opserver 10.0.0.22 2025-08-11 11:16:53,126 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 11:16:53,170 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289?flat'} 2025-08-11 11:16:53,170 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-81137289 is found in opserver 2025-08-11 11:16:53,193 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 11:16:53,202 - DEBUG - VRF ids for VN ctest-vn-81137289: {} 2025-08-11 11:16:53,252 - DEBUG - Services list from nova: [, , , ] 2025-08-11 11:16:54,463 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3803-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3803-2) 2025-08-11 11:16:55,670 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3803-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3803-1) 2025-08-11 11:16:55,670 - INFO - Waiting for VM ctest-TestBasicPolicy-48253198-15027315 to be up.. 2025-08-11 11:16:55,743 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-11 11:17:00,813 - DEBUG - VM is in ACTIVE state now 2025-08-11 11:17:00,813 - INFO - VM name : ctest-TestBasicPolicy-48253198-15027315 2025-08-11 11:17:00,882 - DEBUG - VM ctest-TestBasicPolicy-48253198-15027315 ID is d8115538-3656-4b4d-ad81-d853ac030080 2025-08-11 11:17:00,903 - DEBUG - VM ctest-TestBasicPolicy-48253198-15027315 launched on Node an-jenkins-deploy-platform-ansible-os-3803-2 2025-08-11 11:17:00,973 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/d8115538-3656-4b4d-ad81-d853ac030080 2025-08-11 11:17:01,273 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/d8115538-3656-4b4d-ad81-d853ac030080 2025-08-11 11:17:01,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/5ba2b2ac-6536-45fc-b02d-e6fe6f7442db 2025-08-11 11:17:04,511 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1012ms') 2025-08-11 11:17:04,511 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 failed! 2025-08-11 11:17:04,524 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is 205.28.198.1 and allocation pool is NOT set 2025-08-11 11:17:08,618 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1031ms') 2025-08-11 11:17:08,618 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 failed! 2025-08-11 11:17:08,634 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is 205.28.198.1 and allocation pool is NOT set 2025-08-11 11:17:12,704 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-08-11 11:17:12,704 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 failed! 2025-08-11 11:17:12,716 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is 205.28.198.1 and allocation pool is NOT set 2025-08-11 11:17:16,804 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1032ms') 2025-08-11 11:17:16,804 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 failed! 2025-08-11 11:17:16,817 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is 205.28.198.1 and allocation pool is NOT set 2025-08-11 11:17:20,902 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-08-11 11:17:20,902 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 failed! 2025-08-11 11:17:20,915 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is 205.28.198.1 and allocation pool is NOT set 2025-08-11 11:17:24,999 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-08-11 11:17:24,999 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 failed! 2025-08-11 11:17:25,013 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is 205.28.198.1 and allocation pool is NOT set 2025-08-11 11:17:29,099 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-08-11 11:17:29,099 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 failed! 2025-08-11 11:17:29,112 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48253198:ctest-vn-87953544 is 205.28.198.1 and allocation pool is NOT set 2025-08-11 11:17:31,173 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.22 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.219/3.285/5.352/2.066 ms') 2025-08-11 11:17:31,173 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-15027315 passed 2025-08-11 11:17:31,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 11:17:31,283 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48253198-15027315, IP 205.28.198.3, Port 22 2025-08-11 11:17:31,350 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-11 11:17:31,433 - DEBUG - VM ctest-TestBasicPolicy-48253198-15027315 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 11:17:36,434 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 11:17:36,434 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48253198-15027315, IP 205.28.198.3, Port 22 2025-08-11 11:17:36,488 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-11 11:17:36,558 - DEBUG - VM ctest-TestBasicPolicy-48253198-15027315 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 11:17:41,559 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 11:17:41,560 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48253198-15027315, IP 205.28.198.3, Port 22 2025-08-11 11:17:41,627 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-11 11:17:41,696 - DEBUG - VM ctest-TestBasicPolicy-48253198-15027315 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 11:17:46,697 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 11:17:46,697 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48253198-15027315, IP 205.28.198.3, Port 22 2025-08-11 11:17:46,862 - DEBUG - VM ctest-TestBasicPolicy-48253198-15027315 is ready for SSH connections 2025-08-11 11:17:46,862 - INFO - Waiting for VM ctest-TestBasicPolicy-48253198-50689594 to be up.. 2025-08-11 11:17:46,933 - DEBUG - VM is in ACTIVE state now 2025-08-11 11:17:46,933 - INFO - VM name : ctest-TestBasicPolicy-48253198-50689594 2025-08-11 11:17:47,008 - DEBUG - VM ctest-TestBasicPolicy-48253198-50689594 ID is 0d102066-7a4d-4768-b357-95e4e380d3b2 2025-08-11 11:17:47,008 - DEBUG - VM ctest-TestBasicPolicy-48253198-50689594 launched on Node an-jenkins-deploy-platform-ansible-os-3803-1 2025-08-11 11:17:47,092 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/0d102066-7a4d-4768-b357-95e4e380d3b2 2025-08-11 11:17:47,101 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/faced10e-d6a7-47ba-ac64-35865020cb55 2025-08-11 11:17:48,306 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.569 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.569/2.307/4.046/1.738 ms') 2025-08-11 11:17:48,306 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48253198-50689594 passed 2025-08-11 11:17:48,421 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 11:17:48,421 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48253198-50689594, IP 18.66.223.67, Port 22 2025-08-11 11:17:48,588 - DEBUG - VM ctest-TestBasicPolicy-48253198-50689594 is ready for SSH connections 2025-08-11 11:17:48,588 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 11:17:48,588 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 18.66.223.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-08-11 11:17:48,588 - DEBUG - ping -s 56 -c 3 -W 1 18.66.223.67 2025-08-11 11:18:08,831 - DEBUG - PING 18.66.223.67 (18.66.223.67) 56(84) bytes of data. 64 bytes from 18.66.223.67: icmp_req=1 ttl=63 time=7.83 ms 64 bytes from 18.66.223.67: icmp_req=2 ttl=63 time=1.03 ms 64 bytes from 18.66.223.67: icmp_req=3 ttl=63 time=0.868 ms --- 18.66.223.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.868/3.246/7.834/3.245 ms 2025-08-11 11:18:08,831 - INFO - Ping to IP 18.66.223.67 from VM ctest-TestBasicPolicy-48253198-15027315 passed 2025-08-11 11:18:09,032 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5fa03d63-c871-4678-b5f8-c1cf36aa66b5", "href": "http://10.0.0.22:8082/network-policy/5fa03d63-c871-4678-b5f8-c1cf36aa66b5"}} 2025-08-11 11:18:09,032 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 11:18:09,032 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 18.66.223.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-08-11 11:18:09,032 - DEBUG - ping -s 56 -c 3 -W 1 18.66.223.67 2025-08-11 11:18:12,837 - DEBUG - PING 18.66.223.67 (18.66.223.67) 56(84) bytes of data. --- 18.66.223.67 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2017ms 2025-08-11 11:18:12,837 - WARNING - Ping to IP 18.66.223.67 from VM ctest-TestBasicPolicy-48253198-15027315 failed 2025-08-11 11:18:12,837 - INFO - Deleting VM ctest-TestBasicPolicy-48253198-50689594 2025-08-11 11:18:12,898 - INFO - Deleting VM ctest-TestBasicPolicy-48253198-15027315 2025-08-11 11:18:13,288 - INFO - Deleted policy ctest-policy-allow-all-39514279 2025-08-11 11:18:13,288 - INFO - Deleting VN ctest-vn-81137289 2025-08-11 11:18:13,335 - DEBUG - VN 42da9647-db72-4ddb-8984-f349389f6231 still in use: Unable to complete operation on network 42da9647-db72-4ddb-8984-f349389f6231. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-db9c31d4-3e74-4eb0-99de-81485fbc24d2'] 2025-08-11 11:18:13,336 - WARNING - Deleting VN ctest-vn-81137289 failed..Will retry 2025-08-11 11:18:15,490 - DEBUG - Response for deleting network () 2025-08-11 11:18:15,490 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/47d47ad7-1838-40fd-9dce-0de788a9cb15 2025-08-11 11:18:15,501 - DEBUG - Response Code: 404 2025-08-11 11:18:15,501 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:18:15,507 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:18:15,535 - DEBUG - Requesting: http://10.0.0.56:8082/project/1aeb0163-1ead-4b32-983c-a57d233f873e 2025-08-11 11:18:15,641 - INFO - Validated that VN ctest-vn-81137289 is not found in API Server 2025-08-11 11:18:15,654 - DEBUG - VN ctest-vn-81137289 is not present in Agent 10.0.0.19 2025-08-11 11:18:15,664 - DEBUG - VN ctest-vn-81137289 is not present in Agent 10.0.0.41 2025-08-11 11:18:15,664 - INFO - Validated that VN ctest-vn-81137289 is not in any agent 2025-08-11 11:18:15,693 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81137289 info 2025-08-11 11:18:15,693 - INFO - Deleting VN ctest-vn-87953544 2025-08-11 11:18:15,838 - DEBUG - Response for deleting network () 2025-08-11 11:18:15,838 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3d4a4fd1-7ed3-4521-8d79-7b4b0d291fa4 2025-08-11 11:18:15,850 - DEBUG - Response Code: 404 2025-08-11 11:18:15,850 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:18:15,860 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:18:15,913 - DEBUG - Requesting: http://10.0.0.56:8082/project/1aeb0163-1ead-4b32-983c-a57d233f873e 2025-08-11 11:18:15,995 - INFO - Validated that VN ctest-vn-87953544 is not found in API Server 2025-08-11 11:18:16,008 - DEBUG - VN ctest-vn-87953544 is not present in Agent 10.0.0.19 2025-08-11 11:18:16,021 - DEBUG - VN ctest-vn-87953544 is not present in Agent 10.0.0.41 2025-08-11 11:18:16,021 - INFO - Validated that VN ctest-vn-87953544 is not in any agent 2025-08-11 11:18:16,052 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87953544 info 2025-08-11 11:18:17,304 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 11:18:17,304 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:30] 2025-08-11 11:18:17,304 - INFO - -------------------------------------------------------------------------------- 2025-08-11 11:18:17,974 - INFO - Deleted project: ctest-TestBasicPolicy-48253198, ID : 1aeb0163-1ead-4b32-983c-a57d233f873e