2025-02-04 07:04:46,319 - INFO - Domain Default found not creating 2025-02-04 07:04:46,461 - INFO - Project ctest-TestBasicPolicy-83953764 not found, creating it 2025-02-04 07:04:46,949 - INFO - Created Project:ctest-TestBasicPolicy-83953764, ID : eef6e7cf-88ec-44c0-9e98-2720c67c1dd3 2025-02-04 07:04:48,476 - INFO - ================================================================================ 2025-02-04 07:04:48,476 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-04 07:04:48,476 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-02-04 07:04:48,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with 2025-02-04 07:04:48,733 - INFO - Initial checks done. Running the testcase now 2025-02-04 07:04:48,733 - INFO - 2025-02-04 07:04:49,312 - DEBUG - Response for create_network : {'network': {'id': 'c18a17ba-01bb-4ef2-a94a-9aa79ffe4def', 'name': 'ctest-vn-62335788', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-62335788'], 'port_security_enabled': True, 'description': ''}} 2025-02-04 07:04:49,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '804f3aa8-8015-4cd8-af66-b446d688fad7', 'name': '', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'network_id': 'c18a17ba-01bb-4ef2-a94a-9aa79ffe4def', 'ip_version': 4, 'cidr': '79.134.92.0/26', 'allocation_pools': [{'start': '79.134.92.2', 'end': '79.134.92.62'}], 'gateway_ip': '79.134.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.134.92.2', 'tags': [], 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3'}} 2025-02-04 07:04:49,588 - INFO - Created VN ctest-vn-62335788 2025-02-04 07:04:49,643 - DEBUG - VN ctest-vn-62335788 UUID is c18a17ba-01bb-4ef2-a94a-9aa79ffe4def 2025-02-04 07:04:49,925 - DEBUG - Response for create_network : {'network': {'id': '2dfeb303-9a47-41a4-b37a-348c1fede4f6', 'name': 'ctest-vn-31006461', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-31006461'], 'port_security_enabled': True, 'description': ''}} 2025-02-04 07:04:50,097 - DEBUG - Response for create_subnet : {'subnet': {'id': '94fb9ebf-5e64-49d6-8e34-0c0516426c74', 'name': '', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'network_id': '2dfeb303-9a47-41a4-b37a-348c1fede4f6', 'ip_version': 4, 'cidr': '85.0.227.192/26', 'allocation_pools': [{'start': '85.0.227.194', 'end': '85.0.227.254'}], 'gateway_ip': '85.0.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.0.227.194', 'tags': [], 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3'}} 2025-02-04 07:04:50,115 - INFO - Created VN ctest-vn-31006461 2025-02-04 07:04:50,167 - DEBUG - VN ctest-vn-31006461 UUID is 2dfeb303-9a47-41a4-b37a-348c1fede4f6 2025-02-04 07:04:50,282 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788, 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-83953764:ctest-vn-31006461, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-02-04 07:04:50,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c18a17ba-01bb-4ef2-a94a-9aa79ffe4def', 'name': 'ctest-vn-62335788', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['804f3aa8-8015-4cd8-af66-b446d688fad7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-62335788'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572']], 'subnet_ipam': [{'subnet_cidr': '79.134.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-04 07:04:50,814 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dfeb303-9a47-41a4-b37a-348c1fede4f6', 'name': 'ctest-vn-31006461', 'tenant_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'project_id': 'eef6e7cf88ec44c09e982720c67c1dd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94fb9ebf-5e64-49d6-8e34-0c0516426c74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-vn-31006461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572']], 'subnet_ipam': [{'subnet_cidr': '85.0.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-04 07:04:50,983 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-04 07:04:51,282 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-04 07:04:51,309 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252 2025-02-04 07:04:51,323 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3 2025-02-04 07:04:51,395 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def 2025-02-04 07:04:51,407 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def 2025-02-04 07:04:51,416 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215 2025-02-04 07:04:51,424 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215 2025-02-04 07:04:51,432 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d9ac6497-cf8b-4003-9727-e5e1dc038bcf 2025-02-04 07:04:51,438 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-04 07:04:51,438 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def 2025-02-04 07:04:51,450 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215 2025-02-04 07:04:51,466 - INFO - Verified VN network id 8 for VN c18a17ba-01bb-4ef2-a94a-9aa79ffe4def 2025-02-04 07:04:51,466 - INFO - Verifications in API Server for VN ctest-vn-62335788 passed 2025-02-04 07:04:51,466 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def 2025-02-04 07:04:51,478 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215 2025-02-04 07:04:51,486 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215 2025-02-04 07:04:51,494 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d9ac6497-cf8b-4003-9727-e5e1dc038bcf 2025-02-04 07:04:51,508 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83953764', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13945985283766570738', 'uuid-lslong': '12198732585420869103'}, 'enable': 'true', 'created': '2025-02-04T07:04:49', 'last-modified': '2025-02-04T07:04:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949684'} 2025-02-04 07:04:51,515 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-04 07:04:51,515 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62335788 passed 2025-02-04 07:04:51,515 - DEBUG - ====Verifying policy data for ctest-vn-62335788 in API_Server ====== 2025-02-04 07:04:51,515 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-04 07:04:51,521 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252 2025-02-04 07:04:51,537 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3 2025-02-04 07:04:51,623 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/c18a17ba-01bb-4ef2-a94a-9aa79ffe4def 2025-02-04 07:04:51,636 - DEBUG - ==>Verifying data for policy with id: 5870c8b8-de84-4ab2-924d-6f75dfc06062, fqn: ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572'] 2025-02-04 07:04:51,636 - INFO - VN ctest-vn-62335788 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-04 07:04:51,636 - DEBUG - Verifying the vn in opserver 2025-02-04 07:04:51,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788 virtual network link through opserver 10.0.0.12 2025-02-04 07:04:51,636 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-04 07:04:51,928 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-04 07:04:51,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788?flat'} 2025-02-04 07:04:51,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788 is found in opserver 2025-02-04 07:04:52,000 - DEBUG - Do not have enough data to verify VN in agent 2025-02-04 07:04:52,014 - DEBUG - VRF ids for VN ctest-vn-62335788: {} 2025-02-04 07:04:52,014 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-04 07:04:52,021 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252 2025-02-04 07:04:52,034 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3 2025-02-04 07:04:52,111 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6 2025-02-04 07:04:52,126 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6 2025-02-04 07:04:52,138 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc 2025-02-04 07:04:52,147 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc 2025-02-04 07:04:52,156 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/82ab22c4-8124-49c3-9148-8dc65210aa61 2025-02-04 07:04:52,164 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-04 07:04:52,164 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6 2025-02-04 07:04:52,177 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc 2025-02-04 07:04:52,192 - INFO - Verified VN network id 9 for VN 2dfeb303-9a47-41a4-b37a-348c1fede4f6 2025-02-04 07:04:52,193 - INFO - Verifications in API Server for VN ctest-vn-31006461 passed 2025-02-04 07:04:52,193 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6 2025-02-04 07:04:52,203 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc 2025-02-04 07:04:52,212 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc 2025-02-04 07:04:52,221 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/82ab22c4-8124-49c3-9148-8dc65210aa61 2025-02-04 07:04:52,237 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83953764', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3314283203845898660', 'uuid-lslong': '12932707056383550710'}, 'enable': 'true', 'created': '2025-02-04T07:04:49', 'last-modified': '2025-02-04T07:04:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443060'} 2025-02-04 07:04:52,244 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-04 07:04:52,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31006461 passed 2025-02-04 07:04:52,244 - DEBUG - ====Verifying policy data for ctest-vn-31006461 in API_Server ====== 2025-02-04 07:04:52,245 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-04 07:04:52,251 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252 2025-02-04 07:04:52,263 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3 2025-02-04 07:04:52,339 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2dfeb303-9a47-41a4-b37a-348c1fede4f6 2025-02-04 07:04:52,349 - DEBUG - ==>Verifying data for policy with id: 5870c8b8-de84-4ab2-924d-6f75dfc06062, fqn: ['default-domain', 'ctest-TestBasicPolicy-83953764', 'ctest-policy-allow-all-89072572'] 2025-02-04 07:04:52,349 - INFO - VN ctest-vn-31006461 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-04 07:04:52,349 - DEBUG - Verifying the vn in opserver 2025-02-04 07:04:52,349 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461 virtual network link through opserver 10.0.0.12 2025-02-04 07:04:52,349 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-04 07:04:52,361 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461?flat'} 2025-02-04 07:04:52,361 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-31006461 is found in opserver 2025-02-04 07:04:52,372 - DEBUG - Do not have enough data to verify VN in agent 2025-02-04 07:04:52,377 - DEBUG - VRF ids for VN ctest-vn-31006461: {} 2025-02-04 07:04:52,432 - DEBUG - Services list from nova: [, , ] 2025-02-04 07:04:53,463 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2684-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2684-1) 2025-02-04 07:04:54,749 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2684-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2684-1) 2025-02-04 07:04:54,749 - INFO - Waiting for VM ctest-TestBasicPolicy-83953764-31068168 to be up.. 2025-02-04 07:04:54,835 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-04 07:04:59,910 - DEBUG - VM is in ACTIVE state now 2025-02-04 07:04:59,911 - INFO - VM name : ctest-TestBasicPolicy-83953764-31068168 2025-02-04 07:04:59,998 - DEBUG - VM ctest-TestBasicPolicy-83953764-31068168 ID is 7535bc44-f802-442d-9c1f-199639853fb8 2025-02-04 07:05:00,020 - DEBUG - VM ctest-TestBasicPolicy-83953764-31068168 launched on Node cn-jenkins-deploy-platform-ansible-os-2684-1 2025-02-04 07:05:00,092 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/7535bc44-f802-442d-9c1f-199639853fb8 2025-02-04 07:05:00,102 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/70baaa3f-fd8e-4dff-b434-6157d97d5d06 2025-02-04 07:05:03,364 - 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 1019ms') 2025-02-04 07:05:03,364 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83953764-31068168 failed! 2025-02-04 07:05:03,423 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-83953764:ctest-vn-62335788 is 79.134.92.1 and allocation pool is NOT set 2025-02-04 07:05:05,484 - 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=7.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.423 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.423/4.101/7.779/3.678 ms') 2025-02-04 07:05:05,484 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83953764-31068168 passed 2025-02-04 07:05:05,635 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 07:05:05,635 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83953764-31068168, IP 79.134.92.3, Port 22 2025-02-04 07:05:05,801 - DEBUG - VM ctest-TestBasicPolicy-83953764-31068168 is ready for SSH connections 2025-02-04 07:05:05,801 - INFO - Waiting for VM ctest-TestBasicPolicy-83953764-49014812 to be up.. 2025-02-04 07:05:05,881 - DEBUG - VM is in ACTIVE state now 2025-02-04 07:05:05,881 - INFO - VM name : ctest-TestBasicPolicy-83953764-49014812 2025-02-04 07:05:05,959 - DEBUG - VM ctest-TestBasicPolicy-83953764-49014812 ID is 6df3418b-e621-41f6-a518-5b73b644faf7 2025-02-04 07:05:05,959 - DEBUG - VM ctest-TestBasicPolicy-83953764-49014812 launched on Node cn-jenkins-deploy-platform-ansible-os-2684-1 2025-02-04 07:05:06,032 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/6df3418b-e621-41f6-a518-5b73b644faf7 2025-02-04 07:05:06,043 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/afe18417-c910-40e0-8677-ae298ba16899 2025-02-04 07:05:07,281 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.390 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.390/2.020/3.651/1.630 ms') 2025-02-04 07:05:07,281 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-83953764-49014812 passed 2025-02-04 07:05:07,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 07:05:07,436 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83953764-49014812, IP 85.0.227.195, Port 22 2025-02-04 07:05:07,501 - 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-02-04 07:05:07,598 - DEBUG - VM ctest-TestBasicPolicy-83953764-49014812 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-04 07:05:12,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 07:05:12,599 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83953764-49014812, IP 85.0.227.195, Port 22 2025-02-04 07:05:12,755 - DEBUG - VM ctest-TestBasicPolicy-83953764-49014812 is ready for SSH connections 2025-02-04 07:05:12,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 07:05:12,756 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.0.227.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-02-04 07:05:12,756 - DEBUG - ping -s 56 -c 3 -W 1 85.0.227.195 2025-02-04 07:05:16,780 - DEBUG - PING 85.0.227.195 (85.0.227.195): 56 data bytes 64 bytes from 85.0.227.195: seq=0 ttl=63 time=4.689 ms 64 bytes from 85.0.227.195: seq=1 ttl=63 time=0.869 ms 64 bytes from 85.0.227.195: seq=2 ttl=63 time=0.872 ms --- 85.0.227.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.869/2.143/4.689 ms 2025-02-04 07:05:16,780 - INFO - Ping to IP 85.0.227.195 from VM ctest-TestBasicPolicy-83953764-31068168 passed 2025-02-04 07:05:16,963 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5870c8b8-de84-4ab2-924d-6f75dfc06062", "href": "http://10.0.0.12:8082/network-policy/5870c8b8-de84-4ab2-924d-6f75dfc06062"}} 2025-02-04 07:05:16,963 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 07:05:16,963 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.0.227.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-02-04 07:05:16,963 - DEBUG - ping -s 56 -c 3 -W 1 85.0.227.195 2025-02-04 07:05:20,175 - DEBUG - PING 85.0.227.195 (85.0.227.195): 56 data bytes 64 bytes from 85.0.227.195: seq=0 ttl=63 time=1.330 ms --- 85.0.227.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.330/1.330/1.330 ms 2025-02-04 07:05:20,175 - WARNING - Ping to IP 85.0.227.195 from VM ctest-TestBasicPolicy-83953764-31068168 failed 2025-02-04 07:05:20,175 - INFO - Deleting VM ctest-TestBasicPolicy-83953764-49014812 2025-02-04 07:05:20,248 - INFO - Deleting VM ctest-TestBasicPolicy-83953764-31068168 2025-02-04 07:05:20,633 - INFO - Deleted policy ctest-policy-allow-all-89072572 2025-02-04 07:05:20,633 - INFO - Deleting VN ctest-vn-31006461 2025-02-04 07:05:20,668 - DEBUG - VN 2dfeb303-9a47-41a4-b37a-348c1fede4f6 still in use: Unable to complete operation on network 2dfeb303-9a47-41a4-b37a-348c1fede4f6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e137e836-53c2-422a-80af-5fbb37edb3e6'] 2025-02-04 07:05:20,668 - WARNING - Deleting VN ctest-vn-31006461 failed..Will retry 2025-02-04 07:05:22,779 - DEBUG - Response for deleting network () 2025-02-04 07:05:22,779 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/acd50e5d-dd22-4b39-8256-5e6e0157c3bc 2025-02-04 07:05:22,788 - DEBUG - Response Code: 404 2025-02-04 07:05:22,789 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-04 07:05:22,796 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252 2025-02-04 07:05:22,849 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3 2025-02-04 07:05:22,923 - INFO - Validated that VN ctest-vn-31006461 is not found in API Server 2025-02-04 07:05:22,934 - DEBUG - VN ctest-vn-31006461 is not present in Agent 10.0.0.12 2025-02-04 07:05:22,934 - INFO - Validated that VN ctest-vn-31006461 is not in any agent 2025-02-04 07:05:22,951 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31006461 info 2025-02-04 07:05:22,951 - INFO - Deleting VN ctest-vn-62335788 2025-02-04 07:05:23,068 - DEBUG - Response for deleting network () 2025-02-04 07:05:23,068 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c1c722c5-c545-436e-a4ad-e7d713af1215 2025-02-04 07:05:23,074 - DEBUG - Response Code: 404 2025-02-04 07:05:23,074 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-04 07:05:23,084 - DEBUG - Requesting: http://10.0.0.12:8082/domain/ba13f9de-04b3-4f3c-949e-421777e97252 2025-02-04 07:05:23,141 - DEBUG - Requesting: http://10.0.0.12:8082/project/eef6e7cf-88ec-44c0-9e98-2720c67c1dd3 2025-02-04 07:05:23,213 - INFO - Validated that VN ctest-vn-62335788 is not found in API Server 2025-02-04 07:05:23,225 - DEBUG - VN ctest-vn-62335788 is not present in Agent 10.0.0.12 2025-02-04 07:05:23,225 - INFO - Validated that VN ctest-vn-62335788 is not in any agent 2025-02-04 07:05:23,240 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62335788 info 2025-02-04 07:05:23,494 - DEBUG - No XMPP flaps were noticed during the test 2025-02-04 07:05:23,494 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-02-04 07:05:23,494 - INFO - -------------------------------------------------------------------------------- 2025-02-04 07:05:24,160 - INFO - Deleted project: ctest-TestBasicPolicy-83953764, ID : eef6e7cf-88ec-44c0-9e98-2720c67c1dd3