2024-09-13 18:51:51,707 - INFO - Domain Default found not creating 2024-09-13 18:51:52,023 - INFO - Project ctest-TestBasicPolicy-02470596 not found, creating it 2024-09-13 18:51:52,785 - INFO - Created Project:ctest-TestBasicPolicy-02470596, ID : c183d51d-175f-42f4-b925-70c0972c88bb 2024-09-13 18:51:54,911 - INFO - ================================================================================ 2024-09-13 18:51:54,911 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 18:51:54,911 - 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 2024-09-13 18:51:55,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.27': '0'}} with 2024-09-13 18:51:55,237 - INFO - Initial checks done. Running the testcase now 2024-09-13 18:51:55,237 - INFO - 2024-09-13 18:51:56,200 - DEBUG - Response for create_network : {'network': {'id': 'b8e7af64-262f-48f4-adec-5b8546f024e2', 'name': 'ctest-vn-25999356', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-25999356'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 18:51:56,402 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbed52c9-1db3-415d-a336-a4a1e1445f7a', 'name': '', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'network_id': 'b8e7af64-262f-48f4-adec-5b8546f024e2', 'ip_version': 4, 'cidr': '176.164.213.192/26', 'allocation_pools': [{'start': '176.164.213.194', 'end': '176.164.213.254'}], 'gateway_ip': '176.164.213.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.164.213.194', 'tags': [], 'project_id': 'c183d51d175f42f4b92570c0972c88bb'}} 2024-09-13 18:51:56,427 - INFO - Created VN ctest-vn-25999356 2024-09-13 18:51:56,498 - DEBUG - VN ctest-vn-25999356 UUID is b8e7af64-262f-48f4-adec-5b8546f024e2 2024-09-13 18:51:57,153 - DEBUG - Response for create_network : {'network': {'id': 'fc1aacae-3ae4-46e5-baea-f6360ade2a05', 'name': 'ctest-vn-15475902', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-15475902'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 18:51:57,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '80d948ee-6e1d-49ca-b95c-dab755b26170', 'name': '', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'network_id': 'fc1aacae-3ae4-46e5-baea-f6360ade2a05', 'ip_version': 4, 'cidr': '96.101.206.128/26', 'allocation_pools': [{'start': '96.101.206.130', 'end': '96.101.206.190'}], 'gateway_ip': '96.101.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.101.206.130', 'tags': [], 'project_id': 'c183d51d175f42f4b92570c0972c88bb'}} 2024-09-13 18:51:57,421 - INFO - Created VN ctest-vn-15475902 2024-09-13 18:51:57,498 - DEBUG - VN ctest-vn-15475902 UUID is fc1aacae-3ae4-46e5-baea-f6360ade2a05 2024-09-13 18:51:57,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356, 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-02470596:ctest-vn-15475902, 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] 2024-09-13 18:51:58,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8e7af64-262f-48f4-adec-5b8546f024e2', 'name': 'ctest-vn-25999356', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bbed52c9-1db3-415d-a336-a4a1e1445f7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-25999356'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257']], 'subnet_ipam': [{'subnet_cidr': '176.164.213.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 18:51:58,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc1aacae-3ae4-46e5-baea-f6360ade2a05', 'name': 'ctest-vn-15475902', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80d948ee-6e1d-49ca-b95c-dab755b26170'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-15475902'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257']], 'subnet_ipam': [{'subnet_cidr': '96.101.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 18:51:58,941 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-13 18:51:59,255 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-13 18:51:59,303 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474 2024-09-13 18:51:59,357 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb 2024-09-13 18:51:59,475 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2 2024-09-13 18:51:59,530 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2 2024-09-13 18:51:59,579 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e 2024-09-13 18:51:59,608 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e 2024-09-13 18:51:59,632 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/344bd129-ea8e-46c4-a240-1fd1c912b429 2024-09-13 18:51:59,653 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 18:51:59,654 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2 2024-09-13 18:51:59,690 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e 2024-09-13 18:51:59,755 - INFO - Verified VN network id 8 for VN b8e7af64-262f-48f4-adec-5b8546f024e2 2024-09-13 18:51:59,755 - INFO - Verifications in API Server for VN ctest-vn-25999356 passed 2024-09-13 18:51:59,755 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2 2024-09-13 18:51:59,803 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e 2024-09-13 18:51:59,832 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e 2024-09-13 18:51:59,859 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/344bd129-ea8e-46c4-a240-1fd1c912b429 2024-09-13 18:51:59,904 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02470596', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13323810867271125236', 'uuid-lslong': '12532492491044168930'}, 'enable': 'true', 'created': '2024-09-13T18:51:56', 'last-modified': '2024-09-13T18:51:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607856'} 2024-09-13 18:51:59,930 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 18:51:59,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25999356 passed 2024-09-13 18:51:59,931 - DEBUG - ====Verifying policy data for ctest-vn-25999356 in API_Server ====== 2024-09-13 18:51:59,932 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-13 18:51:59,950 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474 2024-09-13 18:51:59,991 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb 2024-09-13 18:52:00,114 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2 2024-09-13 18:52:00,145 - DEBUG - ==>Verifying data for policy with id: 9a145853-c62d-495e-8ff7-42e531025f59, fqn: ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257'] 2024-09-13 18:52:00,145 - INFO - VN ctest-vn-25999356 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 18:52:00,145 - DEBUG - Verifying the vn in opserver 2024-09-13 18:52:00,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356 virtual network link through opserver 10.0.0.36 2024-09-13 18:52:00,146 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-13 18:52:00,495 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-13 18:52:00,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356?flat'} 2024-09-13 18:52:00,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356 is found in opserver 2024-09-13 18:52:00,710 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 18:52:00,727 - DEBUG - VRF ids for VN ctest-vn-25999356: {} 2024-09-13 18:52:00,727 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-13 18:52:00,743 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474 2024-09-13 18:52:00,774 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb 2024-09-13 18:52:00,912 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05 2024-09-13 18:52:00,954 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05 2024-09-13 18:52:00,986 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7 2024-09-13 18:52:00,999 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7 2024-09-13 18:52:01,013 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/60e20ba7-bc8c-44ac-9487-9244218508fc 2024-09-13 18:52:01,024 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 18:52:01,024 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05 2024-09-13 18:52:01,045 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7 2024-09-13 18:52:01,074 - INFO - Verified VN network id 9 for VN fc1aacae-3ae4-46e5-baea-f6360ade2a05 2024-09-13 18:52:01,074 - INFO - Verifications in API Server for VN ctest-vn-15475902 passed 2024-09-13 18:52:01,074 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05 2024-09-13 18:52:01,099 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7 2024-09-13 18:52:01,119 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7 2024-09-13 18:52:01,137 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/60e20ba7-bc8c-44ac-9487-9244218508fc 2024-09-13 18:52:01,177 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02470596', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18166021911264642789', 'uuid-lslong': '13468848347575888389'}, 'enable': 'true', 'created': '2024-09-13T18:51:57', 'last-modified': '2024-09-13T18:51:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.477733'} 2024-09-13 18:52:01,203 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 18:52:01,204 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15475902 passed 2024-09-13 18:52:01,204 - DEBUG - ====Verifying policy data for ctest-vn-15475902 in API_Server ====== 2024-09-13 18:52:01,205 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-13 18:52:01,225 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474 2024-09-13 18:52:01,266 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb 2024-09-13 18:52:01,434 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05 2024-09-13 18:52:01,488 - DEBUG - ==>Verifying data for policy with id: 9a145853-c62d-495e-8ff7-42e531025f59, fqn: ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257'] 2024-09-13 18:52:01,488 - INFO - VN ctest-vn-15475902 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 18:52:01,489 - DEBUG - Verifying the vn in opserver 2024-09-13 18:52:01,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902 virtual network link through opserver 10.0.0.36 2024-09-13 18:52:01,489 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-13 18:52:01,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902?flat'} 2024-09-13 18:52:01,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902 is found in opserver 2024-09-13 18:52:01,542 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 18:52:01,558 - DEBUG - VRF ids for VN ctest-vn-15475902: {} 2024-09-13 18:52:01,683 - DEBUG - Services list from nova: [, , ] 2024-09-13 18:52:03,507 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1928-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1928-1) 2024-09-13 18:52:05,157 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1928-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1928-1) 2024-09-13 18:52:05,157 - INFO - Waiting for VM ctest-TestBasicPolicy-02470596-53829510 to be up.. 2024-09-13 18:52:05,261 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 18:52:10,480 - DEBUG - VM is in ACTIVE state now 2024-09-13 18:52:10,481 - INFO - VM name : ctest-TestBasicPolicy-02470596-53829510 2024-09-13 18:52:10,690 - DEBUG - VM ctest-TestBasicPolicy-02470596-53829510 ID is 3fb007ac-ce9e-4f43-adc6-065cfb1ece3d 2024-09-13 18:52:10,735 - DEBUG - VM ctest-TestBasicPolicy-02470596-53829510 launched on Node cn-jenkins-deploy-platform-ansible-os-1928-1 2024-09-13 18:52:10,893 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/3fb007ac-ce9e-4f43-adc6-065cfb1ece3d 2024-09-13 18:52:10,910 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/37212799-922e-4190-b48e-481715131834 2024-09-13 18:52:14,224 - 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 1014ms') 2024-09-13 18:52:14,224 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02470596-53829510 failed! 2024-09-13 18:52:14,293 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356 is 176.164.213.193 and allocation pool is NOT set 2024-09-13 18:52:16,379 - 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=13.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.952 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.952/7.098/13.245/6.146 ms') 2024-09-13 18:52:16,379 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02470596-53829510 passed 2024-09-13 18:52:16,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:52:16,602 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02470596-53829510, IP 176.164.213.195, Port 22 2024-09-13 18:52:16,785 - DEBUG - VM ctest-TestBasicPolicy-02470596-53829510 is ready for SSH connections 2024-09-13 18:52:16,785 - INFO - Waiting for VM ctest-TestBasicPolicy-02470596-90256819 to be up.. 2024-09-13 18:52:16,905 - DEBUG - VM is in ACTIVE state now 2024-09-13 18:52:16,905 - INFO - VM name : ctest-TestBasicPolicy-02470596-90256819 2024-09-13 18:52:17,033 - DEBUG - VM ctest-TestBasicPolicy-02470596-90256819 ID is b70fe100-13df-4ef8-b106-8ac9f03f3629 2024-09-13 18:52:17,034 - DEBUG - VM ctest-TestBasicPolicy-02470596-90256819 launched on Node cn-jenkins-deploy-platform-ansible-os-1928-1 2024-09-13 18:52:17,171 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/b70fe100-13df-4ef8-b106-8ac9f03f3629 2024-09-13 18:52:17,194 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/8fce9c6b-5ed9-4c19-8e92-c37b7e568443 2024-09-13 18:52:18,552 - 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=7.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.19 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 = 1.189/4.204/7.219/3.015 ms') 2024-09-13 18:52:18,552 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-02470596-90256819 passed 2024-09-13 18:52:18,766 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:52:18,766 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02470596-90256819, IP 96.101.206.131, Port 22 2024-09-13 18:52:18,838 - 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': ''} 2024-09-13 18:52:19,082 - DEBUG - VM ctest-TestBasicPolicy-02470596-90256819 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-13 18:52:24,084 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:52:24,085 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02470596-90256819, IP 96.101.206.131, Port 22 2024-09-13 18:52:24,287 - DEBUG - VM ctest-TestBasicPolicy-02470596-90256819 is ready for SSH connections 2024-09-13 18:52:24,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:52:24,288 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.101.206.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-13 18:52:24,288 - DEBUG - ping -s 56 -c 3 -W 1 96.101.206.131 2024-09-13 18:52:28,811 - DEBUG - PING 96.101.206.131 (96.101.206.131): 56 data bytes 64 bytes from 96.101.206.131: seq=0 ttl=63 time=6.609 ms 64 bytes from 96.101.206.131: seq=1 ttl=63 time=2.029 ms 64 bytes from 96.101.206.131: seq=2 ttl=63 time=2.673 ms --- 96.101.206.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.029/3.770/6.609 ms 2024-09-13 18:52:28,811 - INFO - Ping to IP 96.101.206.131 from VM ctest-TestBasicPolicy-02470596-53829510 passed 2024-09-13 18:52:29,061 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9a145853-c62d-495e-8ff7-42e531025f59", "href": "http://10.0.0.36:8082/network-policy/9a145853-c62d-495e-8ff7-42e531025f59"}} 2024-09-13 18:52:29,061 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:52:29,061 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.101.206.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-13 18:52:29,061 - DEBUG - ping -s 56 -c 3 -W 1 96.101.206.131 2024-09-13 18:52:32,287 - DEBUG - PING 96.101.206.131 (96.101.206.131): 56 data bytes --- 96.101.206.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-13 18:52:32,288 - WARNING - Ping to IP 96.101.206.131 from VM ctest-TestBasicPolicy-02470596-53829510 failed 2024-09-13 18:52:32,290 - INFO - Deleting VM ctest-TestBasicPolicy-02470596-90256819 2024-09-13 18:52:32,417 - INFO - Deleting VM ctest-TestBasicPolicy-02470596-53829510 2024-09-13 18:52:32,972 - INFO - Deleted policy ctest-policy-allow-all-09749257 2024-09-13 18:52:32,972 - INFO - Deleting VN ctest-vn-15475902 2024-09-13 18:52:33,020 - DEBUG - VN fc1aacae-3ae4-46e5-baea-f6360ade2a05 still in use: Unable to complete operation on network fc1aacae-3ae4-46e5-baea-f6360ade2a05. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b756e090-0c56-426b-8114-33fc98fed98f'] 2024-09-13 18:52:33,020 - WARNING - Deleting VN ctest-vn-15475902 failed..Will retry 2024-09-13 18:52:35,303 - DEBUG - Response for deleting network () 2024-09-13 18:52:35,303 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7 2024-09-13 18:52:35,319 - DEBUG - Response Code: 404 2024-09-13 18:52:35,319 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-13 18:52:35,334 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474 2024-09-13 18:52:35,366 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb 2024-09-13 18:52:35,497 - INFO - Validated that VN ctest-vn-15475902 is not found in API Server 2024-09-13 18:52:35,522 - DEBUG - VN ctest-vn-15475902 is not present in Agent 10.0.0.36 2024-09-13 18:52:35,522 - INFO - Validated that VN ctest-vn-15475902 is not in any agent 2024-09-13 18:52:35,561 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15475902 info 2024-09-13 18:52:35,561 - INFO - Deleting VN ctest-vn-25999356 2024-09-13 18:52:35,835 - DEBUG - Response for deleting network () 2024-09-13 18:52:35,835 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e 2024-09-13 18:52:35,847 - DEBUG - Response Code: 404 2024-09-13 18:52:35,847 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-13 18:52:35,856 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474 2024-09-13 18:52:35,923 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb 2024-09-13 18:52:36,056 - INFO - Validated that VN ctest-vn-25999356 is not found in API Server 2024-09-13 18:52:36,083 - DEBUG - VN ctest-vn-25999356 is not present in Agent 10.0.0.36 2024-09-13 18:52:36,084 - INFO - Validated that VN ctest-vn-25999356 is not in any agent 2024-09-13 18:52:36,132 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25999356 info 2024-09-13 18:52:36,464 - DEBUG - No XMPP flaps were noticed during the test
2024-09-13 18:52:36,464 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42]
2024-09-13 18:52:36,465 - INFO - -------------------------------------------------------------------------------- 2024-09-13 18:52:37,507 - INFO - Deleted project: ctest-TestBasicPolicy-02470596, ID : c183d51d-175f-42f4-b925-70c0972c88bb