2024-09-18 06:59:11,794 - INFO - Domain Default found not creating 2024-09-18 06:59:11,973 - INFO - Project ctest-TestBasicPolicy-09035245 not found, creating it 2024-09-18 06:59:12,475 - INFO - Created Project:ctest-TestBasicPolicy-09035245, ID : b7e241de-942e-4a30-8095-d3251a3a525b 2024-09-18 06:59:14,160 - INFO - ================================================================================ 2024-09-18 06:59:14,161 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-18 06:59:14,161 - 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-09-18 06:59:14,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.13': '0'}} with 2024-09-18 06:59:14,416 - INFO - Initial checks done. Running the testcase now 2024-09-18 06:59:14,416 - INFO - 2024-09-18 06:59:15,080 - DEBUG - Response for create_network : {'network': {'id': '9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f', 'name': 'ctest-vn-54077161', 'tenant_id': 'b7e241de942e4a308095d3251a3a525b', 'project_id': 'b7e241de942e4a308095d3251a3a525b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-vn-54077161'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 06:59:15,250 - DEBUG - Response for create_subnet : {'subnet': {'id': '25be4196-d6a5-4330-8d42-27454a96749a', 'name': '', 'tenant_id': 'b7e241de942e4a308095d3251a3a525b', 'network_id': '9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f', 'ip_version': 4, 'cidr': '51.14.153.192/26', 'allocation_pools': [{'start': '51.14.153.194', 'end': '51.14.153.254'}], 'gateway_ip': '51.14.153.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.14.153.194', 'tags': [], 'project_id': 'b7e241de942e4a308095d3251a3a525b'}} 2024-09-18 06:59:15,270 - INFO - Created VN ctest-vn-54077161 2024-09-18 06:59:15,333 - DEBUG - VN ctest-vn-54077161 UUID is 9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f 2024-09-18 06:59:15,673 - DEBUG - Response for create_network : {'network': {'id': 'b0347488-a3c1-42cf-8811-f9f0c840e1c0', 'name': 'ctest-vn-79614140', 'tenant_id': 'b7e241de942e4a308095d3251a3a525b', 'project_id': 'b7e241de942e4a308095d3251a3a525b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-vn-79614140'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 06:59:16,170 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a432c415-cbbd-4af0-9cca-c956225839aa', 'name': '', 'tenant_id': 'b7e241de942e4a308095d3251a3a525b', 'network_id': 'b0347488-a3c1-42cf-8811-f9f0c840e1c0', 'ip_version': 4, 'cidr': '112.14.104.128/26', 'allocation_pools': [{'start': '112.14.104.130', 'end': '112.14.104.190'}], 'gateway_ip': '112.14.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.14.104.130', 'tags': [], 'project_id': 'b7e241de942e4a308095d3251a3a525b'}} 2024-09-18 06:59:16,190 - INFO - Created VN ctest-vn-79614140 2024-09-18 06:59:16,249 - DEBUG - VN ctest-vn-79614140 UUID is b0347488-a3c1-42cf-8811-f9f0c840e1c0 2024-09-18 06:59:16,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-54077161, 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-09035245:ctest-vn-79614140, 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-09-18 06:59:16,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f', 'name': 'ctest-vn-54077161', 'tenant_id': 'b7e241de942e4a308095d3251a3a525b', 'project_id': 'b7e241de942e4a308095d3251a3a525b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25be4196-d6a5-4330-8d42-27454a96749a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-vn-54077161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-policy-allow-all-02445713']], 'subnet_ipam': [{'subnet_cidr': '51.14.153.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 06:59:17,002 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0347488-a3c1-42cf-8811-f9f0c840e1c0', 'name': 'ctest-vn-79614140', 'tenant_id': 'b7e241de942e4a308095d3251a3a525b', 'project_id': 'b7e241de942e4a308095d3251a3a525b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a432c415-cbbd-4af0-9cca-c956225839aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-vn-79614140'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-policy-allow-all-02445713']], 'subnet_ipam': [{'subnet_cidr': '112.14.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-18 06:59:17,193 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-18 06:59:17,543 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-18 06:59:17,578 - DEBUG - Requesting: http://10.0.0.47:8082/domain/879f800d-4a6a-45bb-86f3-7da4aaaa8742 2024-09-18 06:59:17,597 - DEBUG - Requesting: http://10.0.0.47:8082/project/b7e241de-942e-4a30-8095-d3251a3a525b 2024-09-18 06:59:17,687 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f 2024-09-18 06:59:17,709 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f 2024-09-18 06:59:17,727 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/e5e21043-645b-4b82-b892-0717d7394d4b 2024-09-18 06:59:17,737 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/e5e21043-645b-4b82-b892-0717d7394d4b 2024-09-18 06:59:17,748 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/5353f6a2-5ef2-4d12-921c-58675cc6cf1d 2024-09-18 06:59:17,759 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 06:59:17,759 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f 2024-09-18 06:59:17,776 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/e5e21043-645b-4b82-b892-0717d7394d4b 2024-09-18 06:59:17,802 - INFO - Verified VN network id 9 for VN 9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f 2024-09-18 06:59:17,802 - INFO - Verifications in API Server for VN ctest-vn-54077161 passed 2024-09-18 06:59:17,802 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f 2024-09-18 06:59:17,821 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/e5e21043-645b-4b82-b892-0717d7394d4b 2024-09-18 06:59:17,832 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/e5e21043-645b-4b82-b892-0717d7394d4b 2024-09-18 06:59:17,841 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/5353f6a2-5ef2-4d12-921c-58675cc6cf1d 2024-09-18 06:59:17,858 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-54077161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09035245', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11429843199337644800', 'uuid-lslong': '13180130800321655663'}, 'enable': 'true', 'created': '2024-09-18T06:59:15', 'last-modified': '2024-09-18T06:59:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.173682'} 2024-09-18 06:59:17,867 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-18 06:59:17,867 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54077161 passed 2024-09-18 06:59:17,867 - DEBUG - ====Verifying policy data for ctest-vn-54077161 in API_Server ====== 2024-09-18 06:59:17,867 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-18 06:59:17,875 - DEBUG - Requesting: http://10.0.0.47:8082/domain/879f800d-4a6a-45bb-86f3-7da4aaaa8742 2024-09-18 06:59:17,890 - DEBUG - Requesting: http://10.0.0.47:8082/project/b7e241de-942e-4a30-8095-d3251a3a525b 2024-09-18 06:59:17,978 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/9e9ef5d4-f6ef-4300-b6e9-3b21ae5b736f 2024-09-18 06:59:17,994 - DEBUG - ==>Verifying data for policy with id: 35e1f4b7-cd81-4edb-a611-0c5c8a5509ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-policy-allow-all-02445713'] 2024-09-18 06:59:17,994 - INFO - VN ctest-vn-54077161 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 06:59:17,994 - DEBUG - Verifying the vn in opserver 2024-09-18 06:59:17,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-54077161 virtual network link through opserver 10.0.0.47 2024-09-18 06:59:17,994 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-18 06:59:18,335 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-18 06:59:18,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-54077161', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-54077161?flat'} 2024-09-18 06:59:18,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-54077161 is found in opserver 2024-09-18 06:59:18,417 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 06:59:18,423 - DEBUG - VRF ids for VN ctest-vn-54077161: {} 2024-09-18 06:59:18,423 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-18 06:59:18,432 - DEBUG - Requesting: http://10.0.0.47:8082/domain/879f800d-4a6a-45bb-86f3-7da4aaaa8742 2024-09-18 06:59:18,448 - DEBUG - Requesting: http://10.0.0.47:8082/project/b7e241de-942e-4a30-8095-d3251a3a525b 2024-09-18 06:59:18,551 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b0347488-a3c1-42cf-8811-f9f0c840e1c0 2024-09-18 06:59:18,572 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b0347488-a3c1-42cf-8811-f9f0c840e1c0 2024-09-18 06:59:18,588 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3610056-d226-4aee-84d8-904c6a214294 2024-09-18 06:59:18,617 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3610056-d226-4aee-84d8-904c6a214294 2024-09-18 06:59:18,648 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/c94d031d-01b1-4073-87db-c50f83b8660e 2024-09-18 06:59:18,671 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 06:59:18,671 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b0347488-a3c1-42cf-8811-f9f0c840e1c0 2024-09-18 06:59:18,693 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3610056-d226-4aee-84d8-904c6a214294 2024-09-18 06:59:18,814 - INFO - Verified VN network id 10 for VN b0347488-a3c1-42cf-8811-f9f0c840e1c0 2024-09-18 06:59:18,814 - INFO - Verifications in API Server for VN ctest-vn-79614140 passed 2024-09-18 06:59:18,814 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b0347488-a3c1-42cf-8811-f9f0c840e1c0 2024-09-18 06:59:18,850 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3610056-d226-4aee-84d8-904c6a214294 2024-09-18 06:59:18,866 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3610056-d226-4aee-84d8-904c6a214294 2024-09-18 06:59:18,886 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/c94d031d-01b1-4073-87db-c50f83b8660e 2024-09-18 06:59:18,941 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-79614140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09035245', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12696901379675996879', 'uuid-lslong': '9804892676309443008'}, 'enable': 'true', 'created': '2024-09-18T06:59:15', 'last-modified': '2024-09-18T06:59:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.986711'} 2024-09-18 06:59:18,950 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-18 06:59:18,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79614140 passed 2024-09-18 06:59:18,950 - DEBUG - ====Verifying policy data for ctest-vn-79614140 in API_Server ====== 2024-09-18 06:59:18,950 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-18 06:59:18,985 - DEBUG - Requesting: http://10.0.0.47:8082/domain/879f800d-4a6a-45bb-86f3-7da4aaaa8742 2024-09-18 06:59:19,025 - DEBUG - Requesting: http://10.0.0.47:8082/project/b7e241de-942e-4a30-8095-d3251a3a525b 2024-09-18 06:59:19,157 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b0347488-a3c1-42cf-8811-f9f0c840e1c0 2024-09-18 06:59:19,177 - DEBUG - ==>Verifying data for policy with id: 35e1f4b7-cd81-4edb-a611-0c5c8a5509ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-09035245', 'ctest-policy-allow-all-02445713'] 2024-09-18 06:59:19,177 - INFO - VN ctest-vn-79614140 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-18 06:59:19,177 - DEBUG - Verifying the vn in opserver 2024-09-18 06:59:19,177 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-79614140 virtual network link through opserver 10.0.0.47 2024-09-18 06:59:19,177 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-18 06:59:19,201 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-79614140', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-79614140?flat'} 2024-09-18 06:59:19,201 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-79614140 is found in opserver 2024-09-18 06:59:19,216 - DEBUG - Do not have enough data to verify VN in agent 2024-09-18 06:59:19,223 - DEBUG - VRF ids for VN ctest-vn-79614140: {} 2024-09-18 06:59:19,317 - DEBUG - Services list from nova: [, , ] 2024-09-18 06:59:20,564 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1987-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1987-1) 2024-09-18 06:59:21,933 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1987-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1987-1) 2024-09-18 06:59:21,933 - INFO - Waiting for VM ctest-TestBasicPolicy-09035245-95107549 to be up.. 2024-09-18 06:59:22,021 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 06:59:27,110 - DEBUG - VM is in ACTIVE state now 2024-09-18 06:59:27,110 - INFO - VM name : ctest-TestBasicPolicy-09035245-95107549 2024-09-18 06:59:27,192 - DEBUG - VM ctest-TestBasicPolicy-09035245-95107549 ID is 096abf60-3fbf-4a08-a655-441ede7978e5 2024-09-18 06:59:27,215 - DEBUG - VM ctest-TestBasicPolicy-09035245-95107549 launched on Node cn-jenkins-deploy-platform-ansible-os-1987-1 2024-09-18 06:59:27,345 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/096abf60-3fbf-4a08-a655-441ede7978e5 2024-09-18 06:59:27,362 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/e301e8f9-cbab-45d4-a6d6-2655e8b9c0ec 2024-09-18 06:59:30,656 - 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 1029ms') 2024-09-18 06:59:30,656 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09035245-95107549 failed! 2024-09-18 06:59:30,717 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09035245:ctest-vn-54077161 is 51.14.153.193 and allocation pool is NOT set 2024-09-18 06:59:32,780 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.63 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.627/5.533/9.440/3.906 ms') 2024-09-18 06:59:32,780 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09035245-95107549 passed 2024-09-18 06:59:32,941 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:59:32,941 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09035245-95107549, IP 51.14.153.195, Port 22 2024-09-18 06:59:33,007 - 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-09-18 06:59:33,095 - DEBUG - VM ctest-TestBasicPolicy-09035245-95107549 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-18 06:59:38,096 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:59:38,096 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09035245-95107549, IP 51.14.153.195, Port 22 2024-09-18 06:59:38,264 - DEBUG - VM ctest-TestBasicPolicy-09035245-95107549 is ready for SSH connections 2024-09-18 06:59:38,264 - INFO - Waiting for VM ctest-TestBasicPolicy-09035245-91389464 to be up.. 2024-09-18 06:59:38,349 - DEBUG - VM is in ACTIVE state now 2024-09-18 06:59:38,349 - INFO - VM name : ctest-TestBasicPolicy-09035245-91389464 2024-09-18 06:59:38,437 - DEBUG - VM ctest-TestBasicPolicy-09035245-91389464 ID is 184e5f1b-a013-4e46-8193-c5a0892d4c92 2024-09-18 06:59:38,438 - DEBUG - VM ctest-TestBasicPolicy-09035245-91389464 launched on Node cn-jenkins-deploy-platform-ansible-os-1987-1 2024-09-18 06:59:38,518 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/184e5f1b-a013-4e46-8193-c5a0892d4c92 2024-09-18 06:59:38,528 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/4b7b2f98-f891-400c-b45d-8e15523643d4 2024-09-18 06:59:39,803 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.354 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.354/1.656/2.958/1.302 ms') 2024-09-18 06:59:39,803 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09035245-91389464 passed 2024-09-18 06:59:39,961 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:59:39,961 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09035245-91389464, IP 112.14.104.131, Port 22 2024-09-18 06:59:40,127 - DEBUG - VM ctest-TestBasicPolicy-09035245-91389464 is ready for SSH connections 2024-09-18 06:59:40,127 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:59:40,127 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.14.104.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-18 06:59:40,127 - DEBUG - ping -s 56 -c 3 -W 1 112.14.104.131 2024-09-18 06:59:44,191 - DEBUG - PING 112.14.104.131 (112.14.104.131): 56 data bytes 64 bytes from 112.14.104.131: seq=0 ttl=63 time=4.854 ms 64 bytes from 112.14.104.131: seq=1 ttl=63 time=0.906 ms 64 bytes from 112.14.104.131: seq=2 ttl=63 time=1.048 ms --- 112.14.104.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.906/2.269/4.854 ms 2024-09-18 06:59:44,191 - INFO - Ping to IP 112.14.104.131 from VM ctest-TestBasicPolicy-09035245-95107549 passed 2024-09-18 06:59:44,381 - DEBUG - Policy Update Response {"network-policy": {"uuid": "35e1f4b7-cd81-4edb-a611-0c5c8a5509ed", "href": "http://10.0.0.47:8082/network-policy/35e1f4b7-cd81-4edb-a611-0c5c8a5509ed"}} 2024-09-18 06:59:44,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 06:59:44,381 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.14.104.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-18 06:59:44,381 - DEBUG - ping -s 56 -c 3 -W 1 112.14.104.131 2024-09-18 06:59:47,603 - DEBUG - PING 112.14.104.131 (112.14.104.131): 56 data bytes 64 bytes from 112.14.104.131: seq=0 ttl=63 time=1.580 ms --- 112.14.104.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.580/1.580/1.580 ms 2024-09-18 06:59:47,603 - WARNING - Ping to IP 112.14.104.131 from VM ctest-TestBasicPolicy-09035245-95107549 failed 2024-09-18 06:59:47,603 - INFO - Deleting VM ctest-TestBasicPolicy-09035245-91389464 2024-09-18 06:59:47,676 - INFO - Deleting VM ctest-TestBasicPolicy-09035245-95107549 2024-09-18 06:59:48,158 - INFO - Deleted policy ctest-policy-allow-all-02445713 2024-09-18 06:59:48,158 - INFO - Deleting VN ctest-vn-79614140 2024-09-18 06:59:48,204 - DEBUG - VN b0347488-a3c1-42cf-8811-f9f0c840e1c0 still in use: Unable to complete operation on network b0347488-a3c1-42cf-8811-f9f0c840e1c0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-54c474ac-abdd-4789-a9da-e3265e6ed01a'] 2024-09-18 06:59:48,204 - WARNING - Deleting VN ctest-vn-79614140 failed..Will retry 2024-09-18 06:59:50,367 - DEBUG - Response for deleting network () 2024-09-18 06:59:50,367 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3610056-d226-4aee-84d8-904c6a214294 2024-09-18 06:59:50,374 - DEBUG - Response Code: 404 2024-09-18 06:59:50,374 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-18 06:59:50,383 - DEBUG - Requesting: http://10.0.0.47:8082/domain/879f800d-4a6a-45bb-86f3-7da4aaaa8742 2024-09-18 06:59:50,441 - DEBUG - Requesting: http://10.0.0.47:8082/project/b7e241de-942e-4a30-8095-d3251a3a525b 2024-09-18 06:59:50,528 - INFO - Validated that VN ctest-vn-79614140 is not found in API Server 2024-09-18 06:59:50,540 - DEBUG - VN ctest-vn-79614140 is not present in Agent 10.0.0.47 2024-09-18 06:59:50,540 - INFO - Validated that VN ctest-vn-79614140 is not in any agent 2024-09-18 06:59:50,560 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79614140 info 2024-09-18 06:59:50,560 - INFO - Deleting VN ctest-vn-54077161 2024-09-18 06:59:50,682 - DEBUG - Response for deleting network () 2024-09-18 06:59:50,682 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/e5e21043-645b-4b82-b892-0717d7394d4b 2024-09-18 06:59:50,693 - DEBUG - Response Code: 404 2024-09-18 06:59:50,693 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-18 06:59:50,709 - DEBUG - Requesting: http://10.0.0.47:8082/domain/879f800d-4a6a-45bb-86f3-7da4aaaa8742 2024-09-18 06:59:50,725 - DEBUG - Requesting: http://10.0.0.47:8082/project/b7e241de-942e-4a30-8095-d3251a3a525b 2024-09-18 06:59:50,812 - INFO - Validated that VN ctest-vn-54077161 is not found in API Server 2024-09-18 06:59:50,825 - DEBUG - VN ctest-vn-54077161 is not present in Agent 10.0.0.47 2024-09-18 06:59:50,825 - INFO - Validated that VN ctest-vn-54077161 is not in any agent 2024-09-18 06:59:50,844 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54077161 info 2024-09-18 06:59:51,108 - DEBUG - No XMPP flaps were noticed during the test
2024-09-18 06:59:51,108 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-09-18 06:59:51,108 - INFO - -------------------------------------------------------------------------------- 2024-09-18 06:59:51,907 - INFO - Deleted project: ctest-TestBasicPolicy-09035245, ID : b7e241de-942e-4a30-8095-d3251a3a525b