2025-01-08 09:18:34,165 - INFO - Domain Default found not creating 2025-01-08 09:18:34,330 - INFO - Project ctest-TestBasicPolicy-80242886 not found, creating it 2025-01-08 09:18:34,831 - INFO - Created Project:ctest-TestBasicPolicy-80242886, ID : cce5326e-bc64-41e2-bb68-50edc580c92e 2025-01-08 09:18:36,344 - INFO - ================================================================================ 2025-01-08 09:18:36,344 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-08 09:18:36,344 - 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-01-08 09:18:36,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.27': '0'}} with 2025-01-08 09:18:36,607 - INFO - Initial checks done. Running the testcase now 2025-01-08 09:18:36,607 - INFO - 2025-01-08 09:18:37,175 - DEBUG - Response for create_network : {'network': {'id': 'b8e93371-b32d-419b-8563-2d9598cdfebc', 'name': 'ctest-vn-61527652', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-61527652'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 09:18:37,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '6705ee70-8cea-45fb-94de-ea828d4ea1dd', 'name': '', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'network_id': 'b8e93371-b32d-419b-8563-2d9598cdfebc', 'ip_version': 4, 'cidr': '162.138.45.192/26', 'allocation_pools': [{'start': '162.138.45.194', 'end': '162.138.45.254'}], 'gateway_ip': '162.138.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.138.45.194', 'tags': [], 'project_id': 'cce5326ebc6441e2bb6850edc580c92e'}} 2025-01-08 09:18:37,381 - INFO - Created VN ctest-vn-61527652 2025-01-08 09:18:37,435 - DEBUG - VN ctest-vn-61527652 UUID is b8e93371-b32d-419b-8563-2d9598cdfebc 2025-01-08 09:18:37,772 - DEBUG - Response for create_network : {'network': {'id': 'e82cfda4-68a8-4443-a7de-0f9d83b625ec', 'name': 'ctest-vn-27891455', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-27891455'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 09:18:38,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '0123911b-08ed-4aa8-96a3-c663a2450e3d', 'name': '', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'network_id': 'e82cfda4-68a8-4443-a7de-0f9d83b625ec', 'ip_version': 4, 'cidr': '212.186.194.0/26', 'allocation_pools': [{'start': '212.186.194.2', 'end': '212.186.194.62'}], 'gateway_ip': '212.186.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.186.194.2', 'tags': [], 'project_id': 'cce5326ebc6441e2bb6850edc580c92e'}} 2025-01-08 09:18:38,033 - INFO - Created VN ctest-vn-27891455 2025-01-08 09:18:38,088 - DEBUG - VN ctest-vn-27891455 UUID is e82cfda4-68a8-4443-a7de-0f9d83b625ec 2025-01-08 09:18:38,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652, 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-80242886:ctest-vn-27891455, 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-01-08 09:18:38,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8e93371-b32d-419b-8563-2d9598cdfebc', 'name': 'ctest-vn-61527652', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6705ee70-8cea-45fb-94de-ea828d4ea1dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-61527652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021']], 'subnet_ipam': [{'subnet_cidr': '162.138.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 09:18:38,835 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e82cfda4-68a8-4443-a7de-0f9d83b625ec', 'name': 'ctest-vn-27891455', 'tenant_id': 'cce5326ebc6441e2bb6850edc580c92e', 'project_id': 'cce5326ebc6441e2bb6850edc580c92e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0123911b-08ed-4aa8-96a3-c663a2450e3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-vn-27891455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021']], 'subnet_ipam': [{'subnet_cidr': '212.186.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 09:18:38,995 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2025-01-08 09:18:39,292 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2025-01-08 09:18:39,322 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56 2025-01-08 09:18:39,338 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e 2025-01-08 09:18:39,411 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc 2025-01-08 09:18:39,424 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc 2025-01-08 09:18:39,436 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca 2025-01-08 09:18:39,444 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca 2025-01-08 09:18:39,452 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/47532b28-86f7-4d76-b461-462fec78f6da 2025-01-08 09:18:39,460 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 09:18:39,460 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc 2025-01-08 09:18:39,471 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca 2025-01-08 09:18:39,486 - INFO - Verified VN network id 9 for VN b8e93371-b32d-419b-8563-2d9598cdfebc 2025-01-08 09:18:39,487 - INFO - Verifications in API Server for VN ctest-vn-61527652 passed 2025-01-08 09:18:39,487 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc 2025-01-08 09:18:39,500 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca 2025-01-08 09:18:39,510 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca 2025-01-08 09:18:39,519 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/47532b28-86f7-4d76-b461-462fec78f6da 2025-01-08 09:18:39,533 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80242886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13324237535982731675', 'uuid-lslong': '9611576150275784380'}, 'enable': 'true', 'created': '2025-01-08T09:18:37', 'last-modified': '2025-01-08T09:18:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031220'} 2025-01-08 09:18:39,541 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 09:18:39,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61527652 passed 2025-01-08 09:18:39,541 - DEBUG - ====Verifying policy data for ctest-vn-61527652 in API_Server ====== 2025-01-08 09:18:39,541 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2025-01-08 09:18:39,547 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56 2025-01-08 09:18:39,560 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e 2025-01-08 09:18:39,638 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/b8e93371-b32d-419b-8563-2d9598cdfebc 2025-01-08 09:18:39,649 - DEBUG - ==>Verifying data for policy with id: 9038ff87-8be8-466f-8f3f-6808b9c792ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021'] 2025-01-08 09:18:39,649 - INFO - VN ctest-vn-61527652 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 09:18:39,649 - DEBUG - Verifying the vn in opserver 2025-01-08 09:18:39,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652 virtual network link through opserver 10.0.0.53 2025-01-08 09:18:39,649 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2025-01-08 09:18:39,944 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2025-01-08 09:18:40,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652?flat'} 2025-01-08 09:18:40,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652 is found in opserver 2025-01-08 09:18:40,019 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 09:18:40,025 - DEBUG - VRF ids for VN ctest-vn-61527652: {} 2025-01-08 09:18:40,025 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2025-01-08 09:18:40,032 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56 2025-01-08 09:18:40,045 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e 2025-01-08 09:18:40,126 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec 2025-01-08 09:18:40,151 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec 2025-01-08 09:18:40,162 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44 2025-01-08 09:18:40,170 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44 2025-01-08 09:18:40,178 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/372186c2-1bec-4388-9d09-6ec3554eb85f 2025-01-08 09:18:40,186 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 09:18:40,186 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec 2025-01-08 09:18:40,196 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44 2025-01-08 09:18:40,213 - INFO - Verified VN network id 10 for VN e82cfda4-68a8-4443-a7de-0f9d83b625ec 2025-01-08 09:18:40,213 - INFO - Verifications in API Server for VN ctest-vn-27891455 passed 2025-01-08 09:18:40,214 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec 2025-01-08 09:18:40,226 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44 2025-01-08 09:18:40,234 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44 2025-01-08 09:18:40,243 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/372186c2-1bec-4388-9d09-6ec3554eb85f 2025-01-08 09:18:40,257 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80242886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16730025598346871875', 'uuid-lslong': '12096122818357765612'}, 'enable': 'true', 'created': '2025-01-08T09:18:37', 'last-modified': '2025-01-08T09:18:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.501786'} 2025-01-08 09:18:40,265 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 09:18:40,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27891455 passed 2025-01-08 09:18:40,266 - DEBUG - ====Verifying policy data for ctest-vn-27891455 in API_Server ====== 2025-01-08 09:18:40,266 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2025-01-08 09:18:40,274 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56 2025-01-08 09:18:40,288 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e 2025-01-08 09:18:40,365 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/e82cfda4-68a8-4443-a7de-0f9d83b625ec 2025-01-08 09:18:40,377 - DEBUG - ==>Verifying data for policy with id: 9038ff87-8be8-466f-8f3f-6808b9c792ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-80242886', 'ctest-policy-allow-all-12133021'] 2025-01-08 09:18:40,377 - INFO - VN ctest-vn-27891455 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 09:18:40,377 - DEBUG - Verifying the vn in opserver 2025-01-08 09:18:40,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455 virtual network link through opserver 10.0.0.53 2025-01-08 09:18:40,377 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2025-01-08 09:18:40,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455?flat'} 2025-01-08 09:18:40,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-27891455 is found in opserver 2025-01-08 09:18:40,400 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 09:18:40,407 - DEBUG - VRF ids for VN ctest-vn-27891455: {} 2025-01-08 09:18:40,468 - DEBUG - Services list from nova: [, , ] 2025-01-08 09:18:41,542 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2558-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2558-1) 2025-01-08 09:18:42,912 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2558-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2558-1) 2025-01-08 09:18:42,912 - INFO - Waiting for VM ctest-TestBasicPolicy-80242886-76307310 to be up.. 2025-01-08 09:18:43,011 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 09:18:48,104 - DEBUG - VM is in ACTIVE state now 2025-01-08 09:18:48,104 - INFO - VM name : ctest-TestBasicPolicy-80242886-76307310 2025-01-08 09:18:48,192 - DEBUG - VM ctest-TestBasicPolicy-80242886-76307310 ID is f56fdf85-ae66-4280-b316-54e5771de95d 2025-01-08 09:18:48,214 - DEBUG - VM ctest-TestBasicPolicy-80242886-76307310 launched on Node cn-jenkins-deploy-platform-ansible-os-2558-1 2025-01-08 09:18:48,312 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/f56fdf85-ae66-4280-b316-54e5771de95d 2025-01-08 09:18:48,323 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/da314762-2178-4cc4-8250-b439675d432b 2025-01-08 09:18:51,586 - 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 1003ms') 2025-01-08 09:18:51,586 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80242886-76307310 failed! 2025-01-08 09:18:51,643 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80242886:ctest-vn-61527652 is 162.138.45.193 and allocation pool is NOT set 2025-01-08 09:18:53,711 - 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=8.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.977 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 = 0.977/4.719/8.462/3.742 ms') 2025-01-08 09:18:53,712 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80242886-76307310 passed 2025-01-08 09:18:53,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 09:18:53,868 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80242886-76307310, IP 162.138.45.195, Port 22 2025-01-08 09:18:53,934 - 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-01-08 09:18:54,037 - DEBUG - VM ctest-TestBasicPolicy-80242886-76307310 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-08 09:18:59,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 09:18:59,038 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80242886-76307310, IP 162.138.45.195, Port 22 2025-01-08 09:18:59,195 - DEBUG - VM ctest-TestBasicPolicy-80242886-76307310 is ready for SSH connections 2025-01-08 09:18:59,195 - INFO - Waiting for VM ctest-TestBasicPolicy-80242886-57039959 to be up.. 2025-01-08 09:18:59,273 - DEBUG - VM is in ACTIVE state now 2025-01-08 09:18:59,273 - INFO - VM name : ctest-TestBasicPolicy-80242886-57039959 2025-01-08 09:18:59,356 - DEBUG - VM ctest-TestBasicPolicy-80242886-57039959 ID is 2442039c-cff6-41ea-bff4-dfdfa51a56fb 2025-01-08 09:18:59,357 - DEBUG - VM ctest-TestBasicPolicy-80242886-57039959 launched on Node cn-jenkins-deploy-platform-ansible-os-2558-1 2025-01-08 09:18:59,443 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/2442039c-cff6-41ea-bff4-dfdfa51a56fb 2025-01-08 09:18:59,453 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/2c3a5e6b-71ae-4c5b-9388-04fb7329711c 2025-01-08 09:19:00,710 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.514 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.514/2.083/3.653/1.569 ms') 2025-01-08 09:19:00,710 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-80242886-57039959 passed 2025-01-08 09:19:00,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 09:19:00,868 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80242886-57039959, IP 212.186.194.3, Port 22 2025-01-08 09:19:01,041 - DEBUG - VM ctest-TestBasicPolicy-80242886-57039959 is ready for SSH connections 2025-01-08 09:19:01,041 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 09:19:01,041 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 212.186.194.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2025-01-08 09:19:01,041 - DEBUG - ping -s 56 -c 3 -W 1 212.186.194.3 2025-01-08 09:19:05,145 - DEBUG - PING 212.186.194.3 (212.186.194.3): 56 data bytes 64 bytes from 212.186.194.3: seq=0 ttl=63 time=3.941 ms 64 bytes from 212.186.194.3: seq=1 ttl=63 time=1.161 ms 64 bytes from 212.186.194.3: seq=2 ttl=63 time=0.992 ms --- 212.186.194.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.992/2.031/3.941 ms 2025-01-08 09:19:05,145 - INFO - Ping to IP 212.186.194.3 from VM ctest-TestBasicPolicy-80242886-76307310 passed 2025-01-08 09:19:05,335 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9038ff87-8be8-466f-8f3f-6808b9c792ae", "href": "http://10.0.0.53:8082/network-policy/9038ff87-8be8-466f-8f3f-6808b9c792ae"}} 2025-01-08 09:19:05,335 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 09:19:05,335 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 212.186.194.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2025-01-08 09:19:05,336 - DEBUG - ping -s 56 -c 3 -W 1 212.186.194.3 2025-01-08 09:19:08,587 - DEBUG - PING 212.186.194.3 (212.186.194.3): 56 data bytes 64 bytes from 212.186.194.3: seq=0 ttl=63 time=2.529 ms --- 212.186.194.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.529/2.529/2.529 ms 2025-01-08 09:19:08,587 - WARNING - Ping to IP 212.186.194.3 from VM ctest-TestBasicPolicy-80242886-76307310 failed 2025-01-08 09:19:08,587 - INFO - Deleting VM ctest-TestBasicPolicy-80242886-57039959 2025-01-08 09:19:08,665 - INFO - Deleting VM ctest-TestBasicPolicy-80242886-76307310 2025-01-08 09:19:09,073 - INFO - Deleted policy ctest-policy-allow-all-12133021 2025-01-08 09:19:09,074 - INFO - Deleting VN ctest-vn-27891455 2025-01-08 09:19:09,114 - DEBUG - VN e82cfda4-68a8-4443-a7de-0f9d83b625ec still in use: Unable to complete operation on network e82cfda4-68a8-4443-a7de-0f9d83b625ec. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d9d24cc8-0c53-4c3c-9395-cea86e76da49'] 2025-01-08 09:19:09,115 - WARNING - Deleting VN ctest-vn-27891455 failed..Will retry 2025-01-08 09:19:11,232 - DEBUG - Response for deleting network () 2025-01-08 09:19:11,232 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/df933dbd-fd8f-4f00-810d-cd45c0b57c44 2025-01-08 09:19:11,238 - DEBUG - Response Code: 404 2025-01-08 09:19:11,238 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2025-01-08 09:19:11,248 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56 2025-01-08 09:19:11,302 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e 2025-01-08 09:19:11,378 - INFO - Validated that VN ctest-vn-27891455 is not found in API Server 2025-01-08 09:19:11,390 - DEBUG - VN ctest-vn-27891455 is not present in Agent 10.0.0.53 2025-01-08 09:19:11,390 - INFO - Validated that VN ctest-vn-27891455 is not in any agent 2025-01-08 09:19:11,405 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27891455 info 2025-01-08 09:19:11,405 - INFO - Deleting VN ctest-vn-61527652 2025-01-08 09:19:11,515 - DEBUG - Response for deleting network () 2025-01-08 09:19:11,515 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/278365cd-d972-487e-9f7b-9dec5e61baca 2025-01-08 09:19:11,522 - DEBUG - Response Code: 404 2025-01-08 09:19:11,523 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2025-01-08 09:19:11,531 - DEBUG - Requesting: http://10.0.0.53:8082/domain/cfef4e17-2a1e-4fb7-a221-0760d3a64b56 2025-01-08 09:19:11,585 - DEBUG - Requesting: http://10.0.0.53:8082/project/cce5326e-bc64-41e2-bb68-50edc580c92e 2025-01-08 09:19:11,666 - INFO - Validated that VN ctest-vn-61527652 is not found in API Server 2025-01-08 09:19:11,676 - DEBUG - VN ctest-vn-61527652 is not present in Agent 10.0.0.53 2025-01-08 09:19:11,676 - INFO - Validated that VN ctest-vn-61527652 is not in any agent 2025-01-08 09:19:11,693 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61527652 info 2025-01-08 09:19:11,956 - DEBUG - No XMPP flaps were noticed during the test
2025-01-08 09:19:11,956 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-08 09:19:11,956 - INFO - -------------------------------------------------------------------------------- 2025-01-08 09:19:12,665 - INFO - Deleted project: ctest-TestBasicPolicy-80242886, ID : cce5326e-bc64-41e2-bb68-50edc580c92e