2025-10-15 16:23:28,832 - INFO - Domain Default found not creating 2025-10-15 16:23:29,185 - INFO - Project ctest-TestBasicPolicy-09615431 not found, creating it 2025-10-15 16:23:29,925 - INFO - Created Project:ctest-TestBasicPolicy-09615431, ID : ae987e3c-a8f7-41d5-9918-f4739b5e94d8 2025-10-15 16:23:32,016 - INFO - ================================================================================ 2025-10-15 16:23:32,017 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-15 16:23:32,017 - 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-10-15 16:23:32,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.253': '0'}} with 2025-10-15 16:23:32,346 - INFO - Initial checks done. Running the testcase now 2025-10-15 16:23:32,347 - INFO - 2025-10-15 16:23:33,161 - DEBUG - Response for create_network : {'network': {'id': '1a38e06e-dcfe-47c5-ab1c-fe288106edaa', 'name': 'ctest-vn-81118758', 'tenant_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'project_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-vn-81118758'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:23:33,328 - DEBUG - Response for create_subnet : {'subnet': {'id': '319f8b32-1e13-46ea-bf9f-ab9e8a4be7a0', 'name': '', 'tenant_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'network_id': '1a38e06e-dcfe-47c5-ab1c-fe288106edaa', 'ip_version': 4, 'cidr': '207.179.231.64/26', 'allocation_pools': [{'start': '207.179.231.66', 'end': '207.179.231.126'}], 'gateway_ip': '207.179.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.179.231.66', 'tags': [], 'project_id': 'ae987e3ca8f741d59918f4739b5e94d8'}} 2025-10-15 16:23:33,356 - INFO - Created VN ctest-vn-81118758 2025-10-15 16:23:33,415 - DEBUG - VN ctest-vn-81118758 UUID is 1a38e06e-dcfe-47c5-ab1c-fe288106edaa 2025-10-15 16:23:33,915 - DEBUG - Response for create_network : {'network': {'id': '7b14d5ac-635e-4520-a2e8-81d1d5427f20', 'name': 'ctest-vn-94730616', 'tenant_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'project_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-vn-94730616'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:23:34,089 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1a6067e-a25b-49c6-b4fc-c7f92e790309', 'name': '', 'tenant_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'network_id': '7b14d5ac-635e-4520-a2e8-81d1d5427f20', 'ip_version': 4, 'cidr': '120.57.186.128/26', 'allocation_pools': [{'start': '120.57.186.130', 'end': '120.57.186.190'}], 'gateway_ip': '120.57.186.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.57.186.130', 'tags': [], 'project_id': 'ae987e3ca8f741d59918f4739b5e94d8'}} 2025-10-15 16:23:34,108 - INFO - Created VN ctest-vn-94730616 2025-10-15 16:23:34,163 - DEBUG - VN ctest-vn-94730616 UUID is 7b14d5ac-635e-4520-a2e8-81d1d5427f20 2025-10-15 16:23:34,327 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-81118758, 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-09615431:ctest-vn-94730616, 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-10-15 16:23:34,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a38e06e-dcfe-47c5-ab1c-fe288106edaa', 'name': 'ctest-vn-81118758', 'tenant_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'project_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['319f8b32-1e13-46ea-bf9f-ab9e8a4be7a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-vn-81118758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-policy-allow-all-58300175']], 'subnet_ipam': [{'subnet_cidr': '207.179.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:23:35,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b14d5ac-635e-4520-a2e8-81d1d5427f20', 'name': 'ctest-vn-94730616', 'tenant_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'project_id': 'ae987e3ca8f741d59918f4739b5e94d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1a6067e-a25b-49c6-b4fc-c7f92e790309'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-vn-94730616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-policy-allow-all-58300175']], 'subnet_ipam': [{'subnet_cidr': '120.57.186.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:23:35,251 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:35,619 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:35,696 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:35,732 - DEBUG - Requesting: http://10.0.0.61:8082/project/ae987e3c-a8f7-41d5-9918-f4739b5e94d8 2025-10-15 16:23:35,832 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a38e06e-dcfe-47c5-ab1c-fe288106edaa 2025-10-15 16:23:35,851 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a38e06e-dcfe-47c5-ab1c-fe288106edaa 2025-10-15 16:23:35,864 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/247b2b84-83fc-4c9c-a1ab-f1ed29b06373 2025-10-15 16:23:35,871 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/247b2b84-83fc-4c9c-a1ab-f1ed29b06373 2025-10-15 16:23:35,880 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/1692eb32-5eae-4f70-81b5-2b2f383a7b62 2025-10-15 16:23:35,891 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:23:35,891 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a38e06e-dcfe-47c5-ab1c-fe288106edaa 2025-10-15 16:23:35,909 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/247b2b84-83fc-4c9c-a1ab-f1ed29b06373 2025-10-15 16:23:35,936 - INFO - Verified VN network id 11 for VN 1a38e06e-dcfe-47c5-ab1c-fe288106edaa 2025-10-15 16:23:35,936 - INFO - Verifications in API Server for VN ctest-vn-81118758 passed 2025-10-15 16:23:35,936 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a38e06e-dcfe-47c5-ab1c-fe288106edaa 2025-10-15 16:23:35,948 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/247b2b84-83fc-4c9c-a1ab-f1ed29b06373 2025-10-15 16:23:35,960 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/247b2b84-83fc-4c9c-a1ab-f1ed29b06373 2025-10-15 16:23:35,971 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/1692eb32-5eae-4f70-81b5-2b2f383a7b62 2025-10-15 16:23:35,994 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-81118758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09615431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1889506810440599493', 'uuid-lslong': '12330009329750437290'}, 'enable': 'true', 'created': '2025-10-15T16:23:33', 'last-modified': '2025-10-15T16:23:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.233112'} 2025-10-15 16:23:36,004 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:23:36,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81118758 passed 2025-10-15 16:23:36,005 - DEBUG - ====Verifying policy data for ctest-vn-81118758 in API_Server ====== 2025-10-15 16:23:36,005 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:36,012 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:36,028 - DEBUG - Requesting: http://10.0.0.61:8082/project/ae987e3c-a8f7-41d5-9918-f4739b5e94d8 2025-10-15 16:23:36,128 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a38e06e-dcfe-47c5-ab1c-fe288106edaa 2025-10-15 16:23:36,148 - DEBUG - ==>Verifying data for policy with id: c3cc1683-8807-4cad-87a6-6a4eb12715cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-policy-allow-all-58300175'] 2025-10-15 16:23:36,149 - INFO - VN ctest-vn-81118758 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 16:23:36,149 - DEBUG - Verifying the vn in opserver 2025-10-15 16:23:36,149 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-81118758 virtual network link through opserver 10.0.0.61 2025-10-15 16:23:36,150 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-10-15 16:23:36,493 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-10-15 16:23:36,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-81118758', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-81118758?flat'} 2025-10-15 16:23:36,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-81118758 is found in opserver 2025-10-15 16:23:36,626 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 16:23:36,637 - DEBUG - VRF ids for VN ctest-vn-81118758: {} 2025-10-15 16:23:36,637 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:36,649 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:36,679 - DEBUG - Requesting: http://10.0.0.61:8082/project/ae987e3c-a8f7-41d5-9918-f4739b5e94d8 2025-10-15 16:23:36,779 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/7b14d5ac-635e-4520-a2e8-81d1d5427f20 2025-10-15 16:23:36,800 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/7b14d5ac-635e-4520-a2e8-81d1d5427f20 2025-10-15 16:23:36,820 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d5aa2ba5-9f99-40c1-b158-6197c154dc9c 2025-10-15 16:23:36,834 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d5aa2ba5-9f99-40c1-b158-6197c154dc9c 2025-10-15 16:23:36,852 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/432c3e1b-e2d2-44d1-b444-677730cf5350 2025-10-15 16:23:36,866 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-15 16:23:36,866 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/7b14d5ac-635e-4520-a2e8-81d1d5427f20 2025-10-15 16:23:36,909 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d5aa2ba5-9f99-40c1-b158-6197c154dc9c 2025-10-15 16:23:36,943 - INFO - Verified VN network id 12 for VN 7b14d5ac-635e-4520-a2e8-81d1d5427f20 2025-10-15 16:23:36,943 - INFO - Verifications in API Server for VN ctest-vn-94730616 passed 2025-10-15 16:23:36,943 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/7b14d5ac-635e-4520-a2e8-81d1d5427f20 2025-10-15 16:23:36,961 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d5aa2ba5-9f99-40c1-b158-6197c154dc9c 2025-10-15 16:23:37,002 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d5aa2ba5-9f99-40c1-b158-6197c154dc9c 2025-10-15 16:23:37,014 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/432c3e1b-e2d2-44d1-b444-677730cf5350 2025-10-15 16:23:37,032 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-94730616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09615431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8868948502577562912', 'uuid-lslong': '11738775166967250720'}, 'enable': 'true', 'created': '2025-10-15T16:23:33', 'last-modified': '2025-10-15T16:23:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.940362'} 2025-10-15 16:23:37,041 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-15 16:23:37,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94730616 passed 2025-10-15 16:23:37,044 - DEBUG - ====Verifying policy data for ctest-vn-94730616 in API_Server ====== 2025-10-15 16:23:37,044 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:37,055 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:37,076 - DEBUG - Requesting: http://10.0.0.61:8082/project/ae987e3c-a8f7-41d5-9918-f4739b5e94d8 2025-10-15 16:23:37,194 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/7b14d5ac-635e-4520-a2e8-81d1d5427f20 2025-10-15 16:23:37,206 - DEBUG - ==>Verifying data for policy with id: c3cc1683-8807-4cad-87a6-6a4eb12715cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-09615431', 'ctest-policy-allow-all-58300175'] 2025-10-15 16:23:37,206 - INFO - VN ctest-vn-94730616 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 16:23:37,206 - DEBUG - Verifying the vn in opserver 2025-10-15 16:23:37,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-94730616 virtual network link through opserver 10.0.0.61 2025-10-15 16:23:37,206 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-10-15 16:23:37,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-94730616', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-94730616?flat'} 2025-10-15 16:23:37,222 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-94730616 is found in opserver 2025-10-15 16:23:37,237 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 16:23:37,244 - DEBUG - VRF ids for VN ctest-vn-94730616: {} 2025-10-15 16:23:37,327 - DEBUG - Services list from nova: [, , ] 2025-10-15 16:23:38,651 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4332-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4332-1) 2025-10-15 16:23:40,046 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4332-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4332-1) 2025-10-15 16:23:40,046 - INFO - Waiting for VM ctest-TestBasicPolicy-09615431-13815855 to be up.. 2025-10-15 16:23:40,164 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-15 16:23:45,274 - DEBUG - VM is in ACTIVE state now 2025-10-15 16:23:45,274 - INFO - VM name : ctest-TestBasicPolicy-09615431-13815855 2025-10-15 16:23:45,366 - DEBUG - VM ctest-TestBasicPolicy-09615431-13815855 ID is 57c82ae8-6c3e-4ece-94f0-dcd097c476db 2025-10-15 16:23:45,397 - DEBUG - VM ctest-TestBasicPolicy-09615431-13815855 launched on Node cn-jenkins-deploy-platform-ansible-os-4332-1 2025-10-15 16:23:45,515 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/57c82ae8-6c3e-4ece-94f0-dcd097c476db 2025-10-15 16:23:45,532 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/e8b7dd7a-f875-4150-979f-47be2772180e 2025-10-15 16:23:48,868 - 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 1012ms') 2025-10-15 16:23:48,868 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09615431-13815855 failed! 2025-10-15 16:23:48,943 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09615431:ctest-vn-81118758 is 207.179.231.65 and allocation pool is NOT set 2025-10-15 16:23:51,018 - 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=8.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.56 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.558/5.064/8.570/3.506 ms') 2025-10-15 16:23:51,018 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09615431-13815855 passed 2025-10-15 16:23:51,179 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:23:51,180 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09615431-13815855, IP 207.179.231.67, Port 22 2025-10-15 16:23:51,272 - 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-10-15 16:23:51,422 - DEBUG - VM ctest-TestBasicPolicy-09615431-13815855 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-15 16:23:56,423 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:23:56,423 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09615431-13815855, IP 207.179.231.67, Port 22 2025-10-15 16:23:56,622 - DEBUG - VM ctest-TestBasicPolicy-09615431-13815855 is ready for SSH connections 2025-10-15 16:23:56,622 - INFO - Waiting for VM ctest-TestBasicPolicy-09615431-90779668 to be up.. 2025-10-15 16:23:56,806 - DEBUG - VM is in ACTIVE state now 2025-10-15 16:23:56,806 - INFO - VM name : ctest-TestBasicPolicy-09615431-90779668 2025-10-15 16:23:56,978 - DEBUG - VM ctest-TestBasicPolicy-09615431-90779668 ID is c6862017-68b9-4bc0-8ee5-fcd0e866f3c9 2025-10-15 16:23:56,979 - DEBUG - VM ctest-TestBasicPolicy-09615431-90779668 launched on Node cn-jenkins-deploy-platform-ansible-os-4332-1 2025-10-15 16:23:57,111 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/c6862017-68b9-4bc0-8ee5-fcd0e866f3c9 2025-10-15 16:23:57,125 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/bed31912-2f27-4c06-9eca-d7307f0ef92a 2025-10-15 16:23:58,411 - 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.56 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.03 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 = 1.034/2.297/3.560/1.263 ms') 2025-10-15 16:23:58,411 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09615431-90779668 passed 2025-10-15 16:23:58,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:23:58,599 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09615431-90779668, IP 120.57.186.131, Port 22 2025-10-15 16:23:58,796 - DEBUG - VM ctest-TestBasicPolicy-09615431-90779668 is ready for SSH connections 2025-10-15 16:23:58,796 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:23:58,797 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.57.186.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2025-10-15 16:23:58,797 - DEBUG - ping -s 56 -c 3 -W 1 120.57.186.131 2025-10-15 16:24:03,160 - DEBUG - PING 120.57.186.131 (120.57.186.131): 56 data bytes 64 bytes from 120.57.186.131: seq=0 ttl=63 time=6.905 ms 64 bytes from 120.57.186.131: seq=1 ttl=63 time=1.790 ms 64 bytes from 120.57.186.131: seq=2 ttl=63 time=1.435 ms --- 120.57.186.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.435/3.376/6.905 ms 2025-10-15 16:24:03,160 - INFO - Ping to IP 120.57.186.131 from VM ctest-TestBasicPolicy-09615431-13815855 passed 2025-10-15 16:24:03,378 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c3cc1683-8807-4cad-87a6-6a4eb12715cc", "href": "http://10.0.0.61:8082/network-policy/c3cc1683-8807-4cad-87a6-6a4eb12715cc"}} 2025-10-15 16:24:03,378 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-15 16:24:03,379 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.57.186.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2025-10-15 16:24:03,379 - DEBUG - ping -s 56 -c 3 -W 1 120.57.186.131 2025-10-15 16:24:06,616 - DEBUG - PING 120.57.186.131 (120.57.186.131): 56 data bytes 64 bytes from 120.57.186.131: seq=0 ttl=63 time=2.310 ms --- 120.57.186.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.310/2.310/2.310 ms 2025-10-15 16:24:06,616 - WARNING - Ping to IP 120.57.186.131 from VM ctest-TestBasicPolicy-09615431-13815855 failed 2025-10-15 16:24:06,617 - INFO - Deleting VM ctest-TestBasicPolicy-09615431-90779668 2025-10-15 16:24:06,791 - INFO - Deleting VM ctest-TestBasicPolicy-09615431-13815855 2025-10-15 16:24:07,500 - INFO - Deleted policy ctest-policy-allow-all-58300175 2025-10-15 16:24:07,500 - INFO - Deleting VN ctest-vn-94730616 2025-10-15 16:24:07,549 - DEBUG - VN 7b14d5ac-635e-4520-a2e8-81d1d5427f20 still in use: Unable to complete operation on network 7b14d5ac-635e-4520-a2e8-81d1d5427f20. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-85a281ae-1b9e-412d-8aae-135ebaa2da47'] 2025-10-15 16:24:07,549 - WARNING - Deleting VN ctest-vn-94730616 failed..Will retry 2025-10-15 16:24:09,720 - DEBUG - Response for deleting network () 2025-10-15 16:24:09,721 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d5aa2ba5-9f99-40c1-b158-6197c154dc9c 2025-10-15 16:24:09,726 - DEBUG - Response Code: 404 2025-10-15 16:24:09,726 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:24:09,730 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:24:09,805 - DEBUG - Requesting: http://10.0.0.61:8082/project/ae987e3c-a8f7-41d5-9918-f4739b5e94d8 2025-10-15 16:24:09,897 - INFO - Validated that VN ctest-vn-94730616 is not found in API Server 2025-10-15 16:24:09,918 - DEBUG - VN ctest-vn-94730616 is not present in Agent 10.0.0.61 2025-10-15 16:24:09,918 - INFO - Validated that VN ctest-vn-94730616 is not in any agent 2025-10-15 16:24:09,952 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94730616 info 2025-10-15 16:24:09,953 - INFO - Deleting VN ctest-vn-81118758 2025-10-15 16:24:10,127 - DEBUG - Response for deleting network () 2025-10-15 16:24:10,127 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/247b2b84-83fc-4c9c-a1ab-f1ed29b06373 2025-10-15 16:24:10,133 - DEBUG - Response Code: 404 2025-10-15 16:24:10,133 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:24:10,141 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:24:10,199 - DEBUG - Requesting: http://10.0.0.61:8082/project/ae987e3c-a8f7-41d5-9918-f4739b5e94d8 2025-10-15 16:24:10,316 - INFO - Validated that VN ctest-vn-81118758 is not found in API Server 2025-10-15 16:24:10,335 - DEBUG - VN ctest-vn-81118758 is not present in Agent 10.0.0.61 2025-10-15 16:24:10,335 - INFO - Validated that VN ctest-vn-81118758 is not in any agent 2025-10-15 16:24:10,363 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81118758 info 2025-10-15 16:24:10,691 - DEBUG - No XMPP flaps were noticed during the test
2025-10-15 16:24:10,691 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2025-10-15 16:24:10,691 - INFO - -------------------------------------------------------------------------------- 2025-10-15 16:24:11,531 - INFO - Deleted project: ctest-TestBasicPolicy-09615431, ID : ae987e3c-a8f7-41d5-9918-f4739b5e94d8