2025-04-22 17:35:36,854 - INFO - Domain Default found not creating 2025-04-22 17:35:36,995 - INFO - Project ctest-TestBasicPolicy-95118101 not found, creating it 2025-04-22 17:35:37,453 - INFO - Created Project:ctest-TestBasicPolicy-95118101, ID : ef86fa42-a8c1-45f0-a909-0e04d84882da 2025-04-22 17:35:39,044 - INFO - ================================================================================ 2025-04-22 17:35:39,044 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-22 17:35:39,044 - 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-04-22 17:35:39,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-04-22 17:35:39,297 - INFO - Initial checks done. Running the testcase now 2025-04-22 17:35:39,297 - INFO - 2025-04-22 17:35:39,922 - DEBUG - Response for create_network : {'network': {'id': '74d69451-ba9e-4dc2-b3f6-c17d4c373267', 'name': 'ctest-vn-51101213', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-51101213'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:35:40,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e2ce94b-25b5-479a-bf98-95c80277bd94', 'name': '', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'network_id': '74d69451-ba9e-4dc2-b3f6-c17d4c373267', 'ip_version': 4, 'cidr': '133.123.89.0/26', 'allocation_pools': [{'start': '133.123.89.2', 'end': '133.123.89.62'}], 'gateway_ip': '133.123.89.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.123.89.2', 'tags': [], 'project_id': 'ef86fa42a8c145f0a9090e04d84882da'}} 2025-04-22 17:35:40,144 - INFO - Created VN ctest-vn-51101213 2025-04-22 17:35:40,195 - DEBUG - VN ctest-vn-51101213 UUID is 74d69451-ba9e-4dc2-b3f6-c17d4c373267 2025-04-22 17:35:40,643 - DEBUG - Response for create_network : {'network': {'id': '05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00', 'name': 'ctest-vn-83205523', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-83205523'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:35:40,835 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a682dab1-c9f1-40d4-8833-dc8da7991cc1', 'name': '', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'network_id': '05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00', 'ip_version': 4, 'cidr': '138.30.101.128/26', 'allocation_pools': [{'start': '138.30.101.130', 'end': '138.30.101.190'}], 'gateway_ip': '138.30.101.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.30.101.130', 'tags': [], 'project_id': 'ef86fa42a8c145f0a9090e04d84882da'}} 2025-04-22 17:35:40,854 - INFO - Created VN ctest-vn-83205523 2025-04-22 17:35:40,907 - DEBUG - VN ctest-vn-83205523 UUID is 05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 2025-04-22 17:35:41,023 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213, 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-95118101:ctest-vn-83205523, 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-04-22 17:35:41,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74d69451-ba9e-4dc2-b3f6-c17d4c373267', 'name': 'ctest-vn-51101213', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e2ce94b-25b5-479a-bf98-95c80277bd94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-51101213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603']], 'subnet_ipam': [{'subnet_cidr': '133.123.89.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:35:41,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00', 'name': 'ctest-vn-83205523', 'tenant_id': 'ef86fa42a8c145f0a9090e04d84882da', 'project_id': 'ef86fa42a8c145f0a9090e04d84882da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a682dab1-c9f1-40d4-8833-dc8da7991cc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-vn-83205523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603']], 'subnet_ipam': [{'subnet_cidr': '138.30.101.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-22 17:35:41,791 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-04-22 17:35:42,124 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-04-22 17:35:42,152 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc 2025-04-22 17:35:42,166 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da 2025-04-22 17:35:42,243 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267 2025-04-22 17:35:42,256 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267 2025-04-22 17:35:42,266 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a 2025-04-22 17:35:42,273 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a 2025-04-22 17:35:42,279 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ea9e172f-3261-47a6-a1fc-4ce853345385 2025-04-22 17:35:42,286 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 17:35:42,286 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267 2025-04-22 17:35:42,296 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a 2025-04-22 17:35:42,310 - INFO - Verified VN network id 8 for VN 74d69451-ba9e-4dc2-b3f6-c17d4c373267 2025-04-22 17:35:42,311 - INFO - Verifications in API Server for VN ctest-vn-51101213 passed 2025-04-22 17:35:42,311 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267 2025-04-22 17:35:42,320 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a 2025-04-22 17:35:42,327 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a 2025-04-22 17:35:42,333 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ea9e172f-3261-47a6-a1fc-4ce853345385 2025-04-22 17:35:42,345 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95118101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8419079632159919554', 'uuid-lslong': '12967764920953680487'}, 'enable': 'true', 'created': '2025-04-22T17:35:39', 'last-modified': '2025-04-22T17:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028712'} 2025-04-22 17:35:42,353 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-22 17:35:42,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51101213 passed 2025-04-22 17:35:42,353 - DEBUG - ====Verifying policy data for ctest-vn-51101213 in API_Server ====== 2025-04-22 17:35:42,353 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-04-22 17:35:42,359 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc 2025-04-22 17:35:42,370 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da 2025-04-22 17:35:42,452 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74d69451-ba9e-4dc2-b3f6-c17d4c373267 2025-04-22 17:35:42,465 - DEBUG - ==>Verifying data for policy with id: bb1d741b-4387-4ef5-91e9-f29c735c13f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603'] 2025-04-22 17:35:42,465 - INFO - VN ctest-vn-51101213 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 17:35:42,465 - DEBUG - Verifying the vn in opserver 2025-04-22 17:35:42,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213 virtual network link through opserver 10.0.0.141 2025-04-22 17:35:42,465 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-04-22 17:35:42,800 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-04-22 17:35:42,859 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213?flat'} 2025-04-22 17:35:42,859 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213 is found in opserver 2025-04-22 17:35:42,872 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 17:35:42,878 - DEBUG - VRF ids for VN ctest-vn-51101213: {} 2025-04-22 17:35:42,878 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-04-22 17:35:42,885 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc 2025-04-22 17:35:42,899 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da 2025-04-22 17:35:42,978 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 2025-04-22 17:35:42,992 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 2025-04-22 17:35:43,006 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2 2025-04-22 17:35:43,015 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2 2025-04-22 17:35:43,023 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a10b18a7-c75b-43cf-ac66-bb31f51a0afc 2025-04-22 17:35:43,030 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 17:35:43,030 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 2025-04-22 17:35:43,039 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2 2025-04-22 17:35:43,054 - INFO - Verified VN network id 9 for VN 05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 2025-04-22 17:35:43,054 - INFO - Verifications in API Server for VN ctest-vn-83205523 passed 2025-04-22 17:35:43,055 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 2025-04-22 17:35:43,066 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2 2025-04-22 17:35:43,076 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2 2025-04-22 17:35:43,084 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a10b18a7-c75b-43cf-ac66-bb31f51a0afc 2025-04-22 17:35:43,098 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95118101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '424626632089223674', 'uuid-lslong': '10150689271628647680'}, 'enable': 'true', 'created': '2025-04-22T17:35:40', 'last-modified': '2025-04-22T17:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.527580'} 2025-04-22 17:35:43,104 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-22 17:35:43,105 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83205523 passed 2025-04-22 17:35:43,105 - DEBUG - ====Verifying policy data for ctest-vn-83205523 in API_Server ====== 2025-04-22 17:35:43,105 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-04-22 17:35:43,111 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc 2025-04-22 17:35:43,125 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da 2025-04-22 17:35:43,200 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 2025-04-22 17:35:43,211 - DEBUG - ==>Verifying data for policy with id: bb1d741b-4387-4ef5-91e9-f29c735c13f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-95118101', 'ctest-policy-allow-all-80550603'] 2025-04-22 17:35:43,211 - INFO - VN ctest-vn-83205523 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-22 17:35:43,211 - DEBUG - Verifying the vn in opserver 2025-04-22 17:35:43,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523 virtual network link through opserver 10.0.0.141 2025-04-22 17:35:43,211 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-04-22 17:35:43,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523?flat'} 2025-04-22 17:35:43,222 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-83205523 is found in opserver 2025-04-22 17:35:43,233 - DEBUG - Do not have enough data to verify VN in agent 2025-04-22 17:35:43,238 - DEBUG - VRF ids for VN ctest-vn-83205523: {} 2025-04-22 17:35:43,291 - DEBUG - Services list from nova: [, , ] 2025-04-22 17:35:44,351 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3169-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3169-1) 2025-04-22 17:35:45,632 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3169-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3169-1) 2025-04-22 17:35:45,632 - INFO - Waiting for VM ctest-TestBasicPolicy-95118101-93591797 to be up.. 2025-04-22 17:35:45,715 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 17:35:50,798 - DEBUG - VM is in ACTIVE state now 2025-04-22 17:35:50,798 - INFO - VM name : ctest-TestBasicPolicy-95118101-93591797 2025-04-22 17:35:50,879 - DEBUG - VM ctest-TestBasicPolicy-95118101-93591797 ID is 8a56ad6f-d5bd-489e-9a05-87538f1c75fb 2025-04-22 17:35:50,898 - DEBUG - VM ctest-TestBasicPolicy-95118101-93591797 launched on Node cn-jenkins-deploy-platform-ansible-os-3169-1 2025-04-22 17:35:50,972 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/8a56ad6f-d5bd-489e-9a05-87538f1c75fb 2025-04-22 17:35:50,982 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/07dfceaa-a2b0-4422-90be-1e9f4097ac88 2025-04-22 17:35:54,238 - 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 1014ms') 2025-04-22 17:35:54,238 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95118101-93591797 failed! 2025-04-22 17:35:54,295 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95118101:ctest-vn-51101213 is 133.123.89.1 and allocation pool is NOT set 2025-04-22 17:35:56,358 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.15 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.92 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.917/5.535/9.153/3.618 ms') 2025-04-22 17:35:56,358 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95118101-93591797 passed 2025-04-22 17:35:56,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:35:56,511 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95118101-93591797, IP 133.123.89.3, Port 22 2025-04-22 17:35:56,581 - 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-04-22 17:35:56,659 - DEBUG - VM ctest-TestBasicPolicy-95118101-93591797 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-22 17:36:01,659 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:36:01,660 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95118101-93591797, IP 133.123.89.3, Port 22 2025-04-22 17:36:01,820 - DEBUG - VM ctest-TestBasicPolicy-95118101-93591797 is ready for SSH connections 2025-04-22 17:36:01,820 - INFO - Waiting for VM ctest-TestBasicPolicy-95118101-88560460 to be up.. 2025-04-22 17:36:01,904 - DEBUG - VM is in ACTIVE state now 2025-04-22 17:36:01,904 - INFO - VM name : ctest-TestBasicPolicy-95118101-88560460 2025-04-22 17:36:01,984 - DEBUG - VM ctest-TestBasicPolicy-95118101-88560460 ID is f8474e65-59bf-4556-a989-3b1bc5b35e72 2025-04-22 17:36:01,985 - DEBUG - VM ctest-TestBasicPolicy-95118101-88560460 launched on Node cn-jenkins-deploy-platform-ansible-os-3169-1 2025-04-22 17:36:02,063 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/f8474e65-59bf-4556-a989-3b1bc5b35e72 2025-04-22 17:36:02,072 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/8adfb0fd-968d-4e60-bce1-09bca9a7fe41 2025-04-22 17:36:03,313 - 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.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.352 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.352/1.805/3.259/1.453 ms') 2025-04-22 17:36:03,313 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-95118101-88560460 passed 2025-04-22 17:36:03,463 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:36:03,463 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95118101-88560460, IP 138.30.101.131, Port 22 2025-04-22 17:36:03,622 - DEBUG - VM ctest-TestBasicPolicy-95118101-88560460 is ready for SSH connections 2025-04-22 17:36:03,622 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:36:03,623 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.30.101.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-04-22 17:36:03,623 - DEBUG - ping -s 56 -c 3 -W 1 138.30.101.131 2025-04-22 17:36:07,330 - DEBUG - PING 138.30.101.131 (138.30.101.131): 56 data bytes 64 bytes from 138.30.101.131: seq=0 ttl=63 time=3.460 ms 64 bytes from 138.30.101.131: seq=1 ttl=63 time=0.774 ms 64 bytes from 138.30.101.131: seq=2 ttl=63 time=0.809 ms --- 138.30.101.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.774/1.681/3.460 ms 2025-04-22 17:36:07,330 - INFO - Ping to IP 138.30.101.131 from VM ctest-TestBasicPolicy-95118101-93591797 passed 2025-04-22 17:36:07,511 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bb1d741b-4387-4ef5-91e9-f29c735c13f8", "href": "http://10.0.0.141:8082/network-policy/bb1d741b-4387-4ef5-91e9-f29c735c13f8"}} 2025-04-22 17:36:07,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 17:36:07,511 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.30.101.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-04-22 17:36:07,511 - DEBUG - ping -s 56 -c 3 -W 1 138.30.101.131 2025-04-22 17:36:10,723 - DEBUG - PING 138.30.101.131 (138.30.101.131): 56 data bytes 64 bytes from 138.30.101.131: seq=0 ttl=63 time=1.368 ms --- 138.30.101.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.368/1.368/1.368 ms 2025-04-22 17:36:10,723 - WARNING - Ping to IP 138.30.101.131 from VM ctest-TestBasicPolicy-95118101-93591797 failed 2025-04-22 17:36:10,723 - INFO - Deleting VM ctest-TestBasicPolicy-95118101-88560460 2025-04-22 17:36:10,792 - INFO - Deleting VM ctest-TestBasicPolicy-95118101-93591797 2025-04-22 17:36:11,211 - INFO - Deleted policy ctest-policy-allow-all-80550603 2025-04-22 17:36:11,211 - INFO - Deleting VN ctest-vn-83205523 2025-04-22 17:36:11,253 - DEBUG - VN 05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00 still in use: Unable to complete operation on network 05e493ac-0fd9-41fa-8cde-7e1ca4cb4d00. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-04869b49-3734-40af-a3f3-ee2d1ed93635'] 2025-04-22 17:36:11,253 - WARNING - Deleting VN ctest-vn-83205523 failed..Will retry 2025-04-22 17:36:13,371 - DEBUG - Response for deleting network () 2025-04-22 17:36:13,372 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08849394-1181-499e-8f5e-a478fe325aa2 2025-04-22 17:36:13,380 - DEBUG - Response Code: 404 2025-04-22 17:36:13,381 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-04-22 17:36:13,386 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc 2025-04-22 17:36:13,444 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da 2025-04-22 17:36:13,521 - INFO - Validated that VN ctest-vn-83205523 is not found in API Server 2025-04-22 17:36:13,533 - DEBUG - VN ctest-vn-83205523 is not present in Agent 10.0.0.141 2025-04-22 17:36:13,533 - INFO - Validated that VN ctest-vn-83205523 is not in any agent 2025-04-22 17:36:13,550 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83205523 info 2025-04-22 17:36:13,551 - INFO - Deleting VN ctest-vn-51101213 2025-04-22 17:36:13,679 - DEBUG - Response for deleting network () 2025-04-22 17:36:13,679 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e35fbc96-9fea-4704-bcbc-16f4159ebf0a 2025-04-22 17:36:13,688 - DEBUG - Response Code: 404 2025-04-22 17:36:13,688 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-04-22 17:36:13,693 - DEBUG - Requesting: http://10.0.0.141:8082/domain/73e01405-ef76-4859-abd6-0007945fdddc 2025-04-22 17:36:13,748 - DEBUG - Requesting: http://10.0.0.141:8082/project/ef86fa42-a8c1-45f0-a909-0e04d84882da 2025-04-22 17:36:13,830 - INFO - Validated that VN ctest-vn-51101213 is not found in API Server 2025-04-22 17:36:13,845 - DEBUG - VN ctest-vn-51101213 is not present in Agent 10.0.0.141 2025-04-22 17:36:13,846 - INFO - Validated that VN ctest-vn-51101213 is not in any agent 2025-04-22 17:36:13,863 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51101213 info 2025-04-22 17:36:14,140 - DEBUG - No XMPP flaps were noticed during the test 2025-04-22 17:36:14,140 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-04-22 17:36:14,140 - INFO - -------------------------------------------------------------------------------- 2025-04-22 17:36:14,861 - INFO - Deleted project: ctest-TestBasicPolicy-95118101, ID : ef86fa42-a8c1-45f0-a909-0e04d84882da