2025-01-04 20:37:40,225 - INFO - Domain Default found not creating 2025-01-04 20:37:40,414 - INFO - Project ctest-TestBasicPolicy-69085111 not found, creating it 2025-01-04 20:37:40,918 - INFO - Created Project:ctest-TestBasicPolicy-69085111, ID : eeb563ba-9ecf-49f6-aee0-0096eff3e3bc 2025-01-04 20:37:42,371 - INFO - ================================================================================ 2025-01-04 20:37:42,373 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-04 20:37:42,373 - 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-04 20:37:42,640 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with 2025-01-04 20:37:42,640 - INFO - Initial checks done. Running the testcase now 2025-01-04 20:37:42,641 - INFO - 2025-01-04 20:37:43,219 - DEBUG - Response for create_network : {'network': {'id': '5755115d-00c2-4941-a2ee-ac9cb19e8966', 'name': 'ctest-vn-76087139', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-76087139'], 'port_security_enabled': True, 'description': ''}} 2025-01-04 20:37:43,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '13fed5a7-a84e-436c-a6c6-531811ee3c81', 'name': '', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'network_id': '5755115d-00c2-4941-a2ee-ac9cb19e8966', 'ip_version': 4, 'cidr': '49.78.45.192/26', 'allocation_pools': [{'start': '49.78.45.194', 'end': '49.78.45.254'}], 'gateway_ip': '49.78.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.78.45.194', 'tags': [], 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc'}} 2025-01-04 20:37:43,398 - INFO - Created VN ctest-vn-76087139 2025-01-04 20:37:43,454 - DEBUG - VN ctest-vn-76087139 UUID is 5755115d-00c2-4941-a2ee-ac9cb19e8966 2025-01-04 20:37:43,774 - DEBUG - Response for create_network : {'network': {'id': 'c0f8459f-81a9-43d4-89cc-031d0778239c', 'name': 'ctest-vn-53861343', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-53861343'], 'port_security_enabled': True, 'description': ''}} 2025-01-04 20:37:43,920 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fe94763-d3df-4330-93d3-4bdfb718e4ef', 'name': '', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'network_id': 'c0f8459f-81a9-43d4-89cc-031d0778239c', 'ip_version': 4, 'cidr': '39.15.210.0/26', 'allocation_pools': [{'start': '39.15.210.2', 'end': '39.15.210.62'}], 'gateway_ip': '39.15.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.15.210.2', 'tags': [], 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc'}} 2025-01-04 20:37:43,937 - INFO - Created VN ctest-vn-53861343 2025-01-04 20:37:43,986 - DEBUG - VN ctest-vn-53861343 UUID is c0f8459f-81a9-43d4-89cc-031d0778239c 2025-01-04 20:37:44,101 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139, 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-69085111:ctest-vn-53861343, 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-04 20:37:44,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5755115d-00c2-4941-a2ee-ac9cb19e8966', 'name': 'ctest-vn-76087139', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13fed5a7-a84e-436c-a6c6-531811ee3c81'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-76087139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261']], 'subnet_ipam': [{'subnet_cidr': '49.78.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-04 20:37:44,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0f8459f-81a9-43d4-89cc-031d0778239c', 'name': 'ctest-vn-53861343', 'tenant_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'project_id': 'eeb563ba9ecf49f6aee00096eff3e3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fe94763-d3df-4330-93d3-4bdfb718e4ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-vn-53861343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261']], 'subnet_ipam': [{'subnet_cidr': '39.15.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-04 20:37:44,818 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-04 20:37:45,123 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-04 20:37:45,152 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8 2025-01-04 20:37:45,165 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc 2025-01-04 20:37:45,237 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966 2025-01-04 20:37:45,249 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966 2025-01-04 20:37:45,260 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0 2025-01-04 20:37:45,267 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0 2025-01-04 20:37:45,275 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/6d462fc4-88de-4e8a-baac-dc2180918046 2025-01-04 20:37:45,282 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-04 20:37:45,282 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966 2025-01-04 20:37:45,292 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0 2025-01-04 20:37:45,310 - INFO - Verified VN network id 8 for VN 5755115d-00c2-4941-a2ee-ac9cb19e8966 2025-01-04 20:37:45,310 - INFO - Verifications in API Server for VN ctest-vn-76087139 passed 2025-01-04 20:37:45,310 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966 2025-01-04 20:37:45,323 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0 2025-01-04 20:37:45,332 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0 2025-01-04 20:37:45,342 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/6d462fc4-88de-4e8a-baac-dc2180918046 2025-01-04 20:37:45,356 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69085111', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6292955145462499649', 'uuid-lslong': '11740511067596294502'}, 'enable': 'true', 'created': '2025-01-04T20:37:43', 'last-modified': '2025-01-04T20:37:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965002'} 2025-01-04 20:37:45,365 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-04 20:37:45,365 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76087139 passed 2025-01-04 20:37:45,365 - DEBUG - ====Verifying policy data for ctest-vn-76087139 in API_Server ====== 2025-01-04 20:37:45,365 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-04 20:37:45,373 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8 2025-01-04 20:37:45,390 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc 2025-01-04 20:37:45,467 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5755115d-00c2-4941-a2ee-ac9cb19e8966 2025-01-04 20:37:45,477 - DEBUG - ==>Verifying data for policy with id: 3369631e-3141-4d97-9c46-f1ce98a2a47d, fqn: ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261'] 2025-01-04 20:37:45,477 - INFO - VN ctest-vn-76087139 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-04 20:37:45,477 - DEBUG - Verifying the vn in opserver 2025-01-04 20:37:45,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139 virtual network link through opserver 10.0.0.17 2025-01-04 20:37:45,477 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-04 20:37:45,775 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-04 20:37:45,833 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139?flat'} 2025-01-04 20:37:45,833 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139 is found in opserver 2025-01-04 20:37:45,844 - DEBUG - Do not have enough data to verify VN in agent 2025-01-04 20:37:45,850 - DEBUG - VRF ids for VN ctest-vn-76087139: {} 2025-01-04 20:37:45,850 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-04 20:37:45,855 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8 2025-01-04 20:37:45,867 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc 2025-01-04 20:37:45,941 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c 2025-01-04 20:37:45,961 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c 2025-01-04 20:37:45,973 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14 2025-01-04 20:37:45,982 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14 2025-01-04 20:37:45,992 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71561e9f-db5c-4ca5-9afe-a207c2ddac32 2025-01-04 20:37:46,000 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-04 20:37:46,000 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c 2025-01-04 20:37:46,012 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14 2025-01-04 20:37:46,029 - INFO - Verified VN network id 9 for VN c0f8459f-81a9-43d4-89cc-031d0778239c 2025-01-04 20:37:46,030 - INFO - Verifications in API Server for VN ctest-vn-53861343 passed 2025-01-04 20:37:46,030 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c 2025-01-04 20:37:46,041 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14 2025-01-04 20:37:46,049 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14 2025-01-04 20:37:46,057 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71561e9f-db5c-4ca5-9afe-a207c2ddac32 2025-01-04 20:37:46,070 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69085111', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13904940400883876820', 'uuid-lslong': '9929314701659349916'}, 'enable': 'true', 'created': '2025-01-04T20:37:43', 'last-modified': '2025-01-04T20:37:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.421602'} 2025-01-04 20:37:46,077 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-04 20:37:46,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53861343 passed 2025-01-04 20:37:46,078 - DEBUG - ====Verifying policy data for ctest-vn-53861343 in API_Server ====== 2025-01-04 20:37:46,078 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-04 20:37:46,084 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8 2025-01-04 20:37:46,100 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc 2025-01-04 20:37:46,173 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/c0f8459f-81a9-43d4-89cc-031d0778239c 2025-01-04 20:37:46,188 - DEBUG - ==>Verifying data for policy with id: 3369631e-3141-4d97-9c46-f1ce98a2a47d, fqn: ['default-domain', 'ctest-TestBasicPolicy-69085111', 'ctest-policy-allow-all-86898261'] 2025-01-04 20:37:46,188 - INFO - VN ctest-vn-53861343 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-04 20:37:46,188 - DEBUG - Verifying the vn in opserver 2025-01-04 20:37:46,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343 virtual network link through opserver 10.0.0.17 2025-01-04 20:37:46,188 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-01-04 20:37:46,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343?flat'} 2025-01-04 20:37:46,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-53861343 is found in opserver 2025-01-04 20:37:46,212 - DEBUG - Do not have enough data to verify VN in agent 2025-01-04 20:37:46,218 - DEBUG - VRF ids for VN ctest-vn-53861343: {} 2025-01-04 20:37:46,275 - DEBUG - Services list from nova: [, , ] 2025-01-04 20:37:47,310 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2530-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2530-1) 2025-01-04 20:37:48,558 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2530-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2530-1) 2025-01-04 20:37:48,558 - INFO - Waiting for VM ctest-TestBasicPolicy-69085111-61611704 to be up.. 2025-01-04 20:37:48,643 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-04 20:37:53,727 - DEBUG - VM is in ACTIVE state now 2025-01-04 20:37:53,727 - INFO - VM name : ctest-TestBasicPolicy-69085111-61611704 2025-01-04 20:37:53,815 - DEBUG - VM ctest-TestBasicPolicy-69085111-61611704 ID is faa326e8-e393-4f91-8512-b02e19846f08 2025-01-04 20:37:53,835 - DEBUG - VM ctest-TestBasicPolicy-69085111-61611704 launched on Node cn-jenkins-deploy-platform-ansible-os-2530-1 2025-01-04 20:37:53,919 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/faa326e8-e393-4f91-8512-b02e19846f08 2025-01-04 20:37:53,930 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/15c9daa3-1442-4cb3-9478-3c3e0db72944 2025-01-04 20:37:57,206 - 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-01-04 20:37:57,206 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69085111-61611704 failed! 2025-01-04 20:37:57,271 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-69085111:ctest-vn-76087139 is 49.78.45.193 and allocation pool is NOT set 2025-01-04 20:37:59,330 - 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=6.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.415 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.415/3.343/6.271/2.928 ms') 2025-01-04 20:37:59,330 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69085111-61611704 passed 2025-01-04 20:37:59,482 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 20:37:59,482 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69085111-61611704, IP 49.78.45.195, Port 22 2025-01-04 20:37:59,662 - DEBUG - VM ctest-TestBasicPolicy-69085111-61611704 is ready for SSH connections 2025-01-04 20:37:59,662 - INFO - Waiting for VM ctest-TestBasicPolicy-69085111-83247166 to be up.. 2025-01-04 20:37:59,758 - DEBUG - VM is in ACTIVE state now 2025-01-04 20:37:59,758 - INFO - VM name : ctest-TestBasicPolicy-69085111-83247166 2025-01-04 20:37:59,852 - DEBUG - VM ctest-TestBasicPolicy-69085111-83247166 ID is c7fa25dd-7801-432e-9d2f-6878d17f2eea 2025-01-04 20:37:59,853 - DEBUG - VM ctest-TestBasicPolicy-69085111-83247166 launched on Node cn-jenkins-deploy-platform-ansible-os-2530-1 2025-01-04 20:37:59,941 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/c7fa25dd-7801-432e-9d2f-6878d17f2eea 2025-01-04 20:37:59,952 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/de6664b9-7627-44c8-9d0e-7e0d85063f1e 2025-01-04 20:38:01,211 - 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=3.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.05 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 3.051/3.476/3.901/0.425 ms') 2025-01-04 20:38:01,211 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-69085111-83247166 passed 2025-01-04 20:38:01,366 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 20:38:01,366 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69085111-83247166, IP 39.15.210.3, Port 22 2025-01-04 20:38:01,426 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-01-04 20:38:01,507 - DEBUG - VM ctest-TestBasicPolicy-69085111-83247166 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-04 20:38:06,508 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 20:38:06,508 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69085111-83247166, IP 39.15.210.3, Port 22 2025-01-04 20:38:06,681 - DEBUG - VM ctest-TestBasicPolicy-69085111-83247166 is ready for SSH connections 2025-01-04 20:38:06,682 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 20:38:06,682 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.15.210.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-04 20:38:06,682 - DEBUG - ping -s 56 -c 3 -W 1 39.15.210.3 2025-01-04 20:38:10,661 - DEBUG - PING 39.15.210.3 (39.15.210.3): 56 data bytes 64 bytes from 39.15.210.3: seq=0 ttl=63 time=4.161 ms 64 bytes from 39.15.210.3: seq=1 ttl=63 time=0.901 ms 64 bytes from 39.15.210.3: seq=2 ttl=63 time=0.798 ms --- 39.15.210.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.798/1.953/4.161 ms 2025-01-04 20:38:10,661 - INFO - Ping to IP 39.15.210.3 from VM ctest-TestBasicPolicy-69085111-61611704 passed 2025-01-04 20:38:10,858 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3369631e-3141-4d97-9c46-f1ce98a2a47d", "href": "http://10.0.0.17:8082/network-policy/3369631e-3141-4d97-9c46-f1ce98a2a47d"}} 2025-01-04 20:38:10,858 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-04 20:38:10,858 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.15.210.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-04 20:38:10,859 - DEBUG - ping -s 56 -c 3 -W 1 39.15.210.3 2025-01-04 20:38:14,074 - DEBUG - PING 39.15.210.3 (39.15.210.3): 56 data bytes 64 bytes from 39.15.210.3: seq=0 ttl=63 time=1.955 ms --- 39.15.210.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.955/1.955/1.955 ms 2025-01-04 20:38:14,075 - WARNING - Ping to IP 39.15.210.3 from VM ctest-TestBasicPolicy-69085111-61611704 failed 2025-01-04 20:38:14,075 - INFO - Deleting VM ctest-TestBasicPolicy-69085111-83247166 2025-01-04 20:38:14,163 - INFO - Deleting VM ctest-TestBasicPolicy-69085111-61611704 2025-01-04 20:38:14,599 - INFO - Deleted policy ctest-policy-allow-all-86898261 2025-01-04 20:38:14,599 - INFO - Deleting VN ctest-vn-53861343 2025-01-04 20:38:14,639 - DEBUG - VN c0f8459f-81a9-43d4-89cc-031d0778239c still in use: Unable to complete operation on network c0f8459f-81a9-43d4-89cc-031d0778239c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-782d268e-5445-4f9d-9b90-c789aa4a7ec0'] 2025-01-04 20:38:14,639 - WARNING - Deleting VN ctest-vn-53861343 failed..Will retry 2025-01-04 20:38:16,748 - DEBUG - Response for deleting network () 2025-01-04 20:38:16,748 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/52522000-a36a-4cbe-9330-21f85f273f14 2025-01-04 20:38:16,761 - DEBUG - Response Code: 404 2025-01-04 20:38:16,762 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-04 20:38:16,767 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8 2025-01-04 20:38:16,825 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc 2025-01-04 20:38:16,901 - INFO - Validated that VN ctest-vn-53861343 is not found in API Server 2025-01-04 20:38:16,915 - DEBUG - VN ctest-vn-53861343 is not present in Agent 10.0.0.17 2025-01-04 20:38:16,915 - INFO - Validated that VN ctest-vn-53861343 is not in any agent 2025-01-04 20:38:16,935 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53861343 info 2025-01-04 20:38:16,935 - INFO - Deleting VN ctest-vn-76087139 2025-01-04 20:38:17,048 - DEBUG - Response for deleting network () 2025-01-04 20:38:17,048 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/b519b0a9-b82e-4b2c-beca-0bbaab8cf8b0 2025-01-04 20:38:17,055 - DEBUG - Response Code: 404 2025-01-04 20:38:17,056 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-01-04 20:38:17,061 - DEBUG - Requesting: http://10.0.0.17:8082/domain/13ae25cb-aa81-4b6a-98ca-847fd76948d8 2025-01-04 20:38:17,116 - DEBUG - Requesting: http://10.0.0.17:8082/project/eeb563ba-9ecf-49f6-aee0-0096eff3e3bc 2025-01-04 20:38:17,191 - INFO - Validated that VN ctest-vn-76087139 is not found in API Server 2025-01-04 20:38:17,203 - DEBUG - VN ctest-vn-76087139 is not present in Agent 10.0.0.17 2025-01-04 20:38:17,203 - INFO - Validated that VN ctest-vn-76087139 is not in any agent 2025-01-04 20:38:17,220 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76087139 info 2025-01-04 20:38:17,493 - DEBUG - No XMPP flaps were noticed during the test 2025-01-04 20:38:17,493 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-01-04 20:38:17,493 - INFO - -------------------------------------------------------------------------------- 2025-01-04 20:38:18,194 - INFO - Deleted project: ctest-TestBasicPolicy-69085111, ID : eeb563ba-9ecf-49f6-aee0-0096eff3e3bc