2024-11-04 08:06:51,509 - INFO - Domain Default found not creating 2024-11-04 08:06:51,706 - INFO - Project ctest-TestBasicPolicy-90572806 not found, creating it 2024-11-04 08:06:52,244 - INFO - Created Project:ctest-TestBasicPolicy-90572806, ID : 8a8a981d-1e93-47cf-b2e4-fe3f45464d0e 2024-11-04 08:06:54,103 - INFO - ================================================================================ 2024-11-04 08:06:54,103 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-04 08:06:54,103 - 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-11-04 08:06:54,360 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with 2024-11-04 08:06:54,360 - INFO - Initial checks done. Running the testcase now 2024-11-04 08:06:54,360 - INFO - 2024-11-04 08:06:54,935 - DEBUG - Response for create_network : {'network': {'id': '32da2bef-3b21-4e18-a545-e734fc1dd795', 'name': 'ctest-vn-23415555', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-23415555'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 08:06:55,089 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a53ed9fa-23a9-4521-afe2-72aed8db3a73', 'name': '', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'network_id': '32da2bef-3b21-4e18-a545-e734fc1dd795', 'ip_version': 4, 'cidr': '54.90.238.192/26', 'allocation_pools': [{'start': '54.90.238.194', 'end': '54.90.238.254'}], 'gateway_ip': '54.90.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.90.238.194', 'tags': [], 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e'}} 2024-11-04 08:06:55,109 - INFO - Created VN ctest-vn-23415555 2024-11-04 08:06:55,168 - DEBUG - VN ctest-vn-23415555 UUID is 32da2bef-3b21-4e18-a545-e734fc1dd795 2024-11-04 08:06:55,500 - DEBUG - Response for create_network : {'network': {'id': '19b44066-2aa0-419a-ad65-9045e1a02775', 'name': 'ctest-vn-34609672', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-34609672'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 08:06:55,696 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c91a338-742f-433e-8d4a-a7ae6d665797', 'name': '', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'network_id': '19b44066-2aa0-419a-ad65-9045e1a02775', 'ip_version': 4, 'cidr': '106.117.84.64/26', 'allocation_pools': [{'start': '106.117.84.66', 'end': '106.117.84.126'}], 'gateway_ip': '106.117.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.117.84.66', 'tags': [], 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e'}} 2024-11-04 08:06:55,719 - INFO - Created VN ctest-vn-34609672 2024-11-04 08:06:55,780 - DEBUG - VN ctest-vn-34609672 UUID is 19b44066-2aa0-419a-ad65-9045e1a02775 2024-11-04 08:06:55,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555, 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-90572806:ctest-vn-34609672, 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-11-04 08:06:56,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32da2bef-3b21-4e18-a545-e734fc1dd795', 'name': 'ctest-vn-23415555', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a53ed9fa-23a9-4521-afe2-72aed8db3a73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-23415555'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292']], 'subnet_ipam': [{'subnet_cidr': '54.90.238.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-04 08:06:56,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19b44066-2aa0-419a-ad65-9045e1a02775', 'name': 'ctest-vn-34609672', 'tenant_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'project_id': '8a8a981d1e9347cfb2e4fe3f45464d0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c91a338-742f-433e-8d4a-a7ae6d665797'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-vn-34609672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292']], 'subnet_ipam': [{'subnet_cidr': '106.117.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-04 08:06:56,692 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-04 08:06:56,990 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-04 08:06:57,024 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d 2024-11-04 08:06:57,040 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e 2024-11-04 08:06:57,129 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795 2024-11-04 08:06:57,146 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795 2024-11-04 08:06:57,160 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc 2024-11-04 08:06:57,171 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc 2024-11-04 08:06:57,181 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fe6892d-cf75-40a2-b716-93c73a792f3f 2024-11-04 08:06:57,189 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-04 08:06:57,189 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795 2024-11-04 08:06:57,205 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc 2024-11-04 08:06:57,229 - INFO - Verified VN network id 7 for VN 32da2bef-3b21-4e18-a545-e734fc1dd795 2024-11-04 08:06:57,230 - INFO - Verifications in API Server for VN ctest-vn-23415555 passed 2024-11-04 08:06:57,230 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795 2024-11-04 08:06:57,245 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc 2024-11-04 08:06:57,255 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc 2024-11-04 08:06:57,264 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fe6892d-cf75-40a2-b716-93c73a792f3f 2024-11-04 08:06:57,280 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90572806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3664289553308536344', 'uuid-lslong': '11909179004405274517'}, 'enable': 'true', 'created': '2024-11-04T08:06:54', 'last-modified': '2024-11-04T08:06:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.082276'} 2024-11-04 08:06:57,288 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-04 08:06:57,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23415555 passed 2024-11-04 08:06:57,288 - DEBUG - ====Verifying policy data for ctest-vn-23415555 in API_Server ====== 2024-11-04 08:06:57,288 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-04 08:06:57,295 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d 2024-11-04 08:06:57,310 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e 2024-11-04 08:06:57,396 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/32da2bef-3b21-4e18-a545-e734fc1dd795 2024-11-04 08:06:57,415 - DEBUG - ==>Verifying data for policy with id: fc36bf61-7ecd-4d65-acb1-e033c7fb3bc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292'] 2024-11-04 08:06:57,415 - INFO - VN ctest-vn-23415555 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-04 08:06:57,415 - DEBUG - Verifying the vn in opserver 2024-11-04 08:06:57,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555 virtual network link through opserver 10.0.0.12 2024-11-04 08:06:57,416 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-04 08:06:57,713 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-04 08:06:57,779 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555?flat'} 2024-11-04 08:06:57,779 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555 is found in opserver 2024-11-04 08:06:57,791 - DEBUG - Do not have enough data to verify VN in agent 2024-11-04 08:06:57,796 - DEBUG - VRF ids for VN ctest-vn-23415555: {} 2024-11-04 08:06:57,796 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-04 08:06:57,802 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d 2024-11-04 08:06:57,816 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e 2024-11-04 08:06:57,899 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775 2024-11-04 08:06:57,917 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775 2024-11-04 08:06:57,933 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193 2024-11-04 08:06:57,943 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193 2024-11-04 08:06:57,952 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7ccd8ab8-a184-4fa3-86f9-55de2de11ae0 2024-11-04 08:06:57,962 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-04 08:06:57,962 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775 2024-11-04 08:06:57,977 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193 2024-11-04 08:06:58,001 - INFO - Verified VN network id 8 for VN 19b44066-2aa0-419a-ad65-9045e1a02775 2024-11-04 08:06:58,001 - INFO - Verifications in API Server for VN ctest-vn-34609672 passed 2024-11-04 08:06:58,001 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775 2024-11-04 08:06:58,018 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193 2024-11-04 08:06:58,030 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193 2024-11-04 08:06:58,042 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7ccd8ab8-a184-4fa3-86f9-55de2de11ae0 2024-11-04 08:06:58,059 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90572806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1852176154302103962', 'uuid-lslong': '12494551371021821813'}, 'enable': 'true', 'created': '2024-11-04T08:06:55', 'last-modified': '2024-11-04T08:06:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.596741'} 2024-11-04 08:06:58,066 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-04 08:06:58,067 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34609672 passed 2024-11-04 08:06:58,067 - DEBUG - ====Verifying policy data for ctest-vn-34609672 in API_Server ====== 2024-11-04 08:06:58,067 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-04 08:06:58,075 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d 2024-11-04 08:06:58,093 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e 2024-11-04 08:06:58,177 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/19b44066-2aa0-419a-ad65-9045e1a02775 2024-11-04 08:06:58,193 - DEBUG - ==>Verifying data for policy with id: fc36bf61-7ecd-4d65-acb1-e033c7fb3bc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-90572806', 'ctest-policy-allow-all-23650292'] 2024-11-04 08:06:58,193 - INFO - VN ctest-vn-34609672 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-04 08:06:58,193 - DEBUG - Verifying the vn in opserver 2024-11-04 08:06:58,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672 virtual network link through opserver 10.0.0.12 2024-11-04 08:06:58,193 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-04 08:06:58,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672?flat'} 2024-11-04 08:06:58,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-34609672 is found in opserver 2024-11-04 08:06:58,219 - DEBUG - Do not have enough data to verify VN in agent 2024-11-04 08:06:58,225 - DEBUG - VRF ids for VN ctest-vn-34609672: {} 2024-11-04 08:06:58,291 - DEBUG - Services list from nova: [, , ] 2024-11-04 08:06:59,391 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2197-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2197-1) 2024-11-04 08:07:00,725 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2197-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2197-1) 2024-11-04 08:07:00,725 - INFO - Waiting for VM ctest-TestBasicPolicy-90572806-11654759 to be up.. 2024-11-04 08:07:00,816 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-04 08:07:05,908 - DEBUG - VM is in ACTIVE state now 2024-11-04 08:07:05,908 - INFO - VM name : ctest-TestBasicPolicy-90572806-11654759 2024-11-04 08:07:06,004 - DEBUG - VM ctest-TestBasicPolicy-90572806-11654759 ID is ad3f3dc4-e550-4a03-a9b0-941abcc69ffc 2024-11-04 08:07:06,027 - DEBUG - VM ctest-TestBasicPolicy-90572806-11654759 launched on Node cn-jenkins-deploy-platform-ansible-os-2197-1 2024-11-04 08:07:06,126 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/ad3f3dc4-e550-4a03-a9b0-941abcc69ffc 2024-11-04 08:07:06,137 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/be744cf6-f5a3-4a49-8026-3504362e800e 2024-11-04 08:07:09,400 - 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 1015ms') 2024-11-04 08:07:09,400 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90572806-11654759 failed! 2024-11-04 08:07:09,460 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90572806:ctest-vn-23415555 is 54.90.238.193 and allocation pool is NOT set 2024-11-04 08:07:11,522 - 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=10.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.700 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.700/5.362/10.024/4.662 ms') 2024-11-04 08:07:11,522 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90572806-11654759 passed 2024-11-04 08:07:11,684 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 08:07:11,684 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90572806-11654759, IP 54.90.238.195, Port 22 2024-11-04 08:07:11,840 - DEBUG - VM ctest-TestBasicPolicy-90572806-11654759 is ready for SSH connections 2024-11-04 08:07:11,840 - INFO - Waiting for VM ctest-TestBasicPolicy-90572806-07530338 to be up.. 2024-11-04 08:07:11,924 - DEBUG - VM is in ACTIVE state now 2024-11-04 08:07:11,924 - INFO - VM name : ctest-TestBasicPolicy-90572806-07530338 2024-11-04 08:07:12,016 - DEBUG - VM ctest-TestBasicPolicy-90572806-07530338 ID is 64ebd89d-8121-4c8d-978f-f016895cf8ff 2024-11-04 08:07:12,017 - DEBUG - VM ctest-TestBasicPolicy-90572806-07530338 launched on Node cn-jenkins-deploy-platform-ansible-os-2197-1 2024-11-04 08:07:12,100 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/64ebd89d-8121-4c8d-978f-f016895cf8ff 2024-11-04 08:07:12,112 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/aa54c484-4cb7-4bcc-95c6-20a34d2a2ba1 2024-11-04 08:07:13,370 - 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=4.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.02 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 = 2.017/3.310/4.604/1.293 ms') 2024-11-04 08:07:13,370 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90572806-07530338 passed 2024-11-04 08:07:13,532 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 08:07:13,532 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90572806-07530338, IP 106.117.84.67, Port 22 2024-11-04 08:07:13,698 - DEBUG - VM ctest-TestBasicPolicy-90572806-07530338 is ready for SSH connections 2024-11-04 08:07:13,698 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 08:07:13,698 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.117.84.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-04 08:07:13,698 - DEBUG - ping -s 56 -c 3 -W 1 106.117.84.67 2024-11-04 08:07:17,703 - DEBUG - PING 106.117.84.67 (106.117.84.67): 56 data bytes 64 bytes from 106.117.84.67: seq=0 ttl=63 time=4.008 ms 64 bytes from 106.117.84.67: seq=1 ttl=63 time=0.863 ms 64 bytes from 106.117.84.67: seq=2 ttl=63 time=0.883 ms --- 106.117.84.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.863/1.918/4.008 ms 2024-11-04 08:07:17,703 - INFO - Ping to IP 106.117.84.67 from VM ctest-TestBasicPolicy-90572806-11654759 passed 2024-11-04 08:07:17,907 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fc36bf61-7ecd-4d65-acb1-e033c7fb3bc4", "href": "http://10.0.0.12:8082/network-policy/fc36bf61-7ecd-4d65-acb1-e033c7fb3bc4"}} 2024-11-04 08:07:17,908 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 08:07:17,908 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 106.117.84.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-04 08:07:17,908 - DEBUG - ping -s 56 -c 3 -W 1 106.117.84.67 2024-11-04 08:07:21,113 - DEBUG - PING 106.117.84.67 (106.117.84.67): 56 data bytes 64 bytes from 106.117.84.67: seq=0 ttl=63 time=1.488 ms --- 106.117.84.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.488/1.488/1.488 ms 2024-11-04 08:07:21,113 - WARNING - Ping to IP 106.117.84.67 from VM ctest-TestBasicPolicy-90572806-11654759 failed 2024-11-04 08:07:21,113 - INFO - Deleting VM ctest-TestBasicPolicy-90572806-07530338 2024-11-04 08:07:21,205 - INFO - Deleting VM ctest-TestBasicPolicy-90572806-11654759 2024-11-04 08:07:22,938 - INFO - Deleted policy ctest-policy-allow-all-23650292 2024-11-04 08:07:22,938 - INFO - Deleting VN ctest-vn-34609672 2024-11-04 08:07:23,008 - DEBUG - VN 19b44066-2aa0-419a-ad65-9045e1a02775 still in use: Unable to complete operation on network 19b44066-2aa0-419a-ad65-9045e1a02775. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-09ce6b2f-3690-4b79-8c8c-ee069be1777e'] 2024-11-04 08:07:23,008 - WARNING - Deleting VN ctest-vn-34609672 failed..Will retry 2024-11-04 08:07:25,151 - DEBUG - Response for deleting network () 2024-11-04 08:07:25,151 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/bc8fea6e-93a6-4298-84cd-48f44f547193 2024-11-04 08:07:25,160 - DEBUG - Response Code: 404 2024-11-04 08:07:25,160 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-04 08:07:25,167 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d 2024-11-04 08:07:25,222 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e 2024-11-04 08:07:25,311 - INFO - Validated that VN ctest-vn-34609672 is not found in API Server 2024-11-04 08:07:25,322 - DEBUG - VN ctest-vn-34609672 is not present in Agent 10.0.0.12 2024-11-04 08:07:25,322 - INFO - Validated that VN ctest-vn-34609672 is not in any agent 2024-11-04 08:07:25,341 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34609672 info 2024-11-04 08:07:25,341 - INFO - Deleting VN ctest-vn-23415555 2024-11-04 08:07:25,468 - DEBUG - Response for deleting network () 2024-11-04 08:07:25,468 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/32886e05-481f-45d7-b31c-c4af37b60ccc 2024-11-04 08:07:25,475 - DEBUG - Response Code: 404 2024-11-04 08:07:25,475 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-04 08:07:25,484 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a78ce6d-7ddf-45c2-b916-3e8c392e325d 2024-11-04 08:07:25,543 - DEBUG - Requesting: http://10.0.0.12:8082/project/8a8a981d-1e93-47cf-b2e4-fe3f45464d0e 2024-11-04 08:07:25,641 - INFO - Validated that VN ctest-vn-23415555 is not found in API Server 2024-11-04 08:07:25,654 - DEBUG - VN ctest-vn-23415555 is not present in Agent 10.0.0.12 2024-11-04 08:07:25,654 - INFO - Validated that VN ctest-vn-23415555 is not in any agent 2024-11-04 08:07:25,674 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23415555 info 2024-11-04 08:07:25,929 - DEBUG - No XMPP flaps were noticed during the test
2024-11-04 08:07:25,929 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-04 08:07:25,930 - INFO - -------------------------------------------------------------------------------- 2024-11-04 08:07:26,643 - INFO - Deleted project: ctest-TestBasicPolicy-90572806, ID : 8a8a981d-1e93-47cf-b2e4-fe3f45464d0e