2025-04-09 15:57:31,934 - INFO - Domain Default found not creating 2025-04-09 15:57:32,334 - INFO - Project ctest-TestBasicPolicy-77425648 not found, creating it 2025-04-09 15:57:33,066 - INFO - Created Project:ctest-TestBasicPolicy-77425648, ID : cc774da1-29bb-4877-8b3a-ec798983088c 2025-04-09 15:57:35,332 - INFO - ================================================================================ 2025-04-09 15:57:35,332 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 15:57:35,332 - 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-09 15:57:35,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-09 15:57:35,674 - INFO - Initial checks done. Running the testcase now 2025-04-09 15:57:35,674 - INFO - 2025-04-09 15:57:36,481 - DEBUG - Response for create_network : {'network': {'id': '469670b6-6b01-47ee-85c2-9eb1cac0ca34', 'name': 'ctest-vn-10307346', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-10307346'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 15:57:36,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fb39982-a7b3-45af-b92d-67a2a42a9b44', 'name': '', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'network_id': '469670b6-6b01-47ee-85c2-9eb1cac0ca34', 'ip_version': 4, 'cidr': '171.224.209.0/26', 'allocation_pools': [{'start': '171.224.209.2', 'end': '171.224.209.62'}], 'gateway_ip': '171.224.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.224.209.2', 'tags': [], 'project_id': 'cc774da129bb48778b3aec798983088c'}} 2025-04-09 15:57:36,765 - INFO - Created VN ctest-vn-10307346 2025-04-09 15:57:36,826 - DEBUG - VN ctest-vn-10307346 UUID is 469670b6-6b01-47ee-85c2-9eb1cac0ca34 2025-04-09 15:57:37,189 - DEBUG - Response for create_network : {'network': {'id': 'e813b4cd-2cb9-4580-868e-1b5600609ed2', 'name': 'ctest-vn-82098530', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-82098530'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 15:57:37,474 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a82e8c58-4880-47ab-a946-aa9dd3784a78', 'name': '', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'network_id': 'e813b4cd-2cb9-4580-868e-1b5600609ed2', 'ip_version': 4, 'cidr': '213.174.222.128/26', 'allocation_pools': [{'start': '213.174.222.130', 'end': '213.174.222.190'}], 'gateway_ip': '213.174.222.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.174.222.130', 'tags': [], 'project_id': 'cc774da129bb48778b3aec798983088c'}} 2025-04-09 15:57:37,506 - INFO - Created VN ctest-vn-82098530 2025-04-09 15:57:37,578 - DEBUG - VN ctest-vn-82098530 UUID is e813b4cd-2cb9-4580-868e-1b5600609ed2 2025-04-09 15:57:37,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346, 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-77425648:ctest-vn-82098530, 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-09 15:57:38,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '469670b6-6b01-47ee-85c2-9eb1cac0ca34', 'name': 'ctest-vn-10307346', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fb39982-a7b3-45af-b92d-67a2a42a9b44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-10307346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737']], 'subnet_ipam': [{'subnet_cidr': '171.224.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 15:57:38,558 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e813b4cd-2cb9-4580-868e-1b5600609ed2', 'name': 'ctest-vn-82098530', 'tenant_id': 'cc774da129bb48778b3aec798983088c', 'project_id': 'cc774da129bb48778b3aec798983088c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a82e8c58-4880-47ab-a946-aa9dd3784a78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-vn-82098530'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737']], 'subnet_ipam': [{'subnet_cidr': '213.174.222.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 15:57:38,726 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 15:57:39,056 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 15:57:39,113 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20 2025-04-09 15:57:39,144 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c 2025-04-09 15:57:39,273 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34 2025-04-09 15:57:39,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34 2025-04-09 15:57:39,323 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f 2025-04-09 15:57:39,334 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f 2025-04-09 15:57:39,344 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d7dda84e-dd56-4275-8386-554e760b86a3 2025-04-09 15:57:39,357 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 15:57:39,357 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34 2025-04-09 15:57:39,375 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f 2025-04-09 15:57:39,404 - INFO - Verified VN network id 8 for VN 469670b6-6b01-47ee-85c2-9eb1cac0ca34 2025-04-09 15:57:39,404 - INFO - Verifications in API Server for VN ctest-vn-10307346 passed 2025-04-09 15:57:39,404 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34 2025-04-09 15:57:39,424 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f 2025-04-09 15:57:39,438 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f 2025-04-09 15:57:39,452 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d7dda84e-dd56-4275-8386-554e760b86a3 2025-04-09 15:57:39,475 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77425648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5086376757943158766', 'uuid-lslong': '9638440638974315060'}, 'enable': 'true', 'created': '2025-04-09T15:57:36', 'last-modified': '2025-04-09T15:57:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338810'} 2025-04-09 15:57:39,489 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 15:57:39,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10307346 passed 2025-04-09 15:57:39,490 - DEBUG - ====Verifying policy data for ctest-vn-10307346 in API_Server ====== 2025-04-09 15:57:39,490 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 15:57:39,500 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20 2025-04-09 15:57:39,522 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c 2025-04-09 15:57:39,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/469670b6-6b01-47ee-85c2-9eb1cac0ca34 2025-04-09 15:57:39,660 - DEBUG - ==>Verifying data for policy with id: 51a77b6d-bb55-4f3d-9a56-f76af1008636, fqn: ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737'] 2025-04-09 15:57:39,661 - INFO - VN ctest-vn-10307346 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 15:57:39,661 - DEBUG - Verifying the vn in opserver 2025-04-09 15:57:39,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346 virtual network link through opserver 10.0.0.254 2025-04-09 15:57:39,662 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-09 15:57:39,986 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-09 15:57:40,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346?flat'} 2025-04-09 15:57:40,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346 is found in opserver 2025-04-09 15:57:40,120 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 15:57:40,138 - DEBUG - VRF ids for VN ctest-vn-10307346: {} 2025-04-09 15:57:40,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 15:57:40,152 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20 2025-04-09 15:57:40,190 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c 2025-04-09 15:57:40,320 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2 2025-04-09 15:57:40,351 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2 2025-04-09 15:57:40,378 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57 2025-04-09 15:57:40,397 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57 2025-04-09 15:57:40,417 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5a643f3b-1768-4010-94c7-784efbec4197 2025-04-09 15:57:40,434 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 15:57:40,434 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2 2025-04-09 15:57:40,465 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57 2025-04-09 15:57:40,501 - INFO - Verified VN network id 9 for VN e813b4cd-2cb9-4580-868e-1b5600609ed2 2025-04-09 15:57:40,501 - INFO - Verifications in API Server for VN ctest-vn-82098530 passed 2025-04-09 15:57:40,502 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2 2025-04-09 15:57:40,527 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57 2025-04-09 15:57:40,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57 2025-04-09 15:57:40,559 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5a643f3b-1768-4010-94c7-784efbec4197 2025-04-09 15:57:40,586 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77425648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16722908634668418432', 'uuid-lslong': '9695717103962726098'}, 'enable': 'true', 'created': '2025-04-09T15:57:37', 'last-modified': '2025-04-09T15:57:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.103518'} 2025-04-09 15:57:40,606 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 15:57:40,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82098530 passed 2025-04-09 15:57:40,607 - DEBUG - ====Verifying policy data for ctest-vn-82098530 in API_Server ====== 2025-04-09 15:57:40,607 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 15:57:40,615 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20 2025-04-09 15:57:40,635 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c 2025-04-09 15:57:40,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e813b4cd-2cb9-4580-868e-1b5600609ed2 2025-04-09 15:57:40,788 - DEBUG - ==>Verifying data for policy with id: 51a77b6d-bb55-4f3d-9a56-f76af1008636, fqn: ['default-domain', 'ctest-TestBasicPolicy-77425648', 'ctest-policy-allow-all-70059737'] 2025-04-09 15:57:40,788 - INFO - VN ctest-vn-82098530 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 15:57:40,789 - DEBUG - Verifying the vn in opserver 2025-04-09 15:57:40,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530 virtual network link through opserver 10.0.0.254 2025-04-09 15:57:40,789 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-09 15:57:40,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530?flat'} 2025-04-09 15:57:40,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-82098530 is found in opserver 2025-04-09 15:57:40,862 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 15:57:40,883 - DEBUG - VRF ids for VN ctest-vn-82098530: {} 2025-04-09 15:57:41,053 - DEBUG - Services list from nova: [, , ] 2025-04-09 15:57:42,630 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3070-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3070-1) 2025-04-09 15:57:44,155 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3070-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3070-1) 2025-04-09 15:57:44,155 - INFO - Waiting for VM ctest-TestBasicPolicy-77425648-17401091 to be up.. 2025-04-09 15:57:44,291 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 15:57:49,446 - DEBUG - VM is in ACTIVE state now 2025-04-09 15:57:49,446 - INFO - VM name : ctest-TestBasicPolicy-77425648-17401091 2025-04-09 15:57:49,572 - DEBUG - VM ctest-TestBasicPolicy-77425648-17401091 ID is 8ead56e2-0eed-40be-9770-c243e3ebd51e 2025-04-09 15:57:49,593 - DEBUG - VM ctest-TestBasicPolicy-77425648-17401091 launched on Node cn-jenkins-deploy-platform-ansible-os-3070-1 2025-04-09 15:57:49,696 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/8ead56e2-0eed-40be-9770-c243e3ebd51e 2025-04-09 15:57:49,706 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b2f5c877-9ee8-4601-86d4-0c78a6516edb 2025-04-09 15:57:52,985 - 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 1023ms') 2025-04-09 15:57:52,985 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77425648-17401091 failed! 2025-04-09 15:57:53,062 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77425648:ctest-vn-10307346 is 171.224.209.1 and allocation pool is NOT set 2025-04-09 15:57:55,129 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.12 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.120/2.733/4.347/1.613 ms') 2025-04-09 15:57:55,130 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77425648-17401091 passed 2025-04-09 15:57:55,289 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 15:57:55,289 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77425648-17401091, IP 171.224.209.3, Port 22 2025-04-09 15:57:55,366 - 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-09 15:57:55,513 - DEBUG - VM ctest-TestBasicPolicy-77425648-17401091 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-09 15:58:00,514 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 15:58:00,514 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77425648-17401091, IP 171.224.209.3, Port 22 2025-04-09 15:58:00,706 - DEBUG - VM ctest-TestBasicPolicy-77425648-17401091 is ready for SSH connections 2025-04-09 15:58:00,706 - INFO - Waiting for VM ctest-TestBasicPolicy-77425648-20649630 to be up.. 2025-04-09 15:58:00,865 - DEBUG - VM is in ACTIVE state now 2025-04-09 15:58:00,866 - INFO - VM name : ctest-TestBasicPolicy-77425648-20649630 2025-04-09 15:58:01,028 - DEBUG - VM ctest-TestBasicPolicy-77425648-20649630 ID is 9d757176-a35f-4ed4-bf09-3aaf4779d3ac 2025-04-09 15:58:01,028 - DEBUG - VM ctest-TestBasicPolicy-77425648-20649630 launched on Node cn-jenkins-deploy-platform-ansible-os-3070-1 2025-04-09 15:58:01,219 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/9d757176-a35f-4ed4-bf09-3aaf4779d3ac 2025-04-09 15:58:01,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/f1e2332c-c898-488d-8586-d079ba567dc4 2025-04-09 15:58:02,546 - 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=8.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.525 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.525/4.552/8.580/4.027 ms') 2025-04-09 15:58:02,547 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77425648-20649630 passed 2025-04-09 15:58:02,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 15:58:02,710 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77425648-20649630, IP 213.174.222.131, Port 22 2025-04-09 15:58:02,891 - DEBUG - VM ctest-TestBasicPolicy-77425648-20649630 is ready for SSH connections 2025-04-09 15:58:02,892 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 15:58:02,892 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 213.174.222.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-09 15:58:02,892 - DEBUG - ping -s 56 -c 3 -W 1 213.174.222.131 2025-04-09 15:58:07,146 - DEBUG - PING 213.174.222.131 (213.174.222.131): 56 data bytes 64 bytes from 213.174.222.131: seq=0 ttl=63 time=4.212 ms 64 bytes from 213.174.222.131: seq=1 ttl=63 time=1.646 ms 64 bytes from 213.174.222.131: seq=2 ttl=63 time=1.331 ms --- 213.174.222.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.331/2.396/4.212 ms 2025-04-09 15:58:07,146 - INFO - Ping to IP 213.174.222.131 from VM ctest-TestBasicPolicy-77425648-17401091 passed 2025-04-09 15:58:07,373 - DEBUG - Policy Update Response {"network-policy": {"uuid": "51a77b6d-bb55-4f3d-9a56-f76af1008636", "href": "http://10.0.0.254:8082/network-policy/51a77b6d-bb55-4f3d-9a56-f76af1008636"}} 2025-04-09 15:58:07,373 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 15:58:07,374 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 213.174.222.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-09 15:58:07,374 - DEBUG - ping -s 56 -c 3 -W 1 213.174.222.131 2025-04-09 15:58:10,648 - DEBUG - PING 213.174.222.131 (213.174.222.131): 56 data bytes --- 213.174.222.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-09 15:58:10,649 - WARNING - Ping to IP 213.174.222.131 from VM ctest-TestBasicPolicy-77425648-17401091 failed 2025-04-09 15:58:10,650 - INFO - Deleting VM ctest-TestBasicPolicy-77425648-20649630 2025-04-09 15:58:10,837 - INFO - Deleting VM ctest-TestBasicPolicy-77425648-17401091 2025-04-09 15:58:11,571 - INFO - Deleted policy ctest-policy-allow-all-70059737 2025-04-09 15:58:11,572 - INFO - Deleting VN ctest-vn-82098530 2025-04-09 15:58:11,617 - DEBUG - VN e813b4cd-2cb9-4580-868e-1b5600609ed2 still in use: Unable to complete operation on network e813b4cd-2cb9-4580-868e-1b5600609ed2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e139de05-dcf3-4f27-95f7-315c66b260fd'] 2025-04-09 15:58:11,617 - WARNING - Deleting VN ctest-vn-82098530 failed..Will retry 2025-04-09 15:58:13,869 - DEBUG - Response for deleting network () 2025-04-09 15:58:13,870 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9436d88-a8ef-4ee6-821f-deedc6049e57 2025-04-09 15:58:13,878 - DEBUG - Response Code: 404 2025-04-09 15:58:13,878 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 15:58:13,886 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20 2025-04-09 15:58:13,945 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c 2025-04-09 15:58:14,046 - INFO - Validated that VN ctest-vn-82098530 is not found in API Server 2025-04-09 15:58:14,064 - DEBUG - VN ctest-vn-82098530 is not present in Agent 10.0.0.254 2025-04-09 15:58:14,064 - INFO - Validated that VN ctest-vn-82098530 is not in any agent 2025-04-09 15:58:14,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82098530 info 2025-04-09 15:58:14,096 - INFO - Deleting VN ctest-vn-10307346 2025-04-09 15:58:14,246 - DEBUG - Response for deleting network () 2025-04-09 15:58:14,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a6dadd5c-89b1-4553-9de9-c30c39449d1f 2025-04-09 15:58:14,254 - DEBUG - Response Code: 404 2025-04-09 15:58:14,255 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 15:58:14,261 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0ae12f20-c162-4395-9017-6d3f21253f20 2025-04-09 15:58:14,316 - DEBUG - Requesting: http://10.0.0.254:8082/project/cc774da1-29bb-4877-8b3a-ec798983088c 2025-04-09 15:58:14,394 - INFO - Validated that VN ctest-vn-10307346 is not found in API Server 2025-04-09 15:58:14,408 - DEBUG - VN ctest-vn-10307346 is not present in Agent 10.0.0.254 2025-04-09 15:58:14,408 - INFO - Validated that VN ctest-vn-10307346 is not in any agent 2025-04-09 15:58:14,430 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10307346 info 2025-04-09 15:58:14,721 - DEBUG - No XMPP flaps were noticed during the test 2025-04-09 15:58:14,721 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-04-09 15:58:14,722 - INFO - -------------------------------------------------------------------------------- 2025-04-09 15:58:15,613 - INFO - Deleted project: ctest-TestBasicPolicy-77425648, ID : cc774da1-29bb-4877-8b3a-ec798983088c