2025-03-30 13:05:14,997 - INFO - Reading existing Domain with UUID f4a21949-0bc4-43c9-bfc5-978f0e37ae13 2025-03-30 13:05:15,014 - INFO - Using existing domain ['admin_domain'](f4a21949-0bc4-43c9-bfc5-978f0e37ae13) 2025-03-30 13:05:15,236 - INFO - Project ctest-TestBasicPolicy-35799276 not found, creating it 2025-03-30 13:05:15,775 - INFO - Created Project:ctest-TestBasicPolicy-35799276, ID : 64bbc965-cfe1-45b4-9cb1-caf55de2d48c 2025-03-30 13:05:17,580 - INFO - ================================================================================ 2025-03-30 13:05:17,580 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-30 13:05:17,581 - 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-03-30 13:05:17,967 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with 2025-03-30 13:05:17,967 - INFO - Initial checks done. Running the testcase now 2025-03-30 13:05:17,967 - INFO - 2025-03-30 13:05:18,796 - DEBUG - Response for create_network : {'network': {'id': '65bcd8b7-1dd0-4a1e-b653-f75128075ba5', 'name': 'ctest-vn-33821621', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-33821621'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-03-30 13:05:19,010 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e9cc66c-1622-4c5b-845e-f2468180162c', 'name': '', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'network_id': '65bcd8b7-1dd0-4a1e-b653-f75128075ba5', 'ip_version': 4, 'cidr': '55.229.176.128/26', 'allocation_pools': [{'start': '55.229.176.130', 'end': '55.229.176.190'}], 'gateway_ip': '55.229.176.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-03-30T13:05:18.897990', 'updated_at': '2025-03-30T13:05:18.897990', 'dns_server_address': '55.229.176.130', 'tags': [], 'project_id': '64bbc965cfe145b49cb1caf55de2d48c'}} 2025-03-30 13:05:19,076 - INFO - Created VN ctest-vn-33821621 2025-03-30 13:05:19,133 - DEBUG - VN ctest-vn-33821621 UUID is 65bcd8b7-1dd0-4a1e-b653-f75128075ba5 2025-03-30 13:05:19,654 - DEBUG - Response for create_network : {'network': {'id': '5494651b-1aba-4560-b13d-937f6284618e', 'name': 'ctest-vn-12488671', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-12488671'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-03-30 13:05:19,890 - DEBUG - Response for create_subnet : {'subnet': {'id': '59582db7-a05c-4198-b16a-ba8200f03d57', 'name': '', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'network_id': '5494651b-1aba-4560-b13d-937f6284618e', 'ip_version': 4, 'cidr': '95.126.220.192/26', 'allocation_pools': [{'start': '95.126.220.194', 'end': '95.126.220.254'}], 'gateway_ip': '95.126.220.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-03-30T13:05:19.770391', 'updated_at': '2025-03-30T13:05:19.770391', 'dns_server_address': '95.126.220.194', 'tags': [], 'project_id': '64bbc965cfe145b49cb1caf55de2d48c'}} 2025-03-30 13:05:19,956 - INFO - Created VN ctest-vn-12488671 2025-03-30 13:05:20,017 - DEBUG - VN ctest-vn-12488671 UUID is 5494651b-1aba-4560-b13d-937f6284618e 2025-03-30 13:05:20,242 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671, 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-03-30 13:05:20,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65bcd8b7-1dd0-4a1e-b653-f75128075ba5', 'name': 'ctest-vn-33821621', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e9cc66c-1622-4c5b-845e-f2468180162c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-33821621'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188']], 'subnet_ipam': [{'subnet_cidr': '55.229.176.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-03-30T13:05:18.708557', 'updated_at': '2025-03-30T13:05:18.913458'}} 2025-03-30 13:05:21,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5494651b-1aba-4560-b13d-937f6284618e', 'name': 'ctest-vn-12488671', 'tenant_id': '64bbc965cfe145b49cb1caf55de2d48c', 'project_id': '64bbc965cfe145b49cb1caf55de2d48c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59582db7-a05c-4198-b16a-ba8200f03d57'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-vn-12488671'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188']], 'subnet_ipam': [{'subnet_cidr': '95.126.220.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-03-30T13:05:19.572407', 'updated_at': '2025-03-30T13:05:19.789504'}} 2025-03-30 13:05:21,281 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2025-03-30 13:05:21,630 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2025-03-30 13:05:21,718 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13 2025-03-30 13:05:21,779 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c 2025-03-30 13:05:21,871 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5 2025-03-30 13:05:21,936 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5 2025-03-30 13:05:22,000 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06 2025-03-30 13:05:22,055 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06 2025-03-30 13:05:22,110 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/00227cc0-6100-4532-913f-f870f5b703bd 2025-03-30 13:05:22,166 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-30 13:05:22,166 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5 2025-03-30 13:05:22,231 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06 2025-03-30 13:05:22,300 - INFO - Verified VN network id 8 for VN 65bcd8b7-1dd0-4a1e-b653-f75128075ba5 2025-03-30 13:05:22,300 - INFO - Verifications in API Server for VN ctest-vn-33821621 passed 2025-03-30 13:05:22,300 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5 2025-03-30 13:05:22,360 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06 2025-03-30 13:05:22,414 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06 2025-03-30 13:05:22,471 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/00227cc0-6100-4532-913f-f870f5b703bd 2025-03-30 13:05:22,583 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35799276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7330972574443129374', 'uuid-lslong': '13138116465905851301'}, 'enable': 'true', 'created': '2025-03-30T13:05:18', 'last-modified': '2025-03-30T13:05:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.942818'} 2025-03-30 13:05:22,638 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-30 13:05:22,638 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33821621 passed 2025-03-30 13:05:22,638 - DEBUG - ====Verifying policy data for ctest-vn-33821621 in API_Server ====== 2025-03-30 13:05:22,638 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2025-03-30 13:05:22,695 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13 2025-03-30 13:05:22,760 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c 2025-03-30 13:05:22,849 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/65bcd8b7-1dd0-4a1e-b653-f75128075ba5 2025-03-30 13:05:22,920 - DEBUG - ==>Verifying data for policy with id: 319939ce-edc9-45b2-8a87-34b31343d580, fqn: ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188'] 2025-03-30 13:05:22,920 - INFO - VN ctest-vn-33821621 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-30 13:05:22,920 - DEBUG - Verifying the vn in opserver 2025-03-30 13:05:22,920 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621 virtual network link through opserver 10.0.0.17 2025-03-30 13:05:22,921 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2025-03-30 13:05:23,278 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2025-03-30 13:05:23,406 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621?flat'} 2025-03-30 13:05:23,406 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621 is found in opserver 2025-03-30 13:05:23,510 - DEBUG - Do not have enough data to verify VN in agent 2025-03-30 13:05:23,562 - DEBUG - VRF ids for VN ctest-vn-33821621: {} 2025-03-30 13:05:23,562 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2025-03-30 13:05:23,618 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13 2025-03-30 13:05:23,679 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c 2025-03-30 13:05:23,767 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e 2025-03-30 13:05:23,828 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e 2025-03-30 13:05:23,888 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c 2025-03-30 13:05:23,944 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c 2025-03-30 13:05:24,003 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/40fe2ce8-59c5-4f12-a56a-c0523943110b 2025-03-30 13:05:24,063 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-30 13:05:24,063 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e 2025-03-30 13:05:24,124 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c 2025-03-30 13:05:24,190 - INFO - Verified VN network id 9 for VN 5494651b-1aba-4560-b13d-937f6284618e 2025-03-30 13:05:24,190 - INFO - Verifications in API Server for VN ctest-vn-12488671 passed 2025-03-30 13:05:24,190 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e 2025-03-30 13:05:24,248 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c 2025-03-30 13:05:24,303 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c 2025-03-30 13:05:24,359 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/40fe2ce8-59c5-4f12-a56a-c0523943110b 2025-03-30 13:05:24,471 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35799276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6094607362826061152', 'uuid-lslong': '12771526293615567246'}, 'enable': 'true', 'created': '2025-03-30T13:05:19', 'last-modified': '2025-03-30T13:05:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.457264'} 2025-03-30 13:05:24,523 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-30 13:05:24,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12488671 passed 2025-03-30 13:05:24,523 - DEBUG - ====Verifying policy data for ctest-vn-12488671 in API_Server ====== 2025-03-30 13:05:24,523 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2025-03-30 13:05:24,574 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13 2025-03-30 13:05:24,634 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c 2025-03-30 13:05:24,715 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/5494651b-1aba-4560-b13d-937f6284618e 2025-03-30 13:05:24,776 - DEBUG - ==>Verifying data for policy with id: 319939ce-edc9-45b2-8a87-34b31343d580, fqn: ['admin_domain', 'ctest-TestBasicPolicy-35799276', 'ctest-policy-allow-all-77836188'] 2025-03-30 13:05:24,776 - INFO - VN ctest-vn-12488671 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-30 13:05:24,776 - DEBUG - Verifying the vn in opserver 2025-03-30 13:05:24,776 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671 virtual network link through opserver 10.0.0.17 2025-03-30 13:05:24,776 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2025-03-30 13:05:24,842 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671?flat'} 2025-03-30 13:05:24,842 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-12488671 is found in opserver 2025-03-30 13:05:24,946 - DEBUG - Do not have enough data to verify VN in agent 2025-03-30 13:05:25,002 - DEBUG - VRF ids for VN ctest-vn-12488671: {} 2025-03-30 13:05:25,093 - DEBUG - Services list from nova: [, , ] 2025-03-30 13:05:26,424 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-493-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-493-1) 2025-03-30 13:05:27,846 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-493-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-493-1) 2025-03-30 13:05:27,846 - INFO - Waiting for VM ctest-TestBasicPolicy-35799276-37069495 to be up.. 2025-03-30 13:05:28,007 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-30 13:05:33,159 - DEBUG - VM is in ACTIVE state now 2025-03-30 13:05:33,159 - INFO - VM name : ctest-TestBasicPolicy-35799276-37069495 2025-03-30 13:05:33,314 - DEBUG - VM ctest-TestBasicPolicy-35799276-37069495 ID is 04f179a0-ef66-4bf5-91c0-0f08a86aede8 2025-03-30 13:05:33,349 - DEBUG - VM ctest-TestBasicPolicy-35799276-37069495 launched on Node cn-jenkins-deploy-platform-juju-os-493-1 2025-03-30 13:05:33,501 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/04f179a0-ef66-4bf5-91c0-0f08a86aede8 2025-03-30 13:05:33,559 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/c276720e-64a3-4b89-a108-f5a40f733f3c 2025-03-30 13:05:37,050 - 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 1018ms') 2025-03-30 13:05:37,050 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35799276-37069495 failed! 2025-03-30 13:05:37,110 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-35799276:ctest-vn-33821621 is 55.229.176.129 and allocation pool is NOT set 2025-03-30 13:05:39,200 - 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=9.62 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.752 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 = 0.752/5.188/9.624/4.436 ms') 2025-03-30 13:05:39,200 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35799276-37069495 passed 2025-03-30 13:05:39,357 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-30 13:05:39,357 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35799276-37069495, IP 55.229.176.131, Port 22 2025-03-30 13:05:39,454 - 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-03-30 13:05:39,592 - DEBUG - VM ctest-TestBasicPolicy-35799276-37069495 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-30 13:05:44,593 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-30 13:05:44,593 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35799276-37069495, IP 55.229.176.131, Port 22 2025-03-30 13:05:44,819 - DEBUG - VM ctest-TestBasicPolicy-35799276-37069495 is ready for SSH connections 2025-03-30 13:05:44,819 - INFO - Waiting for VM ctest-TestBasicPolicy-35799276-89270614 to be up.. 2025-03-30 13:05:45,094 - DEBUG - VM is in ACTIVE state now 2025-03-30 13:05:45,094 - INFO - VM name : ctest-TestBasicPolicy-35799276-89270614 2025-03-30 13:05:45,241 - DEBUG - VM ctest-TestBasicPolicy-35799276-89270614 ID is ef8c666d-3e71-4477-bd9a-4cbc0e6f59c2 2025-03-30 13:05:45,242 - DEBUG - VM ctest-TestBasicPolicy-35799276-89270614 launched on Node cn-jenkins-deploy-platform-juju-os-493-1 2025-03-30 13:05:45,381 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/ef8c666d-3e71-4477-bd9a-4cbc0e6f59c2 2025-03-30 13:05:45,438 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/d89df688-0f7e-444a-ac4d-b4ea6ebc437a 2025-03-30 13:05:46,899 - 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.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.438 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 = 0.438/1.865/3.292/1.427 ms') 2025-03-30 13:05:46,899 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-35799276-89270614 passed 2025-03-30 13:05:47,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-30 13:05:47,057 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35799276-89270614, IP 95.126.220.195, Port 22 2025-03-30 13:05:47,271 - DEBUG - VM ctest-TestBasicPolicy-35799276-89270614 is ready for SSH connections 2025-03-30 13:05:47,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-30 13:05:47,271 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.126.220.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-03-30 13:05:47,271 - DEBUG - ping -s 56 -c 3 -W 1 95.126.220.195 2025-03-30 13:05:50,978 - DEBUG - PING 95.126.220.195 (95.126.220.195): 56 data bytes 64 bytes from 95.126.220.195: seq=0 ttl=63 time=3.469 ms 64 bytes from 95.126.220.195: seq=1 ttl=63 time=0.956 ms 64 bytes from 95.126.220.195: seq=2 ttl=63 time=0.926 ms --- 95.126.220.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.926/1.783/3.469 ms 2025-03-30 13:05:50,978 - INFO - Ping to IP 95.126.220.195 from VM ctest-TestBasicPolicy-35799276-37069495 passed 2025-03-30 13:05:51,165 - DEBUG - Policy Update Response {"network-policy": {"uuid": "319939ce-edc9-45b2-8a87-34b31343d580", "href": "https://10.0.0.17:8082/network-policy/319939ce-edc9-45b2-8a87-34b31343d580"}} 2025-03-30 13:05:51,165 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-30 13:05:51,165 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.126.220.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-03-30 13:05:51,165 - DEBUG - ping -s 56 -c 3 -W 1 95.126.220.195 2025-03-30 13:05:54,377 - DEBUG - PING 95.126.220.195 (95.126.220.195): 56 data bytes --- 95.126.220.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-30 13:05:54,378 - WARNING - Ping to IP 95.126.220.195 from VM ctest-TestBasicPolicy-35799276-37069495 failed 2025-03-30 13:05:54,378 - INFO - Deleting VM ctest-TestBasicPolicy-35799276-89270614 2025-03-30 13:05:54,584 - INFO - Deleting VM ctest-TestBasicPolicy-35799276-37069495 2025-03-30 13:05:55,339 - INFO - Deleted policy ctest-policy-allow-all-77836188 2025-03-30 13:05:55,339 - INFO - Deleting VN ctest-vn-12488671 2025-03-30 13:05:55,485 - DEBUG - VN 5494651b-1aba-4560-b13d-937f6284618e still in use: Unable to complete operation on network 5494651b-1aba-4560-b13d-937f6284618e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0751a08b-49dd-43c4-b5cf-85b9260f620e'] 2025-03-30 13:05:55,485 - WARNING - Deleting VN ctest-vn-12488671 failed..Will retry 2025-03-30 13:05:57,668 - DEBUG - Response for deleting network () 2025-03-30 13:05:57,668 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/7f9e9056-7690-47dc-ae44-106e72b5df3c 2025-03-30 13:05:57,721 - DEBUG - Response Code: 404 2025-03-30 13:05:57,721 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2025-03-30 13:05:57,774 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13 2025-03-30 13:05:57,834 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c 2025-03-30 13:05:57,923 - INFO - Validated that VN ctest-vn-12488671 is not found in API Server 2025-03-30 13:05:58,026 - DEBUG - VN ctest-vn-12488671 is not present in Agent 10.0.0.17 2025-03-30 13:05:58,026 - INFO - Validated that VN ctest-vn-12488671 is not in any agent 2025-03-30 13:05:58,170 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12488671 info 2025-03-30 13:05:58,170 - INFO - Deleting VN ctest-vn-33821621 2025-03-30 13:05:58,361 - DEBUG - Response for deleting network () 2025-03-30 13:05:58,361 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/9d44f545-4882-4ec4-bae9-713a1274ee06 2025-03-30 13:05:58,413 - DEBUG - Response Code: 404 2025-03-30 13:05:58,414 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2025-03-30 13:05:58,466 - DEBUG - Requesting: https://10.0.0.17:8082/domain/f4a21949-0bc4-43c9-bfc5-978f0e37ae13 2025-03-30 13:05:58,526 - DEBUG - Requesting: https://10.0.0.17:8082/project/64bbc965-cfe1-45b4-9cb1-caf55de2d48c 2025-03-30 13:05:58,607 - INFO - Validated that VN ctest-vn-33821621 is not found in API Server 2025-03-30 13:05:58,710 - DEBUG - VN ctest-vn-33821621 is not present in Agent 10.0.0.17 2025-03-30 13:05:58,710 - INFO - Validated that VN ctest-vn-33821621 is not in any agent 2025-03-30 13:05:58,866 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33821621 info 2025-03-30 13:05:59,259 - DEBUG - No XMPP flaps were noticed during the test 2025-03-30 13:05:59,259 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42] 2025-03-30 13:05:59,259 - INFO - -------------------------------------------------------------------------------- 2025-03-30 13:06:00,030 - INFO - Deleted project: ctest-TestBasicPolicy-35799276, ID : 64bbc965-cfe1-45b4-9cb1-caf55de2d48c