2025-02-17 02:24:24,828 - INFO - Domain Default found not creating 2025-02-17 02:24:25,050 - INFO - Project ctest-TestBasicPolicy-70936586 not found, creating it 2025-02-17 02:24:25,658 - INFO - Created Project:ctest-TestBasicPolicy-70936586, ID : 5ae4c2d6-529a-4336-8868-8707e9989ced 2025-02-17 02:24:27,353 - INFO - ================================================================================ 2025-02-17 02:24:27,353 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-17 02:24:27,353 - 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-17 02:24:28,640 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.8': '0', '10.20.0.13': '0'}, '10.0.0.42': {'10.20.0.13': '0', '10.20.0.10': '0'}} with 2025-02-17 02:24:28,640 - INFO - Initial checks done. Running the testcase now 2025-02-17 02:24:28,640 - INFO - 2025-02-17 02:24:29,426 - DEBUG - Response for create_network : {'network': {'id': 'bb30870f-ce41-4a21-bf68-4a6975686d18', 'name': 'ctest-vn-56010738', 'tenant_id': '5ae4c2d6529a433688688707e9989ced', 'project_id': '5ae4c2d6529a433688688707e9989ced', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-vn-56010738'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:24:29,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e069761-3df3-4cf3-be84-bfbbcbad54ba', 'name': '', 'tenant_id': '5ae4c2d6529a433688688707e9989ced', 'network_id': 'bb30870f-ce41-4a21-bf68-4a6975686d18', 'ip_version': 4, 'cidr': '8.232.95.192/26', 'allocation_pools': [{'start': '8.232.95.194', 'end': '8.232.95.254'}], 'gateway_ip': '8.232.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.232.95.194', 'tags': [], 'project_id': '5ae4c2d6529a433688688707e9989ced'}} 2025-02-17 02:24:29,787 - INFO - Created VN ctest-vn-56010738 2025-02-17 02:24:29,800 - DEBUG - VN ctest-vn-56010738 UUID is bb30870f-ce41-4a21-bf68-4a6975686d18 2025-02-17 02:24:30,261 - DEBUG - Response for create_network : {'network': {'id': '10d944bb-2f70-4f23-b688-43e5b5cc3af0', 'name': 'ctest-vn-54005691', 'tenant_id': '5ae4c2d6529a433688688707e9989ced', 'project_id': '5ae4c2d6529a433688688707e9989ced', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-vn-54005691'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:24:30,536 - DEBUG - Response for create_subnet : {'subnet': {'id': '72ee57e0-9bbe-4130-9817-490cb4c9f7ca', 'name': '', 'tenant_id': '5ae4c2d6529a433688688707e9989ced', 'network_id': '10d944bb-2f70-4f23-b688-43e5b5cc3af0', 'ip_version': 4, 'cidr': '149.100.83.192/26', 'allocation_pools': [{'start': '149.100.83.194', 'end': '149.100.83.254'}], 'gateway_ip': '149.100.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.100.83.194', 'tags': [], 'project_id': '5ae4c2d6529a433688688707e9989ced'}} 2025-02-17 02:24:30,568 - INFO - Created VN ctest-vn-54005691 2025-02-17 02:24:30,582 - DEBUG - VN ctest-vn-54005691 UUID is 10d944bb-2f70-4f23-b688-43e5b5cc3af0 2025-02-17 02:24:30,685 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738, 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-70936586:ctest-vn-54005691, 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-17 02:24:31,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb30870f-ce41-4a21-bf68-4a6975686d18', 'name': 'ctest-vn-56010738', 'tenant_id': '5ae4c2d6529a433688688707e9989ced', 'project_id': '5ae4c2d6529a433688688707e9989ced', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e069761-3df3-4cf3-be84-bfbbcbad54ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-vn-56010738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-policy-allow-all-03485420']], 'subnet_ipam': [{'subnet_cidr': '8.232.95.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:24:31,329 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10d944bb-2f70-4f23-b688-43e5b5cc3af0', 'name': 'ctest-vn-54005691', 'tenant_id': '5ae4c2d6529a433688688707e9989ced', 'project_id': '5ae4c2d6529a433688688707e9989ced', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72ee57e0-9bbe-4130-9817-490cb4c9f7ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-vn-54005691'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-policy-allow-all-03485420']], 'subnet_ipam': [{'subnet_cidr': '149.100.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:24:31,548 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-02-17 02:24:31,928 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-02-17 02:24:31,963 - DEBUG - Requesting: http://10.0.0.56:8082/domain/5380181f-43ee-495b-b284-7033f2a63912 2025-02-17 02:24:31,986 - DEBUG - Requesting: http://10.0.0.56:8082/project/5ae4c2d6-529a-4336-8868-8707e9989ced 2025-02-17 02:24:32,106 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/bb30870f-ce41-4a21-bf68-4a6975686d18 2025-02-17 02:24:32,126 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/bb30870f-ce41-4a21-bf68-4a6975686d18 2025-02-17 02:24:32,141 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7380b059-ffc4-478b-a0fd-b2cf2437e4bf 2025-02-17 02:24:32,153 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7380b059-ffc4-478b-a0fd-b2cf2437e4bf 2025-02-17 02:24:32,163 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/0750c799-a57f-4d85-9597-b90fa2259fd3 2025-02-17 02:24:32,175 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:24:32,175 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/bb30870f-ce41-4a21-bf68-4a6975686d18 2025-02-17 02:24:32,190 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7380b059-ffc4-478b-a0fd-b2cf2437e4bf 2025-02-17 02:24:32,213 - INFO - Verified VN network id 7 for VN bb30870f-ce41-4a21-bf68-4a6975686d18 2025-02-17 02:24:32,213 - INFO - Verifications in API Server for VN ctest-vn-56010738 passed 2025-02-17 02:24:32,213 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/bb30870f-ce41-4a21-bf68-4a6975686d18 2025-02-17 02:24:32,226 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7380b059-ffc4-478b-a0fd-b2cf2437e4bf 2025-02-17 02:24:32,237 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7380b059-ffc4-478b-a0fd-b2cf2437e4bf 2025-02-17 02:24:32,247 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/0750c799-a57f-4d85-9597-b90fa2259fd3 2025-02-17 02:24:32,266 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70936586', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13488429385929280033', 'uuid-lslong': '13792355675623943448'}, 'enable': 'true', 'created': '2025-02-17T02:24:29', 'last-modified': '2025-02-17T02:24:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.238007'} 2025-02-17 02:24:32,274 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:24:32,282 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70936586', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13488429385929280033', 'uuid-lslong': '13792355675623943448'}, 'enable': 'true', 'created': '2025-02-17T02:24:29', 'last-modified': '2025-02-17T02:24:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260501'} 2025-02-17 02:24:32,292 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:24:32,300 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70936586', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13488429385929280033', 'uuid-lslong': '13792355675623943448'}, 'enable': 'true', 'created': '2025-02-17T02:24:29', 'last-modified': '2025-02-17T02:24:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.273934'} 2025-02-17 02:24:32,308 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:24:32,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56010738 passed 2025-02-17 02:24:32,308 - DEBUG - ====Verifying policy data for ctest-vn-56010738 in API_Server ====== 2025-02-17 02:24:32,308 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-02-17 02:24:32,317 - DEBUG - Requesting: http://10.0.0.56:8082/domain/5380181f-43ee-495b-b284-7033f2a63912 2025-02-17 02:24:32,337 - DEBUG - Requesting: http://10.0.0.56:8082/project/5ae4c2d6-529a-4336-8868-8707e9989ced 2025-02-17 02:24:32,454 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/bb30870f-ce41-4a21-bf68-4a6975686d18 2025-02-17 02:24:32,467 - DEBUG - ==>Verifying data for policy with id: 2e155813-094e-4540-b450-043fa3f98090, fqn: ['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-policy-allow-all-03485420'] 2025-02-17 02:24:32,468 - INFO - VN ctest-vn-56010738 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 02:24:32,468 - DEBUG - Verifying the vn in opserver 2025-02-17 02:24:32,468 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738 virtual network link through opserver 10.0.0.56 2025-02-17 02:24:32,468 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-02-17 02:24:32,777 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-02-17 02:24:32,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738?flat'} 2025-02-17 02:24:32,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738 virtual network link through opserver 10.0.0.53 2025-02-17 02:24:32,850 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2025-02-17 02:24:33,162 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2025-02-17 02:24:33,226 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738?flat'} 2025-02-17 02:24:33,226 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738 virtual network link through opserver 10.0.0.22 2025-02-17 02:24:33,226 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-02-17 02:24:33,542 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-02-17 02:24:33,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738?flat'} 2025-02-17 02:24:33,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738 is found in opserver 2025-02-17 02:24:33,642 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 02:24:33,656 - DEBUG - VRF ids for VN ctest-vn-56010738: {} 2025-02-17 02:24:33,656 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-02-17 02:24:33,664 - DEBUG - Requesting: http://10.0.0.56:8082/domain/5380181f-43ee-495b-b284-7033f2a63912 2025-02-17 02:24:33,679 - DEBUG - Requesting: http://10.0.0.56:8082/project/5ae4c2d6-529a-4336-8868-8707e9989ced 2025-02-17 02:24:33,803 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/10d944bb-2f70-4f23-b688-43e5b5cc3af0 2025-02-17 02:24:33,839 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/10d944bb-2f70-4f23-b688-43e5b5cc3af0 2025-02-17 02:24:33,852 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/fb64f6cb-8d4c-4f3f-8293-5f5aa946c0a1 2025-02-17 02:24:33,862 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/fb64f6cb-8d4c-4f3f-8293-5f5aa946c0a1 2025-02-17 02:24:33,872 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/6428715d-a6d4-4b96-a9f0-8b0728180e5d 2025-02-17 02:24:33,882 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-17 02:24:33,882 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/10d944bb-2f70-4f23-b688-43e5b5cc3af0 2025-02-17 02:24:33,898 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/fb64f6cb-8d4c-4f3f-8293-5f5aa946c0a1 2025-02-17 02:24:33,918 - INFO - Verified VN network id 8 for VN 10d944bb-2f70-4f23-b688-43e5b5cc3af0 2025-02-17 02:24:33,919 - INFO - Verifications in API Server for VN ctest-vn-54005691 passed 2025-02-17 02:24:33,919 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/10d944bb-2f70-4f23-b688-43e5b5cc3af0 2025-02-17 02:24:33,933 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/fb64f6cb-8d4c-4f3f-8293-5f5aa946c0a1 2025-02-17 02:24:33,943 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/fb64f6cb-8d4c-4f3f-8293-5f5aa946c0a1 2025-02-17 02:24:33,954 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/6428715d-a6d4-4b96-a9f0-8b0728180e5d 2025-02-17 02:24:33,971 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70936586', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1214077145298521891', 'uuid-lslong': '13152837365612165872'}, 'enable': 'true', 'created': '2025-02-17T02:24:30', 'last-modified': '2025-02-17T02:24:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.671907'} 2025-02-17 02:24:33,978 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-17 02:24:33,986 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70936586', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1214077145298521891', 'uuid-lslong': '13152837365612165872'}, 'enable': 'true', 'created': '2025-02-17T02:24:30', 'last-modified': '2025-02-17T02:24:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.694133'} 2025-02-17 02:24:33,994 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-17 02:24:34,002 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70936586', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1214077145298521891', 'uuid-lslong': '13152837365612165872'}, 'enable': 'true', 'created': '2025-02-17T02:24:30', 'last-modified': '2025-02-17T02:24:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.711218'} 2025-02-17 02:24:34,010 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-17 02:24:34,010 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54005691 passed 2025-02-17 02:24:34,010 - DEBUG - ====Verifying policy data for ctest-vn-54005691 in API_Server ====== 2025-02-17 02:24:34,010 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-02-17 02:24:34,020 - DEBUG - Requesting: http://10.0.0.56:8082/domain/5380181f-43ee-495b-b284-7033f2a63912 2025-02-17 02:24:34,037 - DEBUG - Requesting: http://10.0.0.56:8082/project/5ae4c2d6-529a-4336-8868-8707e9989ced 2025-02-17 02:24:34,145 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/10d944bb-2f70-4f23-b688-43e5b5cc3af0 2025-02-17 02:24:34,159 - DEBUG - ==>Verifying data for policy with id: 2e155813-094e-4540-b450-043fa3f98090, fqn: ['default-domain', 'ctest-TestBasicPolicy-70936586', 'ctest-policy-allow-all-03485420'] 2025-02-17 02:24:34,159 - INFO - VN ctest-vn-54005691 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 02:24:34,160 - DEBUG - Verifying the vn in opserver 2025-02-17 02:24:34,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691 virtual network link through opserver 10.0.0.56 2025-02-17 02:24:34,160 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-02-17 02:24:34,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691?flat'} 2025-02-17 02:24:34,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691 virtual network link through opserver 10.0.0.53 2025-02-17 02:24:34,222 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2025-02-17 02:24:34,297 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691?flat'} 2025-02-17 02:24:34,297 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691 virtual network link through opserver 10.0.0.22 2025-02-17 02:24:34,297 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-02-17 02:24:34,361 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691?flat'} 2025-02-17 02:24:34,361 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-54005691 is found in opserver 2025-02-17 02:24:34,388 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 02:24:34,402 - DEBUG - VRF ids for VN ctest-vn-54005691: {} 2025-02-17 02:24:34,478 - DEBUG - Services list from nova: [, , , ] 2025-02-17 02:24:35,733 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2738-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2738-2) 2025-02-17 02:24:37,278 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2738-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2738-1) 2025-02-17 02:24:37,278 - INFO - Waiting for VM ctest-TestBasicPolicy-70936586-89144267 to be up.. 2025-02-17 02:24:37,410 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-17 02:24:42,522 - DEBUG - VM is in ACTIVE state now 2025-02-17 02:24:42,522 - INFO - VM name : ctest-TestBasicPolicy-70936586-89144267 2025-02-17 02:24:42,632 - DEBUG - VM ctest-TestBasicPolicy-70936586-89144267 ID is 7a7249a4-f1f9-4dbf-a137-8526c225ef33 2025-02-17 02:24:42,670 - DEBUG - VM ctest-TestBasicPolicy-70936586-89144267 launched on Node an-jenkins-deploy-platform-ansible-os-2738-2 2025-02-17 02:24:42,784 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/7a7249a4-f1f9-4dbf-a137-8526c225ef33 2025-02-17 02:24:43,094 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/7a7249a4-f1f9-4dbf-a137-8526c225ef33 2025-02-17 02:24:43,132 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/1295f860-16cb-4b26-b1fc-246f13fe18bd 2025-02-17 02:24:46,369 - 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 1014ms') 2025-02-17 02:24:46,369 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70936586-89144267 failed! 2025-02-17 02:24:46,387 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70936586:ctest-vn-56010738 is 8.232.95.193 and allocation pool is NOT set 2025-02-17 02:24:48,457 - 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=3.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.448 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.448/1.783/3.119/1.335 ms') 2025-02-17 02:24:48,457 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70936586-89144267 passed 2025-02-17 02:24:48,580 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:24:48,580 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70936586-89144267, IP 8.232.95.195, Port 22 2025-02-17 02:24:48,738 - DEBUG - VM ctest-TestBasicPolicy-70936586-89144267 is ready for SSH connections 2025-02-17 02:24:48,739 - INFO - Waiting for VM ctest-TestBasicPolicy-70936586-07240047 to be up.. 2025-02-17 02:24:48,842 - DEBUG - VM is in ACTIVE state now 2025-02-17 02:24:48,842 - INFO - VM name : ctest-TestBasicPolicy-70936586-07240047 2025-02-17 02:24:48,948 - DEBUG - VM ctest-TestBasicPolicy-70936586-07240047 ID is c5de3a60-67a3-4125-a295-d039374ba999 2025-02-17 02:24:48,949 - DEBUG - VM ctest-TestBasicPolicy-70936586-07240047 launched on Node an-jenkins-deploy-platform-ansible-os-2738-1 2025-02-17 02:24:49,048 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c5de3a60-67a3-4125-a295-d039374ba999 2025-02-17 02:24:49,061 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/59eddf61-a869-4c03-81e1-b71b7ed3143c 2025-02-17 02:24:50,288 - 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.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.45 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.454/3.563/5.673/2.109 ms') 2025-02-17 02:24:50,288 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70936586-07240047 passed 2025-02-17 02:24:50,408 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:24:50,408 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70936586-07240047, IP 149.100.83.195, Port 22 2025-02-17 02:24:50,478 - DEBUG - Error on ssh to cirros@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-02-17 02:24:50,599 - DEBUG - VM ctest-TestBasicPolicy-70936586-07240047 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-17 02:24:55,600 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:24:55,600 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70936586-07240047, IP 149.100.83.195, Port 22 2025-02-17 02:24:55,769 - DEBUG - VM ctest-TestBasicPolicy-70936586-07240047 is ready for SSH connections 2025-02-17 02:24:55,769 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:24:55,769 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 149.100.83.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-02-17 02:24:55,769 - DEBUG - ping -s 56 -c 3 -W 1 149.100.83.195 2025-02-17 02:24:59,678 - DEBUG - PING 149.100.83.195 (149.100.83.195): 56 data bytes 64 bytes from 149.100.83.195: seq=0 ttl=63 time=6.372 ms 64 bytes from 149.100.83.195: seq=1 ttl=63 time=1.139 ms 64 bytes from 149.100.83.195: seq=2 ttl=63 time=1.346 ms --- 149.100.83.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.139/2.952/6.372 ms 2025-02-17 02:24:59,678 - INFO - Ping to IP 149.100.83.195 from VM ctest-TestBasicPolicy-70936586-89144267 passed 2025-02-17 02:24:59,907 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2e155813-094e-4540-b450-043fa3f98090", "href": "http://10.0.0.22:8082/network-policy/2e155813-094e-4540-b450-043fa3f98090"}} 2025-02-17 02:24:59,907 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:24:59,907 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 149.100.83.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-02-17 02:24:59,908 - DEBUG - ping -s 56 -c 3 -W 1 149.100.83.195 2025-02-17 02:25:03,112 - DEBUG - PING 149.100.83.195 (149.100.83.195): 56 data bytes --- 149.100.83.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-02-17 02:25:03,113 - WARNING - Ping to IP 149.100.83.195 from VM ctest-TestBasicPolicy-70936586-89144267 failed 2025-02-17 02:25:03,113 - INFO - Deleting VM ctest-TestBasicPolicy-70936586-07240047 2025-02-17 02:25:03,208 - INFO - Deleting VM ctest-TestBasicPolicy-70936586-89144267 2025-02-17 02:25:03,824 - INFO - Deleted policy ctest-policy-allow-all-03485420 2025-02-17 02:25:03,824 - INFO - Deleting VN ctest-vn-54005691 2025-02-17 02:25:03,909 - DEBUG - VN 10d944bb-2f70-4f23-b688-43e5b5cc3af0 still in use: Unable to complete operation on network 10d944bb-2f70-4f23-b688-43e5b5cc3af0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d6913bdb-9cf6-49cd-b121-330ce9cba2a1'] 2025-02-17 02:25:03,909 - WARNING - Deleting VN ctest-vn-54005691 failed..Will retry 2025-02-17 02:25:06,138 - DEBUG - Response for deleting network () 2025-02-17 02:25:06,138 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/fb64f6cb-8d4c-4f3f-8293-5f5aa946c0a1 2025-02-17 02:25:06,147 - DEBUG - Response Code: 404 2025-02-17 02:25:06,147 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-02-17 02:25:06,155 - DEBUG - Requesting: http://10.0.0.56:8082/domain/5380181f-43ee-495b-b284-7033f2a63912 2025-02-17 02:25:06,212 - DEBUG - Requesting: http://10.0.0.56:8082/project/5ae4c2d6-529a-4336-8868-8707e9989ced 2025-02-17 02:25:06,339 - INFO - Validated that VN ctest-vn-54005691 is not found in API Server 2025-02-17 02:25:06,368 - DEBUG - VN ctest-vn-54005691 is not present in Agent 10.0.0.44 2025-02-17 02:25:06,383 - DEBUG - VN ctest-vn-54005691 is not present in Agent 10.0.0.42 2025-02-17 02:25:06,383 - INFO - Validated that VN ctest-vn-54005691 is not in any agent 2025-02-17 02:25:06,432 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54005691 info 2025-02-17 02:25:06,432 - INFO - Deleting VN ctest-vn-56010738 2025-02-17 02:25:06,637 - DEBUG - Response for deleting network () 2025-02-17 02:25:06,638 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7380b059-ffc4-478b-a0fd-b2cf2437e4bf 2025-02-17 02:25:06,650 - DEBUG - Response Code: 404 2025-02-17 02:25:06,650 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-02-17 02:25:06,671 - DEBUG - Requesting: http://10.0.0.56:8082/domain/5380181f-43ee-495b-b284-7033f2a63912 2025-02-17 02:25:06,695 - DEBUG - Requesting: http://10.0.0.56:8082/project/5ae4c2d6-529a-4336-8868-8707e9989ced 2025-02-17 02:25:06,819 - INFO - Validated that VN ctest-vn-56010738 is not found in API Server 2025-02-17 02:25:06,834 - DEBUG - VN ctest-vn-56010738 is not present in Agent 10.0.0.44 2025-02-17 02:25:06,846 - DEBUG - VN ctest-vn-56010738 is not present in Agent 10.0.0.42 2025-02-17 02:25:06,846 - INFO - Validated that VN ctest-vn-56010738 is not in any agent 2025-02-17 02:25:06,892 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56010738 info 2025-02-17 02:25:08,170 - DEBUG - No XMPP flaps were noticed during the test 2025-02-17 02:25:08,170 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41] 2025-02-17 02:25:08,170 - INFO - -------------------------------------------------------------------------------- 2025-02-17 02:25:09,827 - INFO - Deleted project: ctest-TestBasicPolicy-70936586, ID : 5ae4c2d6-529a-4336-8868-8707e9989ced