2024-09-18 03:10:42,431 - INFO - Domain Default found not creating 2024-09-18 03:10:42,606 - INFO - Project ctest-TestBasicPolicy-37505242 not found, creating it 2024-09-18 03:10:43,095 - INFO - Created Project:ctest-TestBasicPolicy-37505242, ID : 93bacd45-5f5e-4812-a6da-7c09572e4e2a 2024-09-18 03:10:44,569 - INFO - ================================================================================ 2024-09-18 03:10:44,569 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-18 03:10:44,569 - 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-18 03:10:44,823 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.27': '0'}} with 2024-09-18 03:10:44,823 - INFO - Initial checks done. Running the testcase now 2024-09-18 03:10:44,823 - INFO - 2024-09-18 03:10:45,408 - DEBUG - Response for create_network : {'network': {'id': '4d572f93-0051-4566-9c9f-bd44a8385599', 'name': 'ctest-vn-74145569', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-74145569'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 03:10:45,588 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f28c5b89-e6c4-4d5d-9145-7bdbd1a44ea8', 'name': '', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'network_id': '4d572f93-0051-4566-9c9f-bd44a8385599', 'ip_version': 4, 'cidr': '38.59.61.128/26', 'allocation_pools': [{'start': '38.59.61.130', 'end': '38.59.61.190'}], 'gateway_ip': '38.59.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.59.61.130', 'tags': [], 'project_id': '93bacd455f5e4812a6da7c09572e4e2a'}} 2024-09-18 03:10:45,607 - INFO - Created VN ctest-vn-74145569 2024-09-18 03:10:45,668 - DEBUG - VN ctest-vn-74145569 UUID is 4d572f93-0051-4566-9c9f-bd44a8385599 2024-09-18 03:10:46,002 - DEBUG - Response for create_network : {'network': {'id': 'dec955f0-f51c-41e0-9e16-5e77994926ed', 'name': 'ctest-vn-32434706', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-32434706'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 03:10:46,172 - DEBUG - Response for create_subnet : {'subnet': {'id': '49924166-2ab9-45b6-9fbf-1614b9bb1053', 'name': '', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'network_id': 'dec955f0-f51c-41e0-9e16-5e77994926ed', 'ip_version': 4, 'cidr': '21.8.9.64/26', 'allocation_pools': [{'start': '21.8.9.66', 'end': '21.8.9.126'}], 'gateway_ip': '21.8.9.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.8.9.66', 'tags': [], 'project_id': '93bacd455f5e4812a6da7c09572e4e2a'}} 2024-09-18 03:10:46,191 - INFO - Created VN ctest-vn-32434706 2024-09-18 03:10:46,248 - DEBUG - VN ctest-vn-32434706 UUID is dec955f0-f51c-41e0-9e16-5e77994926ed 2024-09-18 03:10:46,380 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569, 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-37505242:ctest-vn-32434706, 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-18 03:10:46,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d572f93-0051-4566-9c9f-bd44a8385599', 'name': 'ctest-vn-74145569', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f28c5b89-e6c4-4d5d-9145-7bdbd1a44ea8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-74145569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835']], 'subnet_ipam': [{'subnet_cidr': '38.59.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 03:10:47,001 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dec955f0-f51c-41e0-9e16-5e77994926ed', 'name': 'ctest-vn-32434706', 'tenant_id': '93bacd455f5e4812a6da7c09572e4e2a', 'project_id': '93bacd455f5e4812a6da7c09572e4e2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49924166-2ab9-45b6-9fbf-1614b9bb1053'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-vn-32434706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835']], 'subnet_ipam': [{'subnet_cidr': '21.8.9.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 03:10:47,153 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-18 03:10:47,458 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-18 03:10:47,490 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8 2024-09-18 03:10:47,506 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a 2024-09-18 03:10:47,595 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599 2024-09-18 03:10:47,619 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599 2024-09-18 03:10:47,637 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02 2024-09-18 03:10:47,647 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02 2024-09-18 03:10:47,656 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ef8b243a-f9c9-42e0-97c9-a3c7fb8c161f 2024-09-18 03:10:47,664 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 03:10:47,664 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599 2024-09-18 03:10:47,678 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02 2024-09-18 03:10:47,698 - INFO - Verified VN network id 7 for VN 4d572f93-0051-4566-9c9f-bd44a8385599 2024-09-18 03:10:47,698 - INFO - Verifications in API Server for VN ctest-vn-74145569 passed 2024-09-18 03:10:47,698 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599 2024-09-18 03:10:47,713 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02 2024-09-18 03:10:47,722 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02 2024-09-18 03:10:47,732 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ef8b243a-f9c9-42e0-97c9-a3c7fb8c161f 2024-09-18 03:10:47,746 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37505242', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5572975372306302310', 'uuid-lslong': '11285947293791442329'}, 'enable': 'true', 'created': '2024-09-18T03:10:45', 'last-modified': '2024-09-18T03:10:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068087'} 2024-09-18 03:10:47,753 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 03:10:47,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74145569 passed 2024-09-18 03:10:47,753 - DEBUG - ====Verifying policy data for ctest-vn-74145569 in API_Server ====== 2024-09-18 03:10:47,753 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-18 03:10:47,759 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8 2024-09-18 03:10:47,772 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a 2024-09-18 03:10:47,853 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4d572f93-0051-4566-9c9f-bd44a8385599 2024-09-18 03:10:47,867 - DEBUG - ==>Verifying data for policy with id: 83783a6e-79cd-4953-8306-dee05827d8c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835'] 2024-09-18 03:10:47,867 - INFO - VN ctest-vn-74145569 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 03:10:47,867 - DEBUG - Verifying the vn in opserver 2024-09-18 03:10:47,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569 virtual network link through opserver 10.0.0.29 2024-09-18 03:10:47,867 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-18 03:10:48,159 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-18 03:10:48,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569?flat'} 2024-09-18 03:10:48,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569 is found in opserver 2024-09-18 03:10:48,235 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 03:10:48,242 - DEBUG - VRF ids for VN ctest-vn-74145569: {} 2024-09-18 03:10:48,242 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-18 03:10:48,249 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8 2024-09-18 03:10:48,264 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a 2024-09-18 03:10:48,351 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed 2024-09-18 03:10:48,368 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed 2024-09-18 03:10:48,382 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb 2024-09-18 03:10:48,392 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb 2024-09-18 03:10:48,401 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/76b879e5-4843-4914-8e25-c0e5acc1bb32 2024-09-18 03:10:48,408 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 03:10:48,408 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed 2024-09-18 03:10:48,421 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb 2024-09-18 03:10:48,441 - INFO - Verified VN network id 8 for VN dec955f0-f51c-41e0-9e16-5e77994926ed 2024-09-18 03:10:48,441 - INFO - Verifications in API Server for VN ctest-vn-32434706 passed 2024-09-18 03:10:48,441 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed 2024-09-18 03:10:48,455 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb 2024-09-18 03:10:48,464 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb 2024-09-18 03:10:48,473 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/76b879e5-4843-4914-8e25-c0e5acc1bb32 2024-09-18 03:10:48,487 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37505242', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16053456840131625440', 'uuid-lslong': '11391396175246075629'}, 'enable': 'true', 'created': '2024-09-18T03:10:45', 'last-modified': '2024-09-18T03:10:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.554834'} 2024-09-18 03:10:48,493 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 03:10:48,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32434706 passed 2024-09-18 03:10:48,493 - DEBUG - ====Verifying policy data for ctest-vn-32434706 in API_Server ====== 2024-09-18 03:10:48,494 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-18 03:10:48,500 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8 2024-09-18 03:10:48,515 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a 2024-09-18 03:10:48,594 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/dec955f0-f51c-41e0-9e16-5e77994926ed 2024-09-18 03:10:48,608 - DEBUG - ==>Verifying data for policy with id: 83783a6e-79cd-4953-8306-dee05827d8c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-37505242', 'ctest-policy-allow-all-99557835'] 2024-09-18 03:10:48,608 - INFO - VN ctest-vn-32434706 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 03:10:48,608 - DEBUG - Verifying the vn in opserver 2024-09-18 03:10:48,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706 virtual network link through opserver 10.0.0.29 2024-09-18 03:10:48,609 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-18 03:10:48,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706?flat'} 2024-09-18 03:10:48,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-32434706 is found in opserver 2024-09-18 03:10:48,631 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 03:10:48,636 - DEBUG - VRF ids for VN ctest-vn-32434706: {} 2024-09-18 03:10:48,689 - DEBUG - Services list from nova: [, , ] 2024-09-18 03:10:49,713 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1982-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1982-1) 2024-09-18 03:10:50,986 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1982-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1982-1) 2024-09-18 03:10:50,986 - INFO - Waiting for VM ctest-TestBasicPolicy-37505242-32920512 to be up.. 2024-09-18 03:10:51,091 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 03:10:56,178 - DEBUG - VM is in ACTIVE state now 2024-09-18 03:10:56,178 - INFO - VM name : ctest-TestBasicPolicy-37505242-32920512 2024-09-18 03:10:56,268 - DEBUG - VM ctest-TestBasicPolicy-37505242-32920512 ID is af22764d-0312-4e0f-9f48-80620730b9c9 2024-09-18 03:10:56,288 - DEBUG - VM ctest-TestBasicPolicy-37505242-32920512 launched on Node cn-jenkins-deploy-platform-ansible-os-1982-1 2024-09-18 03:10:56,377 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/af22764d-0312-4e0f-9f48-80620730b9c9 2024-09-18 03:10:56,392 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/f4e29ddb-cc45-4652-9bba-01917a88d577 2024-09-18 03:10:59,645 - 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-09-18 03:10:59,646 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37505242-32920512 failed! 2024-09-18 03:10:59,705 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-37505242:ctest-vn-74145569 is 38.59.61.129 and allocation pool is NOT set 2024-09-18 03:11:01,768 - 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=3.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.466 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.466/1.733/3.000/1.267 ms') 2024-09-18 03:11:01,768 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37505242-32920512 passed 2024-09-18 03:11:01,932 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 03:11:01,933 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37505242-32920512, IP 38.59.61.131, Port 22 2024-09-18 03:11:02,084 - DEBUG - VM ctest-TestBasicPolicy-37505242-32920512 is ready for SSH connections 2024-09-18 03:11:02,084 - INFO - Waiting for VM ctest-TestBasicPolicy-37505242-93553762 to be up.. 2024-09-18 03:11:02,164 - DEBUG - VM is in ACTIVE state now 2024-09-18 03:11:02,164 - INFO - VM name : ctest-TestBasicPolicy-37505242-93553762 2024-09-18 03:11:02,241 - DEBUG - VM ctest-TestBasicPolicy-37505242-93553762 ID is e05d7b76-6c08-46d4-b9df-b32e00e7aef9 2024-09-18 03:11:02,241 - DEBUG - VM ctest-TestBasicPolicy-37505242-93553762 launched on Node cn-jenkins-deploy-platform-ansible-os-1982-1 2024-09-18 03:11:02,328 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/e05d7b76-6c08-46d4-b9df-b32e00e7aef9 2024-09-18 03:11:02,338 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/a18530a8-4f7f-40ef-bf57-feca8cf1dcf3 2024-09-18 03:11:03,581 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.585 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.585/1.707/2.829/1.122 ms') 2024-09-18 03:11:03,582 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-37505242-93553762 passed 2024-09-18 03:11:03,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 03:11:03,737 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37505242-93553762, IP 21.8.9.67, Port 22 2024-09-18 03:11:03,892 - DEBUG - VM ctest-TestBasicPolicy-37505242-93553762 is ready for SSH connections 2024-09-18 03:11:03,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 03:11:03,892 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 21.8.9.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-18 03:11:03,892 - DEBUG - ping -s 56 -c 3 -W 1 21.8.9.67 2024-09-18 03:11:07,884 - DEBUG - PING 21.8.9.67 (21.8.9.67): 56 data bytes 64 bytes from 21.8.9.67: seq=0 ttl=63 time=3.594 ms 64 bytes from 21.8.9.67: seq=1 ttl=63 time=0.869 ms 64 bytes from 21.8.9.67: seq=2 ttl=63 time=0.948 ms --- 21.8.9.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.869/1.803/3.594 ms 2024-09-18 03:11:07,884 - INFO - Ping to IP 21.8.9.67 from VM ctest-TestBasicPolicy-37505242-32920512 passed 2024-09-18 03:11:08,080 - DEBUG - Policy Update Response {"network-policy": {"uuid": "83783a6e-79cd-4953-8306-dee05827d8c5", "href": "http://10.0.0.29:8082/network-policy/83783a6e-79cd-4953-8306-dee05827d8c5"}} 2024-09-18 03:11:08,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 03:11:08,080 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 21.8.9.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-18 03:11:08,080 - DEBUG - ping -s 56 -c 3 -W 1 21.8.9.67 2024-09-18 03:11:11,290 - DEBUG - PING 21.8.9.67 (21.8.9.67): 56 data bytes 64 bytes from 21.8.9.67: seq=0 ttl=63 time=1.853 ms --- 21.8.9.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.853/1.853/1.853 ms 2024-09-18 03:11:11,290 - WARNING - Ping to IP 21.8.9.67 from VM ctest-TestBasicPolicy-37505242-32920512 failed 2024-09-18 03:11:11,290 - INFO - Deleting VM ctest-TestBasicPolicy-37505242-93553762 2024-09-18 03:11:11,367 - INFO - Deleting VM ctest-TestBasicPolicy-37505242-32920512 2024-09-18 03:11:11,802 - INFO - Deleted policy ctest-policy-allow-all-99557835 2024-09-18 03:11:11,802 - INFO - Deleting VN ctest-vn-32434706 2024-09-18 03:11:11,856 - DEBUG - VN dec955f0-f51c-41e0-9e16-5e77994926ed still in use: Unable to complete operation on network dec955f0-f51c-41e0-9e16-5e77994926ed. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ac03a8a6-62de-4e92-b2cb-bebc97ba6ece'] 2024-09-18 03:11:11,856 - WARNING - Deleting VN ctest-vn-32434706 failed..Will retry 2024-09-18 03:11:13,968 - DEBUG - Response for deleting network () 2024-09-18 03:11:13,968 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/40eafdb6-5d53-4435-a5e5-f2fa5a1d57bb 2024-09-18 03:11:13,974 - DEBUG - Response Code: 404 2024-09-18 03:11:13,974 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-18 03:11:13,979 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8 2024-09-18 03:11:14,039 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a 2024-09-18 03:11:14,118 - INFO - Validated that VN ctest-vn-32434706 is not found in API Server 2024-09-18 03:11:14,129 - DEBUG - VN ctest-vn-32434706 is not present in Agent 10.0.0.29 2024-09-18 03:11:14,129 - INFO - Validated that VN ctest-vn-32434706 is not in any agent 2024-09-18 03:11:14,144 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32434706 info 2024-09-18 03:11:14,144 - INFO - Deleting VN ctest-vn-74145569 2024-09-18 03:11:14,247 - DEBUG - Response for deleting network () 2024-09-18 03:11:14,248 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c6c1c2fe-c3a6-4673-ab05-30099a141b02 2024-09-18 03:11:14,261 - DEBUG - Response Code: 404 2024-09-18 03:11:14,261 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-18 03:11:14,267 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe426c82-dc56-4682-a6bb-6ad9f458e6d8 2024-09-18 03:11:14,328 - DEBUG - Requesting: http://10.0.0.29:8082/project/93bacd45-5f5e-4812-a6da-7c09572e4e2a 2024-09-18 03:11:14,414 - INFO - Validated that VN ctest-vn-74145569 is not found in API Server 2024-09-18 03:11:14,430 - DEBUG - VN ctest-vn-74145569 is not present in Agent 10.0.0.29 2024-09-18 03:11:14,431 - INFO - Validated that VN ctest-vn-74145569 is not in any agent 2024-09-18 03:11:14,450 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74145569 info 2024-09-18 03:11:14,708 - DEBUG - No XMPP flaps were noticed during the test
2024-09-18 03:11:14,708 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-18 03:11:14,708 - INFO - -------------------------------------------------------------------------------- 2024-09-18 03:11:15,433 - INFO - Deleted project: ctest-TestBasicPolicy-37505242, ID : 93bacd45-5f5e-4812-a6da-7c09572e4e2a