2025-03-27 15:00:43,960 - INFO - Domain Default found not creating 2025-03-27 15:00:44,144 - INFO - Project ctest-TestBasicPolicy-87944825 not found, creating it 2025-03-27 15:00:44,653 - INFO - Created Project:ctest-TestBasicPolicy-87944825, ID : 74493b15-10c2-4b81-a9cf-e23620c981cd 2025-03-27 15:00:46,206 - INFO - ================================================================================ 2025-03-27 15:00:46,206 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 15:00:46,206 - 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-03-27 15:00:46,465 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.23': '0'}} with 2025-03-27 15:00:46,465 - INFO - Initial checks done. Running the testcase now 2025-03-27 15:00:46,465 - INFO - 2025-03-27 15:00:47,113 - DEBUG - Response for create_network : {'network': {'id': 'bbe7aaf1-c925-42df-a4a2-e9c5838f466e', 'name': 'ctest-vn-26352622', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-26352622'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 15:00:47,286 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb2bef27-9c60-4fc8-be94-32bccaf97a3e', 'name': '', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'network_id': 'bbe7aaf1-c925-42df-a4a2-e9c5838f466e', 'ip_version': 4, 'cidr': '92.215.183.128/26', 'allocation_pools': [{'start': '92.215.183.130', 'end': '92.215.183.190'}], 'gateway_ip': '92.215.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.215.183.130', 'tags': [], 'project_id': '74493b1510c24b81a9cfe23620c981cd'}} 2025-03-27 15:00:47,308 - INFO - Created VN ctest-vn-26352622 2025-03-27 15:00:47,366 - DEBUG - VN ctest-vn-26352622 UUID is bbe7aaf1-c925-42df-a4a2-e9c5838f466e 2025-03-27 15:00:47,728 - DEBUG - Response for create_network : {'network': {'id': 'dee40f36-1790-48ea-86c4-d21dc4b46d4a', 'name': 'ctest-vn-48129117', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-48129117'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 15:00:47,960 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1665cab-97c6-49ec-b37c-67d56f6b358a', 'name': '', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'network_id': 'dee40f36-1790-48ea-86c4-d21dc4b46d4a', 'ip_version': 4, 'cidr': '95.217.178.128/26', 'allocation_pools': [{'start': '95.217.178.130', 'end': '95.217.178.190'}], 'gateway_ip': '95.217.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.217.178.130', 'tags': [], 'project_id': '74493b1510c24b81a9cfe23620c981cd'}} 2025-03-27 15:00:47,985 - INFO - Created VN ctest-vn-48129117 2025-03-27 15:00:48,046 - DEBUG - VN ctest-vn-48129117 UUID is dee40f36-1790-48ea-86c4-d21dc4b46d4a 2025-03-27 15:00:48,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622, 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-87944825:ctest-vn-48129117, 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-03-27 15:00:48,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bbe7aaf1-c925-42df-a4a2-e9c5838f466e', 'name': 'ctest-vn-26352622', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb2bef27-9c60-4fc8-be94-32bccaf97a3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-26352622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719']], 'subnet_ipam': [{'subnet_cidr': '92.215.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 15:00:48,812 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dee40f36-1790-48ea-86c4-d21dc4b46d4a', 'name': 'ctest-vn-48129117', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1665cab-97c6-49ec-b37c-67d56f6b358a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-48129117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719']], 'subnet_ipam': [{'subnet_cidr': '95.217.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 15:00:48,998 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-27 15:00:49,321 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-27 15:00:49,360 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8 2025-03-27 15:00:49,376 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd 2025-03-27 15:00:49,459 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e 2025-03-27 15:00:49,477 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e 2025-03-27 15:00:49,489 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b 2025-03-27 15:00:49,498 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b 2025-03-27 15:00:49,509 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1a6a0b9a-47bd-4eb3-a8a2-0c68b2b940da 2025-03-27 15:00:49,519 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 15:00:49,519 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e 2025-03-27 15:00:49,531 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b 2025-03-27 15:00:49,550 - INFO - Verified VN network id 8 for VN bbe7aaf1-c925-42df-a4a2-e9c5838f466e 2025-03-27 15:00:49,550 - INFO - Verifications in API Server for VN ctest-vn-26352622 passed 2025-03-27 15:00:49,550 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e 2025-03-27 15:00:49,563 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b 2025-03-27 15:00:49,574 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b 2025-03-27 15:00:49,584 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1a6a0b9a-47bd-4eb3-a8a2-0c68b2b940da 2025-03-27 15:00:49,599 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87944825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13539978760151188191', 'uuid-lslong': '11863301402972341870'}, 'enable': 'true', 'created': '2025-03-27T15:00:47', 'last-modified': '2025-03-27T15:00:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.111832'} 2025-03-27 15:00:49,607 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 15:00:49,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26352622 passed 2025-03-27 15:00:49,607 - DEBUG - ====Verifying policy data for ctest-vn-26352622 in API_Server ====== 2025-03-27 15:00:49,607 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-27 15:00:49,615 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8 2025-03-27 15:00:49,630 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd 2025-03-27 15:00:49,716 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e 2025-03-27 15:00:49,728 - DEBUG - ==>Verifying data for policy with id: 5d37c793-ad2a-497a-8cb0-4ad7dfd8a781, fqn: ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719'] 2025-03-27 15:00:49,728 - INFO - VN ctest-vn-26352622 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 15:00:49,728 - DEBUG - Verifying the vn in opserver 2025-03-27 15:00:49,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622 virtual network link through opserver 10.0.0.42 2025-03-27 15:00:49,728 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-27 15:00:50,026 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-27 15:00:50,099 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622?flat'} 2025-03-27 15:00:50,099 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622 is found in opserver 2025-03-27 15:00:50,114 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 15:00:50,122 - DEBUG - VRF ids for VN ctest-vn-26352622: {} 2025-03-27 15:00:50,122 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-27 15:00:50,128 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8 2025-03-27 15:00:50,143 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd 2025-03-27 15:00:50,229 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a 2025-03-27 15:00:50,243 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a 2025-03-27 15:00:50,254 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb 2025-03-27 15:00:50,264 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb 2025-03-27 15:00:50,272 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fee8a1c6-cf7f-44bb-90b7-cd631d7d6426 2025-03-27 15:00:50,286 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 15:00:50,286 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a 2025-03-27 15:00:50,300 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb 2025-03-27 15:00:50,322 - INFO - Verified VN network id 9 for VN dee40f36-1790-48ea-86c4-d21dc4b46d4a 2025-03-27 15:00:50,322 - INFO - Verifications in API Server for VN ctest-vn-48129117 passed 2025-03-27 15:00:50,322 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a 2025-03-27 15:00:50,335 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb 2025-03-27 15:00:50,344 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb 2025-03-27 15:00:50,357 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fee8a1c6-cf7f-44bb-90b7-cd631d7d6426 2025-03-27 15:00:50,374 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87944825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16060978896108013802', 'uuid-lslong': '9711117721813675338'}, 'enable': 'true', 'created': '2025-03-27T15:00:47', 'last-modified': '2025-03-27T15:00:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.593309'} 2025-03-27 15:00:50,383 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 15:00:50,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48129117 passed 2025-03-27 15:00:50,383 - DEBUG - ====Verifying policy data for ctest-vn-48129117 in API_Server ====== 2025-03-27 15:00:50,383 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-27 15:00:50,391 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8 2025-03-27 15:00:50,408 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd 2025-03-27 15:00:50,484 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a 2025-03-27 15:00:50,495 - DEBUG - ==>Verifying data for policy with id: 5d37c793-ad2a-497a-8cb0-4ad7dfd8a781, fqn: ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719'] 2025-03-27 15:00:50,495 - INFO - VN ctest-vn-48129117 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 15:00:50,495 - DEBUG - Verifying the vn in opserver 2025-03-27 15:00:50,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117 virtual network link through opserver 10.0.0.42 2025-03-27 15:00:50,495 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-03-27 15:00:50,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117?flat'} 2025-03-27 15:00:50,508 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117 is found in opserver 2025-03-27 15:00:50,524 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 15:00:50,531 - DEBUG - VRF ids for VN ctest-vn-48129117: {} 2025-03-27 15:00:50,613 - DEBUG - Services list from nova: [, , ] 2025-03-27 15:00:51,769 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2974-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2974-1) 2025-03-27 15:00:53,178 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2974-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2974-1) 2025-03-27 15:00:53,179 - INFO - Waiting for VM ctest-TestBasicPolicy-87944825-22368388 to be up.. 2025-03-27 15:00:53,282 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 15:00:58,372 - DEBUG - VM is in ACTIVE state now 2025-03-27 15:00:58,373 - INFO - VM name : ctest-TestBasicPolicy-87944825-22368388 2025-03-27 15:00:58,463 - DEBUG - VM ctest-TestBasicPolicy-87944825-22368388 ID is e1ec6671-641f-4f88-927c-725686fba80d 2025-03-27 15:00:58,495 - DEBUG - VM ctest-TestBasicPolicy-87944825-22368388 launched on Node cn-jenkins-deploy-platform-ansible-os-2974-1 2025-03-27 15:00:58,591 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/e1ec6671-641f-4f88-927c-725686fba80d 2025-03-27 15:00:58,602 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/cd6693fd-3ddd-4fae-97b4-8d4a302394a6 2025-03-27 15:01:01,886 - 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 1025ms') 2025-03-27 15:01:01,886 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87944825-22368388 failed! 2025-03-27 15:01:01,946 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622 is 92.215.183.129 and allocation pool is NOT set 2025-03-27 15:01:04,016 - 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.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.818 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.818/7.060/13.303/6.242 ms') 2025-03-27 15:01:04,017 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87944825-22368388 passed 2025-03-27 15:01:04,174 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 15:01:04,174 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87944825-22368388, IP 92.215.183.131, Port 22 2025-03-27 15:01:04,239 - 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-03-27 15:01:04,328 - DEBUG - VM ctest-TestBasicPolicy-87944825-22368388 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 15:01:09,329 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 15:01:09,329 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87944825-22368388, IP 92.215.183.131, Port 22 2025-03-27 15:01:09,485 - DEBUG - VM ctest-TestBasicPolicy-87944825-22368388 is ready for SSH connections 2025-03-27 15:01:09,485 - INFO - Waiting for VM ctest-TestBasicPolicy-87944825-34070736 to be up.. 2025-03-27 15:01:09,568 - DEBUG - VM is in ACTIVE state now 2025-03-27 15:01:09,569 - INFO - VM name : ctest-TestBasicPolicy-87944825-34070736 2025-03-27 15:01:09,657 - DEBUG - VM ctest-TestBasicPolicy-87944825-34070736 ID is 5def8fe8-adb5-471a-b589-e5eb7f84dfef 2025-03-27 15:01:09,657 - DEBUG - VM ctest-TestBasicPolicy-87944825-34070736 launched on Node cn-jenkins-deploy-platform-ansible-os-2974-1 2025-03-27 15:01:09,750 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/5def8fe8-adb5-471a-b589-e5eb7f84dfef 2025-03-27 15:01:09,763 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/32765e97-755d-4e8e-8ff9-3a307a8ce19f 2025-03-27 15:01:11,024 - 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.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.445 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.445/1.989/3.534/1.544 ms') 2025-03-27 15:01:11,024 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87944825-34070736 passed 2025-03-27 15:01:11,194 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 15:01:11,194 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87944825-34070736, IP 95.217.178.131, Port 22 2025-03-27 15:01:11,360 - DEBUG - VM ctest-TestBasicPolicy-87944825-34070736 is ready for SSH connections 2025-03-27 15:01:11,360 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 15:01:11,360 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.217.178.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-03-27 15:01:11,361 - DEBUG - ping -s 56 -c 3 -W 1 95.217.178.131 2025-03-27 15:01:15,125 - DEBUG - PING 95.217.178.131 (95.217.178.131): 56 data bytes 64 bytes from 95.217.178.131: seq=0 ttl=63 time=3.887 ms 64 bytes from 95.217.178.131: seq=1 ttl=63 time=1.094 ms 64 bytes from 95.217.178.131: seq=2 ttl=63 time=0.997 ms --- 95.217.178.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.997/1.992/3.887 ms 2025-03-27 15:01:15,126 - INFO - Ping to IP 95.217.178.131 from VM ctest-TestBasicPolicy-87944825-22368388 passed 2025-03-27 15:01:15,306 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5d37c793-ad2a-497a-8cb0-4ad7dfd8a781", "href": "http://10.0.0.42:8082/network-policy/5d37c793-ad2a-497a-8cb0-4ad7dfd8a781"}} 2025-03-27 15:01:15,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 15:01:15,306 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.217.178.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-03-27 15:01:15,306 - DEBUG - ping -s 56 -c 3 -W 1 95.217.178.131 2025-03-27 15:01:18,539 - DEBUG - PING 95.217.178.131 (95.217.178.131): 56 data bytes 64 bytes from 95.217.178.131: seq=0 ttl=63 time=1.761 ms --- 95.217.178.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.761/1.761/1.761 ms 2025-03-27 15:01:18,540 - WARNING - Ping to IP 95.217.178.131 from VM ctest-TestBasicPolicy-87944825-22368388 failed 2025-03-27 15:01:18,540 - INFO - Deleting VM ctest-TestBasicPolicy-87944825-34070736 2025-03-27 15:01:18,620 - INFO - Deleting VM ctest-TestBasicPolicy-87944825-22368388 2025-03-27 15:01:19,064 - INFO - Deleted policy ctest-policy-allow-all-21961719 2025-03-27 15:01:19,064 - INFO - Deleting VN ctest-vn-48129117 2025-03-27 15:01:19,110 - DEBUG - VN dee40f36-1790-48ea-86c4-d21dc4b46d4a still in use: Unable to complete operation on network dee40f36-1790-48ea-86c4-d21dc4b46d4a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2a532076-42dc-4010-9ee8-dd148388e9fd'] 2025-03-27 15:01:19,111 - WARNING - Deleting VN ctest-vn-48129117 failed..Will retry 2025-03-27 15:01:21,243 - DEBUG - Response for deleting network () 2025-03-27 15:01:21,243 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb 2025-03-27 15:01:21,250 - DEBUG - Response Code: 404 2025-03-27 15:01:21,250 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-27 15:01:21,259 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8 2025-03-27 15:01:21,324 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd 2025-03-27 15:01:21,424 - INFO - Validated that VN ctest-vn-48129117 is not found in API Server 2025-03-27 15:01:21,440 - DEBUG - VN ctest-vn-48129117 is not present in Agent 10.0.0.42 2025-03-27 15:01:21,440 - INFO - Validated that VN ctest-vn-48129117 is not in any agent 2025-03-27 15:01:21,464 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48129117 info 2025-03-27 15:01:21,464 - INFO - Deleting VN ctest-vn-26352622 2025-03-27 15:01:21,591 - DEBUG - Response for deleting network () 2025-03-27 15:01:21,591 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b 2025-03-27 15:01:21,600 - DEBUG - Response Code: 404 2025-03-27 15:01:21,601 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-03-27 15:01:21,609 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8 2025-03-27 15:01:21,668 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd 2025-03-27 15:01:21,753 - INFO - Validated that VN ctest-vn-26352622 is not found in API Server 2025-03-27 15:01:21,771 - DEBUG - VN ctest-vn-26352622 is not present in Agent 10.0.0.42 2025-03-27 15:01:21,771 - INFO - Validated that VN ctest-vn-26352622 is not in any agent 2025-03-27 15:01:21,792 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26352622 info 2025-03-27 15:01:22,068 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 15:01:22,069 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-03-27 15:01:22,069 - INFO - -------------------------------------------------------------------------------- 2025-03-27 15:01:22,801 - INFO - Deleted project: ctest-TestBasicPolicy-87944825, ID : 74493b15-10c2-4b81-a9cf-e23620c981cd