2025-04-14 19:48:32,394 - INFO - Domain Default found not creating 2025-04-14 19:48:32,537 - INFO - Project ctest-TestBasicPolicy-96081801 not found, creating it 2025-04-14 19:48:33,000 - INFO - Created Project:ctest-TestBasicPolicy-96081801, ID : 438e4bdd-d8c5-417a-9972-b251c294ecde 2025-04-14 19:48:34,430 - INFO - ================================================================================ 2025-04-14 19:48:34,430 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-14 19:48:34,430 - 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-04-14 19:48:34,686 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-04-14 19:48:34,686 - INFO - Initial checks done. Running the testcase now 2025-04-14 19:48:34,686 - INFO - 2025-04-14 19:48:35,221 - DEBUG - Response for create_network : {'network': {'id': '3bdf139f-4207-451c-aa18-441a61407933', 'name': 'ctest-vn-85333553', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-85333553'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 19:48:35,426 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbb94243-8431-4ec1-8fc7-f533254ab692', 'name': '', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'network_id': '3bdf139f-4207-451c-aa18-441a61407933', 'ip_version': 4, 'cidr': '57.193.163.128/26', 'allocation_pools': [{'start': '57.193.163.130', 'end': '57.193.163.190'}], 'gateway_ip': '57.193.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.193.163.130', 'tags': [], 'project_id': '438e4bddd8c5417a9972b251c294ecde'}} 2025-04-14 19:48:35,445 - INFO - Created VN ctest-vn-85333553 2025-04-14 19:48:35,500 - DEBUG - VN ctest-vn-85333553 UUID is 3bdf139f-4207-451c-aa18-441a61407933 2025-04-14 19:48:35,788 - DEBUG - Response for create_network : {'network': {'id': 'e285d946-d2be-4b53-b8f7-8349838c2ef9', 'name': 'ctest-vn-01980699', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-01980699'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 19:48:35,944 - DEBUG - Response for create_subnet : {'subnet': {'id': '75270784-94e7-4777-b4b3-0e5682fc173d', 'name': '', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'network_id': 'e285d946-d2be-4b53-b8f7-8349838c2ef9', 'ip_version': 4, 'cidr': '148.40.220.64/26', 'allocation_pools': [{'start': '148.40.220.66', 'end': '148.40.220.126'}], 'gateway_ip': '148.40.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.40.220.66', 'tags': [], 'project_id': '438e4bddd8c5417a9972b251c294ecde'}} 2025-04-14 19:48:35,961 - INFO - Created VN ctest-vn-01980699 2025-04-14 19:48:36,012 - DEBUG - VN ctest-vn-01980699 UUID is e285d946-d2be-4b53-b8f7-8349838c2ef9 2025-04-14 19:48:36,164 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553, 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-96081801:ctest-vn-01980699, 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-04-14 19:48:36,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bdf139f-4207-451c-aa18-441a61407933', 'name': 'ctest-vn-85333553', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fbb94243-8431-4ec1-8fc7-f533254ab692'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-85333553'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240']], 'subnet_ipam': [{'subnet_cidr': '57.193.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 19:48:36,654 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e285d946-d2be-4b53-b8f7-8349838c2ef9', 'name': 'ctest-vn-01980699', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75270784-94e7-4777-b4b3-0e5682fc173d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-01980699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240']], 'subnet_ipam': [{'subnet_cidr': '148.40.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 19:48:36,828 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-14 19:48:37,124 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-14 19:48:37,152 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de 2025-04-14 19:48:37,165 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde 2025-04-14 19:48:37,236 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933 2025-04-14 19:48:37,248 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933 2025-04-14 19:48:37,260 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb 2025-04-14 19:48:37,269 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb 2025-04-14 19:48:37,277 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25fb238b-d496-4f6a-8b19-d5978170323c 2025-04-14 19:48:37,283 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 19:48:37,283 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933 2025-04-14 19:48:37,293 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb 2025-04-14 19:48:37,308 - INFO - Verified VN network id 8 for VN 3bdf139f-4207-451c-aa18-441a61407933 2025-04-14 19:48:37,308 - INFO - Verifications in API Server for VN ctest-vn-85333553 passed 2025-04-14 19:48:37,308 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933 2025-04-14 19:48:37,317 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb 2025-04-14 19:48:37,325 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb 2025-04-14 19:48:37,332 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25fb238b-d496-4f6a-8b19-d5978170323c 2025-04-14 19:48:37,344 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96081801', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4314188542772725020', 'uuid-lslong': '12256621265980258611'}, 'enable': 'true', 'created': '2025-04-14T19:48:35', 'last-modified': '2025-04-14T19:48:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907310'} 2025-04-14 19:48:37,351 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 19:48:37,351 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85333553 passed 2025-04-14 19:48:37,351 - DEBUG - ====Verifying policy data for ctest-vn-85333553 in API_Server ====== 2025-04-14 19:48:37,351 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-14 19:48:37,357 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de 2025-04-14 19:48:37,369 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde 2025-04-14 19:48:37,443 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933 2025-04-14 19:48:37,453 - DEBUG - ==>Verifying data for policy with id: d5a4ad68-8a68-4990-9fde-8184d0dbfbaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240'] 2025-04-14 19:48:37,453 - INFO - VN ctest-vn-85333553 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 19:48:37,453 - DEBUG - Verifying the vn in opserver 2025-04-14 19:48:37,453 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553 virtual network link through opserver 10.0.0.50 2025-04-14 19:48:37,453 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-14 19:48:37,745 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-14 19:48:37,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553?flat'} 2025-04-14 19:48:37,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553 is found in opserver 2025-04-14 19:48:37,821 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 19:48:37,830 - DEBUG - VRF ids for VN ctest-vn-85333553: {} 2025-04-14 19:48:37,830 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-14 19:48:37,838 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de 2025-04-14 19:48:37,852 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde 2025-04-14 19:48:37,937 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9 2025-04-14 19:48:37,955 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9 2025-04-14 19:48:37,966 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009 2025-04-14 19:48:37,983 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009 2025-04-14 19:48:37,992 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0b0ed914-df2d-4487-98f9-7a72e7b3eb69 2025-04-14 19:48:38,001 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 19:48:38,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9 2025-04-14 19:48:38,012 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009 2025-04-14 19:48:38,028 - INFO - Verified VN network id 9 for VN e285d946-d2be-4b53-b8f7-8349838c2ef9 2025-04-14 19:48:38,028 - INFO - Verifications in API Server for VN ctest-vn-01980699 passed 2025-04-14 19:48:38,028 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9 2025-04-14 19:48:38,037 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009 2025-04-14 19:48:38,044 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009 2025-04-14 19:48:38,051 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0b0ed914-df2d-4487-98f9-7a72e7b3eb69 2025-04-14 19:48:38,063 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96081801', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16322691322680855379', 'uuid-lslong': '13328265973989125881'}, 'enable': 'true', 'created': '2025-04-14T19:48:35', 'last-modified': '2025-04-14T19:48:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433304'} 2025-04-14 19:48:38,070 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 19:48:38,070 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01980699 passed 2025-04-14 19:48:38,070 - DEBUG - ====Verifying policy data for ctest-vn-01980699 in API_Server ====== 2025-04-14 19:48:38,070 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-14 19:48:38,077 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de 2025-04-14 19:48:38,088 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde 2025-04-14 19:48:38,170 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9 2025-04-14 19:48:38,181 - DEBUG - ==>Verifying data for policy with id: d5a4ad68-8a68-4990-9fde-8184d0dbfbaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240'] 2025-04-14 19:48:38,181 - INFO - VN ctest-vn-01980699 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 19:48:38,181 - DEBUG - Verifying the vn in opserver 2025-04-14 19:48:38,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699 virtual network link through opserver 10.0.0.50 2025-04-14 19:48:38,181 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-14 19:48:38,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699?flat'} 2025-04-14 19:48:38,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699 is found in opserver 2025-04-14 19:48:38,205 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 19:48:38,209 - DEBUG - VRF ids for VN ctest-vn-01980699: {} 2025-04-14 19:48:38,265 - DEBUG - Services list from nova: [, , ] 2025-04-14 19:48:39,263 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3109-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3109-1) 2025-04-14 19:48:40,559 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3109-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3109-1) 2025-04-14 19:48:40,559 - INFO - Waiting for VM ctest-TestBasicPolicy-96081801-81158631 to be up.. 2025-04-14 19:48:40,653 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 19:48:45,739 - DEBUG - VM is in ACTIVE state now 2025-04-14 19:48:45,739 - INFO - VM name : ctest-TestBasicPolicy-96081801-81158631 2025-04-14 19:48:45,815 - DEBUG - VM ctest-TestBasicPolicy-96081801-81158631 ID is 60f0f605-23bb-4717-8f6d-f720c5ec0178 2025-04-14 19:48:45,832 - DEBUG - VM ctest-TestBasicPolicy-96081801-81158631 launched on Node cn-jenkins-deploy-platform-ansible-os-3109-1 2025-04-14 19:48:45,918 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/60f0f605-23bb-4717-8f6d-f720c5ec0178 2025-04-14 19:48:45,929 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/e8388410-0436-4fec-ad98-2e63f9eedd6f 2025-04-14 19:48:49,167 - 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-04-14 19:48:49,167 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96081801-81158631 failed! 2025-04-14 19:48:49,224 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553 is 57.193.163.129 and allocation pool is NOT set 2025-04-14 19:48:51,287 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.528 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.528/2.403/4.279/1.875 ms') 2025-04-14 19:48:51,287 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96081801-81158631 passed 2025-04-14 19:48:51,436 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 19:48:51,436 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96081801-81158631, IP 57.193.163.131, Port 22 2025-04-14 19:48:51,591 - DEBUG - VM ctest-TestBasicPolicy-96081801-81158631 is ready for SSH connections 2025-04-14 19:48:51,591 - INFO - Waiting for VM ctest-TestBasicPolicy-96081801-55394819 to be up.. 2025-04-14 19:48:51,682 - DEBUG - VM is in ACTIVE state now 2025-04-14 19:48:51,682 - INFO - VM name : ctest-TestBasicPolicy-96081801-55394819 2025-04-14 19:48:51,780 - DEBUG - VM ctest-TestBasicPolicy-96081801-55394819 ID is 1168a14d-93d0-478b-b936-d95e0c55b8bf 2025-04-14 19:48:51,780 - DEBUG - VM ctest-TestBasicPolicy-96081801-55394819 launched on Node cn-jenkins-deploy-platform-ansible-os-3109-1 2025-04-14 19:48:51,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/1168a14d-93d0-478b-b936-d95e0c55b8bf 2025-04-14 19:48:51,871 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/892dfd48-32b1-4db9-a1fa-5d2dc8eaba93 2025-04-14 19:48:53,115 - 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=5.59 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.87 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 = 1.870/3.728/5.586/1.858 ms') 2025-04-14 19:48:53,115 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-96081801-55394819 passed 2025-04-14 19:48:53,268 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 19:48:53,268 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96081801-55394819, IP 148.40.220.67, Port 22 2025-04-14 19:48:53,324 - 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-04-14 19:48:53,396 - DEBUG - VM ctest-TestBasicPolicy-96081801-55394819 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-14 19:48:58,396 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 19:48:58,396 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96081801-55394819, IP 148.40.220.67, Port 22 2025-04-14 19:48:58,552 - DEBUG - VM ctest-TestBasicPolicy-96081801-55394819 is ready for SSH connections 2025-04-14 19:48:58,552 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 19:48:58,552 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.40.220.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-14 19:48:58,552 - DEBUG - ping -s 56 -c 3 -W 1 148.40.220.67 2025-04-14 19:49:02,241 - DEBUG - PING 148.40.220.67 (148.40.220.67): 56 data bytes 64 bytes from 148.40.220.67: seq=0 ttl=63 time=3.863 ms 64 bytes from 148.40.220.67: seq=1 ttl=63 time=0.741 ms 64 bytes from 148.40.220.67: seq=2 ttl=63 time=0.808 ms --- 148.40.220.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.741/1.804/3.863 ms 2025-04-14 19:49:02,241 - INFO - Ping to IP 148.40.220.67 from VM ctest-TestBasicPolicy-96081801-81158631 passed 2025-04-14 19:49:02,452 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d5a4ad68-8a68-4990-9fde-8184d0dbfbaa", "href": "http://10.0.0.50:8082/network-policy/d5a4ad68-8a68-4990-9fde-8184d0dbfbaa"}} 2025-04-14 19:49:02,452 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 19:49:02,452 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.40.220.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-14 19:49:02,452 - DEBUG - ping -s 56 -c 3 -W 1 148.40.220.67 2025-04-14 19:49:05,662 - DEBUG - PING 148.40.220.67 (148.40.220.67): 56 data bytes 64 bytes from 148.40.220.67: seq=0 ttl=63 time=2.224 ms --- 148.40.220.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.224/2.224/2.224 ms 2025-04-14 19:49:05,662 - WARNING - Ping to IP 148.40.220.67 from VM ctest-TestBasicPolicy-96081801-81158631 failed 2025-04-14 19:49:05,662 - INFO - Deleting VM ctest-TestBasicPolicy-96081801-55394819 2025-04-14 19:49:05,739 - INFO - Deleting VM ctest-TestBasicPolicy-96081801-81158631 2025-04-14 19:49:06,163 - INFO - Deleted policy ctest-policy-allow-all-24400240 2025-04-14 19:49:06,163 - INFO - Deleting VN ctest-vn-01980699 2025-04-14 19:49:06,200 - DEBUG - VN e285d946-d2be-4b53-b8f7-8349838c2ef9 still in use: Unable to complete operation on network e285d946-d2be-4b53-b8f7-8349838c2ef9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0b29b381-c675-4d8d-bf7f-38fd761b9d5e'] 2025-04-14 19:49:06,201 - WARNING - Deleting VN ctest-vn-01980699 failed..Will retry 2025-04-14 19:49:08,312 - DEBUG - Response for deleting network () 2025-04-14 19:49:08,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009 2025-04-14 19:49:08,318 - DEBUG - Response Code: 404 2025-04-14 19:49:08,319 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-14 19:49:08,325 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de 2025-04-14 19:49:08,382 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde 2025-04-14 19:49:08,453 - INFO - Validated that VN ctest-vn-01980699 is not found in API Server 2025-04-14 19:49:08,465 - DEBUG - VN ctest-vn-01980699 is not present in Agent 10.0.0.50 2025-04-14 19:49:08,465 - INFO - Validated that VN ctest-vn-01980699 is not in any agent 2025-04-14 19:49:08,480 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01980699 info 2025-04-14 19:49:08,480 - INFO - Deleting VN ctest-vn-85333553 2025-04-14 19:49:08,580 - DEBUG - Response for deleting network () 2025-04-14 19:49:08,580 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb 2025-04-14 19:49:08,586 - DEBUG - Response Code: 404 2025-04-14 19:49:08,586 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-14 19:49:08,592 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de 2025-04-14 19:49:08,645 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde 2025-04-14 19:49:08,720 - INFO - Validated that VN ctest-vn-85333553 is not found in API Server 2025-04-14 19:49:08,733 - DEBUG - VN ctest-vn-85333553 is not present in Agent 10.0.0.50 2025-04-14 19:49:08,733 - INFO - Validated that VN ctest-vn-85333553 is not in any agent 2025-04-14 19:49:08,751 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85333553 info 2025-04-14 19:49:09,012 - DEBUG - No XMPP flaps were noticed during the test 2025-04-14 19:49:09,012 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-04-14 19:49:09,013 - INFO - -------------------------------------------------------------------------------- 2025-04-14 19:49:09,700 - INFO - Deleted project: ctest-TestBasicPolicy-96081801, ID : 438e4bdd-d8c5-417a-9972-b251c294ecde