2024-08-21 20:26:01,933 - INFO - Domain Default found not creating 2024-08-21 20:26:02,129 - INFO - Project ctest-TestBasicPolicy-31559535 not found, creating it 2024-08-21 20:26:02,648 - INFO - Created Project:ctest-TestBasicPolicy-31559535, ID : 46d30094-b5a6-4892-ac8e-d825b4e8d5b1 2024-08-21 20:26:04,364 - INFO - ================================================================================ 2024-08-21 20:26:04,364 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 20:26:04,364 - 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-08-21 20:26:04,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with 2024-08-21 20:26:04,646 - INFO - Initial checks done. Running the testcase now 2024-08-21 20:26:04,646 - INFO - 2024-08-21 20:26:05,318 - DEBUG - Response for create_network : {'network': {'id': '2fff6885-6265-4fe5-8fe6-5c5de04a97b1', 'name': 'ctest-vn-79936396', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-79936396'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:26:05,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '44de72f0-4b38-46db-a3e6-500877c8465d', 'name': '', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'network_id': '2fff6885-6265-4fe5-8fe6-5c5de04a97b1', 'ip_version': 4, 'cidr': '183.173.206.0/26', 'allocation_pools': [{'start': '183.173.206.2', 'end': '183.173.206.62'}], 'gateway_ip': '183.173.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.173.206.2', 'tags': [], 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1'}} 2024-08-21 20:26:05,538 - INFO - Created VN ctest-vn-79936396 2024-08-21 20:26:05,593 - DEBUG - VN ctest-vn-79936396 UUID is 2fff6885-6265-4fe5-8fe6-5c5de04a97b1 2024-08-21 20:26:05,939 - DEBUG - Response for create_network : {'network': {'id': '50ea403e-7347-450b-9203-c9ba13a845eb', 'name': 'ctest-vn-53011789', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-53011789'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:26:06,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d046767-5ad3-435b-871c-d69a649dbbe1', 'name': '', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'network_id': '50ea403e-7347-450b-9203-c9ba13a845eb', 'ip_version': 4, 'cidr': '13.30.78.192/26', 'allocation_pools': [{'start': '13.30.78.194', 'end': '13.30.78.254'}], 'gateway_ip': '13.30.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.30.78.194', 'tags': [], 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1'}} 2024-08-21 20:26:06,233 - INFO - Created VN ctest-vn-53011789 2024-08-21 20:26:06,285 - DEBUG - VN ctest-vn-53011789 UUID is 50ea403e-7347-450b-9203-c9ba13a845eb 2024-08-21 20:26:06,408 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396, 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-31559535:ctest-vn-53011789, 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-08-21 20:26:06,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2fff6885-6265-4fe5-8fe6-5c5de04a97b1', 'name': 'ctest-vn-79936396', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44de72f0-4b38-46db-a3e6-500877c8465d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-79936396'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823']], 'subnet_ipam': [{'subnet_cidr': '183.173.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:26:07,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50ea403e-7347-450b-9203-c9ba13a845eb', 'name': 'ctest-vn-53011789', 'tenant_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'project_id': '46d30094b5a64892ac8ed825b4e8d5b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d046767-5ad3-435b-871c-d69a649dbbe1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-vn-53011789'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823']], 'subnet_ipam': [{'subnet_cidr': '13.30.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:26:07,233 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 20:26:07,541 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 20:26:07,581 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931 2024-08-21 20:26:07,601 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1 2024-08-21 20:26:07,690 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1 2024-08-21 20:26:07,704 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1 2024-08-21 20:26:07,716 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f 2024-08-21 20:26:07,726 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f 2024-08-21 20:26:07,735 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f7c3f381-4bbf-4312-81ca-b29758796aaf 2024-08-21 20:26:07,748 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 20:26:07,748 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1 2024-08-21 20:26:07,760 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f 2024-08-21 20:26:07,779 - INFO - Verified VN network id 8 for VN 2fff6885-6265-4fe5-8fe6-5c5de04a97b1 2024-08-21 20:26:07,779 - INFO - Verifications in API Server for VN ctest-vn-79936396 passed 2024-08-21 20:26:07,779 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1 2024-08-21 20:26:07,796 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f 2024-08-21 20:26:07,806 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f 2024-08-21 20:26:07,817 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/f7c3f381-4bbf-4312-81ca-b29758796aaf 2024-08-21 20:26:07,835 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31559535', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3458597960934576101', 'uuid-lslong': '10369076750331844529'}, 'enable': 'true', 'created': '2024-08-21T20:26:05', 'last-modified': '2024-08-21T20:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.128499'} 2024-08-21 20:26:07,847 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 20:26:07,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79936396 passed 2024-08-21 20:26:07,847 - DEBUG - ====Verifying policy data for ctest-vn-79936396 in API_Server ====== 2024-08-21 20:26:07,847 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 20:26:07,857 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931 2024-08-21 20:26:07,874 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1 2024-08-21 20:26:07,950 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2fff6885-6265-4fe5-8fe6-5c5de04a97b1 2024-08-21 20:26:07,961 - DEBUG - ==>Verifying data for policy with id: c08a1c08-c8e7-4b2a-8446-55f514ca1910, fqn: ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823'] 2024-08-21 20:26:07,961 - INFO - VN ctest-vn-79936396 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 20:26:07,961 - DEBUG - Verifying the vn in opserver 2024-08-21 20:26:07,961 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396 virtual network link through opserver 10.0.0.24 2024-08-21 20:26:07,962 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-21 20:26:08,272 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-21 20:26:08,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396?flat'} 2024-08-21 20:26:08,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396 is found in opserver 2024-08-21 20:26:08,375 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 20:26:08,384 - DEBUG - VRF ids for VN ctest-vn-79936396: {} 2024-08-21 20:26:08,384 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 20:26:08,394 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931 2024-08-21 20:26:08,415 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1 2024-08-21 20:26:08,509 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb 2024-08-21 20:26:08,532 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb 2024-08-21 20:26:08,545 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496 2024-08-21 20:26:08,557 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496 2024-08-21 20:26:08,577 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a2b7636e-ed82-439f-9a8c-7a7bf378ab8d 2024-08-21 20:26:08,588 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 20:26:08,588 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb 2024-08-21 20:26:08,609 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496 2024-08-21 20:26:08,631 - INFO - Verified VN network id 9 for VN 50ea403e-7347-450b-9203-c9ba13a845eb 2024-08-21 20:26:08,631 - INFO - Verifications in API Server for VN ctest-vn-53011789 passed 2024-08-21 20:26:08,631 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb 2024-08-21 20:26:08,644 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496 2024-08-21 20:26:08,655 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496 2024-08-21 20:26:08,665 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a2b7636e-ed82-439f-9a8c-7a7bf378ab8d 2024-08-21 20:26:08,681 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31559535', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5830543304550728971', 'uuid-lslong': '10521474955498505707'}, 'enable': 'true', 'created': '2024-08-21T20:26:05', 'last-modified': '2024-08-21T20:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.666255'} 2024-08-21 20:26:08,690 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 20:26:08,690 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53011789 passed 2024-08-21 20:26:08,690 - DEBUG - ====Verifying policy data for ctest-vn-53011789 in API_Server ====== 2024-08-21 20:26:08,690 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 20:26:08,701 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931 2024-08-21 20:26:08,716 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1 2024-08-21 20:26:08,808 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/50ea403e-7347-450b-9203-c9ba13a845eb 2024-08-21 20:26:08,824 - DEBUG - ==>Verifying data for policy with id: c08a1c08-c8e7-4b2a-8446-55f514ca1910, fqn: ['default-domain', 'ctest-TestBasicPolicy-31559535', 'ctest-policy-allow-all-71973823'] 2024-08-21 20:26:08,824 - INFO - VN ctest-vn-53011789 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 20:26:08,825 - DEBUG - Verifying the vn in opserver 2024-08-21 20:26:08,825 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789 virtual network link through opserver 10.0.0.24 2024-08-21 20:26:08,825 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-21 20:26:08,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789?flat'} 2024-08-21 20:26:08,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-53011789 is found in opserver 2024-08-21 20:26:08,865 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 20:26:08,873 - DEBUG - VRF ids for VN ctest-vn-53011789: {} 2024-08-21 20:26:08,956 - DEBUG - Services list from nova: [, , ] 2024-08-21 20:26:10,303 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1699-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1699-1) 2024-08-21 20:26:11,670 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1699-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1699-1) 2024-08-21 20:26:11,670 - INFO - Waiting for VM ctest-TestBasicPolicy-31559535-45821378 to be up.. 2024-08-21 20:26:11,781 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 20:26:16,894 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:26:16,894 - INFO - VM name : ctest-TestBasicPolicy-31559535-45821378 2024-08-21 20:26:16,996 - DEBUG - VM ctest-TestBasicPolicy-31559535-45821378 ID is 8341ca85-a86e-4ea5-9c26-7d9ca82f2f8a 2024-08-21 20:26:17,019 - DEBUG - VM ctest-TestBasicPolicy-31559535-45821378 launched on Node cn-jenkins-deploy-platform-ansible-os-1699-1 2024-08-21 20:26:17,138 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/8341ca85-a86e-4ea5-9c26-7d9ca82f2f8a 2024-08-21 20:26:17,149 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/58978da6-7bc8-4fd3-a736-f53f1c57799e 2024-08-21 20:26:20,451 - 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 1025ms') 2024-08-21 20:26:20,452 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31559535-45821378 failed! 2024-08-21 20:26:20,513 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-31559535:ctest-vn-79936396 is 183.173.206.1 and allocation pool is NOT set 2024-08-21 20:26:24,605 - 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=2 ttl=63 time=9.94 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1028ms\r\nrtt min/avg/max/mdev = 9.936/9.936/9.936/0.000 ms') 2024-08-21 20:26:24,605 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31559535-45821378 passed 2024-08-21 20:26:24,757 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:26:24,757 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31559535-45821378, IP 183.173.206.3, Port 22 2024-08-21 20:26:24,928 - DEBUG - VM ctest-TestBasicPolicy-31559535-45821378 is ready for SSH connections 2024-08-21 20:26:24,928 - INFO - Waiting for VM ctest-TestBasicPolicy-31559535-75853467 to be up.. 2024-08-21 20:26:25,060 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:26:25,061 - INFO - VM name : ctest-TestBasicPolicy-31559535-75853467 2024-08-21 20:26:25,169 - DEBUG - VM ctest-TestBasicPolicy-31559535-75853467 ID is 684fcff8-fd78-459f-a700-949bc96733e0 2024-08-21 20:26:25,169 - DEBUG - VM ctest-TestBasicPolicy-31559535-75853467 launched on Node cn-jenkins-deploy-platform-ansible-os-1699-1 2024-08-21 20:26:25,290 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/684fcff8-fd78-459f-a700-949bc96733e0 2024-08-21 20:26:25,304 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/888e233d-2761-4d30-9f75-0407988d7eaa 2024-08-21 20:26:27,509 - 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=6.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.47 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 = 2.474/4.574/6.675/2.100 ms') 2024-08-21 20:26:27,509 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-31559535-75853467 passed 2024-08-21 20:26:27,669 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:26:27,669 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31559535-75853467, IP 13.30.78.195, Port 22 2024-08-21 20:26:27,735 - 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-08-21 20:26:27,848 - DEBUG - VM ctest-TestBasicPolicy-31559535-75853467 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 20:26:32,849 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:26:32,850 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31559535-75853467, IP 13.30.78.195, Port 22 2024-08-21 20:26:33,023 - DEBUG - VM ctest-TestBasicPolicy-31559535-75853467 is ready for SSH connections 2024-08-21 20:26:33,023 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:26:33,024 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 13.30.78.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-21 20:26:33,024 - DEBUG - ping -s 56 -c 3 -W 1 13.30.78.195 2024-08-21 20:26:37,079 - DEBUG - PING 13.30.78.195 (13.30.78.195): 56 data bytes 64 bytes from 13.30.78.195: seq=0 ttl=63 time=7.529 ms 64 bytes from 13.30.78.195: seq=1 ttl=63 time=0.999 ms 64 bytes from 13.30.78.195: seq=2 ttl=63 time=1.178 ms --- 13.30.78.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.999/3.235/7.529 ms 2024-08-21 20:26:37,080 - INFO - Ping to IP 13.30.78.195 from VM ctest-TestBasicPolicy-31559535-45821378 passed 2024-08-21 20:26:37,280 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c08a1c08-c8e7-4b2a-8446-55f514ca1910", "href": "http://10.0.0.24:8082/network-policy/c08a1c08-c8e7-4b2a-8446-55f514ca1910"}} 2024-08-21 20:26:37,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:26:37,281 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 13.30.78.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-21 20:26:37,281 - DEBUG - ping -s 56 -c 3 -W 1 13.30.78.195 2024-08-21 20:26:40,508 - DEBUG - PING 13.30.78.195 (13.30.78.195): 56 data bytes --- 13.30.78.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-21 20:26:40,508 - WARNING - Ping to IP 13.30.78.195 from VM ctest-TestBasicPolicy-31559535-45821378 failed 2024-08-21 20:26:40,508 - INFO - Deleting VM ctest-TestBasicPolicy-31559535-75853467 2024-08-21 20:26:40,592 - INFO - Deleting VM ctest-TestBasicPolicy-31559535-45821378 2024-08-21 20:26:41,005 - INFO - Deleted policy ctest-policy-allow-all-71973823 2024-08-21 20:26:41,005 - INFO - Deleting VN ctest-vn-53011789 2024-08-21 20:26:41,051 - DEBUG - VN 50ea403e-7347-450b-9203-c9ba13a845eb still in use: Unable to complete operation on network 50ea403e-7347-450b-9203-c9ba13a845eb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-02604e34-cfbf-48a1-9940-e1657ee07f8f'] 2024-08-21 20:26:41,051 - WARNING - Deleting VN ctest-vn-53011789 failed..Will retry 2024-08-21 20:26:43,214 - DEBUG - Response for deleting network () 2024-08-21 20:26:43,214 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/911c9f21-e602-44ec-a06d-5bc0bf901496 2024-08-21 20:26:43,222 - DEBUG - Response Code: 404 2024-08-21 20:26:43,223 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 20:26:43,237 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931 2024-08-21 20:26:43,256 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1 2024-08-21 20:26:43,339 - INFO - Validated that VN ctest-vn-53011789 is not found in API Server 2024-08-21 20:26:43,365 - DEBUG - VN ctest-vn-53011789 is not present in Agent 10.0.0.24 2024-08-21 20:26:43,366 - INFO - Validated that VN ctest-vn-53011789 is not in any agent 2024-08-21 20:26:43,392 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53011789 info 2024-08-21 20:26:43,393 - INFO - Deleting VN ctest-vn-79936396 2024-08-21 20:26:43,554 - DEBUG - Response for deleting network () 2024-08-21 20:26:43,554 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f4a25664-a164-4221-bd71-13bab5aa390f 2024-08-21 20:26:43,565 - DEBUG - Response Code: 404 2024-08-21 20:26:43,565 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-21 20:26:43,576 - DEBUG - Requesting: http://10.0.0.24:8082/domain/972a5d97-2c2c-4997-a2d7-f496934e5931 2024-08-21 20:26:43,596 - DEBUG - Requesting: http://10.0.0.24:8082/project/46d30094-b5a6-4892-ac8e-d825b4e8d5b1 2024-08-21 20:26:43,673 - INFO - Validated that VN ctest-vn-79936396 is not found in API Server 2024-08-21 20:26:43,686 - DEBUG - VN ctest-vn-79936396 is not present in Agent 10.0.0.24 2024-08-21 20:26:43,686 - INFO - Validated that VN ctest-vn-79936396 is not in any agent 2024-08-21 20:26:43,711 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79936396 info 2024-08-21 20:26:43,979 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 20:26:43,979 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2024-08-21 20:26:43,980 - INFO - -------------------------------------------------------------------------------- 2024-08-21 20:26:44,728 - INFO - Deleted project: ctest-TestBasicPolicy-31559535, ID : 46d30094-b5a6-4892-ac8e-d825b4e8d5b1