2025-06-23 13:41:03,226 - INFO - Domain Default found not creating 2025-06-23 13:41:03,394 - INFO - Project ctest-TestBasicPolicy-48907805 not found, creating it 2025-06-23 13:41:03,884 - INFO - Created Project:ctest-TestBasicPolicy-48907805, ID : d5e85501-38eb-4f62-af61-d625c7e68c23 2025-06-23 13:41:05,528 - INFO - ================================================================================ 2025-06-23 13:41:05,528 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-23 13:41:05,528 - 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-06-23 13:41:05,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-23 13:41:05,797 - INFO - Initial checks done. Running the testcase now 2025-06-23 13:41:05,797 - INFO - 2025-06-23 13:41:06,411 - DEBUG - Response for create_network : {'network': {'id': 'e7748e27-2165-457b-a521-32fea63d816e', 'name': 'ctest-vn-17144924', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-17144924'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 13:41:06,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '633229be-5c5e-4136-9c71-db9966d4efb9', 'name': '', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'network_id': 'e7748e27-2165-457b-a521-32fea63d816e', 'ip_version': 4, 'cidr': '160.151.162.192/26', 'allocation_pools': [{'start': '160.151.162.194', 'end': '160.151.162.254'}], 'gateway_ip': '160.151.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.151.162.194', 'tags': [], 'project_id': 'd5e8550138eb4f62af61d625c7e68c23'}} 2025-06-23 13:41:06,657 - INFO - Created VN ctest-vn-17144924 2025-06-23 13:41:06,710 - DEBUG - VN ctest-vn-17144924 UUID is e7748e27-2165-457b-a521-32fea63d816e 2025-06-23 13:41:07,032 - DEBUG - Response for create_network : {'network': {'id': '071ec3ad-1156-42f9-8cdd-67cb7bb32e75', 'name': 'ctest-vn-04194398', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-04194398'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 13:41:07,235 - DEBUG - Response for create_subnet : {'subnet': {'id': '434fc8fc-7d89-43f8-ae5b-3842c75027bc', 'name': '', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'network_id': '071ec3ad-1156-42f9-8cdd-67cb7bb32e75', 'ip_version': 4, 'cidr': '144.13.92.128/26', 'allocation_pools': [{'start': '144.13.92.130', 'end': '144.13.92.190'}], 'gateway_ip': '144.13.92.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.13.92.130', 'tags': [], 'project_id': 'd5e8550138eb4f62af61d625c7e68c23'}} 2025-06-23 13:41:07,254 - INFO - Created VN ctest-vn-04194398 2025-06-23 13:41:07,310 - DEBUG - VN ctest-vn-04194398 UUID is 071ec3ad-1156-42f9-8cdd-67cb7bb32e75 2025-06-23 13:41:07,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924, 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-48907805:ctest-vn-04194398, 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-06-23 13:41:07,772 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7748e27-2165-457b-a521-32fea63d816e', 'name': 'ctest-vn-17144924', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['633229be-5c5e-4136-9c71-db9966d4efb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-17144924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560']], 'subnet_ipam': [{'subnet_cidr': '160.151.162.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 13:41:08,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '071ec3ad-1156-42f9-8cdd-67cb7bb32e75', 'name': 'ctest-vn-04194398', 'tenant_id': 'd5e8550138eb4f62af61d625c7e68c23', 'project_id': 'd5e8550138eb4f62af61d625c7e68c23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['434fc8fc-7d89-43f8-ae5b-3842c75027bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-vn-04194398'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560']], 'subnet_ipam': [{'subnet_cidr': '144.13.92.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 13:41:08,198 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 13:41:08,534 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 13:41:08,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f 2025-06-23 13:41:08,581 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23 2025-06-23 13:41:08,663 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e 2025-06-23 13:41:08,678 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e 2025-06-23 13:41:08,690 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59 2025-06-23 13:41:08,699 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59 2025-06-23 13:41:08,708 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6982062e-23b1-40ab-9676-093abd4b5529 2025-06-23 13:41:08,718 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 13:41:08,718 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e 2025-06-23 13:41:08,729 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59 2025-06-23 13:41:08,746 - INFO - Verified VN network id 9 for VN e7748e27-2165-457b-a521-32fea63d816e 2025-06-23 13:41:08,746 - INFO - Verifications in API Server for VN ctest-vn-17144924 passed 2025-06-23 13:41:08,746 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e 2025-06-23 13:41:08,759 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59 2025-06-23 13:41:08,769 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59 2025-06-23 13:41:08,779 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6982062e-23b1-40ab-9676-093abd4b5529 2025-06-23 13:41:08,794 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48907805', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16678111618774943099', 'uuid-lslong': '11898847759781691758'}, 'enable': 'true', 'created': '2025-06-23T13:41:06', 'last-modified': '2025-06-23T13:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065554'} 2025-06-23 13:41:08,802 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 13:41:08,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17144924 passed 2025-06-23 13:41:08,803 - DEBUG - ====Verifying policy data for ctest-vn-17144924 in API_Server ====== 2025-06-23 13:41:08,803 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 13:41:08,810 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f 2025-06-23 13:41:08,823 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23 2025-06-23 13:41:08,905 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7748e27-2165-457b-a521-32fea63d816e 2025-06-23 13:41:08,922 - DEBUG - ==>Verifying data for policy with id: e7c153fd-c873-4219-b07e-d57c7adca358, fqn: ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560'] 2025-06-23 13:41:08,922 - INFO - VN ctest-vn-17144924 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 13:41:08,922 - DEBUG - Verifying the vn in opserver 2025-06-23 13:41:08,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924 virtual network link through opserver 10.0.0.254 2025-06-23 13:41:08,922 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 13:41:09,263 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 13:41:09,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924?flat'} 2025-06-23 13:41:09,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924 is found in opserver 2025-06-23 13:41:09,339 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 13:41:09,344 - DEBUG - VRF ids for VN ctest-vn-17144924: {} 2025-06-23 13:41:09,344 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 13:41:09,351 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f 2025-06-23 13:41:09,365 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23 2025-06-23 13:41:09,441 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75 2025-06-23 13:41:09,455 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75 2025-06-23 13:41:09,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c 2025-06-23 13:41:09,477 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c 2025-06-23 13:41:09,485 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9c28c831-cd5b-4095-a67c-9076c0d828bc 2025-06-23 13:41:09,493 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 13:41:09,493 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75 2025-06-23 13:41:09,505 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c 2025-06-23 13:41:09,523 - INFO - Verified VN network id 10 for VN 071ec3ad-1156-42f9-8cdd-67cb7bb32e75 2025-06-23 13:41:09,523 - INFO - Verifications in API Server for VN ctest-vn-04194398 passed 2025-06-23 13:41:09,523 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75 2025-06-23 13:41:09,535 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c 2025-06-23 13:41:09,544 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c 2025-06-23 13:41:09,553 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9c28c831-cd5b-4095-a67c-9076c0d828bc 2025-06-23 13:41:09,569 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48907805', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '513062555654439673', 'uuid-lslong': '10150383258814328437'}, 'enable': 'true', 'created': '2025-06-23T13:41:06', 'last-modified': '2025-06-23T13:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.573912'} 2025-06-23 13:41:09,577 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 13:41:09,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04194398 passed 2025-06-23 13:41:09,578 - DEBUG - ====Verifying policy data for ctest-vn-04194398 in API_Server ====== 2025-06-23 13:41:09,578 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 13:41:09,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f 2025-06-23 13:41:09,599 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23 2025-06-23 13:41:09,730 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/071ec3ad-1156-42f9-8cdd-67cb7bb32e75 2025-06-23 13:41:09,753 - DEBUG - ==>Verifying data for policy with id: e7c153fd-c873-4219-b07e-d57c7adca358, fqn: ['default-domain', 'ctest-TestBasicPolicy-48907805', 'ctest-policy-allow-all-32423560'] 2025-06-23 13:41:09,753 - INFO - VN ctest-vn-04194398 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 13:41:09,753 - DEBUG - Verifying the vn in opserver 2025-06-23 13:41:09,753 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398 virtual network link through opserver 10.0.0.254 2025-06-23 13:41:09,753 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 13:41:09,791 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398?flat'} 2025-06-23 13:41:09,791 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-04194398 is found in opserver 2025-06-23 13:41:09,807 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 13:41:09,817 - DEBUG - VRF ids for VN ctest-vn-04194398: {} 2025-06-23 13:41:09,928 - DEBUG - Services list from nova: [, , ] 2025-06-23 13:41:11,188 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3520-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3520-1) 2025-06-23 13:41:12,621 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3520-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3520-1) 2025-06-23 13:41:12,621 - INFO - Waiting for VM ctest-TestBasicPolicy-48907805-53595965 to be up.. 2025-06-23 13:41:12,722 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-23 13:41:17,810 - DEBUG - VM is in ACTIVE state now 2025-06-23 13:41:17,810 - INFO - VM name : ctest-TestBasicPolicy-48907805-53595965 2025-06-23 13:41:17,894 - DEBUG - VM ctest-TestBasicPolicy-48907805-53595965 ID is 8a3e88d0-8541-4537-a72c-6c233f70dd7b 2025-06-23 13:41:17,917 - DEBUG - VM ctest-TestBasicPolicy-48907805-53595965 launched on Node cn-jenkins-deploy-platform-ansible-os-3520-1 2025-06-23 13:41:18,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/8a3e88d0-8541-4537-a72c-6c233f70dd7b 2025-06-23 13:41:18,020 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/44f9b9b1-7792-4530-855c-b64d9c26bae0 2025-06-23 13:41:21,283 - 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 1013ms') 2025-06-23 13:41:21,283 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48907805-53595965 failed! 2025-06-23 13:41:21,342 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48907805:ctest-vn-17144924 is 160.151.162.193 and allocation pool is NOT set 2025-06-23 13:41:23,405 - 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=4.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.15 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.148/3.224/4.301/1.076 ms') 2025-06-23 13:41:23,405 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48907805-53595965 passed 2025-06-23 13:41:23,562 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 13:41:23,563 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48907805-53595965, IP 160.151.162.195, Port 22 2025-06-23 13:41:23,628 - 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-06-23 13:41:23,733 - DEBUG - VM ctest-TestBasicPolicy-48907805-53595965 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-23 13:41:28,734 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 13:41:28,734 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48907805-53595965, IP 160.151.162.195, Port 22 2025-06-23 13:41:28,895 - DEBUG - VM ctest-TestBasicPolicy-48907805-53595965 is ready for SSH connections 2025-06-23 13:41:28,895 - INFO - Waiting for VM ctest-TestBasicPolicy-48907805-78640469 to be up.. 2025-06-23 13:41:28,985 - DEBUG - VM is in ACTIVE state now 2025-06-23 13:41:28,985 - INFO - VM name : ctest-TestBasicPolicy-48907805-78640469 2025-06-23 13:41:29,080 - DEBUG - VM ctest-TestBasicPolicy-48907805-78640469 ID is eb76b6ed-1886-48a9-9ae7-6b098ce38a34 2025-06-23 13:41:29,080 - DEBUG - VM ctest-TestBasicPolicy-48907805-78640469 launched on Node cn-jenkins-deploy-platform-ansible-os-3520-1 2025-06-23 13:41:29,162 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/eb76b6ed-1886-48a9-9ae7-6b098ce38a34 2025-06-23 13:41:29,172 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/16b01f8d-6540-46ac-9c7c-b5e607dd6228 2025-06-23 13:41:30,415 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.422 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.422/1.669/2.917/1.247 ms') 2025-06-23 13:41:30,416 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-48907805-78640469 passed 2025-06-23 13:41:30,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 13:41:30,570 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48907805-78640469, IP 144.13.92.131, Port 22 2025-06-23 13:41:30,740 - DEBUG - VM ctest-TestBasicPolicy-48907805-78640469 is ready for SSH connections 2025-06-23 13:41:30,740 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 13:41:30,741 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.13.92.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-23 13:41:30,741 - DEBUG - ping -s 56 -c 3 -W 1 144.13.92.131 2025-06-23 13:41:34,882 - DEBUG - PING 144.13.92.131 (144.13.92.131): 56 data bytes 64 bytes from 144.13.92.131: seq=0 ttl=63 time=4.134 ms 64 bytes from 144.13.92.131: seq=1 ttl=63 time=0.977 ms 64 bytes from 144.13.92.131: seq=2 ttl=63 time=0.928 ms --- 144.13.92.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.928/2.013/4.134 ms 2025-06-23 13:41:34,882 - INFO - Ping to IP 144.13.92.131 from VM ctest-TestBasicPolicy-48907805-53595965 passed 2025-06-23 13:41:35,078 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e7c153fd-c873-4219-b07e-d57c7adca358", "href": "http://10.0.0.254:8082/network-policy/e7c153fd-c873-4219-b07e-d57c7adca358"}} 2025-06-23 13:41:35,078 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 13:41:35,078 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.13.92.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-23 13:41:35,078 - DEBUG - ping -s 56 -c 3 -W 1 144.13.92.131 2025-06-23 13:41:38,300 - DEBUG - PING 144.13.92.131 (144.13.92.131): 56 data bytes 64 bytes from 144.13.92.131: seq=0 ttl=63 time=1.755 ms --- 144.13.92.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.755/1.755/1.755 ms 2025-06-23 13:41:38,301 - WARNING - Ping to IP 144.13.92.131 from VM ctest-TestBasicPolicy-48907805-53595965 failed 2025-06-23 13:41:38,301 - INFO - Deleting VM ctest-TestBasicPolicy-48907805-78640469 2025-06-23 13:41:38,376 - INFO - Deleting VM ctest-TestBasicPolicy-48907805-53595965 2025-06-23 13:41:38,847 - INFO - Deleted policy ctest-policy-allow-all-32423560 2025-06-23 13:41:38,847 - INFO - Deleting VN ctest-vn-04194398 2025-06-23 13:41:38,902 - DEBUG - VN 071ec3ad-1156-42f9-8cdd-67cb7bb32e75 still in use: Unable to complete operation on network 071ec3ad-1156-42f9-8cdd-67cb7bb32e75. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4e1deaa4-2b8c-47ac-a49e-c480882ead20'] 2025-06-23 13:41:38,902 - WARNING - Deleting VN ctest-vn-04194398 failed..Will retry 2025-06-23 13:41:41,048 - DEBUG - Response for deleting network () 2025-06-23 13:41:41,048 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d04f7d3e-0a9c-4d10-9cd5-89ec46b2660c 2025-06-23 13:41:41,056 - DEBUG - Response Code: 404 2025-06-23 13:41:41,056 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 13:41:41,063 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f 2025-06-23 13:41:41,122 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23 2025-06-23 13:41:41,203 - INFO - Validated that VN ctest-vn-04194398 is not found in API Server 2025-06-23 13:41:41,215 - DEBUG - VN ctest-vn-04194398 is not present in Agent 10.0.0.254 2025-06-23 13:41:41,215 - INFO - Validated that VN ctest-vn-04194398 is not in any agent 2025-06-23 13:41:41,232 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04194398 info 2025-06-23 13:41:41,232 - INFO - Deleting VN ctest-vn-17144924 2025-06-23 13:41:41,356 - DEBUG - Response for deleting network () 2025-06-23 13:41:41,356 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/215baf55-eebd-46e4-bcce-f29e8c26cc59 2025-06-23 13:41:41,363 - DEBUG - Response Code: 404 2025-06-23 13:41:41,363 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 13:41:41,370 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9189379d-8694-4cc0-a10d-d0e549fcaa6f 2025-06-23 13:41:41,424 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5e85501-38eb-4f62-af61-d625c7e68c23 2025-06-23 13:41:41,498 - INFO - Validated that VN ctest-vn-17144924 is not found in API Server 2025-06-23 13:41:41,510 - DEBUG - VN ctest-vn-17144924 is not present in Agent 10.0.0.254 2025-06-23 13:41:41,510 - INFO - Validated that VN ctest-vn-17144924 is not in any agent 2025-06-23 13:41:41,528 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17144924 info 2025-06-23 13:41:41,785 - DEBUG - No XMPP flaps were noticed during the test
2025-06-23 13:41:41,785 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-23 13:41:41,785 - INFO - -------------------------------------------------------------------------------- 2025-06-23 13:41:42,537 - INFO - Deleted project: ctest-TestBasicPolicy-48907805, ID : d5e85501-38eb-4f62-af61-d625c7e68c23