2025-01-13 18:45:26,307 - INFO - Domain Default found not creating 2025-01-13 18:45:26,463 - INFO - Project ctest-TestBasicPolicy-33105140 not found, creating it 2025-01-13 18:45:26,923 - INFO - Created Project:ctest-TestBasicPolicy-33105140, ID : 4f916c5c-af05-4489-81a5-fbc54808d0de 2025-01-13 18:45:28,371 - INFO - ================================================================================ 2025-01-13 18:45:28,372 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-13 18:45:28,372 - 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-13 18:45:28,629 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with 2025-01-13 18:45:28,629 - INFO - Initial checks done. Running the testcase now 2025-01-13 18:45:28,629 - INFO - 2025-01-13 18:45:29,163 - DEBUG - Response for create_network : {'network': {'id': '7938ed54-f903-4c80-a9f9-275f896d647b', 'name': 'ctest-vn-90898737', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-90898737'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:45:29,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '44e9fdd0-b36f-46f8-ba35-aa8253180038', 'name': '', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'network_id': '7938ed54-f903-4c80-a9f9-275f896d647b', 'ip_version': 4, 'cidr': '85.79.39.128/26', 'allocation_pools': [{'start': '85.79.39.130', 'end': '85.79.39.190'}], 'gateway_ip': '85.79.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.79.39.130', 'tags': [], 'project_id': '4f916c5caf05448981a5fbc54808d0de'}} 2025-01-13 18:45:29,377 - INFO - Created VN ctest-vn-90898737 2025-01-13 18:45:29,430 - DEBUG - VN ctest-vn-90898737 UUID is 7938ed54-f903-4c80-a9f9-275f896d647b 2025-01-13 18:45:29,721 - DEBUG - Response for create_network : {'network': {'id': 'b3ade5cf-0a72-4ba1-9501-c16d446b8308', 'name': 'ctest-vn-16343947', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-16343947'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:45:29,883 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce90164f-9c7b-4d2f-afa4-4850fbeb046a', 'name': '', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'network_id': 'b3ade5cf-0a72-4ba1-9501-c16d446b8308', 'ip_version': 4, 'cidr': '183.253.184.0/26', 'allocation_pools': [{'start': '183.253.184.2', 'end': '183.253.184.62'}], 'gateway_ip': '183.253.184.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.253.184.2', 'tags': [], 'project_id': '4f916c5caf05448981a5fbc54808d0de'}} 2025-01-13 18:45:29,903 - INFO - Created VN ctest-vn-16343947 2025-01-13 18:45:29,955 - DEBUG - VN ctest-vn-16343947 UUID is b3ade5cf-0a72-4ba1-9501-c16d446b8308 2025-01-13 18:45:30,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737, 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-33105140:ctest-vn-16343947, 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-13 18:45:30,406 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7938ed54-f903-4c80-a9f9-275f896d647b', 'name': 'ctest-vn-90898737', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44e9fdd0-b36f-46f8-ba35-aa8253180038'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-90898737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628']], 'subnet_ipam': [{'subnet_cidr': '85.79.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:45:30,644 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3ade5cf-0a72-4ba1-9501-c16d446b8308', 'name': 'ctest-vn-16343947', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce90164f-9c7b-4d2f-afa4-4850fbeb046a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-16343947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628']], 'subnet_ipam': [{'subnet_cidr': '183.253.184.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 18:45:30,794 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-13 18:45:31,102 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-13 18:45:31,130 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060 2025-01-13 18:45:31,144 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de 2025-01-13 18:45:31,220 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b 2025-01-13 18:45:31,233 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b 2025-01-13 18:45:31,245 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf 2025-01-13 18:45:31,253 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf 2025-01-13 18:45:31,261 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/fde8741f-1233-459f-a083-73683703be7e 2025-01-13 18:45:31,268 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 18:45:31,268 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b 2025-01-13 18:45:31,278 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf 2025-01-13 18:45:31,295 - INFO - Verified VN network id 8 for VN 7938ed54-f903-4c80-a9f9-275f896d647b 2025-01-13 18:45:31,296 - INFO - Verifications in API Server for VN ctest-vn-90898737 passed 2025-01-13 18:45:31,296 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b 2025-01-13 18:45:31,307 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf 2025-01-13 18:45:31,315 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf 2025-01-13 18:45:31,323 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/fde8741f-1233-459f-a083-73683703be7e 2025-01-13 18:45:31,336 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33105140', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8734992426495855744', 'uuid-lslong': '12247863952891798651'}, 'enable': 'true', 'created': '2025-01-13T18:45:29', 'last-modified': '2025-01-13T18:45:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949774'} 2025-01-13 18:45:31,343 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 18:45:31,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90898737 passed 2025-01-13 18:45:31,343 - DEBUG - ====Verifying policy data for ctest-vn-90898737 in API_Server ====== 2025-01-13 18:45:31,343 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-13 18:45:31,349 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060 2025-01-13 18:45:31,361 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de 2025-01-13 18:45:31,432 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b 2025-01-13 18:45:31,444 - DEBUG - ==>Verifying data for policy with id: 02cc0590-15e7-4433-b494-fce5b13304c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628'] 2025-01-13 18:45:31,444 - INFO - VN ctest-vn-90898737 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 18:45:31,445 - DEBUG - Verifying the vn in opserver 2025-01-13 18:45:31,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737 virtual network link through opserver 10.0.0.24 2025-01-13 18:45:31,445 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-01-13 18:45:31,743 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-01-13 18:45:31,799 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737?flat'} 2025-01-13 18:45:31,799 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737 is found in opserver 2025-01-13 18:45:31,812 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 18:45:31,820 - DEBUG - VRF ids for VN ctest-vn-90898737: {} 2025-01-13 18:45:31,820 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-13 18:45:31,827 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060 2025-01-13 18:45:31,843 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de 2025-01-13 18:45:31,920 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308 2025-01-13 18:45:31,934 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308 2025-01-13 18:45:31,947 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801 2025-01-13 18:45:31,956 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801 2025-01-13 18:45:31,965 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/83aff328-6f1f-4f4e-9e9d-0d142b5b98f8 2025-01-13 18:45:31,973 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 18:45:31,973 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308 2025-01-13 18:45:31,983 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801 2025-01-13 18:45:32,000 - INFO - Verified VN network id 9 for VN b3ade5cf-0a72-4ba1-9501-c16d446b8308 2025-01-13 18:45:32,000 - INFO - Verifications in API Server for VN ctest-vn-16343947 passed 2025-01-13 18:45:32,000 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308 2025-01-13 18:45:32,011 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801 2025-01-13 18:45:32,019 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801 2025-01-13 18:45:32,027 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/83aff328-6f1f-4f4e-9e9d-0d142b5b98f8 2025-01-13 18:45:32,040 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33105140', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12947257181156297633', 'uuid-lslong': '10737075661671465736'}, 'enable': 'true', 'created': '2025-01-13T18:45:29', 'last-modified': '2025-01-13T18:45:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.426466'} 2025-01-13 18:45:32,046 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 18:45:32,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16343947 passed 2025-01-13 18:45:32,047 - DEBUG - ====Verifying policy data for ctest-vn-16343947 in API_Server ====== 2025-01-13 18:45:32,047 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-13 18:45:32,052 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060 2025-01-13 18:45:32,064 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de 2025-01-13 18:45:32,137 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308 2025-01-13 18:45:32,148 - DEBUG - ==>Verifying data for policy with id: 02cc0590-15e7-4433-b494-fce5b13304c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628'] 2025-01-13 18:45:32,148 - INFO - VN ctest-vn-16343947 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 18:45:32,148 - DEBUG - Verifying the vn in opserver 2025-01-13 18:45:32,148 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947 virtual network link through opserver 10.0.0.24 2025-01-13 18:45:32,148 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-01-13 18:45:32,159 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947?flat'} 2025-01-13 18:45:32,159 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947 is found in opserver 2025-01-13 18:45:32,170 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 18:45:32,176 - DEBUG - VRF ids for VN ctest-vn-16343947: {} 2025-01-13 18:45:32,234 - DEBUG - Services list from nova: [, , ] 2025-01-13 18:45:33,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2615-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2615-1) 2025-01-13 18:45:34,493 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2615-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2615-1) 2025-01-13 18:45:34,493 - INFO - Waiting for VM ctest-TestBasicPolicy-33105140-84111236 to be up.. 2025-01-13 18:45:34,595 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 18:45:39,696 - DEBUG - VM is in ACTIVE state now 2025-01-13 18:45:39,697 - INFO - VM name : ctest-TestBasicPolicy-33105140-84111236 2025-01-13 18:45:39,798 - DEBUG - VM ctest-TestBasicPolicy-33105140-84111236 ID is 0bad3c84-2ec6-482c-89de-cd17c1335564 2025-01-13 18:45:39,823 - DEBUG - VM ctest-TestBasicPolicy-33105140-84111236 launched on Node cn-jenkins-deploy-platform-ansible-os-2615-1 2025-01-13 18:45:39,916 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/0bad3c84-2ec6-482c-89de-cd17c1335564 2025-01-13 18:45:39,927 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/7c8eeb56-31f2-475e-90b3-984361b6c2a9 2025-01-13 18:45:43,196 - 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 1021ms') 2025-01-13 18:45:43,196 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33105140-84111236 failed! 2025-01-13 18:45:43,254 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737 is 85.79.39.129 and allocation pool is NOT set 2025-01-13 18:45:45,325 - 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=13.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.05 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.049/7.583/13.117/5.534 ms') 2025-01-13 18:45:45,325 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33105140-84111236 passed 2025-01-13 18:45:45,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:45:45,474 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33105140-84111236, IP 85.79.39.131, Port 22 2025-01-13 18:45:45,530 - 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-13 18:45:45,614 - DEBUG - VM ctest-TestBasicPolicy-33105140-84111236 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-13 18:45:50,615 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:45:50,615 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33105140-84111236, IP 85.79.39.131, Port 22 2025-01-13 18:45:50,770 - DEBUG - VM ctest-TestBasicPolicy-33105140-84111236 is ready for SSH connections 2025-01-13 18:45:50,770 - INFO - Waiting for VM ctest-TestBasicPolicy-33105140-45159221 to be up.. 2025-01-13 18:45:50,907 - DEBUG - VM is in ACTIVE state now 2025-01-13 18:45:50,907 - INFO - VM name : ctest-TestBasicPolicy-33105140-45159221 2025-01-13 18:45:50,989 - DEBUG - VM ctest-TestBasicPolicy-33105140-45159221 ID is ec2e4533-ea2f-4452-9256-e2d517947b91 2025-01-13 18:45:50,989 - DEBUG - VM ctest-TestBasicPolicy-33105140-45159221 launched on Node cn-jenkins-deploy-platform-ansible-os-2615-1 2025-01-13 18:45:51,066 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/ec2e4533-ea2f-4452-9256-e2d517947b91 2025-01-13 18:45:51,078 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/6f716ebc-d0d9-49e2-ae17-74caa5c97d2a 2025-01-13 18:45:52,330 - 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.383 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.383/1.671/2.959/1.288 ms') 2025-01-13 18:45:52,330 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-33105140-45159221 passed 2025-01-13 18:45:52,478 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:45:52,478 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33105140-45159221, IP 183.253.184.3, Port 22 2025-01-13 18:45:52,638 - DEBUG - VM ctest-TestBasicPolicy-33105140-45159221 is ready for SSH connections 2025-01-13 18:45:52,638 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:45:52,638 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.253.184.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-01-13 18:45:52,639 - DEBUG - ping -s 56 -c 3 -W 1 183.253.184.3 2025-01-13 18:45:56,318 - DEBUG - PING 183.253.184.3 (183.253.184.3): 56 data bytes 64 bytes from 183.253.184.3: seq=0 ttl=63 time=3.608 ms 64 bytes from 183.253.184.3: seq=1 ttl=63 time=0.821 ms 64 bytes from 183.253.184.3: seq=2 ttl=63 time=0.922 ms --- 183.253.184.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.821/1.783/3.608 ms 2025-01-13 18:45:56,319 - INFO - Ping to IP 183.253.184.3 from VM ctest-TestBasicPolicy-33105140-84111236 passed 2025-01-13 18:45:56,494 - DEBUG - Policy Update Response {"network-policy": {"uuid": "02cc0590-15e7-4433-b494-fce5b13304c7", "href": "http://10.0.0.24:8082/network-policy/02cc0590-15e7-4433-b494-fce5b13304c7"}} 2025-01-13 18:45:56,494 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 18:45:56,494 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.253.184.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-01-13 18:45:56,495 - DEBUG - ping -s 56 -c 3 -W 1 183.253.184.3 2025-01-13 18:45:59,698 - DEBUG - PING 183.253.184.3 (183.253.184.3): 56 data bytes 64 bytes from 183.253.184.3: seq=0 ttl=63 time=1.372 ms --- 183.253.184.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.372/1.372/1.372 ms 2025-01-13 18:45:59,698 - WARNING - Ping to IP 183.253.184.3 from VM ctest-TestBasicPolicy-33105140-84111236 failed 2025-01-13 18:45:59,698 - INFO - Deleting VM ctest-TestBasicPolicy-33105140-45159221 2025-01-13 18:45:59,770 - INFO - Deleting VM ctest-TestBasicPolicy-33105140-84111236 2025-01-13 18:46:00,177 - INFO - Deleted policy ctest-policy-allow-all-37501628 2025-01-13 18:46:00,177 - INFO - Deleting VN ctest-vn-16343947 2025-01-13 18:46:00,220 - DEBUG - VN b3ade5cf-0a72-4ba1-9501-c16d446b8308 still in use: Unable to complete operation on network b3ade5cf-0a72-4ba1-9501-c16d446b8308. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1bacdf09-d25f-4fa1-bf54-3b0d6f8ece55'] 2025-01-13 18:46:00,221 - WARNING - Deleting VN ctest-vn-16343947 failed..Will retry 2025-01-13 18:46:02,331 - DEBUG - Response for deleting network () 2025-01-13 18:46:02,331 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801 2025-01-13 18:46:02,343 - DEBUG - Response Code: 404 2025-01-13 18:46:02,343 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-13 18:46:02,349 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060 2025-01-13 18:46:02,409 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de 2025-01-13 18:46:02,479 - INFO - Validated that VN ctest-vn-16343947 is not found in API Server 2025-01-13 18:46:02,490 - DEBUG - VN ctest-vn-16343947 is not present in Agent 10.0.0.24 2025-01-13 18:46:02,491 - INFO - Validated that VN ctest-vn-16343947 is not in any agent 2025-01-13 18:46:02,507 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16343947 info 2025-01-13 18:46:02,507 - INFO - Deleting VN ctest-vn-90898737 2025-01-13 18:46:02,605 - DEBUG - Response for deleting network () 2025-01-13 18:46:02,605 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf 2025-01-13 18:46:02,612 - DEBUG - Response Code: 404 2025-01-13 18:46:02,612 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-01-13 18:46:02,620 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060 2025-01-13 18:46:02,676 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de 2025-01-13 18:46:02,752 - INFO - Validated that VN ctest-vn-90898737 is not found in API Server 2025-01-13 18:46:02,763 - DEBUG - VN ctest-vn-90898737 is not present in Agent 10.0.0.24 2025-01-13 18:46:02,763 - INFO - Validated that VN ctest-vn-90898737 is not in any agent 2025-01-13 18:46:02,779 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-90898737 info 2025-01-13 18:46:03,033 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 18:46:03,033 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-01-13 18:46:03,033 - INFO - -------------------------------------------------------------------------------- 2025-01-13 18:46:03,704 - INFO - Deleted project: ctest-TestBasicPolicy-33105140, ID : 4f916c5c-af05-4489-81a5-fbc54808d0de