2024-11-07 02:33:56,023 - INFO - Domain Default found not creating 2024-11-07 02:33:56,184 - INFO - Project ctest-TestBasicPolicy-09122141 not found, creating it 2024-11-07 02:33:56,682 - INFO - Created Project:ctest-TestBasicPolicy-09122141, ID : 2c52c386-9b1a-4a1e-96ac-99b456dd7aa6 2024-11-07 02:33:58,361 - INFO - ================================================================================ 2024-11-07 02:33:58,361 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 02:33:58,361 - 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-07 02:33:58,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.11': '0'}} with 2024-11-07 02:33:58,617 - INFO - Initial checks done. Running the testcase now 2024-11-07 02:33:58,617 - INFO - 2024-11-07 02:33:59,225 - DEBUG - Response for create_network : {'network': {'id': '5982f5de-64f6-4db6-9883-fd2a72e46bf4', 'name': 'ctest-vn-60251902', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-60251902'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:33:59,412 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4aa339e-6c46-4b73-ad05-d7ed23d69634', 'name': '', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'network_id': '5982f5de-64f6-4db6-9883-fd2a72e46bf4', 'ip_version': 4, 'cidr': '30.191.57.192/26', 'allocation_pools': [{'start': '30.191.57.194', 'end': '30.191.57.254'}], 'gateway_ip': '30.191.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.191.57.194', 'tags': [], 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6'}} 2024-11-07 02:33:59,434 - INFO - Created VN ctest-vn-60251902 2024-11-07 02:33:59,486 - DEBUG - VN ctest-vn-60251902 UUID is 5982f5de-64f6-4db6-9883-fd2a72e46bf4 2024-11-07 02:33:59,792 - DEBUG - Response for create_network : {'network': {'id': 'f61309e7-9847-4fd1-be38-81ef819450b8', 'name': 'ctest-vn-52240831', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-52240831'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:33:59,962 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7e54de1-0dc9-45a9-8a98-8ee9335fe124', 'name': '', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'network_id': 'f61309e7-9847-4fd1-be38-81ef819450b8', 'ip_version': 4, 'cidr': '98.71.140.64/26', 'allocation_pools': [{'start': '98.71.140.66', 'end': '98.71.140.126'}], 'gateway_ip': '98.71.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.71.140.66', 'tags': [], 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6'}} 2024-11-07 02:33:59,983 - INFO - Created VN ctest-vn-52240831 2024-11-07 02:34:00,034 - DEBUG - VN ctest-vn-52240831 UUID is f61309e7-9847-4fd1-be38-81ef819450b8 2024-11-07 02:34:00,158 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902, 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-09122141:ctest-vn-52240831, 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-07 02:34:00,465 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5982f5de-64f6-4db6-9883-fd2a72e46bf4', 'name': 'ctest-vn-60251902', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4aa339e-6c46-4b73-ad05-d7ed23d69634'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-60251902'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666']], 'subnet_ipam': [{'subnet_cidr': '30.191.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:34:00,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f61309e7-9847-4fd1-be38-81ef819450b8', 'name': 'ctest-vn-52240831', 'tenant_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'project_id': '2c52c3869b1a4a1e96ac99b456dd7aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7e54de1-0dc9-45a9-8a98-8ee9335fe124'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-vn-52240831'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666']], 'subnet_ipam': [{'subnet_cidr': '98.71.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:34:00,858 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-07 02:34:01,197 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-07 02:34:01,231 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb 2024-11-07 02:34:01,246 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6 2024-11-07 02:34:01,325 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4 2024-11-07 02:34:01,336 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4 2024-11-07 02:34:01,345 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc 2024-11-07 02:34:01,352 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc 2024-11-07 02:34:01,360 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4ab46ee7-ddaa-4212-853b-ac430893d3c9 2024-11-07 02:34:01,366 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 02:34:01,366 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4 2024-11-07 02:34:01,374 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc 2024-11-07 02:34:01,385 - INFO - Verified VN network id 8 for VN 5982f5de-64f6-4db6-9883-fd2a72e46bf4 2024-11-07 02:34:01,385 - INFO - Verifications in API Server for VN ctest-vn-60251902 passed 2024-11-07 02:34:01,385 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4 2024-11-07 02:34:01,394 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc 2024-11-07 02:34:01,400 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc 2024-11-07 02:34:01,407 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4ab46ee7-ddaa-4212-853b-ac430893d3c9 2024-11-07 02:34:01,420 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09122141', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6449987951873379766', 'uuid-lslong': '10989905874472168436'}, 'enable': 'true', 'created': '2024-11-07T02:33:59', 'last-modified': '2024-11-07T02:34:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977451'} 2024-11-07 02:34:01,427 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 02:34:01,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60251902 passed 2024-11-07 02:34:01,428 - DEBUG - ====Verifying policy data for ctest-vn-60251902 in API_Server ====== 2024-11-07 02:34:01,428 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-07 02:34:01,435 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb 2024-11-07 02:34:01,448 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6 2024-11-07 02:34:01,520 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5982f5de-64f6-4db6-9883-fd2a72e46bf4 2024-11-07 02:34:01,529 - DEBUG - ==>Verifying data for policy with id: c1d664f9-a38e-4952-a01f-a2f81fbce64c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666'] 2024-11-07 02:34:01,529 - INFO - VN ctest-vn-60251902 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 02:34:01,529 - DEBUG - Verifying the vn in opserver 2024-11-07 02:34:01,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902 virtual network link through opserver 10.0.0.40 2024-11-07 02:34:01,529 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-11-07 02:34:01,864 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-11-07 02:34:01,925 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902?flat'} 2024-11-07 02:34:01,925 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902 is found in opserver 2024-11-07 02:34:01,938 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 02:34:01,944 - DEBUG - VRF ids for VN ctest-vn-60251902: {} 2024-11-07 02:34:01,944 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-07 02:34:01,950 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb 2024-11-07 02:34:01,966 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6 2024-11-07 02:34:02,039 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8 2024-11-07 02:34:02,051 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8 2024-11-07 02:34:02,059 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e 2024-11-07 02:34:02,066 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e 2024-11-07 02:34:02,073 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a8bb2d66-28ae-4c98-b894-8736332a1908 2024-11-07 02:34:02,080 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 02:34:02,080 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8 2024-11-07 02:34:02,088 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e 2024-11-07 02:34:02,101 - INFO - Verified VN network id 9 for VN f61309e7-9847-4fd1-be38-81ef819450b8 2024-11-07 02:34:02,101 - INFO - Verifications in API Server for VN ctest-vn-52240831 passed 2024-11-07 02:34:02,101 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8 2024-11-07 02:34:02,110 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e 2024-11-07 02:34:02,117 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e 2024-11-07 02:34:02,125 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a8bb2d66-28ae-4c98-b894-8736332a1908 2024-11-07 02:34:02,139 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09122141', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17731527048184680401', 'uuid-lslong': '13706848331573252280'}, 'enable': 'true', 'created': '2024-11-07T02:33:59', 'last-modified': '2024-11-07T02:34:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453580'} 2024-11-07 02:34:02,146 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 02:34:02,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52240831 passed 2024-11-07 02:34:02,147 - DEBUG - ====Verifying policy data for ctest-vn-52240831 in API_Server ====== 2024-11-07 02:34:02,147 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-07 02:34:02,154 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb 2024-11-07 02:34:02,168 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6 2024-11-07 02:34:02,242 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f61309e7-9847-4fd1-be38-81ef819450b8 2024-11-07 02:34:02,251 - DEBUG - ==>Verifying data for policy with id: c1d664f9-a38e-4952-a01f-a2f81fbce64c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09122141', 'ctest-policy-allow-all-76491666'] 2024-11-07 02:34:02,251 - INFO - VN ctest-vn-52240831 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 02:34:02,251 - DEBUG - Verifying the vn in opserver 2024-11-07 02:34:02,251 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831 virtual network link through opserver 10.0.0.40 2024-11-07 02:34:02,251 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-11-07 02:34:02,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831?flat'} 2024-11-07 02:34:02,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-52240831 is found in opserver 2024-11-07 02:34:02,275 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 02:34:02,280 - DEBUG - VRF ids for VN ctest-vn-52240831: {} 2024-11-07 02:34:02,338 - DEBUG - Services list from nova: [, , ] 2024-11-07 02:34:03,453 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2209-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2209-1) 2024-11-07 02:34:04,874 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2209-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2209-1) 2024-11-07 02:34:04,874 - INFO - Waiting for VM ctest-TestBasicPolicy-09122141-38362749 to be up.. 2024-11-07 02:34:04,968 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 02:34:10,068 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:34:10,068 - INFO - VM name : ctest-TestBasicPolicy-09122141-38362749 2024-11-07 02:34:10,159 - DEBUG - VM ctest-TestBasicPolicy-09122141-38362749 ID is e76638b8-e1f6-4782-9744-25b0fe3c1ff9 2024-11-07 02:34:10,180 - DEBUG - VM ctest-TestBasicPolicy-09122141-38362749 launched on Node cn-jenkins-deploy-platform-ansible-os-2209-1 2024-11-07 02:34:10,269 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/e76638b8-e1f6-4782-9744-25b0fe3c1ff9 2024-11-07 02:34:10,280 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/74236b9f-b1f4-46a3-be99-af6322cd6051 2024-11-07 02:34:13,539 - 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 1006ms') 2024-11-07 02:34:13,539 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09122141-38362749 failed! 2024-11-07 02:34:13,594 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09122141:ctest-vn-60251902 is 30.191.57.193 and allocation pool is NOT set 2024-11-07 02:34:15,660 - 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=8.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.08 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 = 1.081/4.724/8.367/3.643 ms') 2024-11-07 02:34:15,661 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09122141-38362749 passed 2024-11-07 02:34:15,814 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:34:15,815 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09122141-38362749, IP 30.191.57.195, Port 22 2024-11-07 02:34:15,970 - DEBUG - VM ctest-TestBasicPolicy-09122141-38362749 is ready for SSH connections 2024-11-07 02:34:15,970 - INFO - Waiting for VM ctest-TestBasicPolicy-09122141-97214294 to be up.. 2024-11-07 02:34:16,059 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:34:16,059 - INFO - VM name : ctest-TestBasicPolicy-09122141-97214294 2024-11-07 02:34:16,148 - DEBUG - VM ctest-TestBasicPolicy-09122141-97214294 ID is f5bb084d-645f-453d-b1ff-ad611ac43ab5 2024-11-07 02:34:16,148 - DEBUG - VM ctest-TestBasicPolicy-09122141-97214294 launched on Node cn-jenkins-deploy-platform-ansible-os-2209-1 2024-11-07 02:34:16,246 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/f5bb084d-645f-453d-b1ff-ad611ac43ab5 2024-11-07 02:34:16,260 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/42aa934c-7822-4732-8e1c-519c80cd4e8f 2024-11-07 02:34:17,518 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.03 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 = 1.028/2.528/4.029/1.500 ms') 2024-11-07 02:34:17,518 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09122141-97214294 passed 2024-11-07 02:34:17,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:34:17,675 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09122141-97214294, IP 98.71.140.67, Port 22 2024-11-07 02:34:17,830 - DEBUG - VM ctest-TestBasicPolicy-09122141-97214294 is ready for SSH connections 2024-11-07 02:34:17,830 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:34:17,830 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.71.140.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-11-07 02:34:17,830 - DEBUG - ping -s 56 -c 3 -W 1 98.71.140.67 2024-11-07 02:34:21,923 - DEBUG - PING 98.71.140.67 (98.71.140.67): 56 data bytes 64 bytes from 98.71.140.67: seq=0 ttl=63 time=4.267 ms 64 bytes from 98.71.140.67: seq=1 ttl=63 time=0.940 ms 64 bytes from 98.71.140.67: seq=2 ttl=63 time=0.864 ms --- 98.71.140.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.864/2.023/4.267 ms 2024-11-07 02:34:21,923 - INFO - Ping to IP 98.71.140.67 from VM ctest-TestBasicPolicy-09122141-38362749 passed 2024-11-07 02:34:22,106 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c1d664f9-a38e-4952-a01f-a2f81fbce64c", "href": "http://10.0.0.40:8082/network-policy/c1d664f9-a38e-4952-a01f-a2f81fbce64c"}} 2024-11-07 02:34:22,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:34:22,106 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.71.140.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-11-07 02:34:22,107 - DEBUG - ping -s 56 -c 3 -W 1 98.71.140.67 2024-11-07 02:34:25,342 - DEBUG - PING 98.71.140.67 (98.71.140.67): 56 data bytes 64 bytes from 98.71.140.67: seq=0 ttl=63 time=1.659 ms --- 98.71.140.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.659/1.659/1.659 ms 2024-11-07 02:34:25,342 - WARNING - Ping to IP 98.71.140.67 from VM ctest-TestBasicPolicy-09122141-38362749 failed 2024-11-07 02:34:25,342 - INFO - Deleting VM ctest-TestBasicPolicy-09122141-97214294 2024-11-07 02:34:25,409 - INFO - Deleting VM ctest-TestBasicPolicy-09122141-38362749 2024-11-07 02:34:25,824 - INFO - Deleted policy ctest-policy-allow-all-76491666 2024-11-07 02:34:25,824 - INFO - Deleting VN ctest-vn-52240831 2024-11-07 02:34:25,865 - DEBUG - VN f61309e7-9847-4fd1-be38-81ef819450b8 still in use: Unable to complete operation on network f61309e7-9847-4fd1-be38-81ef819450b8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-40f1b135-c52b-496a-9c97-308d9967429d'] 2024-11-07 02:34:25,866 - WARNING - Deleting VN ctest-vn-52240831 failed..Will retry 2024-11-07 02:34:27,975 - DEBUG - Response for deleting network () 2024-11-07 02:34:27,975 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/5ee3b471-db86-45e1-9570-a669b6cb499e 2024-11-07 02:34:27,981 - DEBUG - Response Code: 404 2024-11-07 02:34:27,982 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-07 02:34:27,995 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb 2024-11-07 02:34:28,052 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6 2024-11-07 02:34:28,123 - INFO - Validated that VN ctest-vn-52240831 is not found in API Server 2024-11-07 02:34:28,136 - DEBUG - VN ctest-vn-52240831 is not present in Agent 10.0.0.40 2024-11-07 02:34:28,136 - INFO - Validated that VN ctest-vn-52240831 is not in any agent 2024-11-07 02:34:28,152 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52240831 info 2024-11-07 02:34:28,152 - INFO - Deleting VN ctest-vn-60251902 2024-11-07 02:34:28,258 - DEBUG - Response for deleting network () 2024-11-07 02:34:28,258 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/cf7f28d5-f6f4-4683-82c2-cd59ccd4cbdc 2024-11-07 02:34:28,264 - DEBUG - Response Code: 404 2024-11-07 02:34:28,264 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-11-07 02:34:28,276 - DEBUG - Requesting: http://10.0.0.40:8082/domain/3e6f894c-20ca-4ba3-93d9-ce2cc92c15eb 2024-11-07 02:34:28,333 - DEBUG - Requesting: http://10.0.0.40:8082/project/2c52c386-9b1a-4a1e-96ac-99b456dd7aa6 2024-11-07 02:34:28,402 - INFO - Validated that VN ctest-vn-60251902 is not found in API Server 2024-11-07 02:34:28,415 - DEBUG - VN ctest-vn-60251902 is not present in Agent 10.0.0.40 2024-11-07 02:34:28,415 - INFO - Validated that VN ctest-vn-60251902 is not in any agent 2024-11-07 02:34:28,432 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60251902 info 2024-11-07 02:34:28,689 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 02:34:28,690 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-07 02:34:28,690 - INFO - -------------------------------------------------------------------------------- 2024-11-07 02:34:29,422 - INFO - Deleted project: ctest-TestBasicPolicy-09122141, ID : 2c52c386-9b1a-4a1e-96ac-99b456dd7aa6