2025-02-03 17:18:48,085 - INFO - Domain Default found not creating 2025-02-03 17:18:48,271 - INFO - Project ctest-TestBasicPolicy-85358810 not found, creating it 2025-02-03 17:18:48,779 - INFO - Created Project:ctest-TestBasicPolicy-85358810, ID : bf830ac9-e169-4f51-91e3-4b7f70bbbcf3 2025-02-03 17:18:50,429 - INFO - ================================================================================ 2025-02-03 17:18:50,429 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-03 17:18:50,429 - 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 2025-02-03 17:18:50,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.19': '0'}} with 2025-02-03 17:18:50,704 - INFO - Initial checks done. Running the testcase now 2025-02-03 17:18:50,704 - INFO - 2025-02-03 17:18:51,339 - DEBUG - Response for create_network : {'network': {'id': '2ff662a9-c7f6-4df8-806b-6bf89b5443b2', 'name': 'ctest-vn-89345384', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-89345384'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 17:18:51,537 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a1441c1-c778-4da0-a0b8-e1c79a94c820', 'name': '', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'network_id': '2ff662a9-c7f6-4df8-806b-6bf89b5443b2', 'ip_version': 4, 'cidr': '175.114.48.0/26', 'allocation_pools': [{'start': '175.114.48.2', 'end': '175.114.48.62'}], 'gateway_ip': '175.114.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.114.48.2', 'tags': [], 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3'}} 2025-02-03 17:18:51,560 - INFO - Created VN ctest-vn-89345384 2025-02-03 17:18:51,617 - DEBUG - VN ctest-vn-89345384 UUID is 2ff662a9-c7f6-4df8-806b-6bf89b5443b2 2025-02-03 17:18:51,945 - DEBUG - Response for create_network : {'network': {'id': '7712341b-b6a5-432a-b9e6-42e5a1bd0320', 'name': 'ctest-vn-54001075', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-54001075'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 17:18:52,179 - DEBUG - Response for create_subnet : {'subnet': {'id': '0885ceec-5c43-49f1-854b-a0c0bf603f86', 'name': '', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'network_id': '7712341b-b6a5-432a-b9e6-42e5a1bd0320', 'ip_version': 4, 'cidr': '30.110.104.128/26', 'allocation_pools': [{'start': '30.110.104.130', 'end': '30.110.104.190'}], 'gateway_ip': '30.110.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.110.104.130', 'tags': [], 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3'}} 2025-02-03 17:18:52,200 - INFO - Created VN ctest-vn-54001075 2025-02-03 17:18:52,253 - DEBUG - VN ctest-vn-54001075 UUID is 7712341b-b6a5-432a-b9e6-42e5a1bd0320 2025-02-03 17:18:52,377 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384, 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-85358810:ctest-vn-54001075, 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] 2025-02-03 17:18:52,717 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ff662a9-c7f6-4df8-806b-6bf89b5443b2', 'name': 'ctest-vn-89345384', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a1441c1-c778-4da0-a0b8-e1c79a94c820'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-89345384'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503']], 'subnet_ipam': [{'subnet_cidr': '175.114.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 17:18:52,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7712341b-b6a5-432a-b9e6-42e5a1bd0320', 'name': 'ctest-vn-54001075', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0885ceec-5c43-49f1-854b-a0c0bf603f86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-54001075'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503']], 'subnet_ipam': [{'subnet_cidr': '30.110.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 17:18:53,138 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2025-02-03 17:18:53,491 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2025-02-03 17:18:53,524 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb 2025-02-03 17:18:53,542 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3 2025-02-03 17:18:53,622 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2 2025-02-03 17:18:53,635 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2 2025-02-03 17:18:53,646 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99 2025-02-03 17:18:53,654 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99 2025-02-03 17:18:53,663 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/7f53cf5d-c397-4e48-836e-fce4618662c4 2025-02-03 17:18:53,670 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-03 17:18:53,671 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2 2025-02-03 17:18:53,681 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99 2025-02-03 17:18:53,697 - INFO - Verified VN network id 7 for VN 2ff662a9-c7f6-4df8-806b-6bf89b5443b2 2025-02-03 17:18:53,697 - INFO - Verifications in API Server for VN ctest-vn-89345384 passed 2025-02-03 17:18:53,697 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2 2025-02-03 17:18:53,709 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99 2025-02-03 17:18:53,718 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99 2025-02-03 17:18:53,727 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/7f53cf5d-c397-4e48-836e-fce4618662c4 2025-02-03 17:18:53,745 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85358810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3456058245397237240', 'uuid-lslong': '9253608574864868274'}, 'enable': 'true', 'created': '2025-02-03T17:18:51', 'last-modified': '2025-02-03T17:18:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068932'} 2025-02-03 17:18:53,754 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-03 17:18:53,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89345384 passed 2025-02-03 17:18:53,755 - DEBUG - ====Verifying policy data for ctest-vn-89345384 in API_Server ====== 2025-02-03 17:18:53,755 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2025-02-03 17:18:53,762 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb 2025-02-03 17:18:53,777 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3 2025-02-03 17:18:53,860 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2 2025-02-03 17:18:53,873 - DEBUG - ==>Verifying data for policy with id: 3abda805-9735-4976-a42d-f7e19a65aa96, fqn: ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503'] 2025-02-03 17:18:53,873 - INFO - VN ctest-vn-89345384 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 17:18:53,873 - DEBUG - Verifying the vn in opserver 2025-02-03 17:18:53,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384 virtual network link through opserver 10.0.0.32 2025-02-03 17:18:53,873 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2025-02-03 17:18:54,211 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2025-02-03 17:18:54,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384?flat'} 2025-02-03 17:18:54,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384 is found in opserver 2025-02-03 17:18:54,288 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 17:18:54,294 - DEBUG - VRF ids for VN ctest-vn-89345384: {} 2025-02-03 17:18:54,294 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2025-02-03 17:18:54,301 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb 2025-02-03 17:18:54,315 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3 2025-02-03 17:18:54,391 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320 2025-02-03 17:18:54,408 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320 2025-02-03 17:18:54,422 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022 2025-02-03 17:18:54,433 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022 2025-02-03 17:18:54,444 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f48a75d7-e3d1-45c6-ae46-a644ba2bc849 2025-02-03 17:18:54,454 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 17:18:54,454 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320 2025-02-03 17:18:54,469 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022 2025-02-03 17:18:54,488 - INFO - Verified VN network id 8 for VN 7712341b-b6a5-432a-b9e6-42e5a1bd0320 2025-02-03 17:18:54,488 - INFO - Verifications in API Server for VN ctest-vn-54001075 passed 2025-02-03 17:18:54,488 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320 2025-02-03 17:18:54,500 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022 2025-02-03 17:18:54,510 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022 2025-02-03 17:18:54,521 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f48a75d7-e3d1-45c6-ae46-a644ba2bc849 2025-02-03 17:18:54,540 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85358810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8579977533727261482', 'uuid-lslong': '13395467695688581920'}, 'enable': 'true', 'created': '2025-02-03T17:18:51', 'last-modified': '2025-02-03T17:18:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607017'} 2025-02-03 17:18:54,549 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 17:18:54,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54001075 passed 2025-02-03 17:18:54,549 - DEBUG - ====Verifying policy data for ctest-vn-54001075 in API_Server ====== 2025-02-03 17:18:54,549 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2025-02-03 17:18:54,558 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb 2025-02-03 17:18:54,573 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3 2025-02-03 17:18:54,655 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320 2025-02-03 17:18:54,668 - DEBUG - ==>Verifying data for policy with id: 3abda805-9735-4976-a42d-f7e19a65aa96, fqn: ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503'] 2025-02-03 17:18:54,668 - INFO - VN ctest-vn-54001075 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 17:18:54,668 - DEBUG - Verifying the vn in opserver 2025-02-03 17:18:54,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075 virtual network link through opserver 10.0.0.32 2025-02-03 17:18:54,668 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2025-02-03 17:18:54,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075?flat'} 2025-02-03 17:18:54,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075 is found in opserver 2025-02-03 17:18:54,694 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 17:18:54,700 - DEBUG - VRF ids for VN ctest-vn-54001075: {} 2025-02-03 17:18:54,764 - DEBUG - Services list from nova: [, , ] 2025-02-03 17:18:55,950 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2681-1) 2025-02-03 17:18:57,486 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2681-1) 2025-02-03 17:18:57,486 - INFO - Waiting for VM ctest-TestBasicPolicy-85358810-27605078 to be up.. 2025-02-03 17:18:57,600 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-03 17:19:02,695 - DEBUG - VM is in ACTIVE state now 2025-02-03 17:19:02,695 - INFO - VM name : ctest-TestBasicPolicy-85358810-27605078 2025-02-03 17:19:02,786 - DEBUG - VM ctest-TestBasicPolicy-85358810-27605078 ID is 55dbfb14-8627-4a3a-b2b8-99737c0822a7 2025-02-03 17:19:02,807 - DEBUG - VM ctest-TestBasicPolicy-85358810-27605078 launched on Node cn-jenkins-deploy-platform-ansible-os-2681-1 2025-02-03 17:19:02,898 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/55dbfb14-8627-4a3a-b2b8-99737c0822a7 2025-02-03 17:19:02,913 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/813cfc76-a688-414a-b320-a74ea375a2f9 2025-02-03 17:19:06,174 - 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 1010ms') 2025-02-03 17:19:06,174 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85358810-27605078 failed! 2025-02-03 17:19:06,234 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384 is 175.114.48.1 and allocation pool is NOT set 2025-02-03 17:19:08,299 - 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.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.46 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.455/4.317/7.180/2.862 ms') 2025-02-03 17:19:08,299 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85358810-27605078 passed 2025-02-03 17:19:08,458 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:19:08,458 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85358810-27605078, IP 175.114.48.3, Port 22 2025-02-03 17:19:08,523 - 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': ''} 2025-02-03 17:19:08,617 - DEBUG - VM ctest-TestBasicPolicy-85358810-27605078 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-03 17:19:13,618 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:19:13,618 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85358810-27605078, IP 175.114.48.3, Port 22 2025-02-03 17:19:13,773 - DEBUG - VM ctest-TestBasicPolicy-85358810-27605078 is ready for SSH connections 2025-02-03 17:19:13,774 - INFO - Waiting for VM ctest-TestBasicPolicy-85358810-28806473 to be up.. 2025-02-03 17:19:13,853 - DEBUG - VM is in ACTIVE state now 2025-02-03 17:19:13,853 - INFO - VM name : ctest-TestBasicPolicy-85358810-28806473 2025-02-03 17:19:13,940 - DEBUG - VM ctest-TestBasicPolicy-85358810-28806473 ID is 4061b252-549e-4d31-9da1-e1ef841d0fc0 2025-02-03 17:19:13,940 - DEBUG - VM ctest-TestBasicPolicy-85358810-28806473 launched on Node cn-jenkins-deploy-platform-ansible-os-2681-1 2025-02-03 17:19:14,041 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/4061b252-549e-4d31-9da1-e1ef841d0fc0 2025-02-03 17:19:14,051 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/fe8ae83f-b34a-42d1-86f9-6924ff4d2476 2025-02-03 17:19:15,296 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.556 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.556/1.871/3.187/1.315 ms') 2025-02-03 17:19:15,296 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85358810-28806473 passed 2025-02-03 17:19:15,454 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:19:15,454 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85358810-28806473, IP 30.110.104.131, Port 22 2025-02-03 17:19:15,609 - DEBUG - VM ctest-TestBasicPolicy-85358810-28806473 is ready for SSH connections 2025-02-03 17:19:15,609 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:19:15,609 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.110.104.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2025-02-03 17:19:15,609 - DEBUG - ping -s 56 -c 3 -W 1 30.110.104.131 2025-02-03 17:19:19,753 - DEBUG - PING 30.110.104.131 (30.110.104.131): 56 data bytes 64 bytes from 30.110.104.131: seq=0 ttl=63 time=5.337 ms 64 bytes from 30.110.104.131: seq=1 ttl=63 time=1.046 ms 64 bytes from 30.110.104.131: seq=2 ttl=63 time=0.977 ms --- 30.110.104.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.977/2.453/5.337 ms 2025-02-03 17:19:19,754 - INFO - Ping to IP 30.110.104.131 from VM ctest-TestBasicPolicy-85358810-27605078 passed 2025-02-03 17:19:19,945 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3abda805-9735-4976-a42d-f7e19a65aa96", "href": "http://10.0.0.32:8082/network-policy/3abda805-9735-4976-a42d-f7e19a65aa96"}} 2025-02-03 17:19:19,945 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:19:19,946 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.110.104.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2025-02-03 17:19:19,946 - DEBUG - ping -s 56 -c 3 -W 1 30.110.104.131 2025-02-03 17:19:23,175 - DEBUG - PING 30.110.104.131 (30.110.104.131): 56 data bytes 64 bytes from 30.110.104.131: seq=0 ttl=63 time=1.666 ms --- 30.110.104.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.666/1.666/1.666 ms 2025-02-03 17:19:23,175 - WARNING - Ping to IP 30.110.104.131 from VM ctest-TestBasicPolicy-85358810-27605078 failed 2025-02-03 17:19:23,175 - INFO - Deleting VM ctest-TestBasicPolicy-85358810-28806473 2025-02-03 17:19:23,254 - INFO - Deleting VM ctest-TestBasicPolicy-85358810-27605078 2025-02-03 17:19:23,707 - INFO - Deleted policy ctest-policy-allow-all-12759503 2025-02-03 17:19:23,707 - INFO - Deleting VN ctest-vn-54001075 2025-02-03 17:19:23,761 - DEBUG - VN 7712341b-b6a5-432a-b9e6-42e5a1bd0320 still in use: Unable to complete operation on network 7712341b-b6a5-432a-b9e6-42e5a1bd0320. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6dc89317-8ef6-4b53-b5c7-f01d13c503ec'] 2025-02-03 17:19:23,761 - WARNING - Deleting VN ctest-vn-54001075 failed..Will retry 2025-02-03 17:19:25,878 - DEBUG - Response for deleting network () 2025-02-03 17:19:25,878 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022 2025-02-03 17:19:25,884 - DEBUG - Response Code: 404 2025-02-03 17:19:25,884 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2025-02-03 17:19:25,894 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb 2025-02-03 17:19:25,955 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3 2025-02-03 17:19:26,042 - INFO - Validated that VN ctest-vn-54001075 is not found in API Server 2025-02-03 17:19:26,056 - DEBUG - VN ctest-vn-54001075 is not present in Agent 10.0.0.32 2025-02-03 17:19:26,057 - INFO - Validated that VN ctest-vn-54001075 is not in any agent 2025-02-03 17:19:26,077 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54001075 info 2025-02-03 17:19:26,077 - INFO - Deleting VN ctest-vn-89345384 2025-02-03 17:19:26,215 - DEBUG - Response for deleting network () 2025-02-03 17:19:26,215 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99 2025-02-03 17:19:26,226 - DEBUG - Response Code: 404 2025-02-03 17:19:26,226 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2025-02-03 17:19:26,235 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb 2025-02-03 17:19:26,298 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3 2025-02-03 17:19:26,377 - INFO - Validated that VN ctest-vn-89345384 is not found in API Server 2025-02-03 17:19:26,392 - DEBUG - VN ctest-vn-89345384 is not present in Agent 10.0.0.32 2025-02-03 17:19:26,392 - INFO - Validated that VN ctest-vn-89345384 is not in any agent 2025-02-03 17:19:26,411 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89345384 info 2025-02-03 17:19:26,668 - DEBUG - No XMPP flaps were noticed during the test 2025-02-03 17:19:26,668 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-02-03 17:19:26,668 - INFO - -------------------------------------------------------------------------------- 2025-02-03 17:19:27,434 - INFO - Deleted project: ctest-TestBasicPolicy-85358810, ID : bf830ac9-e169-4f51-91e3-4b7f70bbbcf3