2024-08-22 02:37:53,501 - INFO - Domain Default found not creating 2024-08-22 02:37:53,662 - INFO - Project ctest-TestBasicPolicy-66881351 not found, creating it 2024-08-22 02:37:55,717 - INFO - Created Project:ctest-TestBasicPolicy-66881351, ID : 8d5f1a4b-91b8-4fb8-87aa-28621bc57b27 2024-08-22 02:37:57,202 - INFO - ================================================================================ 2024-08-22 02:37:57,202 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-22 02:37:57,202 - 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-22 02:37:57,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.29': '0'}} with 2024-08-22 02:37:57,464 - INFO - Initial checks done. Running the testcase now 2024-08-22 02:37:57,465 - INFO - 2024-08-22 02:37:58,036 - DEBUG - Response for create_network : {'network': {'id': '88523948-8b01-4bad-a625-61217f63cb47', 'name': 'ctest-vn-55100746', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-55100746'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 02:37:58,208 - DEBUG - Response for create_subnet : {'subnet': {'id': '50eaff16-a844-4dbf-94d4-bb8f1085bf53', 'name': '', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'network_id': '88523948-8b01-4bad-a625-61217f63cb47', 'ip_version': 4, 'cidr': '32.109.58.192/26', 'allocation_pools': [{'start': '32.109.58.194', 'end': '32.109.58.254'}], 'gateway_ip': '32.109.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.109.58.194', 'tags': [], 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27'}} 2024-08-22 02:37:58,227 - INFO - Created VN ctest-vn-55100746 2024-08-22 02:37:58,280 - DEBUG - VN ctest-vn-55100746 UUID is 88523948-8b01-4bad-a625-61217f63cb47 2024-08-22 02:37:58,564 - DEBUG - Response for create_network : {'network': {'id': 'fa33819e-105d-428a-baa3-0c9763256ca8', 'name': 'ctest-vn-70032995', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-70032995'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 02:37:58,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '64f2efc7-c861-41cd-80e4-7cc51a119c84', 'name': '', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'network_id': 'fa33819e-105d-428a-baa3-0c9763256ca8', 'ip_version': 4, 'cidr': '210.192.19.128/26', 'allocation_pools': [{'start': '210.192.19.130', 'end': '210.192.19.190'}], 'gateway_ip': '210.192.19.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.192.19.130', 'tags': [], 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27'}} 2024-08-22 02:37:58,749 - INFO - Created VN ctest-vn-70032995 2024-08-22 02:37:58,800 - DEBUG - VN ctest-vn-70032995 UUID is fa33819e-105d-428a-baa3-0c9763256ca8 2024-08-22 02:37:58,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746, 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-66881351:ctest-vn-70032995, 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-22 02:37:59,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88523948-8b01-4bad-a625-61217f63cb47', 'name': 'ctest-vn-55100746', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50eaff16-a844-4dbf-94d4-bb8f1085bf53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-55100746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139']], 'subnet_ipam': [{'subnet_cidr': '32.109.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-22 02:37:59,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa33819e-105d-428a-baa3-0c9763256ca8', 'name': 'ctest-vn-70032995', 'tenant_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'project_id': '8d5f1a4b91b84fb887aa28621bc57b27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64f2efc7-c861-41cd-80e4-7cc51a119c84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-vn-70032995'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139']], 'subnet_ipam': [{'subnet_cidr': '210.192.19.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-22 02:37:59,588 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-22 02:37:59,885 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-22 02:37:59,917 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1 2024-08-22 02:37:59,931 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27 2024-08-22 02:38:00,004 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47 2024-08-22 02:38:00,018 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47 2024-08-22 02:38:00,028 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92 2024-08-22 02:38:00,036 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92 2024-08-22 02:38:00,044 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/776a855d-8851-4d88-afb3-289b1380fa79 2024-08-22 02:38:00,051 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-22 02:38:00,051 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47 2024-08-22 02:38:00,058 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92 2024-08-22 02:38:00,071 - INFO - Verified VN network id 8 for VN 88523948-8b01-4bad-a625-61217f63cb47 2024-08-22 02:38:00,071 - INFO - Verifications in API Server for VN ctest-vn-55100746 passed 2024-08-22 02:38:00,071 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47 2024-08-22 02:38:00,079 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92 2024-08-22 02:38:00,085 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92 2024-08-22 02:38:00,092 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/776a855d-8851-4d88-afb3-289b1380fa79 2024-08-22 02:38:00,104 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66881351', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9822976720981019565', 'uuid-lslong': '11972081980933393223'}, 'enable': 'true', 'created': '2024-08-22T02:37:58', 'last-modified': '2024-08-22T02:37:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926606'} 2024-08-22 02:38:00,110 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-22 02:38:00,110 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55100746 passed 2024-08-22 02:38:00,111 - DEBUG - ====Verifying policy data for ctest-vn-55100746 in API_Server ====== 2024-08-22 02:38:00,111 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-22 02:38:00,116 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1 2024-08-22 02:38:00,128 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27 2024-08-22 02:38:00,193 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/88523948-8b01-4bad-a625-61217f63cb47 2024-08-22 02:38:00,201 - DEBUG - ==>Verifying data for policy with id: 83d69c73-8ee4-4831-994a-72704c250dbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139'] 2024-08-22 02:38:00,202 - INFO - VN ctest-vn-55100746 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-22 02:38:00,202 - DEBUG - Verifying the vn in opserver 2024-08-22 02:38:00,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746 virtual network link through opserver 10.0.0.36 2024-08-22 02:38:00,202 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-22 02:38:00,496 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-22 02:38:00,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746?flat'} 2024-08-22 02:38:00,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746 is found in opserver 2024-08-22 02:38:00,571 - DEBUG - Do not have enough data to verify VN in agent 2024-08-22 02:38:00,576 - DEBUG - VRF ids for VN ctest-vn-55100746: {} 2024-08-22 02:38:00,576 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-22 02:38:00,582 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1 2024-08-22 02:38:00,593 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27 2024-08-22 02:38:00,664 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8 2024-08-22 02:38:00,675 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8 2024-08-22 02:38:00,683 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b 2024-08-22 02:38:00,689 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b 2024-08-22 02:38:00,696 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/4202c85f-530c-428c-a202-c5fb413e8791 2024-08-22 02:38:00,702 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-22 02:38:00,702 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8 2024-08-22 02:38:00,710 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b 2024-08-22 02:38:00,721 - INFO - Verified VN network id 9 for VN fa33819e-105d-428a-baa3-0c9763256ca8 2024-08-22 02:38:00,721 - INFO - Verifications in API Server for VN ctest-vn-70032995 passed 2024-08-22 02:38:00,721 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8 2024-08-22 02:38:00,730 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b 2024-08-22 02:38:00,737 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b 2024-08-22 02:38:00,743 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/4202c85f-530c-428c-a202-c5fb413e8791 2024-08-22 02:38:00,755 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66881351', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18028896249173590666', 'uuid-lslong': '13448606756601425064'}, 'enable': 'true', 'created': '2024-08-22T02:37:58', 'last-modified': '2024-08-22T02:37:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338201'} 2024-08-22 02:38:00,761 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-22 02:38:00,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70032995 passed 2024-08-22 02:38:00,761 - DEBUG - ====Verifying policy data for ctest-vn-70032995 in API_Server ====== 2024-08-22 02:38:00,761 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-22 02:38:00,767 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1 2024-08-22 02:38:00,778 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27 2024-08-22 02:38:00,844 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fa33819e-105d-428a-baa3-0c9763256ca8 2024-08-22 02:38:00,853 - DEBUG - ==>Verifying data for policy with id: 83d69c73-8ee4-4831-994a-72704c250dbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-66881351', 'ctest-policy-allow-all-81840139'] 2024-08-22 02:38:00,853 - INFO - VN ctest-vn-70032995 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-22 02:38:00,853 - DEBUG - Verifying the vn in opserver 2024-08-22 02:38:00,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995 virtual network link through opserver 10.0.0.36 2024-08-22 02:38:00,853 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-22 02:38:00,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995?flat'} 2024-08-22 02:38:00,864 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-70032995 is found in opserver 2024-08-22 02:38:00,875 - DEBUG - Do not have enough data to verify VN in agent 2024-08-22 02:38:00,881 - DEBUG - VRF ids for VN ctest-vn-70032995: {} 2024-08-22 02:38:00,939 - DEBUG - Services list from nova: [, , ] 2024-08-22 02:38:01,952 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1709-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1709-1) 2024-08-22 02:38:03,151 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1709-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1709-1) 2024-08-22 02:38:03,152 - INFO - Waiting for VM ctest-TestBasicPolicy-66881351-45620321 to be up.. 2024-08-22 02:38:03,240 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-22 02:38:08,319 - DEBUG - VM is in ACTIVE state now 2024-08-22 02:38:08,319 - INFO - VM name : ctest-TestBasicPolicy-66881351-45620321 2024-08-22 02:38:08,399 - DEBUG - VM ctest-TestBasicPolicy-66881351-45620321 ID is 8f5d9f11-7a97-421d-9362-f3dce4e92646 2024-08-22 02:38:08,423 - DEBUG - VM ctest-TestBasicPolicy-66881351-45620321 launched on Node cn-jenkins-deploy-platform-ansible-os-1709-1 2024-08-22 02:38:08,498 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/8f5d9f11-7a97-421d-9362-f3dce4e92646 2024-08-22 02:38:08,508 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/f66302df-94c2-43cf-a053-625765f645e1 2024-08-22 02:38:11,752 - 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 1019ms') 2024-08-22 02:38:11,753 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66881351-45620321 failed! 2024-08-22 02:38:11,808 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746 is 32.109.58.193 and allocation pool is NOT set 2024-08-22 02:38:15,881 - 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 1016ms') 2024-08-22 02:38:15,881 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66881351-45620321 failed! 2024-08-22 02:38:15,936 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746 is 32.109.58.193 and allocation pool is NOT set 2024-08-22 02:38:20,016 - 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 1016ms') 2024-08-22 02:38:20,016 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66881351-45620321 failed! 2024-08-22 02:38:20,068 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-66881351:ctest-vn-55100746 is 32.109.58.193 and allocation pool is NOT set 2024-08-22 02:38:22,131 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.720 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.720/2.081/3.443/1.361 ms') 2024-08-22 02:38:22,132 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66881351-45620321 passed 2024-08-22 02:38:22,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 02:38:22,280 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66881351-45620321, IP 32.109.58.195, Port 22 2024-08-22 02:38:22,431 - DEBUG - VM ctest-TestBasicPolicy-66881351-45620321 is ready for SSH connections 2024-08-22 02:38:22,431 - INFO - Waiting for VM ctest-TestBasicPolicy-66881351-72896267 to be up.. 2024-08-22 02:38:22,512 - DEBUG - VM is in ACTIVE state now 2024-08-22 02:38:22,512 - INFO - VM name : ctest-TestBasicPolicy-66881351-72896267 2024-08-22 02:38:22,587 - DEBUG - VM ctest-TestBasicPolicy-66881351-72896267 ID is 30144665-144c-4d9b-9f55-ea0a9d87f9db 2024-08-22 02:38:22,587 - DEBUG - VM ctest-TestBasicPolicy-66881351-72896267 launched on Node cn-jenkins-deploy-platform-ansible-os-1709-1 2024-08-22 02:38:22,664 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/30144665-144c-4d9b-9f55-ea0a9d87f9db 2024-08-22 02:38:22,672 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/208e8886-24c6-4b86-97f3-f47e2394c5eb 2024-08-22 02:38:25,935 - 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=2 ttl=63 time=6.86 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1028ms\r\nrtt min/avg/max/mdev = 6.858/6.858/6.858/0.000 ms') 2024-08-22 02:38:25,935 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-66881351-72896267 passed 2024-08-22 02:38:26,084 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 02:38:26,084 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66881351-72896267, IP 210.192.19.131, Port 22 2024-08-22 02:38:26,239 - DEBUG - VM ctest-TestBasicPolicy-66881351-72896267 is ready for SSH connections 2024-08-22 02:38:26,239 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 02:38:26,239 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.192.19.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-22 02:38:26,239 - DEBUG - ping -s 56 -c 3 -W 1 210.192.19.131 2024-08-22 02:38:33,873 - DEBUG - PING 210.192.19.131 (210.192.19.131): 56 data bytes 64 bytes from 210.192.19.131: seq=0 ttl=63 time=3.890 ms 64 bytes from 210.192.19.131: seq=1 ttl=63 time=0.985 ms 64 bytes from 210.192.19.131: seq=2 ttl=63 time=0.782 ms --- 210.192.19.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.782/1.885/3.890 ms 2024-08-22 02:38:33,873 - INFO - Ping to IP 210.192.19.131 from VM ctest-TestBasicPolicy-66881351-45620321 passed 2024-08-22 02:38:34,047 - DEBUG - Policy Update Response {"network-policy": {"uuid": "83d69c73-8ee4-4831-994a-72704c250dbf", "href": "http://10.0.0.36:8082/network-policy/83d69c73-8ee4-4831-994a-72704c250dbf"}} 2024-08-22 02:38:34,048 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 02:38:34,048 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.192.19.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-22 02:38:34,048 - DEBUG - ping -s 56 -c 3 -W 1 210.192.19.131 2024-08-22 02:38:37,252 - DEBUG - PING 210.192.19.131 (210.192.19.131): 56 data bytes --- 210.192.19.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-22 02:38:37,252 - WARNING - Ping to IP 210.192.19.131 from VM ctest-TestBasicPolicy-66881351-45620321 failed 2024-08-22 02:38:37,253 - INFO - Deleting VM ctest-TestBasicPolicy-66881351-72896267 2024-08-22 02:38:37,319 - INFO - Deleting VM ctest-TestBasicPolicy-66881351-45620321 2024-08-22 02:38:37,700 - INFO - Deleted policy ctest-policy-allow-all-81840139 2024-08-22 02:38:37,700 - INFO - Deleting VN ctest-vn-70032995 2024-08-22 02:38:37,737 - DEBUG - VN fa33819e-105d-428a-baa3-0c9763256ca8 still in use: Unable to complete operation on network fa33819e-105d-428a-baa3-0c9763256ca8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e9805ff9-6ba7-4a75-a276-43f5c5580f55'] 2024-08-22 02:38:37,737 - WARNING - Deleting VN ctest-vn-70032995 failed..Will retry 2024-08-22 02:38:39,835 - DEBUG - Response for deleting network () 2024-08-22 02:38:39,835 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a357cb55-4a16-43aa-af57-02afb785247b 2024-08-22 02:38:39,842 - DEBUG - Response Code: 404 2024-08-22 02:38:39,843 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-22 02:38:39,853 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1 2024-08-22 02:38:39,911 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27 2024-08-22 02:38:39,984 - INFO - Validated that VN ctest-vn-70032995 is not found in API Server 2024-08-22 02:38:39,995 - DEBUG - VN ctest-vn-70032995 is not present in Agent 10.0.0.36 2024-08-22 02:38:39,995 - INFO - Validated that VN ctest-vn-70032995 is not in any agent 2024-08-22 02:38:40,011 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70032995 info 2024-08-22 02:38:40,011 - INFO - Deleting VN ctest-vn-55100746 2024-08-22 02:38:40,120 - DEBUG - Response for deleting network () 2024-08-22 02:38:40,120 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d5aad2f3-acca-4841-9ffd-bd346612fd92 2024-08-22 02:38:40,130 - DEBUG - Response Code: 404 2024-08-22 02:38:40,131 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-22 02:38:40,137 - DEBUG - Requesting: http://10.0.0.36:8082/domain/15951ab4-3b5d-4c84-be0e-5f7db5b8a5c1 2024-08-22 02:38:40,192 - DEBUG - Requesting: http://10.0.0.36:8082/project/8d5f1a4b-91b8-4fb8-87aa-28621bc57b27 2024-08-22 02:38:40,262 - INFO - Validated that VN ctest-vn-55100746 is not found in API Server 2024-08-22 02:38:40,274 - DEBUG - VN ctest-vn-55100746 is not present in Agent 10.0.0.36 2024-08-22 02:38:40,274 - INFO - Validated that VN ctest-vn-55100746 is not in any agent 2024-08-22 02:38:40,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55100746 info 2024-08-22 02:38:40,545 - DEBUG - No XMPP flaps were noticed during the test
2024-08-22 02:38:40,545 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:43]
2024-08-22 02:38:40,545 - INFO - -------------------------------------------------------------------------------- 2024-08-22 02:38:41,206 - INFO - Deleted project: ctest-TestBasicPolicy-66881351, ID : 8d5f1a4b-91b8-4fb8-87aa-28621bc57b27