2025-03-27 16:21:34,079 - INFO - Domain Default found not creating 2025-03-27 16:21:34,257 - INFO - Project ctest-TestBasicPolicy-59667799 not found, creating it 2025-03-27 16:21:34,753 - INFO - Created Project:ctest-TestBasicPolicy-59667799, ID : cd0ab37e-f5e5-4936-8fe0-6417a1b97f16 2025-03-27 16:21:36,397 - INFO - ================================================================================ 2025-03-27 16:21:36,397 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 16:21:36,397 - 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 16:21:36,659 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.25': '0'}} with 2025-03-27 16:21:36,659 - INFO - Initial checks done. Running the testcase now 2025-03-27 16:21:36,659 - INFO - 2025-03-27 16:21:37,254 - DEBUG - Response for create_network : {'network': {'id': 'e10717b0-28a9-4b05-ad01-7790e2aa5a2c', 'name': 'ctest-vn-87779048', 'tenant_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'project_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-vn-87779048'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:37,428 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b500af32-dbf1-4a91-9fa1-8cb263612d60', 'name': '', 'tenant_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'network_id': 'e10717b0-28a9-4b05-ad01-7790e2aa5a2c', 'ip_version': 4, 'cidr': '178.71.155.0/26', 'allocation_pools': [{'start': '178.71.155.2', 'end': '178.71.155.62'}], 'gateway_ip': '178.71.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.71.155.2', 'tags': [], 'project_id': 'cd0ab37ef5e549368fe06417a1b97f16'}} 2025-03-27 16:21:37,449 - INFO - Created VN ctest-vn-87779048 2025-03-27 16:21:37,503 - DEBUG - VN ctest-vn-87779048 UUID is e10717b0-28a9-4b05-ad01-7790e2aa5a2c 2025-03-27 16:21:37,835 - DEBUG - Response for create_network : {'network': {'id': 'fd7a89d0-73d4-468a-abda-086ba31ea958', 'name': 'ctest-vn-81312503', 'tenant_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'project_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-vn-81312503'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:38,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '44ce947c-3bd6-4521-afb6-78a6d0b8c2d9', 'name': '', 'tenant_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'network_id': 'fd7a89d0-73d4-468a-abda-086ba31ea958', 'ip_version': 4, 'cidr': '2.94.186.192/26', 'allocation_pools': [{'start': '2.94.186.194', 'end': '2.94.186.254'}], 'gateway_ip': '2.94.186.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.94.186.194', 'tags': [], 'project_id': 'cd0ab37ef5e549368fe06417a1b97f16'}} 2025-03-27 16:21:38,083 - INFO - Created VN ctest-vn-81312503 2025-03-27 16:21:38,139 - DEBUG - VN ctest-vn-81312503 UUID is fd7a89d0-73d4-468a-abda-086ba31ea958 2025-03-27 16:21:38,259 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-87779048, 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-59667799:ctest-vn-81312503, 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 16:21:38,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e10717b0-28a9-4b05-ad01-7790e2aa5a2c', 'name': 'ctest-vn-87779048', 'tenant_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'project_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b500af32-dbf1-4a91-9fa1-8cb263612d60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-vn-87779048'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-policy-allow-all-27670587']], 'subnet_ipam': [{'subnet_cidr': '178.71.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:38,826 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd7a89d0-73d4-468a-abda-086ba31ea958', 'name': 'ctest-vn-81312503', 'tenant_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'project_id': 'cd0ab37ef5e549368fe06417a1b97f16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44ce947c-3bd6-4521-afb6-78a6d0b8c2d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-vn-81312503'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-policy-allow-all-27670587']], 'subnet_ipam': [{'subnet_cidr': '2.94.186.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:21:38,979 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-03-27 16:21:39,318 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-03-27 16:21:39,352 - DEBUG - Requesting: http://10.0.0.12:8082/domain/3c85ebc5-b494-44d3-8672-e47596d50ff5 2025-03-27 16:21:39,368 - DEBUG - Requesting: http://10.0.0.12:8082/project/cd0ab37e-f5e5-4936-8fe0-6417a1b97f16 2025-03-27 16:21:39,448 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e10717b0-28a9-4b05-ad01-7790e2aa5a2c 2025-03-27 16:21:39,463 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e10717b0-28a9-4b05-ad01-7790e2aa5a2c 2025-03-27 16:21:39,475 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cf2d988e-df27-4767-be14-c136d7e97195 2025-03-27 16:21:39,486 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cf2d988e-df27-4767-be14-c136d7e97195 2025-03-27 16:21:39,496 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ea753849-f6d7-47b9-83fa-cfcb548f9d85 2025-03-27 16:21:39,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 16:21:39,507 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e10717b0-28a9-4b05-ad01-7790e2aa5a2c 2025-03-27 16:21:39,522 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cf2d988e-df27-4767-be14-c136d7e97195 2025-03-27 16:21:39,543 - INFO - Verified VN network id 7 for VN e10717b0-28a9-4b05-ad01-7790e2aa5a2c 2025-03-27 16:21:39,543 - INFO - Verifications in API Server for VN ctest-vn-87779048 passed 2025-03-27 16:21:39,543 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e10717b0-28a9-4b05-ad01-7790e2aa5a2c 2025-03-27 16:21:39,559 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cf2d988e-df27-4767-be14-c136d7e97195 2025-03-27 16:21:39,570 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cf2d988e-df27-4767-be14-c136d7e97195 2025-03-27 16:21:39,581 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ea753849-f6d7-47b9-83fa-cfcb548f9d85 2025-03-27 16:21:39,599 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-87779048', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59667799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16214955028734626565', 'uuid-lslong': '12466376707700054572'}, 'enable': 'true', 'created': '2025-03-27T16:21:37', 'last-modified': '2025-03-27T16:21:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037360'} 2025-03-27 16:21:39,609 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 16:21:39,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87779048 passed 2025-03-27 16:21:39,610 - DEBUG - ====Verifying policy data for ctest-vn-87779048 in API_Server ====== 2025-03-27 16:21:39,610 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-03-27 16:21:39,618 - DEBUG - Requesting: http://10.0.0.12:8082/domain/3c85ebc5-b494-44d3-8672-e47596d50ff5 2025-03-27 16:21:39,635 - DEBUG - Requesting: http://10.0.0.12:8082/project/cd0ab37e-f5e5-4936-8fe0-6417a1b97f16 2025-03-27 16:21:39,715 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e10717b0-28a9-4b05-ad01-7790e2aa5a2c 2025-03-27 16:21:39,730 - DEBUG - ==>Verifying data for policy with id: 0ca0b1b6-8cb5-47d4-a8de-8a770435f25b, fqn: ['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-policy-allow-all-27670587'] 2025-03-27 16:21:39,730 - INFO - VN ctest-vn-87779048 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 16:21:39,730 - DEBUG - Verifying the vn in opserver 2025-03-27 16:21:39,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-87779048 virtual network link through opserver 10.0.0.12 2025-03-27 16:21:39,730 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-03-27 16:21:40,065 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-03-27 16:21:40,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-87779048', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-87779048?flat'} 2025-03-27 16:21:40,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-87779048 is found in opserver 2025-03-27 16:21:40,143 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 16:21:40,149 - DEBUG - VRF ids for VN ctest-vn-87779048: {} 2025-03-27 16:21:40,149 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-03-27 16:21:40,156 - DEBUG - Requesting: http://10.0.0.12:8082/domain/3c85ebc5-b494-44d3-8672-e47596d50ff5 2025-03-27 16:21:40,170 - DEBUG - Requesting: http://10.0.0.12:8082/project/cd0ab37e-f5e5-4936-8fe0-6417a1b97f16 2025-03-27 16:21:40,245 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fd7a89d0-73d4-468a-abda-086ba31ea958 2025-03-27 16:21:40,258 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fd7a89d0-73d4-468a-abda-086ba31ea958 2025-03-27 16:21:40,269 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/434c121a-61d7-4c65-99fb-b17e87115028 2025-03-27 16:21:40,277 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/434c121a-61d7-4c65-99fb-b17e87115028 2025-03-27 16:21:40,285 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7035390f-5500-424a-9978-256570c1291a 2025-03-27 16:21:40,292 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 16:21:40,292 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fd7a89d0-73d4-468a-abda-086ba31ea958 2025-03-27 16:21:40,306 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/434c121a-61d7-4c65-99fb-b17e87115028 2025-03-27 16:21:40,323 - INFO - Verified VN network id 8 for VN fd7a89d0-73d4-468a-abda-086ba31ea958 2025-03-27 16:21:40,323 - INFO - Verifications in API Server for VN ctest-vn-81312503 passed 2025-03-27 16:21:40,323 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fd7a89d0-73d4-468a-abda-086ba31ea958 2025-03-27 16:21:40,336 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/434c121a-61d7-4c65-99fb-b17e87115028 2025-03-27 16:21:40,345 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/434c121a-61d7-4c65-99fb-b17e87115028 2025-03-27 16:21:40,353 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/7035390f-5500-424a-9978-256570c1291a 2025-03-27 16:21:40,366 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-81312503', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59667799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18265062767143962250', 'uuid-lslong': '12383219383799818584'}, 'enable': 'true', 'created': '2025-03-27T16:21:37', 'last-modified': '2025-03-27T16:21:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.564562'} 2025-03-27 16:21:40,374 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 16:21:40,374 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81312503 passed 2025-03-27 16:21:40,374 - DEBUG - ====Verifying policy data for ctest-vn-81312503 in API_Server ====== 2025-03-27 16:21:40,374 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-03-27 16:21:40,381 - DEBUG - Requesting: http://10.0.0.12:8082/domain/3c85ebc5-b494-44d3-8672-e47596d50ff5 2025-03-27 16:21:40,395 - DEBUG - Requesting: http://10.0.0.12:8082/project/cd0ab37e-f5e5-4936-8fe0-6417a1b97f16 2025-03-27 16:21:40,475 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fd7a89d0-73d4-468a-abda-086ba31ea958 2025-03-27 16:21:40,488 - DEBUG - ==>Verifying data for policy with id: 0ca0b1b6-8cb5-47d4-a8de-8a770435f25b, fqn: ['default-domain', 'ctest-TestBasicPolicy-59667799', 'ctest-policy-allow-all-27670587'] 2025-03-27 16:21:40,488 - INFO - VN ctest-vn-81312503 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 16:21:40,488 - DEBUG - Verifying the vn in opserver 2025-03-27 16:21:40,488 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-81312503 virtual network link through opserver 10.0.0.12 2025-03-27 16:21:40,488 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-03-27 16:21:40,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-81312503', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-81312503?flat'} 2025-03-27 16:21:40,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-81312503 is found in opserver 2025-03-27 16:21:40,513 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 16:21:40,520 - DEBUG - VRF ids for VN ctest-vn-81312503: {} 2025-03-27 16:21:40,585 - DEBUG - Services list from nova: [, , ] 2025-03-27 16:21:41,746 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2978-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2978-1) 2025-03-27 16:21:43,154 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2978-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2978-1) 2025-03-27 16:21:43,154 - INFO - Waiting for VM ctest-TestBasicPolicy-59667799-64615762 to be up.. 2025-03-27 16:21:43,237 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 16:21:48,322 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:21:48,322 - INFO - VM name : ctest-TestBasicPolicy-59667799-64615762 2025-03-27 16:21:48,413 - DEBUG - VM ctest-TestBasicPolicy-59667799-64615762 ID is 74d70608-fae4-4636-b396-d069ee034200 2025-03-27 16:21:48,435 - DEBUG - VM ctest-TestBasicPolicy-59667799-64615762 launched on Node cn-jenkins-deploy-platform-ansible-os-2978-1 2025-03-27 16:21:48,527 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/74d70608-fae4-4636-b396-d069ee034200 2025-03-27 16:21:48,537 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/f3e6da92-ac8c-4194-9ce0-21e3ae11bc04 2025-03-27 16:21:51,782 - 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 1002ms') 2025-03-27 16:21:51,782 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59667799-64615762 failed! 2025-03-27 16:21:51,851 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59667799:ctest-vn-87779048 is 178.71.155.1 and allocation pool is NOT set 2025-03-27 16:21:53,922 - 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=12.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.17 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 3.165/7.637/12.110/4.472 ms') 2025-03-27 16:21:53,923 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59667799-64615762 passed 2025-03-27 16:21:54,079 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:54,079 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59667799-64615762, IP 178.71.155.3, Port 22 2025-03-27 16:21:54,136 - 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 16:21:54,225 - DEBUG - VM ctest-TestBasicPolicy-59667799-64615762 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 16:21:59,225 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:59,226 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59667799-64615762, IP 178.71.155.3, Port 22 2025-03-27 16:21:59,410 - DEBUG - VM ctest-TestBasicPolicy-59667799-64615762 is ready for SSH connections 2025-03-27 16:21:59,410 - INFO - Waiting for VM ctest-TestBasicPolicy-59667799-82881115 to be up.. 2025-03-27 16:21:59,495 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:21:59,496 - INFO - VM name : ctest-TestBasicPolicy-59667799-82881115 2025-03-27 16:21:59,580 - DEBUG - VM ctest-TestBasicPolicy-59667799-82881115 ID is 82a07373-af80-4bca-bbcd-1564f67bcbeb 2025-03-27 16:21:59,580 - DEBUG - VM ctest-TestBasicPolicy-59667799-82881115 launched on Node cn-jenkins-deploy-platform-ansible-os-2978-1 2025-03-27 16:21:59,673 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/82a07373-af80-4bca-bbcd-1564f67bcbeb 2025-03-27 16:21:59,683 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/a6089df9-bb33-450a-a7cd-e3bbdc8c3a05 2025-03-27 16:22:00,929 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.417 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.417/1.877/3.338/1.460 ms') 2025-03-27 16:22:00,929 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59667799-82881115 passed 2025-03-27 16:22:01,083 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:22:01,083 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59667799-82881115, IP 2.94.186.195, Port 22 2025-03-27 16:22:01,239 - DEBUG - VM ctest-TestBasicPolicy-59667799-82881115 is ready for SSH connections 2025-03-27 16:22:01,239 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:22:01,239 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.94.186.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-03-27 16:22:01,240 - DEBUG - ping -s 56 -c 3 -W 1 2.94.186.195 2025-03-27 16:22:05,373 - DEBUG - PING 2.94.186.195 (2.94.186.195): 56 data bytes 64 bytes from 2.94.186.195: seq=0 ttl=63 time=4.192 ms 64 bytes from 2.94.186.195: seq=1 ttl=63 time=0.864 ms 64 bytes from 2.94.186.195: seq=2 ttl=63 time=0.913 ms --- 2.94.186.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.864/1.989/4.192 ms 2025-03-27 16:22:05,373 - INFO - Ping to IP 2.94.186.195 from VM ctest-TestBasicPolicy-59667799-64615762 passed 2025-03-27 16:22:05,555 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0ca0b1b6-8cb5-47d4-a8de-8a770435f25b", "href": "http://10.0.0.12:8082/network-policy/0ca0b1b6-8cb5-47d4-a8de-8a770435f25b"}} 2025-03-27 16:22:05,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:22:05,555 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 2.94.186.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-03-27 16:22:05,555 - DEBUG - ping -s 56 -c 3 -W 1 2.94.186.195 2025-03-27 16:22:08,787 - DEBUG - PING 2.94.186.195 (2.94.186.195): 56 data bytes --- 2.94.186.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-27 16:22:08,787 - WARNING - Ping to IP 2.94.186.195 from VM ctest-TestBasicPolicy-59667799-64615762 failed 2025-03-27 16:22:08,787 - INFO - Deleting VM ctest-TestBasicPolicy-59667799-82881115 2025-03-27 16:22:08,867 - INFO - Deleting VM ctest-TestBasicPolicy-59667799-64615762 2025-03-27 16:22:09,328 - INFO - Deleted policy ctest-policy-allow-all-27670587 2025-03-27 16:22:09,328 - INFO - Deleting VN ctest-vn-81312503 2025-03-27 16:22:09,372 - DEBUG - VN fd7a89d0-73d4-468a-abda-086ba31ea958 still in use: Unable to complete operation on network fd7a89d0-73d4-468a-abda-086ba31ea958. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ac507916-6a93-4fde-8a64-c05d7d418884'] 2025-03-27 16:22:09,372 - WARNING - Deleting VN ctest-vn-81312503 failed..Will retry 2025-03-27 16:22:11,511 - DEBUG - Response for deleting network () 2025-03-27 16:22:11,511 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/434c121a-61d7-4c65-99fb-b17e87115028 2025-03-27 16:22:11,518 - DEBUG - Response Code: 404 2025-03-27 16:22:11,519 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-03-27 16:22:11,525 - DEBUG - Requesting: http://10.0.0.12:8082/domain/3c85ebc5-b494-44d3-8672-e47596d50ff5 2025-03-27 16:22:11,581 - DEBUG - Requesting: http://10.0.0.12:8082/project/cd0ab37e-f5e5-4936-8fe0-6417a1b97f16 2025-03-27 16:22:11,653 - INFO - Validated that VN ctest-vn-81312503 is not found in API Server 2025-03-27 16:22:11,666 - DEBUG - VN ctest-vn-81312503 is not present in Agent 10.0.0.12 2025-03-27 16:22:11,666 - INFO - Validated that VN ctest-vn-81312503 is not in any agent 2025-03-27 16:22:11,683 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81312503 info 2025-03-27 16:22:11,683 - INFO - Deleting VN ctest-vn-87779048 2025-03-27 16:22:11,796 - DEBUG - Response for deleting network () 2025-03-27 16:22:11,796 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cf2d988e-df27-4767-be14-c136d7e97195 2025-03-27 16:22:11,802 - DEBUG - Response Code: 404 2025-03-27 16:22:11,803 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-03-27 16:22:11,810 - DEBUG - Requesting: http://10.0.0.12:8082/domain/3c85ebc5-b494-44d3-8672-e47596d50ff5 2025-03-27 16:22:11,866 - DEBUG - Requesting: http://10.0.0.12:8082/project/cd0ab37e-f5e5-4936-8fe0-6417a1b97f16 2025-03-27 16:22:11,948 - INFO - Validated that VN ctest-vn-87779048 is not found in API Server 2025-03-27 16:22:11,961 - DEBUG - VN ctest-vn-87779048 is not present in Agent 10.0.0.12 2025-03-27 16:22:11,962 - INFO - Validated that VN ctest-vn-87779048 is not in any agent 2025-03-27 16:22:11,980 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87779048 info 2025-03-27 16:22:12,243 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 16:22:12,243 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-03-27 16:22:12,243 - INFO - -------------------------------------------------------------------------------- 2025-03-27 16:22:12,982 - INFO - Deleted project: ctest-TestBasicPolicy-59667799, ID : cd0ab37e-f5e5-4936-8fe0-6417a1b97f16