2025-01-14 20:42:19,291 - INFO - Domain Default found not creating 2025-01-14 20:42:19,438 - INFO - Project ctest-TestBasicPolicy-19830342 not found, creating it 2025-01-14 20:42:19,885 - INFO - Created Project:ctest-TestBasicPolicy-19830342, ID : 63064377-5460-4e6b-bbc2-a2bc54285848 2025-01-14 20:42:21,336 - INFO - ================================================================================ 2025-01-14 20:42:21,337 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-14 20:42:21,337 - 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-01-14 20:42:21,594 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.7': '0'}} with 2025-01-14 20:42:21,594 - INFO - Initial checks done. Running the testcase now 2025-01-14 20:42:21,594 - INFO - 2025-01-14 20:42:22,161 - DEBUG - Response for create_network : {'network': {'id': 'b8b7cf16-f570-4c07-bfcf-b613d8a84959', 'name': 'ctest-vn-19390210', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-19390210'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 20:42:22,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '31a9a33e-cba0-4e83-af58-dd3bb3ac0697', 'name': '', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'network_id': 'b8b7cf16-f570-4c07-bfcf-b613d8a84959', 'ip_version': 4, 'cidr': '91.138.116.0/26', 'allocation_pools': [{'start': '91.138.116.2', 'end': '91.138.116.62'}], 'gateway_ip': '91.138.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.138.116.2', 'tags': [], 'project_id': '6306437754604e6bbbc2a2bc54285848'}} 2025-01-14 20:42:22,366 - INFO - Created VN ctest-vn-19390210 2025-01-14 20:42:22,419 - DEBUG - VN ctest-vn-19390210 UUID is b8b7cf16-f570-4c07-bfcf-b613d8a84959 2025-01-14 20:42:22,711 - DEBUG - Response for create_network : {'network': {'id': '2af106f2-b96c-4144-860c-3cf0838a843c', 'name': 'ctest-vn-27125280', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-27125280'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 20:42:22,863 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc929ba0-f350-4665-836d-4d468bdfa6ed', 'name': '', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'network_id': '2af106f2-b96c-4144-860c-3cf0838a843c', 'ip_version': 4, 'cidr': '62.141.139.128/26', 'allocation_pools': [{'start': '62.141.139.130', 'end': '62.141.139.190'}], 'gateway_ip': '62.141.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.141.139.130', 'tags': [], 'project_id': '6306437754604e6bbbc2a2bc54285848'}} 2025-01-14 20:42:22,881 - INFO - Created VN ctest-vn-27125280 2025-01-14 20:42:22,935 - DEBUG - VN ctest-vn-27125280 UUID is 2af106f2-b96c-4144-860c-3cf0838a843c 2025-01-14 20:42:23,087 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210, 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-19830342:ctest-vn-27125280, 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-01-14 20:42:23,411 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8b7cf16-f570-4c07-bfcf-b613d8a84959', 'name': 'ctest-vn-19390210', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31a9a33e-cba0-4e83-af58-dd3bb3ac0697'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-19390210'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732']], 'subnet_ipam': [{'subnet_cidr': '91.138.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 20:42:23,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2af106f2-b96c-4144-860c-3cf0838a843c', 'name': 'ctest-vn-27125280', 'tenant_id': '6306437754604e6bbbc2a2bc54285848', 'project_id': '6306437754604e6bbbc2a2bc54285848', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc929ba0-f350-4665-836d-4d468bdfa6ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-vn-27125280'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732']], 'subnet_ipam': [{'subnet_cidr': '62.141.139.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 20:42:23,967 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 20:42:24,271 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 20:42:24,304 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6 2025-01-14 20:42:24,319 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848 2025-01-14 20:42:24,391 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959 2025-01-14 20:42:24,404 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959 2025-01-14 20:42:24,416 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df 2025-01-14 20:42:24,426 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df 2025-01-14 20:42:24,435 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8e046382-4b4e-4778-88a0-e644523786bc 2025-01-14 20:42:24,444 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 20:42:24,444 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959 2025-01-14 20:42:24,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df 2025-01-14 20:42:24,469 - INFO - Verified VN network id 7 for VN b8b7cf16-f570-4c07-bfcf-b613d8a84959 2025-01-14 20:42:24,469 - INFO - Verifications in API Server for VN ctest-vn-19390210 passed 2025-01-14 20:42:24,470 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959 2025-01-14 20:42:24,480 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df 2025-01-14 20:42:24,488 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df 2025-01-14 20:42:24,495 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8e046382-4b4e-4778-88a0-e644523786bc 2025-01-14 20:42:24,510 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19830342', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13310334921230797831', 'uuid-lslong': '13821465977778882905'}, 'enable': 'true', 'created': '2025-01-14T20:42:22', 'last-modified': '2025-01-14T20:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.126685'} 2025-01-14 20:42:24,517 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 20:42:24,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19390210 passed 2025-01-14 20:42:24,517 - DEBUG - ====Verifying policy data for ctest-vn-19390210 in API_Server ====== 2025-01-14 20:42:24,517 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 20:42:24,523 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6 2025-01-14 20:42:24,538 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848 2025-01-14 20:42:24,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8b7cf16-f570-4c07-bfcf-b613d8a84959 2025-01-14 20:42:24,631 - DEBUG - ==>Verifying data for policy with id: b112a7fd-5480-4c6d-b36d-c4dddf3ff5ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732'] 2025-01-14 20:42:24,632 - INFO - VN ctest-vn-19390210 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 20:42:24,632 - DEBUG - Verifying the vn in opserver 2025-01-14 20:42:24,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210 virtual network link through opserver 10.0.0.22 2025-01-14 20:42:24,632 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-14 20:42:24,926 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-14 20:42:24,983 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210?flat'} 2025-01-14 20:42:24,983 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210 is found in opserver 2025-01-14 20:42:24,994 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 20:42:25,000 - DEBUG - VRF ids for VN ctest-vn-19390210: {} 2025-01-14 20:42:25,000 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 20:42:25,005 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6 2025-01-14 20:42:25,019 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848 2025-01-14 20:42:25,095 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c 2025-01-14 20:42:25,110 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c 2025-01-14 20:42:25,120 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b 2025-01-14 20:42:25,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b 2025-01-14 20:42:25,137 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b4ca3a74-8e1f-4403-8fd7-0c5d93d53029 2025-01-14 20:42:25,144 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 20:42:25,144 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c 2025-01-14 20:42:25,155 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b 2025-01-14 20:42:25,171 - INFO - Verified VN network id 8 for VN 2af106f2-b96c-4144-860c-3cf0838a843c 2025-01-14 20:42:25,171 - INFO - Verifications in API Server for VN ctest-vn-27125280 passed 2025-01-14 20:42:25,171 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c 2025-01-14 20:42:25,183 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b 2025-01-14 20:42:25,191 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b 2025-01-14 20:42:25,199 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b4ca3a74-8e1f-4403-8fd7-0c5d93d53029 2025-01-14 20:42:25,213 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19830342', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3094262058542973252', 'uuid-lslong': '9659162304499582012'}, 'enable': 'true', 'created': '2025-01-14T20:42:22', 'last-modified': '2025-01-14T20:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.429314'} 2025-01-14 20:42:25,222 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 20:42:25,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27125280 passed 2025-01-14 20:42:25,223 - DEBUG - ====Verifying policy data for ctest-vn-27125280 in API_Server ====== 2025-01-14 20:42:25,223 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 20:42:25,230 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6 2025-01-14 20:42:25,242 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848 2025-01-14 20:42:25,318 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2af106f2-b96c-4144-860c-3cf0838a843c 2025-01-14 20:42:25,333 - DEBUG - ==>Verifying data for policy with id: b112a7fd-5480-4c6d-b36d-c4dddf3ff5ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-19830342', 'ctest-policy-allow-all-24309732'] 2025-01-14 20:42:25,333 - INFO - VN ctest-vn-27125280 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 20:42:25,333 - DEBUG - Verifying the vn in opserver 2025-01-14 20:42:25,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280 virtual network link through opserver 10.0.0.22 2025-01-14 20:42:25,333 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-14 20:42:25,348 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280?flat'} 2025-01-14 20:42:25,348 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-27125280 is found in opserver 2025-01-14 20:42:25,363 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 20:42:25,369 - DEBUG - VRF ids for VN ctest-vn-27125280: {} 2025-01-14 20:42:25,437 - DEBUG - Services list from nova: [, , ] 2025-01-14 20:42:26,583 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2630-1) 2025-01-14 20:42:27,739 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2630-1) 2025-01-14 20:42:27,740 - INFO - Waiting for VM ctest-TestBasicPolicy-19830342-46067571 to be up.. 2025-01-14 20:42:27,822 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-14 20:42:32,907 - DEBUG - VM is in ACTIVE state now 2025-01-14 20:42:32,907 - INFO - VM name : ctest-TestBasicPolicy-19830342-46067571 2025-01-14 20:42:33,010 - DEBUG - VM ctest-TestBasicPolicy-19830342-46067571 ID is 93d5acb5-b9b3-41b3-80d8-36fa3d5aa9fc 2025-01-14 20:42:33,033 - DEBUG - VM ctest-TestBasicPolicy-19830342-46067571 launched on Node cn-jenkins-deploy-platform-ansible-os-2630-1 2025-01-14 20:42:33,119 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/93d5acb5-b9b3-41b3-80d8-36fa3d5aa9fc 2025-01-14 20:42:33,129 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/4b4c1836-9dbe-46db-9738-54c59b9f8e1d 2025-01-14 20:42:36,377 - 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 1001ms') 2025-01-14 20:42:36,377 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19830342-46067571 failed! 2025-01-14 20:42:36,435 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-19830342:ctest-vn-19390210 is 91.138.116.1 and allocation pool is NOT set 2025-01-14 20:42:38,500 - 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=10.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.774 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.774/5.471/10.169/4.697 ms') 2025-01-14 20:42:38,502 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-19830342-46067571 passed 2025-01-14 20:42:38,655 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 20:42:38,655 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19830342-46067571, IP 91.138.116.3, Port 22 2025-01-14 20:42:38,810 - DEBUG - VM ctest-TestBasicPolicy-19830342-46067571 is ready for SSH connections 2025-01-14 20:42:38,811 - INFO - Waiting for VM ctest-TestBasicPolicy-19830342-55000853 to be up.. 2025-01-14 20:42:38,885 - DEBUG - VM is in ACTIVE state now 2025-01-14 20:42:38,885 - INFO - VM name : ctest-TestBasicPolicy-19830342-55000853 2025-01-14 20:42:38,960 - DEBUG - VM ctest-TestBasicPolicy-19830342-55000853 ID is f5ce3a6f-9460-4fb4-94c9-4d2b1bcef648 2025-01-14 20:42:38,960 - DEBUG - VM ctest-TestBasicPolicy-19830342-55000853 launched on Node cn-jenkins-deploy-platform-ansible-os-2630-1 2025-01-14 20:42:39,033 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/f5ce3a6f-9460-4fb4-94c9-4d2b1bcef648 2025-01-14 20:42:39,043 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/3fac80b3-0bf4-4d10-8abb-21c361d80c04 2025-01-14 20:42:40,287 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.417 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.417/1.586/2.755/1.169 ms') 2025-01-14 20:42:40,288 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-19830342-55000853 passed 2025-01-14 20:42:40,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 20:42:40,447 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-19830342-55000853, IP 62.141.139.131, Port 22 2025-01-14 20:42:40,613 - DEBUG - VM ctest-TestBasicPolicy-19830342-55000853 is ready for SSH connections 2025-01-14 20:42:40,613 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 20:42:40,613 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.141.139.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-14 20:42:40,613 - DEBUG - ping -s 56 -c 3 -W 1 62.141.139.131 2025-01-14 20:42:44,622 - DEBUG - PING 62.141.139.131 (62.141.139.131): 56 data bytes 64 bytes from 62.141.139.131: seq=0 ttl=63 time=3.494 ms 64 bytes from 62.141.139.131: seq=1 ttl=63 time=0.938 ms 64 bytes from 62.141.139.131: seq=2 ttl=63 time=0.823 ms --- 62.141.139.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.823/1.751/3.494 ms 2025-01-14 20:42:44,623 - INFO - Ping to IP 62.141.139.131 from VM ctest-TestBasicPolicy-19830342-46067571 passed 2025-01-14 20:42:44,807 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b112a7fd-5480-4c6d-b36d-c4dddf3ff5ba", "href": "http://10.0.0.22:8082/network-policy/b112a7fd-5480-4c6d-b36d-c4dddf3ff5ba"}} 2025-01-14 20:42:44,807 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 20:42:44,807 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.141.139.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-14 20:42:44,807 - DEBUG - ping -s 56 -c 3 -W 1 62.141.139.131 2025-01-14 20:42:48,026 - DEBUG - PING 62.141.139.131 (62.141.139.131): 56 data bytes 64 bytes from 62.141.139.131: seq=0 ttl=63 time=1.544 ms --- 62.141.139.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.544/1.544/1.544 ms 2025-01-14 20:42:48,026 - WARNING - Ping to IP 62.141.139.131 from VM ctest-TestBasicPolicy-19830342-46067571 failed 2025-01-14 20:42:48,026 - INFO - Deleting VM ctest-TestBasicPolicy-19830342-55000853 2025-01-14 20:42:48,479 - INFO - Deleting VM ctest-TestBasicPolicy-19830342-46067571 2025-01-14 20:42:48,883 - INFO - Deleted policy ctest-policy-allow-all-24309732 2025-01-14 20:42:48,883 - INFO - Deleting VN ctest-vn-27125280 2025-01-14 20:42:48,929 - DEBUG - VN 2af106f2-b96c-4144-860c-3cf0838a843c still in use: Unable to complete operation on network 2af106f2-b96c-4144-860c-3cf0838a843c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e6ae13e2-b97b-490b-94ca-5c065145ff15'] 2025-01-14 20:42:48,929 - WARNING - Deleting VN ctest-vn-27125280 failed..Will retry 2025-01-14 20:42:51,079 - DEBUG - Response for deleting network () 2025-01-14 20:42:51,079 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0a7adb42-c30b-44b8-9e32-e5c1d4bf9b1b 2025-01-14 20:42:51,087 - DEBUG - Response Code: 404 2025-01-14 20:42:51,087 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 20:42:51,096 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6 2025-01-14 20:42:51,162 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848 2025-01-14 20:42:51,236 - INFO - Validated that VN ctest-vn-27125280 is not found in API Server 2025-01-14 20:42:51,248 - DEBUG - VN ctest-vn-27125280 is not present in Agent 10.0.0.22 2025-01-14 20:42:51,248 - INFO - Validated that VN ctest-vn-27125280 is not in any agent 2025-01-14 20:42:51,267 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27125280 info 2025-01-14 20:42:51,267 - INFO - Deleting VN ctest-vn-19390210 2025-01-14 20:42:51,381 - DEBUG - Response for deleting network () 2025-01-14 20:42:51,381 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f3ebf71-88cf-41e1-94f8-49f1ddd0f6df 2025-01-14 20:42:51,390 - DEBUG - Response Code: 404 2025-01-14 20:42:51,390 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 20:42:51,398 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9836fa3e-3e84-43b3-808d-7119415494f6 2025-01-14 20:42:51,453 - DEBUG - Requesting: http://10.0.0.22:8082/project/63064377-5460-4e6b-bbc2-a2bc54285848 2025-01-14 20:42:51,527 - INFO - Validated that VN ctest-vn-19390210 is not found in API Server 2025-01-14 20:42:51,538 - DEBUG - VN ctest-vn-19390210 is not present in Agent 10.0.0.22 2025-01-14 20:42:51,538 - INFO - Validated that VN ctest-vn-19390210 is not in any agent 2025-01-14 20:42:51,556 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19390210 info 2025-01-14 20:42:51,813 - DEBUG - No XMPP flaps were noticed during the test
2025-01-14 20:42:51,813 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-01-14 20:42:51,813 - INFO - -------------------------------------------------------------------------------- 2025-01-14 20:42:52,519 - INFO - Deleted project: ctest-TestBasicPolicy-19830342, ID : 63064377-5460-4e6b-bbc2-a2bc54285848