2024-08-26 23:42:29,983 - INFO - Domain Default found not creating 2024-08-26 23:42:30,147 - INFO - Project ctest-TestBasicPolicy-98891502 not found, creating it 2024-08-26 23:42:30,615 - INFO - Created Project:ctest-TestBasicPolicy-98891502, ID : f09c5155-0e37-4ed3-a7b3-9ccdaa25c164 2024-08-26 23:42:32,134 - INFO - ================================================================================ 2024-08-26 23:42:32,134 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-26 23:42:32,134 - 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-26 23:42:32,394 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.6': '0'}} with 2024-08-26 23:42:32,395 - INFO - Initial checks done. Running the testcase now 2024-08-26 23:42:32,395 - INFO - 2024-08-26 23:42:32,940 - DEBUG - Response for create_network : {'network': {'id': '979e765a-0eb6-4030-9224-c9a92dd5946c', 'name': 'ctest-vn-79399884', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-79399884'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 23:42:33,158 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e37b8f0-4dee-4d2a-aee6-9e9b372da5ac', 'name': '', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'network_id': '979e765a-0eb6-4030-9224-c9a92dd5946c', 'ip_version': 4, 'cidr': '63.188.245.64/26', 'allocation_pools': [{'start': '63.188.245.66', 'end': '63.188.245.126'}], 'gateway_ip': '63.188.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.188.245.66', 'tags': [], 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164'}} 2024-08-26 23:42:33,179 - INFO - Created VN ctest-vn-79399884 2024-08-26 23:42:33,233 - DEBUG - VN ctest-vn-79399884 UUID is 979e765a-0eb6-4030-9224-c9a92dd5946c 2024-08-26 23:42:33,525 - DEBUG - Response for create_network : {'network': {'id': 'b371af61-6bfc-4166-a33f-63f3f5cdfef0', 'name': 'ctest-vn-82058897', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-82058897'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 23:42:33,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '22223a3f-b5cc-4bd1-8149-e946d64f11fd', 'name': '', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'network_id': 'b371af61-6bfc-4166-a33f-63f3f5cdfef0', 'ip_version': 4, 'cidr': '54.189.240.128/26', 'allocation_pools': [{'start': '54.189.240.130', 'end': '54.189.240.190'}], 'gateway_ip': '54.189.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.189.240.130', 'tags': [], 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164'}} 2024-08-26 23:42:33,741 - INFO - Created VN ctest-vn-82058897 2024-08-26 23:42:33,793 - DEBUG - VN ctest-vn-82058897 UUID is b371af61-6bfc-4166-a33f-63f3f5cdfef0 2024-08-26 23:42:33,905 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884, 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-98891502:ctest-vn-82058897, 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-26 23:42:34,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '979e765a-0eb6-4030-9224-c9a92dd5946c', 'name': 'ctest-vn-79399884', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e37b8f0-4dee-4d2a-aee6-9e9b372da5ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-79399884'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322']], 'subnet_ipam': [{'subnet_cidr': '63.188.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 23:42:34,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b371af61-6bfc-4166-a33f-63f3f5cdfef0', 'name': 'ctest-vn-82058897', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22223a3f-b5cc-4bd1-8149-e946d64f11fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-82058897'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322']], 'subnet_ipam': [{'subnet_cidr': '54.189.240.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 23:42:34,613 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 23:42:34,918 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 23:42:34,950 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef 2024-08-26 23:42:34,965 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164 2024-08-26 23:42:35,045 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c 2024-08-26 23:42:35,056 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c 2024-08-26 23:42:35,065 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff 2024-08-26 23:42:35,072 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff 2024-08-26 23:42:35,080 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55326f50-5a0e-45e5-8842-47d06e282b51 2024-08-26 23:42:35,088 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 23:42:35,088 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c 2024-08-26 23:42:35,097 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff 2024-08-26 23:42:35,112 - INFO - Verified VN network id 9 for VN 979e765a-0eb6-4030-9224-c9a92dd5946c 2024-08-26 23:42:35,112 - INFO - Verifications in API Server for VN ctest-vn-79399884 passed 2024-08-26 23:42:35,112 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c 2024-08-26 23:42:35,124 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff 2024-08-26 23:42:35,133 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff 2024-08-26 23:42:35,142 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55326f50-5a0e-45e5-8842-47d06e282b51 2024-08-26 23:42:35,158 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98891502', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10925299875213361200', 'uuid-lslong': '10530763557154690156'}, 'enable': 'true', 'created': '2024-08-26T23:42:32', 'last-modified': '2024-08-26T23:42:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974116'} 2024-08-26 23:42:35,166 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 23:42:35,166 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79399884 passed 2024-08-26 23:42:35,166 - DEBUG - ====Verifying policy data for ctest-vn-79399884 in API_Server ====== 2024-08-26 23:42:35,166 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 23:42:35,173 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef 2024-08-26 23:42:35,185 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164 2024-08-26 23:42:35,255 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c 2024-08-26 23:42:35,263 - DEBUG - ==>Verifying data for policy with id: 99198865-4b5a-48c6-ad38-15e454d7af69, fqn: ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322'] 2024-08-26 23:42:35,263 - INFO - VN ctest-vn-79399884 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 23:42:35,264 - DEBUG - Verifying the vn in opserver 2024-08-26 23:42:35,264 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884 virtual network link through opserver 10.0.0.30 2024-08-26 23:42:35,264 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-08-26 23:42:35,556 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-08-26 23:42:35,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884?flat'} 2024-08-26 23:42:35,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884 is found in opserver 2024-08-26 23:42:35,630 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 23:42:35,636 - DEBUG - VRF ids for VN ctest-vn-79399884: {} 2024-08-26 23:42:35,636 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 23:42:35,641 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef 2024-08-26 23:42:35,654 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164 2024-08-26 23:42:35,726 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0 2024-08-26 23:42:35,736 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0 2024-08-26 23:42:35,744 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd 2024-08-26 23:42:35,751 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd 2024-08-26 23:42:35,758 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e72ea21e-0c1c-43fd-9205-e69642dba7bf 2024-08-26 23:42:35,765 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 23:42:35,765 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0 2024-08-26 23:42:35,773 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd 2024-08-26 23:42:35,786 - INFO - Verified VN network id 10 for VN b371af61-6bfc-4166-a33f-63f3f5cdfef0 2024-08-26 23:42:35,786 - INFO - Verifications in API Server for VN ctest-vn-82058897 passed 2024-08-26 23:42:35,786 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0 2024-08-26 23:42:35,794 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd 2024-08-26 23:42:35,802 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd 2024-08-26 23:42:35,809 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e72ea21e-0c1c-43fd-9205-e69642dba7bf 2024-08-26 23:42:35,822 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98891502', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12930308838115787110', 'uuid-lslong': '11763230651167145712'}, 'enable': 'true', 'created': '2024-08-26T23:42:33', 'last-modified': '2024-08-26T23:42:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399157'} 2024-08-26 23:42:35,829 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 23:42:35,829 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82058897 passed 2024-08-26 23:42:35,829 - DEBUG - ====Verifying policy data for ctest-vn-82058897 in API_Server ====== 2024-08-26 23:42:35,829 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 23:42:35,836 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef 2024-08-26 23:42:35,849 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164 2024-08-26 23:42:35,916 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0 2024-08-26 23:42:35,925 - DEBUG - ==>Verifying data for policy with id: 99198865-4b5a-48c6-ad38-15e454d7af69, fqn: ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322'] 2024-08-26 23:42:35,925 - INFO - VN ctest-vn-82058897 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 23:42:35,925 - DEBUG - Verifying the vn in opserver 2024-08-26 23:42:35,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897 virtual network link through opserver 10.0.0.30 2024-08-26 23:42:35,925 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-08-26 23:42:35,938 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897?flat'} 2024-08-26 23:42:35,938 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897 is found in opserver 2024-08-26 23:42:35,949 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 23:42:35,954 - DEBUG - VRF ids for VN ctest-vn-82058897: {} 2024-08-26 23:42:36,011 - DEBUG - Services list from nova: [, , ] 2024-08-26 23:42:37,051 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1780-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1780-1) 2024-08-26 23:42:38,454 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1780-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1780-1) 2024-08-26 23:42:38,454 - INFO - Waiting for VM ctest-TestBasicPolicy-98891502-30959149 to be up.. 2024-08-26 23:42:38,550 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 23:42:44,356 - DEBUG - VM is in ACTIVE state now 2024-08-26 23:42:44,357 - INFO - VM name : ctest-TestBasicPolicy-98891502-30959149 2024-08-26 23:42:44,438 - DEBUG - VM ctest-TestBasicPolicy-98891502-30959149 ID is 6975024a-36d8-4c0d-adc1-6aff56c6a412 2024-08-26 23:42:44,461 - DEBUG - VM ctest-TestBasicPolicy-98891502-30959149 launched on Node cn-jenkins-deploy-platform-ansible-os-1780-1 2024-08-26 23:42:44,539 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/6975024a-36d8-4c0d-adc1-6aff56c6a412 2024-08-26 23:42:44,548 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/8b634fa7-eeaa-464a-8073-2fd3ecb1eb6c 2024-08-26 23:42:47,786 - 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 1003ms') 2024-08-26 23:42:47,786 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98891502-30959149 failed! 2024-08-26 23:42:47,841 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884 is 63.188.245.65 and allocation pool is NOT set 2024-08-26 23:42:49,900 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.24 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 = 2.236/3.168/4.100/0.932 ms') 2024-08-26 23:42:49,900 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98891502-30959149 passed 2024-08-26 23:42:50,061 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 23:42:50,061 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98891502-30959149, IP 63.188.245.67, Port 22 2024-08-26 23:42:50,235 - DEBUG - VM ctest-TestBasicPolicy-98891502-30959149 is ready for SSH connections 2024-08-26 23:42:50,235 - INFO - Waiting for VM ctest-TestBasicPolicy-98891502-78440567 to be up.. 2024-08-26 23:42:50,333 - DEBUG - VM is in ACTIVE state now 2024-08-26 23:42:50,333 - INFO - VM name : ctest-TestBasicPolicy-98891502-78440567 2024-08-26 23:42:50,426 - DEBUG - VM ctest-TestBasicPolicy-98891502-78440567 ID is 22433f4d-4f2c-4289-934e-7f3b542ec3f3 2024-08-26 23:42:50,426 - DEBUG - VM ctest-TestBasicPolicy-98891502-78440567 launched on Node cn-jenkins-deploy-platform-ansible-os-1780-1 2024-08-26 23:42:50,503 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/22433f4d-4f2c-4289-934e-7f3b542ec3f3 2024-08-26 23:42:50,511 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/1576a118-3adb-4b62-bfcb-2d23aef3ce8e 2024-08-26 23:42:51,741 - 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=2.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.391 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.391/1.664/2.938/1.273 ms') 2024-08-26 23:42:51,742 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98891502-78440567 passed 2024-08-26 23:42:51,897 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 23:42:51,897 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98891502-78440567, IP 54.189.240.131, Port 22 2024-08-26 23:42:52,048 - DEBUG - VM ctest-TestBasicPolicy-98891502-78440567 is ready for SSH connections 2024-08-26 23:42:52,048 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 23:42:52,048 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 54.189.240.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-08-26 23:42:52,048 - DEBUG - ping -s 56 -c 3 -W 1 54.189.240.131 2024-08-26 23:42:56,060 - DEBUG - PING 54.189.240.131 (54.189.240.131): 56 data bytes 64 bytes from 54.189.240.131: seq=0 ttl=63 time=3.544 ms 64 bytes from 54.189.240.131: seq=1 ttl=63 time=0.858 ms 64 bytes from 54.189.240.131: seq=2 ttl=63 time=0.781 ms --- 54.189.240.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.781/1.727/3.544 ms 2024-08-26 23:42:56,060 - INFO - Ping to IP 54.189.240.131 from VM ctest-TestBasicPolicy-98891502-30959149 passed 2024-08-26 23:42:56,233 - DEBUG - Policy Update Response {"network-policy": {"uuid": "99198865-4b5a-48c6-ad38-15e454d7af69", "href": "http://10.0.0.30:8082/network-policy/99198865-4b5a-48c6-ad38-15e454d7af69"}} 2024-08-26 23:42:56,233 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 23:42:56,233 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 54.189.240.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-08-26 23:42:56,233 - DEBUG - ping -s 56 -c 3 -W 1 54.189.240.131 2024-08-26 23:42:59,442 - DEBUG - PING 54.189.240.131 (54.189.240.131): 56 data bytes 64 bytes from 54.189.240.131: seq=0 ttl=63 time=1.356 ms --- 54.189.240.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.356/1.356/1.356 ms 2024-08-26 23:42:59,443 - WARNING - Ping to IP 54.189.240.131 from VM ctest-TestBasicPolicy-98891502-30959149 failed 2024-08-26 23:42:59,443 - INFO - Deleting VM ctest-TestBasicPolicy-98891502-78440567 2024-08-26 23:42:59,513 - INFO - Deleting VM ctest-TestBasicPolicy-98891502-30959149 2024-08-26 23:42:59,927 - INFO - Deleted policy ctest-policy-allow-all-29859322 2024-08-26 23:42:59,927 - INFO - Deleting VN ctest-vn-82058897 2024-08-26 23:42:59,967 - DEBUG - VN b371af61-6bfc-4166-a33f-63f3f5cdfef0 still in use: Unable to complete operation on network b371af61-6bfc-4166-a33f-63f3f5cdfef0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9ead22dd-d26b-469d-af6e-5f36349cb58e'] 2024-08-26 23:42:59,967 - WARNING - Deleting VN ctest-vn-82058897 failed..Will retry 2024-08-26 23:43:02,077 - DEBUG - Response for deleting network () 2024-08-26 23:43:02,077 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd 2024-08-26 23:43:02,085 - DEBUG - Response Code: 404 2024-08-26 23:43:02,085 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 23:43:02,091 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef 2024-08-26 23:43:02,147 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164 2024-08-26 23:43:02,216 - INFO - Validated that VN ctest-vn-82058897 is not found in API Server 2024-08-26 23:43:02,229 - DEBUG - VN ctest-vn-82058897 is not present in Agent 10.0.0.30 2024-08-26 23:43:02,229 - INFO - Validated that VN ctest-vn-82058897 is not in any agent 2024-08-26 23:43:02,247 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82058897 info 2024-08-26 23:43:02,247 - INFO - Deleting VN ctest-vn-79399884 2024-08-26 23:43:02,378 - DEBUG - Response for deleting network () 2024-08-26 23:43:02,379 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff 2024-08-26 23:43:02,385 - DEBUG - Response Code: 404 2024-08-26 23:43:02,385 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-08-26 23:43:02,392 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef 2024-08-26 23:43:02,446 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164 2024-08-26 23:43:02,514 - INFO - Validated that VN ctest-vn-79399884 is not found in API Server 2024-08-26 23:43:02,526 - DEBUG - VN ctest-vn-79399884 is not present in Agent 10.0.0.30 2024-08-26 23:43:02,526 - INFO - Validated that VN ctest-vn-79399884 is not in any agent 2024-08-26 23:43:02,542 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79399884 info 2024-08-26 23:43:02,799 - DEBUG - No XMPP flaps were noticed during the test
2024-08-26 23:43:02,799 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-26 23:43:02,799 - INFO - -------------------------------------------------------------------------------- 2024-08-26 23:43:03,507 - INFO - Deleted project: ctest-TestBasicPolicy-98891502, ID : f09c5155-0e37-4ed3-a7b3-9ccdaa25c164