2024-11-08 11:28:57,991 - INFO - Domain Default found not creating 2024-11-08 11:28:58,162 - INFO - Project ctest-TestBasicPolicy-39223560 not found, creating it 2024-11-08 11:28:58,671 - INFO - Created Project:ctest-TestBasicPolicy-39223560, ID : c7d52bd4-d3ff-46bf-a9b3-2daa458454e5 2024-11-08 11:29:00,257 - INFO - ================================================================================ 2024-11-08 11:29:00,257 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 11:29:00,257 - 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-08 11:29:00,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.7': '0'}} with 2024-11-08 11:29:00,513 - INFO - Initial checks done. Running the testcase now 2024-11-08 11:29:00,513 - INFO - 2024-11-08 11:29:01,116 - DEBUG - Response for create_network : {'network': {'id': 'bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd', 'name': 'ctest-vn-53325471', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-53325471'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:29:01,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '39896468-ace6-4498-a591-363a2dfc3c90', 'name': '', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'network_id': 'bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd', 'ip_version': 4, 'cidr': '93.188.66.64/26', 'allocation_pools': [{'start': '93.188.66.66', 'end': '93.188.66.126'}], 'gateway_ip': '93.188.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.188.66.66', 'tags': [], 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5'}} 2024-11-08 11:29:01,331 - INFO - Created VN ctest-vn-53325471 2024-11-08 11:29:01,389 - DEBUG - VN ctest-vn-53325471 UUID is bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd 2024-11-08 11:29:01,725 - DEBUG - Response for create_network : {'network': {'id': 'f215f088-a645-4b4f-b532-0e0f85823094', 'name': 'ctest-vn-65339139', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-65339139'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:29:01,889 - DEBUG - Response for create_subnet : {'subnet': {'id': '900bd640-4a68-428b-9660-8e79a29ccd23', 'name': '', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'network_id': 'f215f088-a645-4b4f-b532-0e0f85823094', 'ip_version': 4, 'cidr': '218.188.125.0/26', 'allocation_pools': [{'start': '218.188.125.2', 'end': '218.188.125.62'}], 'gateway_ip': '218.188.125.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.188.125.2', 'tags': [], 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5'}} 2024-11-08 11:29:01,911 - INFO - Created VN ctest-vn-65339139 2024-11-08 11:29:01,970 - DEBUG - VN ctest-vn-65339139 UUID is f215f088-a645-4b4f-b532-0e0f85823094 2024-11-08 11:29:02,093 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471, 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-39223560:ctest-vn-65339139, 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-08 11:29:02,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd', 'name': 'ctest-vn-53325471', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39896468-ace6-4498-a591-363a2dfc3c90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-53325471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376']], 'subnet_ipam': [{'subnet_cidr': '93.188.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:29:02,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f215f088-a645-4b4f-b532-0e0f85823094', 'name': 'ctest-vn-65339139', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['900bd640-4a68-428b-9660-8e79a29ccd23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-65339139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376']], 'subnet_ipam': [{'subnet_cidr': '218.188.125.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:29:02,853 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-08 11:29:03,155 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-08 11:29:03,195 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec 2024-11-08 11:29:03,214 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5 2024-11-08 11:29:03,304 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd 2024-11-08 11:29:03,323 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd 2024-11-08 11:29:03,338 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669 2024-11-08 11:29:03,348 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669 2024-11-08 11:29:03,358 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/28d57c36-9fb5-4d4b-bc69-d15bced748cb 2024-11-08 11:29:03,368 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-11-08 11:29:03,368 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd 2024-11-08 11:29:03,383 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669 2024-11-08 11:29:03,407 - INFO - Verified VN network id 8 for VN bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd 2024-11-08 11:29:03,407 - INFO - Verifications in API Server for VN ctest-vn-53325471 passed 2024-11-08 11:29:03,407 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd 2024-11-08 11:29:03,422 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669 2024-11-08 11:29:03,433 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669 2024-11-08 11:29:03,442 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/28d57c36-9fb5-4d4b-bc69-d15bced748cb 2024-11-08 11:29:03,457 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39223560', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13578252460251434156', 'uuid-lslong': '12522567474863735549'}, 'enable': 'true', 'created': '2024-11-08T11:29:01', 'last-modified': '2024-11-08T11:29:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074350'} 2024-11-08 11:29:03,464 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-11-08 11:29:03,464 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53325471 passed 2024-11-08 11:29:03,464 - DEBUG - ====Verifying policy data for ctest-vn-53325471 in API_Server ====== 2024-11-08 11:29:03,464 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-08 11:29:03,471 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec 2024-11-08 11:29:03,485 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5 2024-11-08 11:29:03,568 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd 2024-11-08 11:29:03,582 - DEBUG - ==>Verifying data for policy with id: 52991507-06a6-4d6c-83c9-a7d018ab9f39, fqn: ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376'] 2024-11-08 11:29:03,582 - INFO - VN ctest-vn-53325471 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 11:29:03,582 - DEBUG - Verifying the vn in opserver 2024-11-08 11:29:03,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471 virtual network link through opserver 10.0.0.35 2024-11-08 11:29:03,582 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-08 11:29:03,889 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-08 11:29:03,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471?flat'} 2024-11-08 11:29:03,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471 is found in opserver 2024-11-08 11:29:03,987 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 11:29:03,991 - DEBUG - VRF ids for VN ctest-vn-53325471: {} 2024-11-08 11:29:03,992 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-08 11:29:03,998 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec 2024-11-08 11:29:04,013 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5 2024-11-08 11:29:04,118 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094 2024-11-08 11:29:04,135 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094 2024-11-08 11:29:04,156 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5 2024-11-08 11:29:04,168 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5 2024-11-08 11:29:04,180 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5476addb-bf94-4e9b-af13-c4fd1e66085e 2024-11-08 11:29:04,188 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 11:29:04,188 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094 2024-11-08 11:29:04,202 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5 2024-11-08 11:29:04,221 - INFO - Verified VN network id 9 for VN f215f088-a645-4b4f-b532-0e0f85823094 2024-11-08 11:29:04,221 - INFO - Verifications in API Server for VN ctest-vn-65339139 passed 2024-11-08 11:29:04,222 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094 2024-11-08 11:29:04,235 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5 2024-11-08 11:29:04,245 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5 2024-11-08 11:29:04,254 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5476addb-bf94-4e9b-af13-c4fd1e66085e 2024-11-08 11:29:04,269 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39223560', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17444113201385261903', 'uuid-lslong': '13056513729527689364'}, 'enable': 'true', 'created': '2024-11-08T11:29:01', 'last-modified': '2024-11-08T11:29:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.630518'} 2024-11-08 11:29:04,277 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 11:29:04,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65339139 passed 2024-11-08 11:29:04,278 - DEBUG - ====Verifying policy data for ctest-vn-65339139 in API_Server ====== 2024-11-08 11:29:04,278 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-08 11:29:04,286 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec 2024-11-08 11:29:04,301 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5 2024-11-08 11:29:04,388 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094 2024-11-08 11:29:04,407 - DEBUG - ==>Verifying data for policy with id: 52991507-06a6-4d6c-83c9-a7d018ab9f39, fqn: ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376'] 2024-11-08 11:29:04,407 - INFO - VN ctest-vn-65339139 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 11:29:04,407 - DEBUG - Verifying the vn in opserver 2024-11-08 11:29:04,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139 virtual network link through opserver 10.0.0.35 2024-11-08 11:29:04,407 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-08 11:29:04,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139?flat'} 2024-11-08 11:29:04,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139 is found in opserver 2024-11-08 11:29:04,436 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 11:29:04,443 - DEBUG - VRF ids for VN ctest-vn-65339139: {} 2024-11-08 11:29:04,499 - DEBUG - Services list from nova: [, , ] 2024-11-08 11:29:05,652 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2226-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2226-1) 2024-11-08 11:29:06,849 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2226-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2226-1) 2024-11-08 11:29:06,849 - INFO - Waiting for VM ctest-TestBasicPolicy-39223560-60681664 to be up.. 2024-11-08 11:29:06,947 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 11:29:12,037 - DEBUG - VM is in ACTIVE state now 2024-11-08 11:29:12,037 - INFO - VM name : ctest-TestBasicPolicy-39223560-60681664 2024-11-08 11:29:12,121 - DEBUG - VM ctest-TestBasicPolicy-39223560-60681664 ID is b4dee83b-c0b4-42e3-bce7-81379ff2d043 2024-11-08 11:29:12,145 - DEBUG - VM ctest-TestBasicPolicy-39223560-60681664 launched on Node cn-jenkins-deploy-platform-ansible-os-2226-1 2024-11-08 11:29:12,240 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/b4dee83b-c0b4-42e3-bce7-81379ff2d043 2024-11-08 11:29:12,251 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/340f6c1f-2cc5-4181-a3ba-3b2ec126e8cc 2024-11-08 11:29:15,544 - 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 1031ms') 2024-11-08 11:29:15,545 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39223560-60681664 failed! 2024-11-08 11:29:15,605 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471 is 93.188.66.65 and allocation pool is NOT set 2024-11-08 11:29:17,669 - 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=7.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.13 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 = 2.126/4.563/7.000/2.437 ms') 2024-11-08 11:29:17,669 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39223560-60681664 passed 2024-11-08 11:29:17,825 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:29:17,826 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39223560-60681664, IP 93.188.66.67, Port 22 2024-11-08 11:29:17,891 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-08 11:29:17,997 - DEBUG - VM ctest-TestBasicPolicy-39223560-60681664 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-08 11:29:22,997 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:29:22,997 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39223560-60681664, IP 93.188.66.67, Port 22 2024-11-08 11:29:23,168 - DEBUG - VM ctest-TestBasicPolicy-39223560-60681664 is ready for SSH connections 2024-11-08 11:29:23,168 - INFO - Waiting for VM ctest-TestBasicPolicy-39223560-87465859 to be up.. 2024-11-08 11:29:23,268 - DEBUG - VM is in ACTIVE state now 2024-11-08 11:29:23,268 - INFO - VM name : ctest-TestBasicPolicy-39223560-87465859 2024-11-08 11:29:23,362 - DEBUG - VM ctest-TestBasicPolicy-39223560-87465859 ID is 2eb3e0c5-e9e0-497b-81bb-82b0532ea3ec 2024-11-08 11:29:23,362 - DEBUG - VM ctest-TestBasicPolicy-39223560-87465859 launched on Node cn-jenkins-deploy-platform-ansible-os-2226-1 2024-11-08 11:29:23,453 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/2eb3e0c5-e9e0-497b-81bb-82b0532ea3ec 2024-11-08 11:29:23,464 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/a2976763-c4a4-4beb-8532-99721099d926 2024-11-08 11:29:24,723 - 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.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.425 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.425/1.623/2.821/1.198 ms') 2024-11-08 11:29:24,723 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-39223560-87465859 passed 2024-11-08 11:29:24,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:29:24,882 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39223560-87465859, IP 218.188.125.3, Port 22 2024-11-08 11:29:25,050 - DEBUG - VM ctest-TestBasicPolicy-39223560-87465859 is ready for SSH connections 2024-11-08 11:29:25,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:29:25,050 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.188.125.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-08 11:29:25,050 - DEBUG - ping -s 56 -c 3 -W 1 218.188.125.3 2024-11-08 11:29:29,059 - DEBUG - PING 218.188.125.3 (218.188.125.3): 56 data bytes 64 bytes from 218.188.125.3: seq=0 ttl=63 time=3.672 ms 64 bytes from 218.188.125.3: seq=1 ttl=63 time=1.040 ms 64 bytes from 218.188.125.3: seq=2 ttl=63 time=1.330 ms --- 218.188.125.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.040/2.014/3.672 ms 2024-11-08 11:29:29,059 - INFO - Ping to IP 218.188.125.3 from VM ctest-TestBasicPolicy-39223560-60681664 passed 2024-11-08 11:29:29,269 - DEBUG - Policy Update Response {"network-policy": {"uuid": "52991507-06a6-4d6c-83c9-a7d018ab9f39", "href": "http://10.0.0.35:8082/network-policy/52991507-06a6-4d6c-83c9-a7d018ab9f39"}} 2024-11-08 11:29:29,269 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:29:29,269 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.188.125.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-08 11:29:29,270 - DEBUG - ping -s 56 -c 3 -W 1 218.188.125.3 2024-11-08 11:29:32,493 - DEBUG - PING 218.188.125.3 (218.188.125.3): 56 data bytes 64 bytes from 218.188.125.3: seq=0 ttl=63 time=1.502 ms --- 218.188.125.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.502/1.502/1.502 ms 2024-11-08 11:29:32,494 - WARNING - Ping to IP 218.188.125.3 from VM ctest-TestBasicPolicy-39223560-60681664 failed 2024-11-08 11:29:32,494 - INFO - Deleting VM ctest-TestBasicPolicy-39223560-87465859 2024-11-08 11:29:32,569 - INFO - Deleting VM ctest-TestBasicPolicy-39223560-60681664 2024-11-08 11:29:33,027 - INFO - Deleted policy ctest-policy-allow-all-97211376 2024-11-08 11:29:33,027 - INFO - Deleting VN ctest-vn-65339139 2024-11-08 11:29:33,077 - DEBUG - VN f215f088-a645-4b4f-b532-0e0f85823094 still in use: Unable to complete operation on network f215f088-a645-4b4f-b532-0e0f85823094. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d6a98329-b46e-41cb-87ef-6920536c1ab3'] 2024-11-08 11:29:33,077 - WARNING - Deleting VN ctest-vn-65339139 failed..Will retry 2024-11-08 11:29:35,189 - DEBUG - Response for deleting network () 2024-11-08 11:29:35,189 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5 2024-11-08 11:29:35,197 - DEBUG - Response Code: 404 2024-11-08 11:29:35,198 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-08 11:29:35,203 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec 2024-11-08 11:29:35,261 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5 2024-11-08 11:29:35,351 - INFO - Validated that VN ctest-vn-65339139 is not found in API Server 2024-11-08 11:29:35,362 - DEBUG - VN ctest-vn-65339139 is not present in Agent 10.0.0.35 2024-11-08 11:29:35,362 - INFO - Validated that VN ctest-vn-65339139 is not in any agent 2024-11-08 11:29:35,381 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65339139 info 2024-11-08 11:29:35,381 - INFO - Deleting VN ctest-vn-53325471 2024-11-08 11:29:35,510 - DEBUG - Response for deleting network () 2024-11-08 11:29:35,511 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669 2024-11-08 11:29:35,519 - DEBUG - Response Code: 404 2024-11-08 11:29:35,519 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-08 11:29:35,526 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec 2024-11-08 11:29:35,583 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5 2024-11-08 11:29:35,665 - INFO - Validated that VN ctest-vn-53325471 is not found in API Server 2024-11-08 11:29:35,676 - DEBUG - VN ctest-vn-53325471 is not present in Agent 10.0.0.35 2024-11-08 11:29:35,676 - INFO - Validated that VN ctest-vn-53325471 is not in any agent 2024-11-08 11:29:35,691 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53325471 info 2024-11-08 11:29:35,944 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 11:29:35,944 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-11-08 11:29:35,944 - INFO - -------------------------------------------------------------------------------- 2024-11-08 11:29:36,945 - INFO - Deleted project: ctest-TestBasicPolicy-39223560, ID : c7d52bd4-d3ff-46bf-a9b3-2daa458454e5