2024-10-25 15:21:17,160 - INFO - Domain Default found not creating 2024-10-25 15:21:17,363 - INFO - Project ctest-TestBasicPolicy-08013294 not found, creating it 2024-10-25 15:21:17,890 - INFO - Created Project:ctest-TestBasicPolicy-08013294, ID : 4ca4d78d-1d26-4028-a0ec-e5d713c3884c 2024-10-25 15:21:19,726 - INFO - ================================================================================ 2024-10-25 15:21:19,726 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-25 15:21:19,726 - 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-10-25 15:21:19,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.14': '0'}} with 2024-10-25 15:21:19,999 - INFO - Initial checks done. Running the testcase now 2024-10-25 15:21:19,999 - INFO - 2024-10-25 15:21:20,672 - DEBUG - Response for create_network : {'network': {'id': 'b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3', 'name': 'ctest-vn-59290387', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-59290387'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 15:21:20,921 - DEBUG - Response for create_subnet : {'subnet': {'id': '881163b8-54bf-46c6-ae7b-88c2caf348a8', 'name': '', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'network_id': 'b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3', 'ip_version': 4, 'cidr': '109.228.251.0/26', 'allocation_pools': [{'start': '109.228.251.2', 'end': '109.228.251.62'}], 'gateway_ip': '109.228.251.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.228.251.2', 'tags': [], 'project_id': '4ca4d78d1d264028a0ece5d713c3884c'}} 2024-10-25 15:21:20,945 - INFO - Created VN ctest-vn-59290387 2024-10-25 15:21:21,008 - DEBUG - VN ctest-vn-59290387 UUID is b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3 2024-10-25 15:21:21,393 - DEBUG - Response for create_network : {'network': {'id': '476b9475-da8d-4a61-aa80-4d38392226c2', 'name': 'ctest-vn-86761803', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-86761803'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 15:21:21,659 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35f0a6b-92dd-4003-8289-530177bbd155', 'name': '', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'network_id': '476b9475-da8d-4a61-aa80-4d38392226c2', 'ip_version': 4, 'cidr': '144.138.17.64/26', 'allocation_pools': [{'start': '144.138.17.66', 'end': '144.138.17.126'}], 'gateway_ip': '144.138.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.138.17.66', 'tags': [], 'project_id': '4ca4d78d1d264028a0ece5d713c3884c'}} 2024-10-25 15:21:21,683 - INFO - Created VN ctest-vn-86761803 2024-10-25 15:21:21,744 - DEBUG - VN ctest-vn-86761803 UUID is 476b9475-da8d-4a61-aa80-4d38392226c2 2024-10-25 15:21:21,880 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387, 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-08013294:ctest-vn-86761803, 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-10-25 15:21:22,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3', 'name': 'ctest-vn-59290387', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['881163b8-54bf-46c6-ae7b-88c2caf348a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-59290387'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770']], 'subnet_ipam': [{'subnet_cidr': '109.228.251.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-25 15:21:22,523 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '476b9475-da8d-4a61-aa80-4d38392226c2', 'name': 'ctest-vn-86761803', 'tenant_id': '4ca4d78d1d264028a0ece5d713c3884c', 'project_id': '4ca4d78d1d264028a0ece5d713c3884c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b35f0a6b-92dd-4003-8289-530177bbd155'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-vn-86761803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770']], 'subnet_ipam': [{'subnet_cidr': '144.138.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-25 15:21:22,700 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-25 15:21:23,051 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-25 15:21:23,091 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477 2024-10-25 15:21:23,108 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c 2024-10-25 15:21:23,221 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3 2024-10-25 15:21:23,244 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3 2024-10-25 15:21:23,262 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f 2024-10-25 15:21:23,275 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f 2024-10-25 15:21:23,287 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ab290a57-183c-4e64-9946-997470e9a1e1 2024-10-25 15:21:23,298 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-25 15:21:23,298 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3 2024-10-25 15:21:23,316 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f 2024-10-25 15:21:23,344 - INFO - Verified VN network id 8 for VN b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3 2024-10-25 15:21:23,344 - INFO - Verifications in API Server for VN ctest-vn-59290387 passed 2024-10-25 15:21:23,344 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3 2024-10-25 15:21:23,362 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f 2024-10-25 15:21:23,374 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f 2024-10-25 15:21:23,385 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ab290a57-183c-4e64-9946-997470e9a1e1 2024-10-25 15:21:23,401 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08013294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12739660389482777466', 'uuid-lslong': '11564514910111897299'}, 'enable': 'true', 'created': '2024-10-25T15:21:20', 'last-modified': '2024-10-25T15:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.200645'} 2024-10-25 15:21:23,409 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-25 15:21:23,409 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59290387 passed 2024-10-25 15:21:23,409 - DEBUG - ====Verifying policy data for ctest-vn-59290387 in API_Server ====== 2024-10-25 15:21:23,409 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-25 15:21:23,417 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477 2024-10-25 15:21:23,432 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c 2024-10-25 15:21:23,530 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b0cc5da0-6a3c-4b7a-a07d-690a10ed96d3 2024-10-25 15:21:23,551 - DEBUG - ==>Verifying data for policy with id: 62e40f7f-67df-491a-a295-d276da33fed8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770'] 2024-10-25 15:21:23,551 - INFO - VN ctest-vn-59290387 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-25 15:21:23,551 - DEBUG - Verifying the vn in opserver 2024-10-25 15:21:23,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387 virtual network link through opserver 10.0.0.31 2024-10-25 15:21:23,551 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-25 15:21:23,892 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-25 15:21:23,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387?flat'} 2024-10-25 15:21:23,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387 is found in opserver 2024-10-25 15:21:23,984 - DEBUG - Do not have enough data to verify VN in agent 2024-10-25 15:21:23,990 - DEBUG - VRF ids for VN ctest-vn-59290387: {} 2024-10-25 15:21:23,990 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-25 15:21:23,998 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477 2024-10-25 15:21:24,014 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c 2024-10-25 15:21:24,106 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2 2024-10-25 15:21:24,127 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2 2024-10-25 15:21:24,145 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5 2024-10-25 15:21:24,156 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5 2024-10-25 15:21:24,167 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/77341e35-3e4a-4543-a941-ac07ad701abc 2024-10-25 15:21:24,178 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-25 15:21:24,178 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2 2024-10-25 15:21:24,195 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5 2024-10-25 15:21:24,221 - INFO - Verified VN network id 9 for VN 476b9475-da8d-4a61-aa80-4d38392226c2 2024-10-25 15:21:24,221 - INFO - Verifications in API Server for VN ctest-vn-86761803 passed 2024-10-25 15:21:24,221 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2 2024-10-25 15:21:24,240 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5 2024-10-25 15:21:24,250 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5 2024-10-25 15:21:24,261 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/77341e35-3e4a-4543-a941-ac07ad701abc 2024-10-25 15:21:24,278 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08013294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5146370233099700833', 'uuid-lslong': '12285904687338759874'}, 'enable': 'true', 'created': '2024-10-25T15:21:21', 'last-modified': '2024-10-25T15:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.795600'} 2024-10-25 15:21:24,286 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-25 15:21:24,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86761803 passed 2024-10-25 15:21:24,286 - DEBUG - ====Verifying policy data for ctest-vn-86761803 in API_Server ====== 2024-10-25 15:21:24,286 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-25 15:21:24,294 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477 2024-10-25 15:21:24,309 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c 2024-10-25 15:21:24,401 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/476b9475-da8d-4a61-aa80-4d38392226c2 2024-10-25 15:21:24,418 - DEBUG - ==>Verifying data for policy with id: 62e40f7f-67df-491a-a295-d276da33fed8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08013294', 'ctest-policy-allow-all-49591770'] 2024-10-25 15:21:24,418 - INFO - VN ctest-vn-86761803 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-25 15:21:24,418 - DEBUG - Verifying the vn in opserver 2024-10-25 15:21:24,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803 virtual network link through opserver 10.0.0.31 2024-10-25 15:21:24,418 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-25 15:21:24,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803?flat'} 2024-10-25 15:21:24,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-86761803 is found in opserver 2024-10-25 15:21:24,446 - DEBUG - Do not have enough data to verify VN in agent 2024-10-25 15:21:24,454 - DEBUG - VRF ids for VN ctest-vn-86761803: {} 2024-10-25 15:21:24,533 - DEBUG - Services list from nova: [, , ] 2024-10-25 15:21:25,796 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2145-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2145-1) 2024-10-25 15:21:27,254 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2145-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2145-1) 2024-10-25 15:21:27,254 - INFO - Waiting for VM ctest-TestBasicPolicy-08013294-42709753 to be up.. 2024-10-25 15:21:27,354 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-25 15:21:32,475 - DEBUG - VM is in ACTIVE state now 2024-10-25 15:21:32,475 - INFO - VM name : ctest-TestBasicPolicy-08013294-42709753 2024-10-25 15:21:32,582 - DEBUG - VM ctest-TestBasicPolicy-08013294-42709753 ID is 7ec7c251-c265-4ca9-aa35-32f7ca090b74 2024-10-25 15:21:32,607 - DEBUG - VM ctest-TestBasicPolicy-08013294-42709753 launched on Node cn-jenkins-deploy-platform-ansible-os-2145-1 2024-10-25 15:21:32,703 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/7ec7c251-c265-4ca9-aa35-32f7ca090b74 2024-10-25 15:21:32,716 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/a03ae5bb-3d24-4b7a-bab5-e5eea7cfc1b6 2024-10-25 15:21:36,011 - 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 1028ms') 2024-10-25 15:21:36,011 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08013294-42709753 failed! 2024-10-25 15:21:36,076 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08013294:ctest-vn-59290387 is 109.228.251.1 and allocation pool is NOT set 2024-10-25 15:21:38,148 - 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=9.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.42 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.415/5.603/9.792/4.188 ms') 2024-10-25 15:21:38,148 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08013294-42709753 passed 2024-10-25 15:21:38,323 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:21:38,323 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08013294-42709753, IP 109.228.251.3, Port 22 2024-10-25 15:21:38,390 - 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-10-25 15:21:38,525 - DEBUG - VM ctest-TestBasicPolicy-08013294-42709753 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-25 15:21:43,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:21:43,526 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08013294-42709753, IP 109.228.251.3, Port 22 2024-10-25 15:21:43,684 - DEBUG - VM ctest-TestBasicPolicy-08013294-42709753 is ready for SSH connections 2024-10-25 15:21:43,684 - INFO - Waiting for VM ctest-TestBasicPolicy-08013294-67707862 to be up.. 2024-10-25 15:21:43,783 - DEBUG - VM is in ACTIVE state now 2024-10-25 15:21:43,783 - INFO - VM name : ctest-TestBasicPolicy-08013294-67707862 2024-10-25 15:21:43,876 - DEBUG - VM ctest-TestBasicPolicy-08013294-67707862 ID is 8f0f5601-276f-48af-b041-7eca31c2c59b 2024-10-25 15:21:43,877 - DEBUG - VM ctest-TestBasicPolicy-08013294-67707862 launched on Node cn-jenkins-deploy-platform-ansible-os-2145-1 2024-10-25 15:21:43,978 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/8f0f5601-276f-48af-b041-7eca31c2c59b 2024-10-25 15:21:43,990 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/228fddeb-1007-4041-ac5c-f792eeef0322 2024-10-25 15:21:45,259 - 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=3.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.360 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.360/2.125/3.891/1.765 ms') 2024-10-25 15:21:45,259 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08013294-67707862 passed 2024-10-25 15:21:45,420 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:21:45,420 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08013294-67707862, IP 144.138.17.67, Port 22 2024-10-25 15:21:45,579 - DEBUG - VM ctest-TestBasicPolicy-08013294-67707862 is ready for SSH connections 2024-10-25 15:21:45,579 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:21:45,580 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.138.17.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:21:45,580 - DEBUG - ping -s 56 -c 3 -W 1 144.138.17.67 2024-10-25 15:21:49,716 - DEBUG - PING 144.138.17.67 (144.138.17.67): 56 data bytes 64 bytes from 144.138.17.67: seq=0 ttl=63 time=4.049 ms 64 bytes from 144.138.17.67: seq=1 ttl=63 time=1.142 ms 64 bytes from 144.138.17.67: seq=2 ttl=63 time=0.942 ms --- 144.138.17.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.942/2.044/4.049 ms 2024-10-25 15:21:49,716 - INFO - Ping to IP 144.138.17.67 from VM ctest-TestBasicPolicy-08013294-42709753 passed 2024-10-25 15:21:49,920 - DEBUG - Policy Update Response {"network-policy": {"uuid": "62e40f7f-67df-491a-a295-d276da33fed8", "href": "http://10.0.0.31:8082/network-policy/62e40f7f-67df-491a-a295-d276da33fed8"}} 2024-10-25 15:21:49,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 15:21:49,920 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.138.17.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-25 15:21:49,920 - DEBUG - ping -s 56 -c 3 -W 1 144.138.17.67 2024-10-25 15:21:53,174 - DEBUG - PING 144.138.17.67 (144.138.17.67): 56 data bytes --- 144.138.17.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 15:21:53,175 - WARNING - Ping to IP 144.138.17.67 from VM ctest-TestBasicPolicy-08013294-42709753 failed 2024-10-25 15:21:53,175 - INFO - Deleting VM ctest-TestBasicPolicy-08013294-67707862 2024-10-25 15:21:53,251 - INFO - Deleting VM ctest-TestBasicPolicy-08013294-42709753 2024-10-25 15:21:53,745 - INFO - Deleted policy ctest-policy-allow-all-49591770 2024-10-25 15:21:53,745 - INFO - Deleting VN ctest-vn-86761803 2024-10-25 15:21:53,797 - DEBUG - VN 476b9475-da8d-4a61-aa80-4d38392226c2 still in use: Unable to complete operation on network 476b9475-da8d-4a61-aa80-4d38392226c2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f734a46f-d4b6-47aa-8649-11da62d83e27'] 2024-10-25 15:21:53,797 - WARNING - Deleting VN ctest-vn-86761803 failed..Will retry 2024-10-25 15:21:55,931 - DEBUG - Response for deleting network () 2024-10-25 15:21:55,931 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bfd1fd00-f749-4566-a899-552bc2e5bea5 2024-10-25 15:21:55,938 - DEBUG - Response Code: 404 2024-10-25 15:21:55,938 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-25 15:21:55,947 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477 2024-10-25 15:21:56,007 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c 2024-10-25 15:21:56,095 - INFO - Validated that VN ctest-vn-86761803 is not found in API Server 2024-10-25 15:21:56,109 - DEBUG - VN ctest-vn-86761803 is not present in Agent 10.0.0.31 2024-10-25 15:21:56,109 - INFO - Validated that VN ctest-vn-86761803 is not in any agent 2024-10-25 15:21:56,128 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86761803 info 2024-10-25 15:21:56,128 - INFO - Deleting VN ctest-vn-59290387 2024-10-25 15:21:56,264 - DEBUG - Response for deleting network () 2024-10-25 15:21:56,264 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5fd97e9e-6afb-4d26-9723-9ace3c914b6f 2024-10-25 15:21:56,276 - DEBUG - Response Code: 404 2024-10-25 15:21:56,276 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-25 15:21:56,285 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5c9222a5-1004-4c8d-a5ba-6a8cd4423477 2024-10-25 15:21:56,344 - DEBUG - Requesting: http://10.0.0.31:8082/project/4ca4d78d-1d26-4028-a0ec-e5d713c3884c 2024-10-25 15:21:56,436 - INFO - Validated that VN ctest-vn-59290387 is not found in API Server 2024-10-25 15:21:56,449 - DEBUG - VN ctest-vn-59290387 is not present in Agent 10.0.0.31 2024-10-25 15:21:56,449 - INFO - Validated that VN ctest-vn-59290387 is not in any agent 2024-10-25 15:21:56,473 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59290387 info 2024-10-25 15:21:56,738 - DEBUG - No XMPP flaps were noticed during the test
2024-10-25 15:21:56,738 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-10-25 15:21:56,738 - INFO - -------------------------------------------------------------------------------- 2024-10-25 15:21:57,512 - INFO - Deleted project: ctest-TestBasicPolicy-08013294, ID : 4ca4d78d-1d26-4028-a0ec-e5d713c3884c