2025-01-14 22:18:03,083 - INFO - Domain Default found not creating 2025-01-14 22:18:03,228 - INFO - Project ctest-TestBasicPolicy-73707070 not found, creating it 2025-01-14 22:18:03,669 - INFO - Created Project:ctest-TestBasicPolicy-73707070, ID : 8ca9f196-a856-472c-ae86-3ad89d1ebdb3 2025-01-14 22:18:05,152 - INFO - ================================================================================ 2025-01-14 22:18:05,152 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-14 22:18:05,152 - 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-14 22:18:05,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.26': '0'}} with 2025-01-14 22:18:05,414 - INFO - Initial checks done. Running the testcase now 2025-01-14 22:18:05,414 - INFO - 2025-01-14 22:18:05,966 - DEBUG - Response for create_network : {'network': {'id': 'a7ac3a37-3a78-4d01-a8ff-46b9b88907f7', 'name': 'ctest-vn-68501283', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-68501283'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 22:18:06,181 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d04a15e-ced3-435a-accd-ba3bfec1f7af', 'name': '', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'network_id': 'a7ac3a37-3a78-4d01-a8ff-46b9b88907f7', 'ip_version': 4, 'cidr': '8.206.140.192/26', 'allocation_pools': [{'start': '8.206.140.194', 'end': '8.206.140.254'}], 'gateway_ip': '8.206.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.206.140.194', 'tags': [], 'project_id': '8ca9f196a856472cae863ad89d1ebdb3'}} 2025-01-14 22:18:06,198 - INFO - Created VN ctest-vn-68501283 2025-01-14 22:18:06,252 - DEBUG - VN ctest-vn-68501283 UUID is a7ac3a37-3a78-4d01-a8ff-46b9b88907f7 2025-01-14 22:18:06,574 - DEBUG - Response for create_network : {'network': {'id': '364e353f-e699-47d6-b19d-7cb4861b3607', 'name': 'ctest-vn-03701389', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-03701389'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 22:18:06,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '941d31f3-dd3f-4926-bfae-526eecc1c086', 'name': '', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'network_id': '364e353f-e699-47d6-b19d-7cb4861b3607', 'ip_version': 4, 'cidr': '81.231.53.0/26', 'allocation_pools': [{'start': '81.231.53.2', 'end': '81.231.53.62'}], 'gateway_ip': '81.231.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.231.53.2', 'tags': [], 'project_id': '8ca9f196a856472cae863ad89d1ebdb3'}} 2025-01-14 22:18:06,747 - INFO - Created VN ctest-vn-03701389 2025-01-14 22:18:06,800 - DEBUG - VN ctest-vn-03701389 UUID is 364e353f-e699-47d6-b19d-7cb4861b3607 2025-01-14 22:18:06,948 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283, 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-73707070:ctest-vn-03701389, 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-14 22:18:07,238 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7ac3a37-3a78-4d01-a8ff-46b9b88907f7', 'name': 'ctest-vn-68501283', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d04a15e-ced3-435a-accd-ba3bfec1f7af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-68501283'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969']], 'subnet_ipam': [{'subnet_cidr': '8.206.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 22:18:07,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '364e353f-e699-47d6-b19d-7cb4861b3607', 'name': 'ctest-vn-03701389', 'tenant_id': '8ca9f196a856472cae863ad89d1ebdb3', 'project_id': '8ca9f196a856472cae863ad89d1ebdb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['941d31f3-dd3f-4926-bfae-526eecc1c086'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-vn-03701389'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969']], 'subnet_ipam': [{'subnet_cidr': '81.231.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 22:18:07,608 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 22:18:07,908 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 22:18:07,936 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976 2025-01-14 22:18:07,948 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3 2025-01-14 22:18:08,026 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7 2025-01-14 22:18:08,036 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7 2025-01-14 22:18:08,046 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd 2025-01-14 22:18:08,052 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd 2025-01-14 22:18:08,058 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ee61f696-4781-40d6-81da-1ff232b8d78d 2025-01-14 22:18:08,064 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 22:18:08,064 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7 2025-01-14 22:18:08,073 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd 2025-01-14 22:18:08,086 - INFO - Verified VN network id 9 for VN a7ac3a37-3a78-4d01-a8ff-46b9b88907f7 2025-01-14 22:18:08,086 - INFO - Verifications in API Server for VN ctest-vn-68501283 passed 2025-01-14 22:18:08,086 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7 2025-01-14 22:18:08,096 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd 2025-01-14 22:18:08,102 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd 2025-01-14 22:18:08,108 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ee61f696-4781-40d6-81da-1ff232b8d78d 2025-01-14 22:18:08,119 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73707070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12082095909206772993', 'uuid-lslong': '12177529680911992823'}, 'enable': 'true', 'created': '2025-01-14T22:18:05', 'last-modified': '2025-01-14T22:18:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911438'} 2025-01-14 22:18:08,125 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 22:18:08,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68501283 passed 2025-01-14 22:18:08,126 - DEBUG - ====Verifying policy data for ctest-vn-68501283 in API_Server ====== 2025-01-14 22:18:08,126 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 22:18:08,131 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976 2025-01-14 22:18:08,141 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3 2025-01-14 22:18:08,208 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ac3a37-3a78-4d01-a8ff-46b9b88907f7 2025-01-14 22:18:08,219 - DEBUG - ==>Verifying data for policy with id: da9bb4e7-b3ab-4f28-9949-8b8beaa4319b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969'] 2025-01-14 22:18:08,219 - INFO - VN ctest-vn-68501283 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 22:18:08,219 - DEBUG - Verifying the vn in opserver 2025-01-14 22:18:08,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283 virtual network link through opserver 10.0.0.22 2025-01-14 22:18:08,220 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-14 22:18:08,510 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-14 22:18:08,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283?flat'} 2025-01-14 22:18:08,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283 is found in opserver 2025-01-14 22:18:08,569 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 22:18:08,574 - DEBUG - VRF ids for VN ctest-vn-68501283: {} 2025-01-14 22:18:08,574 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 22:18:08,579 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976 2025-01-14 22:18:08,590 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3 2025-01-14 22:18:08,659 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607 2025-01-14 22:18:08,670 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607 2025-01-14 22:18:08,679 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3 2025-01-14 22:18:08,685 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3 2025-01-14 22:18:08,691 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d8432527-4451-434f-be69-16cd046445e8 2025-01-14 22:18:08,697 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 22:18:08,697 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607 2025-01-14 22:18:08,705 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3 2025-01-14 22:18:08,718 - INFO - Verified VN network id 10 for VN 364e353f-e699-47d6-b19d-7cb4861b3607 2025-01-14 22:18:08,718 - INFO - Verifications in API Server for VN ctest-vn-03701389 passed 2025-01-14 22:18:08,718 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607 2025-01-14 22:18:08,727 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3 2025-01-14 22:18:08,733 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3 2025-01-14 22:18:08,741 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d8432527-4451-434f-be69-16cd046445e8 2025-01-14 22:18:08,751 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73707070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3913123674799556566', 'uuid-lslong': '12798522830842705415'}, 'enable': 'true', 'created': '2025-01-14T22:18:06', 'last-modified': '2025-01-14T22:18:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314063'} 2025-01-14 22:18:08,757 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 22:18:08,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03701389 passed 2025-01-14 22:18:08,757 - DEBUG - ====Verifying policy data for ctest-vn-03701389 in API_Server ====== 2025-01-14 22:18:08,757 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 22:18:08,762 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976 2025-01-14 22:18:08,773 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3 2025-01-14 22:18:08,854 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/364e353f-e699-47d6-b19d-7cb4861b3607 2025-01-14 22:18:08,863 - DEBUG - ==>Verifying data for policy with id: da9bb4e7-b3ab-4f28-9949-8b8beaa4319b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73707070', 'ctest-policy-allow-all-05025969'] 2025-01-14 22:18:08,863 - INFO - VN ctest-vn-03701389 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 22:18:08,863 - DEBUG - Verifying the vn in opserver 2025-01-14 22:18:08,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389 virtual network link through opserver 10.0.0.22 2025-01-14 22:18:08,863 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-14 22:18:08,874 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389?flat'} 2025-01-14 22:18:08,874 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-03701389 is found in opserver 2025-01-14 22:18:08,885 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 22:18:08,889 - DEBUG - VRF ids for VN ctest-vn-03701389: {} 2025-01-14 22:18:08,944 - DEBUG - Services list from nova: [, , ] 2025-01-14 22:18:09,935 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2631-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2631-1) 2025-01-14 22:18:11,096 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2631-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2631-1) 2025-01-14 22:18:11,096 - INFO - Waiting for VM ctest-TestBasicPolicy-73707070-36871755 to be up.. 2025-01-14 22:18:11,172 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-14 22:18:16,248 - DEBUG - VM is in ACTIVE state now 2025-01-14 22:18:16,249 - INFO - VM name : ctest-TestBasicPolicy-73707070-36871755 2025-01-14 22:18:16,327 - DEBUG - VM ctest-TestBasicPolicy-73707070-36871755 ID is 77fda801-00f6-4275-ad4e-17bc2e6b7c32 2025-01-14 22:18:16,347 - DEBUG - VM ctest-TestBasicPolicy-73707070-36871755 launched on Node cn-jenkins-deploy-platform-ansible-os-2631-1 2025-01-14 22:18:16,422 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/77fda801-00f6-4275-ad4e-17bc2e6b7c32 2025-01-14 22:18:16,431 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/cdf4bc6e-4a47-4221-8341-cc711c243c9e 2025-01-14 22:18:19,705 - 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 1031ms') 2025-01-14 22:18:19,705 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73707070-36871755 failed! 2025-01-14 22:18:19,772 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73707070:ctest-vn-68501283 is 8.206.140.193 and allocation pool is NOT set 2025-01-14 22:18:21,833 - 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=10.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.03 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.034/6.129/10.224/4.095 ms') 2025-01-14 22:18:21,833 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73707070-36871755 passed 2025-01-14 22:18:21,980 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:18:21,980 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73707070-36871755, IP 8.206.140.195, Port 22 2025-01-14 22:18:22,040 - 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-14 22:18:22,119 - DEBUG - VM ctest-TestBasicPolicy-73707070-36871755 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-14 22:18:27,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:18:27,120 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73707070-36871755, IP 8.206.140.195, Port 22 2025-01-14 22:18:27,276 - DEBUG - VM ctest-TestBasicPolicy-73707070-36871755 is ready for SSH connections 2025-01-14 22:18:27,276 - INFO - Waiting for VM ctest-TestBasicPolicy-73707070-26928090 to be up.. 2025-01-14 22:18:27,359 - DEBUG - VM is in ACTIVE state now 2025-01-14 22:18:27,360 - INFO - VM name : ctest-TestBasicPolicy-73707070-26928090 2025-01-14 22:18:27,434 - DEBUG - VM ctest-TestBasicPolicy-73707070-26928090 ID is 4a4eb234-5ec4-44dd-9407-5f4ecd897791 2025-01-14 22:18:27,434 - DEBUG - VM ctest-TestBasicPolicy-73707070-26928090 launched on Node cn-jenkins-deploy-platform-ansible-os-2631-1 2025-01-14 22:18:27,510 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4a4eb234-5ec4-44dd-9407-5f4ecd897791 2025-01-14 22:18:27,519 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/0fd609bf-537c-40af-a151-1277607771fa 2025-01-14 22:18:28,851 - 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.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.582/2.748/1.166 ms') 2025-01-14 22:18:28,851 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73707070-26928090 passed 2025-01-14 22:18:29,000 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:18:29,000 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73707070-26928090, IP 81.231.53.3, Port 22 2025-01-14 22:18:29,156 - DEBUG - VM ctest-TestBasicPolicy-73707070-26928090 is ready for SSH connections 2025-01-14 22:18:29,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:18:29,156 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.231.53.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-14 22:18:29,156 - DEBUG - ping -s 56 -c 3 -W 1 81.231.53.3 2025-01-14 22:18:32,816 - DEBUG - PING 81.231.53.3 (81.231.53.3): 56 data bytes 64 bytes from 81.231.53.3: seq=0 ttl=63 time=3.569 ms 64 bytes from 81.231.53.3: seq=1 ttl=63 time=1.132 ms 64 bytes from 81.231.53.3: seq=2 ttl=63 time=0.824 ms --- 81.231.53.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.824/1.841/3.569 ms 2025-01-14 22:18:32,816 - INFO - Ping to IP 81.231.53.3 from VM ctest-TestBasicPolicy-73707070-36871755 passed 2025-01-14 22:18:32,996 - DEBUG - Policy Update Response {"network-policy": {"uuid": "da9bb4e7-b3ab-4f28-9949-8b8beaa4319b", "href": "http://10.0.0.22:8082/network-policy/da9bb4e7-b3ab-4f28-9949-8b8beaa4319b"}} 2025-01-14 22:18:32,996 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:18:32,996 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.231.53.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-14 22:18:32,996 - DEBUG - ping -s 56 -c 3 -W 1 81.231.53.3 2025-01-14 22:18:36,193 - DEBUG - PING 81.231.53.3 (81.231.53.3): 56 data bytes 64 bytes from 81.231.53.3: seq=0 ttl=63 time=1.577 ms --- 81.231.53.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.577/1.577/1.577 ms 2025-01-14 22:18:36,193 - WARNING - Ping to IP 81.231.53.3 from VM ctest-TestBasicPolicy-73707070-36871755 failed 2025-01-14 22:18:36,193 - INFO - Deleting VM ctest-TestBasicPolicy-73707070-26928090 2025-01-14 22:18:36,255 - INFO - Deleting VM ctest-TestBasicPolicy-73707070-36871755 2025-01-14 22:18:36,634 - INFO - Deleted policy ctest-policy-allow-all-05025969 2025-01-14 22:18:36,634 - INFO - Deleting VN ctest-vn-03701389 2025-01-14 22:18:36,667 - DEBUG - VN 364e353f-e699-47d6-b19d-7cb4861b3607 still in use: Unable to complete operation on network 364e353f-e699-47d6-b19d-7cb4861b3607. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-74374e19-9dec-4cff-9701-3390479905a0'] 2025-01-14 22:18:36,667 - WARNING - Deleting VN ctest-vn-03701389 failed..Will retry 2025-01-14 22:18:38,766 - DEBUG - Response for deleting network () 2025-01-14 22:18:38,766 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0d86282f-a5df-4664-9dd5-6dc448b45fd3 2025-01-14 22:18:38,773 - DEBUG - Response Code: 404 2025-01-14 22:18:38,773 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 22:18:38,778 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976 2025-01-14 22:18:38,835 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3 2025-01-14 22:18:38,905 - INFO - Validated that VN ctest-vn-03701389 is not found in API Server 2025-01-14 22:18:38,916 - DEBUG - VN ctest-vn-03701389 is not present in Agent 10.0.0.22 2025-01-14 22:18:38,916 - INFO - Validated that VN ctest-vn-03701389 is not in any agent 2025-01-14 22:18:38,932 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03701389 info 2025-01-14 22:18:38,932 - INFO - Deleting VN ctest-vn-68501283 2025-01-14 22:18:39,030 - DEBUG - Response for deleting network () 2025-01-14 22:18:39,030 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce058fb7-23f2-4e83-b5ff-c186335861dd 2025-01-14 22:18:39,035 - DEBUG - Response Code: 404 2025-01-14 22:18:39,035 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-01-14 22:18:39,041 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6d03af72-2ac7-4f00-aebf-14656036f976 2025-01-14 22:18:39,093 - DEBUG - Requesting: http://10.0.0.22:8082/project/8ca9f196-a856-472c-ae86-3ad89d1ebdb3 2025-01-14 22:18:39,158 - INFO - Validated that VN ctest-vn-68501283 is not found in API Server 2025-01-14 22:18:39,168 - DEBUG - VN ctest-vn-68501283 is not present in Agent 10.0.0.22 2025-01-14 22:18:39,168 - INFO - Validated that VN ctest-vn-68501283 is not in any agent 2025-01-14 22:18:39,182 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68501283 info 2025-01-14 22:18:39,438 - DEBUG - No XMPP flaps were noticed during the test
2025-01-14 22:18:39,438 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-01-14 22:18:39,438 - INFO - -------------------------------------------------------------------------------- 2025-01-14 22:18:40,094 - INFO - Deleted project: ctest-TestBasicPolicy-73707070, ID : 8ca9f196-a856-472c-ae86-3ad89d1ebdb3