2024-08-30 14:51:21,474 - INFO - Domain Default found not creating 2024-08-30 14:51:21,652 - INFO - Project ctest-TestBasicPolicy-63047437 not found, creating it 2024-08-30 14:51:22,176 - INFO - Created Project:ctest-TestBasicPolicy-63047437, ID : f189d990-03e2-427f-b7e3-7d1d7bf17cbd 2024-08-30 14:51:23,737 - INFO - ================================================================================ 2024-08-30 14:51:23,737 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-30 14:51:23,737 - 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-30 14:51:24,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.20': '0'}} with 2024-08-30 14:51:24,000 - INFO - Initial checks done. Running the testcase now 2024-08-30 14:51:24,000 - INFO - 2024-08-30 14:51:24,581 - DEBUG - Response for create_network : {'network': {'id': '4dad7c2a-8c05-4f8c-a661-e951cf36628c', 'name': 'ctest-vn-70050601', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-70050601'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:24,749 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0cbab5e-37cc-46a6-a39d-342e80cf55e9', 'name': '', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'network_id': '4dad7c2a-8c05-4f8c-a661-e951cf36628c', 'ip_version': 4, 'cidr': '58.174.118.128/26', 'allocation_pools': [{'start': '58.174.118.130', 'end': '58.174.118.190'}], 'gateway_ip': '58.174.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.174.118.130', 'tags': [], 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd'}} 2024-08-30 14:51:24,770 - INFO - Created VN ctest-vn-70050601 2024-08-30 14:51:24,824 - DEBUG - VN ctest-vn-70050601 UUID is 4dad7c2a-8c05-4f8c-a661-e951cf36628c 2024-08-30 14:51:25,240 - DEBUG - Response for create_network : {'network': {'id': 'e3b4a195-2b4d-4a2a-a999-8d5efbeadf63', 'name': 'ctest-vn-76424355', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-76424355'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:25,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '76ad1421-8754-4ac0-b2c4-38b3b771e5b0', 'name': '', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'network_id': 'e3b4a195-2b4d-4a2a-a999-8d5efbeadf63', 'ip_version': 4, 'cidr': '30.118.76.64/26', 'allocation_pools': [{'start': '30.118.76.66', 'end': '30.118.76.126'}], 'gateway_ip': '30.118.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.118.76.66', 'tags': [], 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd'}} 2024-08-30 14:51:25,500 - INFO - Created VN ctest-vn-76424355 2024-08-30 14:51:25,552 - DEBUG - VN ctest-vn-76424355 UUID is e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 2024-08-30 14:51:25,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601, 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-63047437:ctest-vn-76424355, 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-30 14:51:25,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4dad7c2a-8c05-4f8c-a661-e951cf36628c', 'name': 'ctest-vn-70050601', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0cbab5e-37cc-46a6-a39d-342e80cf55e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-70050601'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314']], 'subnet_ipam': [{'subnet_cidr': '58.174.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:26,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3b4a195-2b4d-4a2a-a999-8d5efbeadf63', 'name': 'ctest-vn-76424355', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76ad1421-8754-4ac0-b2c4-38b3b771e5b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-76424355'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314']], 'subnet_ipam': [{'subnet_cidr': '30.118.76.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:26,528 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-30 14:51:26,858 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-30 14:51:26,920 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788 2024-08-30 14:51:26,938 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd 2024-08-30 14:51:27,037 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c 2024-08-30 14:51:27,053 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c 2024-08-30 14:51:27,062 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50 2024-08-30 14:51:27,072 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50 2024-08-30 14:51:27,080 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/40ce31fd-90f4-4324-b8a8-0c8d8927967c 2024-08-30 14:51:27,089 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 14:51:27,089 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c 2024-08-30 14:51:27,098 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50 2024-08-30 14:51:27,111 - INFO - Verified VN network id 9 for VN 4dad7c2a-8c05-4f8c-a661-e951cf36628c 2024-08-30 14:51:27,111 - INFO - Verifications in API Server for VN ctest-vn-70050601 passed 2024-08-30 14:51:27,112 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c 2024-08-30 14:51:27,122 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50 2024-08-30 14:51:27,132 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50 2024-08-30 14:51:27,139 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/40ce31fd-90f4-4324-b8a8-0c8d8927967c 2024-08-30 14:51:27,154 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63047437', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5597266434071023500', 'uuid-lslong': '11989120220615041676'}, 'enable': 'true', 'created': '2024-08-30T14:51:24', 'last-modified': '2024-08-30T14:51:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.201718'} 2024-08-30 14:51:27,163 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 14:51:27,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70050601 passed 2024-08-30 14:51:27,163 - DEBUG - ====Verifying policy data for ctest-vn-70050601 in API_Server ====== 2024-08-30 14:51:27,163 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-30 14:51:27,170 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788 2024-08-30 14:51:27,183 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd 2024-08-30 14:51:27,258 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c 2024-08-30 14:51:27,268 - DEBUG - ==>Verifying data for policy with id: 169fbf3b-47db-47f3-a8c6-0c8bccd5d6a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314'] 2024-08-30 14:51:27,268 - INFO - VN ctest-vn-70050601 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 14:51:27,268 - DEBUG - Verifying the vn in opserver 2024-08-30 14:51:27,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601 virtual network link through opserver 10.0.0.23 2024-08-30 14:51:27,269 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-30 14:51:27,570 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-30 14:51:27,652 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601?flat'} 2024-08-30 14:51:27,652 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601 is found in opserver 2024-08-30 14:51:27,666 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 14:51:27,674 - DEBUG - VRF ids for VN ctest-vn-70050601: {} 2024-08-30 14:51:27,675 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-30 14:51:27,683 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788 2024-08-30 14:51:27,698 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd 2024-08-30 14:51:27,769 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 2024-08-30 14:51:27,781 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 2024-08-30 14:51:27,789 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d 2024-08-30 14:51:27,797 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d 2024-08-30 14:51:27,805 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0c939a3d-aac1-4b9a-b6e6-eee06c357205 2024-08-30 14:51:27,813 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 14:51:27,813 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 2024-08-30 14:51:27,823 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d 2024-08-30 14:51:27,841 - INFO - Verified VN network id 10 for VN e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 2024-08-30 14:51:27,841 - INFO - Verifications in API Server for VN ctest-vn-76424355 passed 2024-08-30 14:51:27,841 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 2024-08-30 14:51:27,852 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d 2024-08-30 14:51:27,859 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d 2024-08-30 14:51:27,867 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0c939a3d-aac1-4b9a-b6e6-eee06c357205 2024-08-30 14:51:27,882 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63047437', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16407917004466244138', 'uuid-lslong': '12220954502939467619'}, 'enable': 'true', 'created': '2024-08-30T14:51:25', 'last-modified': '2024-08-30T14:51:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.603421'} 2024-08-30 14:51:27,889 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 14:51:27,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76424355 passed 2024-08-30 14:51:27,889 - DEBUG - ====Verifying policy data for ctest-vn-76424355 in API_Server ====== 2024-08-30 14:51:27,889 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-30 14:51:27,896 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788 2024-08-30 14:51:27,908 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd 2024-08-30 14:51:27,983 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 2024-08-30 14:51:27,991 - DEBUG - ==>Verifying data for policy with id: 169fbf3b-47db-47f3-a8c6-0c8bccd5d6a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314'] 2024-08-30 14:51:27,991 - INFO - VN ctest-vn-76424355 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 14:51:27,992 - DEBUG - Verifying the vn in opserver 2024-08-30 14:51:27,992 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355 virtual network link through opserver 10.0.0.23 2024-08-30 14:51:27,992 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-30 14:51:28,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355?flat'} 2024-08-30 14:51:28,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355 is found in opserver 2024-08-30 14:51:28,017 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 14:51:28,024 - DEBUG - VRF ids for VN ctest-vn-76424355: {} 2024-08-30 14:51:28,085 - DEBUG - Services list from nova: [, , ] 2024-08-30 14:51:29,147 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1823-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1823-1) 2024-08-30 14:51:30,515 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1823-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1823-1) 2024-08-30 14:51:30,515 - INFO - Waiting for VM ctest-TestBasicPolicy-63047437-04253281 to be up.. 2024-08-30 14:51:30,621 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-30 14:51:35,710 - DEBUG - VM is in ACTIVE state now 2024-08-30 14:51:35,710 - INFO - VM name : ctest-TestBasicPolicy-63047437-04253281 2024-08-30 14:51:35,801 - DEBUG - VM ctest-TestBasicPolicy-63047437-04253281 ID is c8f0b2b2-c8ad-4796-be36-ef203cbb8513 2024-08-30 14:51:35,824 - DEBUG - VM ctest-TestBasicPolicy-63047437-04253281 launched on Node cn-jenkins-deploy-platform-ansible-os-1823-1 2024-08-30 14:51:35,916 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/c8f0b2b2-c8ad-4796-be36-ef203cbb8513 2024-08-30 14:51:35,925 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/abeeea5c-310d-4997-9195-5ae6aef35916 2024-08-30 14:51:39,200 - 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-30 14:51:39,200 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63047437-04253281 failed! 2024-08-30 14:51:39,256 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601 is 58.174.118.129 and allocation pool is NOT set 2024-08-30 14:51:41,321 - 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=6.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.349 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.349/3.592/6.835/3.243 ms') 2024-08-30 14:51:41,321 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63047437-04253281 passed 2024-08-30 14:51:41,472 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:41,472 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63047437-04253281, IP 58.174.118.131, Port 22 2024-08-30 14:51:41,638 - DEBUG - VM ctest-TestBasicPolicy-63047437-04253281 is ready for SSH connections 2024-08-30 14:51:41,638 - INFO - Waiting for VM ctest-TestBasicPolicy-63047437-52853989 to be up.. 2024-08-30 14:51:41,747 - DEBUG - VM is in ACTIVE state now 2024-08-30 14:51:41,747 - INFO - VM name : ctest-TestBasicPolicy-63047437-52853989 2024-08-30 14:51:41,886 - DEBUG - VM ctest-TestBasicPolicy-63047437-52853989 ID is 3fb03b18-175f-4188-8593-98ffa158a60a 2024-08-30 14:51:41,886 - DEBUG - VM ctest-TestBasicPolicy-63047437-52853989 launched on Node cn-jenkins-deploy-platform-ansible-os-1823-1 2024-08-30 14:51:41,990 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/3fb03b18-175f-4188-8593-98ffa158a60a 2024-08-30 14:51:41,999 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/5afb6112-b2fa-483c-908d-4c3b80a3b155 2024-08-30 14:51:43,245 - 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.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.868 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 = 0.868/2.458/4.048/1.590 ms') 2024-08-30 14:51:43,245 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-63047437-52853989 passed 2024-08-30 14:51:43,396 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:43,397 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63047437-52853989, IP 30.118.76.67, Port 22 2024-08-30 14:51:43,552 - DEBUG - VM ctest-TestBasicPolicy-63047437-52853989 is ready for SSH connections 2024-08-30 14:51:43,552 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:43,553 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.118.76.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-30 14:51:43,553 - DEBUG - ping -s 56 -c 3 -W 1 30.118.76.67 2024-08-30 14:51:47,630 - DEBUG - PING 30.118.76.67 (30.118.76.67): 56 data bytes 64 bytes from 30.118.76.67: seq=0 ttl=63 time=3.423 ms 64 bytes from 30.118.76.67: seq=1 ttl=63 time=0.829 ms 64 bytes from 30.118.76.67: seq=2 ttl=63 time=0.822 ms --- 30.118.76.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.822/1.691/3.423 ms 2024-08-30 14:51:47,630 - INFO - Ping to IP 30.118.76.67 from VM ctest-TestBasicPolicy-63047437-04253281 passed 2024-08-30 14:51:47,812 - DEBUG - Policy Update Response {"network-policy": {"uuid": "169fbf3b-47db-47f3-a8c6-0c8bccd5d6a4", "href": "http://10.0.0.23:8082/network-policy/169fbf3b-47db-47f3-a8c6-0c8bccd5d6a4"}} 2024-08-30 14:51:47,812 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:47,812 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.118.76.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-30 14:51:47,812 - DEBUG - ping -s 56 -c 3 -W 1 30.118.76.67 2024-08-30 14:51:51,017 - DEBUG - PING 30.118.76.67 (30.118.76.67): 56 data bytes 64 bytes from 30.118.76.67: seq=0 ttl=63 time=1.378 ms --- 30.118.76.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.378/1.378/1.378 ms 2024-08-30 14:51:51,017 - WARNING - Ping to IP 30.118.76.67 from VM ctest-TestBasicPolicy-63047437-04253281 failed 2024-08-30 14:51:51,017 - INFO - Deleting VM ctest-TestBasicPolicy-63047437-52853989 2024-08-30 14:51:51,097 - INFO - Deleting VM ctest-TestBasicPolicy-63047437-04253281 2024-08-30 14:51:51,531 - INFO - Deleted policy ctest-policy-allow-all-58122314 2024-08-30 14:51:51,532 - INFO - Deleting VN ctest-vn-76424355 2024-08-30 14:51:51,574 - DEBUG - VN e3b4a195-2b4d-4a2a-a999-8d5efbeadf63 still in use: Unable to complete operation on network e3b4a195-2b4d-4a2a-a999-8d5efbeadf63. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1bc25722-7f6e-4726-8f0e-82a90d736f12'] 2024-08-30 14:51:51,574 - WARNING - Deleting VN ctest-vn-76424355 failed..Will retry 2024-08-30 14:51:53,702 - DEBUG - Response for deleting network () 2024-08-30 14:51:53,702 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d 2024-08-30 14:51:53,715 - DEBUG - Response Code: 404 2024-08-30 14:51:53,715 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-30 14:51:53,724 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788 2024-08-30 14:51:53,743 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd 2024-08-30 14:51:53,824 - INFO - Validated that VN ctest-vn-76424355 is not found in API Server 2024-08-30 14:51:53,841 - DEBUG - VN ctest-vn-76424355 is not present in Agent 10.0.0.23 2024-08-30 14:51:53,841 - INFO - Validated that VN ctest-vn-76424355 is not in any agent 2024-08-30 14:51:53,860 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76424355 info 2024-08-30 14:51:53,860 - INFO - Deleting VN ctest-vn-70050601 2024-08-30 14:51:53,980 - DEBUG - Response for deleting network () 2024-08-30 14:51:53,980 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50 2024-08-30 14:51:53,988 - DEBUG - Response Code: 404 2024-08-30 14:51:53,989 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-30 14:51:53,996 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788 2024-08-30 14:51:54,058 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd 2024-08-30 14:51:54,130 - INFO - Validated that VN ctest-vn-70050601 is not found in API Server 2024-08-30 14:51:54,142 - DEBUG - VN ctest-vn-70050601 is not present in Agent 10.0.0.23 2024-08-30 14:51:54,142 - INFO - Validated that VN ctest-vn-70050601 is not in any agent 2024-08-30 14:51:54,160 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70050601 info 2024-08-30 14:51:54,415 - DEBUG - No XMPP flaps were noticed during the test
2024-08-30 14:51:54,415 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-08-30 14:51:54,415 - INFO - -------------------------------------------------------------------------------- 2024-08-30 14:51:55,131 - INFO - Deleted project: ctest-TestBasicPolicy-63047437, ID : f189d990-03e2-427f-b7e3-7d1d7bf17cbd