2025-12-04 13:46:21,835 - INFO - Domain Default found not creating 2025-12-04 13:46:22,065 - INFO - Project ctest-TestBasicPolicy-55246224 not found, creating it 2025-12-04 13:46:22,619 - INFO - Created Project:ctest-TestBasicPolicy-55246224, ID : ba20aaba-9a63-4c8f-8920-fb14f9241aa4 2025-12-04 13:46:24,402 - INFO - ================================================================================ 2025-12-04 13:46:24,402 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-04 13:46:24,402 - 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-12-04 13:46:24,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-12-04 13:46:24,676 - INFO - Initial checks done. Running the testcase now 2025-12-04 13:46:24,676 - INFO - 2025-12-04 13:46:25,327 - DEBUG - Response for create_network : {'network': {'id': 'bbbe242b-f0bc-48ba-8bbe-9e07c516a378', 'name': 'ctest-vn-63134679', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-63134679'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 13:46:25,558 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1673f0b-dd3c-4523-9961-2b8dd59b9fca', 'name': '', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'network_id': 'bbbe242b-f0bc-48ba-8bbe-9e07c516a378', 'ip_version': 4, 'cidr': '8.136.34.128/26', 'allocation_pools': [{'start': '8.136.34.130', 'end': '8.136.34.190'}], 'gateway_ip': '8.136.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.136.34.130', 'tags': [], 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4'}} 2025-12-04 13:46:25,584 - INFO - Created VN ctest-vn-63134679 2025-12-04 13:46:25,642 - DEBUG - VN ctest-vn-63134679 UUID is bbbe242b-f0bc-48ba-8bbe-9e07c516a378 2025-12-04 13:46:26,015 - DEBUG - Response for create_network : {'network': {'id': 'd93d3a9a-5c72-4abf-9e4a-136687aa57f4', 'name': 'ctest-vn-14918059', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-14918059'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 13:46:26,268 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4f377fa-8b60-4812-9bd7-a56b23612103', 'name': '', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'network_id': 'd93d3a9a-5c72-4abf-9e4a-136687aa57f4', 'ip_version': 4, 'cidr': '123.111.114.64/26', 'allocation_pools': [{'start': '123.111.114.66', 'end': '123.111.114.126'}], 'gateway_ip': '123.111.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.111.114.66', 'tags': [], 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4'}} 2025-12-04 13:46:26,294 - INFO - Created VN ctest-vn-14918059 2025-12-04 13:46:26,350 - DEBUG - VN ctest-vn-14918059 UUID is d93d3a9a-5c72-4abf-9e4a-136687aa57f4 2025-12-04 13:46:26,482 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679, 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-55246224:ctest-vn-14918059, 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-12-04 13:46:26,829 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bbbe242b-f0bc-48ba-8bbe-9e07c516a378', 'name': 'ctest-vn-63134679', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1673f0b-dd3c-4523-9961-2b8dd59b9fca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-63134679'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064']], 'subnet_ipam': [{'subnet_cidr': '8.136.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 13:46:27,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd93d3a9a-5c72-4abf-9e4a-136687aa57f4', 'name': 'ctest-vn-14918059', 'tenant_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'project_id': 'ba20aaba9a634c8f8920fb14f9241aa4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4f377fa-8b60-4812-9bd7-a56b23612103'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-vn-14918059'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064']], 'subnet_ipam': [{'subnet_cidr': '123.111.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 13:46:27,294 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:27,611 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:27,651 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:27,667 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4 2025-12-04 13:46:27,752 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378 2025-12-04 13:46:27,764 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378 2025-12-04 13:46:27,775 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3 2025-12-04 13:46:27,785 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3 2025-12-04 13:46:27,794 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/59006122-c2af-4c44-8ea4-614c5c45272a 2025-12-04 13:46:27,802 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 13:46:27,803 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378 2025-12-04 13:46:27,815 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3 2025-12-04 13:46:27,834 - INFO - Verified VN network id 11 for VN bbbe242b-f0bc-48ba-8bbe-9e07c516a378 2025-12-04 13:46:27,834 - INFO - Verifications in API Server for VN ctest-vn-63134679 passed 2025-12-04 13:46:27,834 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378 2025-12-04 13:46:27,846 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3 2025-12-04 13:46:27,856 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3 2025-12-04 13:46:27,865 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/59006122-c2af-4c44-8ea4-614c5c45272a 2025-12-04 13:46:27,882 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55246224', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13528290101808613562', 'uuid-lslong': '10069659573055562616'}, 'enable': 'true', 'created': '2025-12-04T13:46:25', 'last-modified': '2025-12-04T13:46:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.088831'} 2025-12-04 13:46:27,891 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 13:46:27,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63134679 passed 2025-12-04 13:46:27,892 - DEBUG - ====Verifying policy data for ctest-vn-63134679 in API_Server ====== 2025-12-04 13:46:27,892 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:27,904 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:27,925 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4 2025-12-04 13:46:28,004 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bbbe242b-f0bc-48ba-8bbe-9e07c516a378 2025-12-04 13:46:28,016 - DEBUG - ==>Verifying data for policy with id: 38af229a-803a-448d-9689-2fcb98eef2ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064'] 2025-12-04 13:46:28,016 - INFO - VN ctest-vn-63134679 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 13:46:28,017 - DEBUG - Verifying the vn in opserver 2025-12-04 13:46:28,017 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679 virtual network link through opserver 10.0.0.141 2025-12-04 13:46:28,017 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-04 13:46:28,332 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-04 13:46:28,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679?flat'} 2025-12-04 13:46:28,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679 is found in opserver 2025-12-04 13:46:28,427 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 13:46:28,433 - DEBUG - VRF ids for VN ctest-vn-63134679: {} 2025-12-04 13:46:28,433 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:28,439 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:28,452 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4 2025-12-04 13:46:28,527 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4 2025-12-04 13:46:28,543 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4 2025-12-04 13:46:28,557 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9 2025-12-04 13:46:28,567 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9 2025-12-04 13:46:28,577 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/48f87811-eff4-4854-ad79-199f138246f6 2025-12-04 13:46:28,586 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-04 13:46:28,587 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4 2025-12-04 13:46:28,598 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9 2025-12-04 13:46:28,616 - INFO - Verified VN network id 12 for VN d93d3a9a-5c72-4abf-9e4a-136687aa57f4 2025-12-04 13:46:28,616 - INFO - Verifications in API Server for VN ctest-vn-14918059 passed 2025-12-04 13:46:28,616 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4 2025-12-04 13:46:28,627 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9 2025-12-04 13:46:28,638 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9 2025-12-04 13:46:28,648 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/48f87811-eff4-4854-ad79-199f138246f6 2025-12-04 13:46:28,663 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55246224', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15653732314460080831', 'uuid-lslong': '11405950337352882164'}, 'enable': 'true', 'created': '2025-12-04T13:46:25', 'last-modified': '2025-12-04T13:46:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.606816'} 2025-12-04 13:46:28,670 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-12-04 13:46:28,670 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14918059 passed 2025-12-04 13:46:28,671 - DEBUG - ====Verifying policy data for ctest-vn-14918059 in API_Server ====== 2025-12-04 13:46:28,671 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:28,678 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:28,691 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4 2025-12-04 13:46:28,769 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d93d3a9a-5c72-4abf-9e4a-136687aa57f4 2025-12-04 13:46:28,781 - DEBUG - ==>Verifying data for policy with id: 38af229a-803a-448d-9689-2fcb98eef2ed, fqn: ['default-domain', 'ctest-TestBasicPolicy-55246224', 'ctest-policy-allow-all-75706064'] 2025-12-04 13:46:28,781 - INFO - VN ctest-vn-14918059 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 13:46:28,781 - DEBUG - Verifying the vn in opserver 2025-12-04 13:46:28,781 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059 virtual network link through opserver 10.0.0.141 2025-12-04 13:46:28,781 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-04 13:46:28,794 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059?flat'} 2025-12-04 13:46:28,794 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-14918059 is found in opserver 2025-12-04 13:46:28,806 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 13:46:28,811 - DEBUG - VRF ids for VN ctest-vn-14918059: {} 2025-12-04 13:46:28,891 - DEBUG - Services list from nova: [, , ] 2025-12-04 13:46:30,157 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4843-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4843-1) 2025-12-04 13:46:31,590 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4843-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4843-1) 2025-12-04 13:46:31,591 - INFO - Waiting for VM ctest-TestBasicPolicy-55246224-47666888 to be up.. 2025-12-04 13:46:31,697 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-04 13:46:36,792 - DEBUG - VM is in ACTIVE state now 2025-12-04 13:46:36,792 - INFO - VM name : ctest-TestBasicPolicy-55246224-47666888 2025-12-04 13:46:36,894 - DEBUG - VM ctest-TestBasicPolicy-55246224-47666888 ID is 201bff77-ac00-4f1e-8087-979ef5babb79 2025-12-04 13:46:36,921 - DEBUG - VM ctest-TestBasicPolicy-55246224-47666888 launched on Node cn-jenkins-deploy-platform-ansible-os-4843-1 2025-12-04 13:46:37,025 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/201bff77-ac00-4f1e-8087-979ef5babb79 2025-12-04 13:46:37,036 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/0b1bf13d-0d25-4649-9a52-d6345ce977fa 2025-12-04 13:46:40,323 - 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 1017ms') 2025-12-04 13:46:40,323 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-55246224-47666888 failed! 2025-12-04 13:46:40,382 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-55246224:ctest-vn-63134679 is 8.136.34.129 and allocation pool is NOT set 2025-12-04 13:46:44,455 - 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=2 ttl=63 time=2.53 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1008ms\r\nrtt min/avg/max/mdev = 2.533/2.533/2.533/0.000 ms') 2025-12-04 13:46:44,456 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-55246224-47666888 passed 2025-12-04 13:46:44,618 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 13:46:44,618 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55246224-47666888, IP 8.136.34.131, Port 22 2025-12-04 13:46:44,800 - DEBUG - VM ctest-TestBasicPolicy-55246224-47666888 is ready for SSH connections 2025-12-04 13:46:44,801 - INFO - Waiting for VM ctest-TestBasicPolicy-55246224-68913535 to be up.. 2025-12-04 13:46:44,892 - DEBUG - VM is in ACTIVE state now 2025-12-04 13:46:44,892 - INFO - VM name : ctest-TestBasicPolicy-55246224-68913535 2025-12-04 13:46:44,982 - DEBUG - VM ctest-TestBasicPolicy-55246224-68913535 ID is dc30c88c-2ea7-421d-befb-85769c89cab1 2025-12-04 13:46:44,983 - DEBUG - VM ctest-TestBasicPolicy-55246224-68913535 launched on Node cn-jenkins-deploy-platform-ansible-os-4843-1 2025-12-04 13:46:45,093 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/dc30c88c-2ea7-421d-befb-85769c89cab1 2025-12-04 13:46:45,104 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/551d9edf-e0a5-421c-8e8e-db38ac2f7b66 2025-12-04 13:46:46,362 - 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.41 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=4.10 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 = 3.414/3.758/4.103/0.344 ms') 2025-12-04 13:46:46,363 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-55246224-68913535 passed 2025-12-04 13:46:46,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 13:46:46,518 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55246224-68913535, IP 123.111.114.67, Port 22 2025-12-04 13:46:46,584 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-12-04 13:46:46,678 - DEBUG - VM ctest-TestBasicPolicy-55246224-68913535 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-04 13:46:51,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 13:46:51,679 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-55246224-68913535, IP 123.111.114.67, Port 22 2025-12-04 13:46:51,856 - DEBUG - VM ctest-TestBasicPolicy-55246224-68913535 is ready for SSH connections 2025-12-04 13:46:51,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 13:46:51,856 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.111.114.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-12-04 13:46:51,857 - DEBUG - ping -s 56 -c 3 -W 1 123.111.114.67 2025-12-04 13:46:56,296 - DEBUG - PING 123.111.114.67 (123.111.114.67): 56 data bytes 64 bytes from 123.111.114.67: seq=0 ttl=63 time=4.506 ms 64 bytes from 123.111.114.67: seq=1 ttl=63 time=1.220 ms 64 bytes from 123.111.114.67: seq=2 ttl=63 time=1.375 ms --- 123.111.114.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.220/2.367/4.506 ms 2025-12-04 13:46:56,297 - INFO - Ping to IP 123.111.114.67 from VM ctest-TestBasicPolicy-55246224-47666888 passed 2025-12-04 13:46:56,493 - DEBUG - Policy Update Response {"network-policy": {"uuid": "38af229a-803a-448d-9689-2fcb98eef2ed", "href": "http://10.0.0.141:8082/network-policy/38af229a-803a-448d-9689-2fcb98eef2ed"}} 2025-12-04 13:46:56,494 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-04 13:46:56,494 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.111.114.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-12-04 13:46:56,494 - DEBUG - ping -s 56 -c 3 -W 1 123.111.114.67 2025-12-04 13:46:59,747 - DEBUG - PING 123.111.114.67 (123.111.114.67): 56 data bytes --- 123.111.114.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-12-04 13:46:59,748 - WARNING - Ping to IP 123.111.114.67 from VM ctest-TestBasicPolicy-55246224-47666888 failed 2025-12-04 13:46:59,748 - INFO - Deleting VM ctest-TestBasicPolicy-55246224-68913535 2025-12-04 13:46:59,847 - INFO - Deleting VM ctest-TestBasicPolicy-55246224-47666888 2025-12-04 13:47:00,347 - INFO - Deleted policy ctest-policy-allow-all-75706064 2025-12-04 13:47:00,347 - INFO - Deleting VN ctest-vn-14918059 2025-12-04 13:47:00,401 - DEBUG - VN d93d3a9a-5c72-4abf-9e4a-136687aa57f4 still in use: Unable to complete operation on network d93d3a9a-5c72-4abf-9e4a-136687aa57f4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a4f60c42-70a6-4476-9f08-d55b7b569427'] 2025-12-04 13:47:00,401 - WARNING - Deleting VN ctest-vn-14918059 failed..Will retry 2025-12-04 13:47:02,547 - DEBUG - Response for deleting network () 2025-12-04 13:47:02,547 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e09e144f-161a-42ab-83e0-ef6e717a70d9 2025-12-04 13:47:02,555 - DEBUG - Response Code: 404 2025-12-04 13:47:02,555 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:47:02,564 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:47:02,624 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4 2025-12-04 13:47:02,706 - INFO - Validated that VN ctest-vn-14918059 is not found in API Server 2025-12-04 13:47:02,719 - DEBUG - VN ctest-vn-14918059 is not present in Agent 10.0.0.141 2025-12-04 13:47:02,719 - INFO - Validated that VN ctest-vn-14918059 is not in any agent 2025-12-04 13:47:02,739 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14918059 info 2025-12-04 13:47:02,739 - INFO - Deleting VN ctest-vn-63134679 2025-12-04 13:47:02,876 - DEBUG - Response for deleting network () 2025-12-04 13:47:02,876 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dd4292f3-e42e-4b82-bd87-1f2bfc0917f3 2025-12-04 13:47:02,888 - DEBUG - Response Code: 404 2025-12-04 13:47:02,889 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:47:02,901 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:47:02,920 - DEBUG - Requesting: http://10.0.0.141:8082/project/ba20aaba-9a63-4c8f-8920-fb14f9241aa4 2025-12-04 13:47:03,002 - INFO - Validated that VN ctest-vn-63134679 is not found in API Server 2025-12-04 13:47:03,014 - DEBUG - VN ctest-vn-63134679 is not present in Agent 10.0.0.141 2025-12-04 13:47:03,014 - INFO - Validated that VN ctest-vn-63134679 is not in any agent 2025-12-04 13:47:03,033 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63134679 info 2025-12-04 13:47:03,304 - DEBUG - No XMPP flaps were noticed during the test
2025-12-04 13:47:03,304 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-12-04 13:47:03,304 - INFO - -------------------------------------------------------------------------------- 2025-12-04 13:47:04,052 - INFO - Deleted project: ctest-TestBasicPolicy-55246224, ID : ba20aaba-9a63-4c8f-8920-fb14f9241aa4