2025-09-15 16:15:32,625 - INFO - Domain Default found not creating 2025-09-15 16:15:32,820 - INFO - Project ctest-TestBasicPolicy-99688666 not found, creating it 2025-09-15 16:15:33,337 - INFO - Created Project:ctest-TestBasicPolicy-99688666, ID : 9d8a566c-1b31-4dd3-a0e2-0ece1c990221 2025-09-15 16:15:34,894 - INFO - ================================================================================ 2025-09-15 16:15:34,894 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-15 16:15:34,894 - 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-09-15 16:15:35,169 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-15 16:15:35,169 - INFO - Initial checks done. Running the testcase now 2025-09-15 16:15:35,169 - INFO - 2025-09-15 16:15:35,741 - DEBUG - Response for create_network : {'network': {'id': 'b67c128f-d0c2-4b24-aa4d-0e6fc059106f', 'name': 'ctest-vn-66684040', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-66684040'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 16:15:35,966 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c59bea05-19f0-484d-b6e3-8a6087a52472', 'name': '', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'network_id': 'b67c128f-d0c2-4b24-aa4d-0e6fc059106f', 'ip_version': 4, 'cidr': '193.152.141.64/26', 'allocation_pools': [{'start': '193.152.141.66', 'end': '193.152.141.126'}], 'gateway_ip': '193.152.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.152.141.66', 'tags': [], 'project_id': '9d8a566c1b314dd3a0e20ece1c990221'}} 2025-09-15 16:15:35,989 - INFO - Created VN ctest-vn-66684040 2025-09-15 16:15:36,044 - DEBUG - VN ctest-vn-66684040 UUID is b67c128f-d0c2-4b24-aa4d-0e6fc059106f 2025-09-15 16:15:36,361 - DEBUG - Response for create_network : {'network': {'id': 'f053e0cd-bb05-454a-a203-253aaa39d68b', 'name': 'ctest-vn-80646457', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-80646457'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 16:15:36,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c46fdfa-6279-43c5-9a73-5e3c9206db87', 'name': '', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'network_id': 'f053e0cd-bb05-454a-a203-253aaa39d68b', 'ip_version': 4, 'cidr': '81.37.170.64/26', 'allocation_pools': [{'start': '81.37.170.66', 'end': '81.37.170.126'}], 'gateway_ip': '81.37.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.37.170.66', 'tags': [], 'project_id': '9d8a566c1b314dd3a0e20ece1c990221'}} 2025-09-15 16:15:36,577 - INFO - Created VN ctest-vn-80646457 2025-09-15 16:15:36,628 - DEBUG - VN ctest-vn-80646457 UUID is f053e0cd-bb05-454a-a203-253aaa39d68b 2025-09-15 16:15:36,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040, 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-99688666:ctest-vn-80646457, 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-09-15 16:15:37,076 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b67c128f-d0c2-4b24-aa4d-0e6fc059106f', 'name': 'ctest-vn-66684040', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c59bea05-19f0-484d-b6e3-8a6087a52472'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-66684040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700']], 'subnet_ipam': [{'subnet_cidr': '193.152.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 16:15:37,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f053e0cd-bb05-454a-a203-253aaa39d68b', 'name': 'ctest-vn-80646457', 'tenant_id': '9d8a566c1b314dd3a0e20ece1c990221', 'project_id': '9d8a566c1b314dd3a0e20ece1c990221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c46fdfa-6279-43c5-9a73-5e3c9206db87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-vn-80646457'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700']], 'subnet_ipam': [{'subnet_cidr': '81.37.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 16:15:37,500 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 16:15:37,800 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 16:15:37,833 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046 2025-09-15 16:15:37,846 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221 2025-09-15 16:15:37,924 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f 2025-09-15 16:15:37,935 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f 2025-09-15 16:15:37,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550 2025-09-15 16:15:37,952 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550 2025-09-15 16:15:37,961 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8dd4f8a0-eb85-4779-9481-15761210cf63 2025-09-15 16:15:37,968 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 16:15:37,968 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f 2025-09-15 16:15:37,977 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550 2025-09-15 16:15:37,991 - INFO - Verified VN network id 11 for VN b67c128f-d0c2-4b24-aa4d-0e6fc059106f 2025-09-15 16:15:37,991 - INFO - Verifications in API Server for VN ctest-vn-66684040 passed 2025-09-15 16:15:37,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f 2025-09-15 16:15:38,001 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550 2025-09-15 16:15:38,008 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550 2025-09-15 16:15:38,016 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8dd4f8a0-eb85-4779-9481-15761210cf63 2025-09-15 16:15:38,028 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99688666', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13149405420907023140', 'uuid-lslong': '12271480432785690735'}, 'enable': 'true', 'created': '2025-09-15T16:15:35', 'last-modified': '2025-09-15T16:15:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975918'} 2025-09-15 16:15:38,034 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 16:15:38,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66684040 passed 2025-09-15 16:15:38,035 - DEBUG - ====Verifying policy data for ctest-vn-66684040 in API_Server ====== 2025-09-15 16:15:38,035 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 16:15:38,041 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046 2025-09-15 16:15:38,053 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221 2025-09-15 16:15:38,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b67c128f-d0c2-4b24-aa4d-0e6fc059106f 2025-09-15 16:15:38,141 - DEBUG - ==>Verifying data for policy with id: 792dbd10-55a0-402c-9a7f-7620077e0c2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700'] 2025-09-15 16:15:38,141 - INFO - VN ctest-vn-66684040 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 16:15:38,141 - DEBUG - Verifying the vn in opserver 2025-09-15 16:15:38,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040 virtual network link through opserver 10.0.0.38 2025-09-15 16:15:38,141 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 16:15:38,440 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 16:15:38,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040?flat'} 2025-09-15 16:15:38,500 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040 is found in opserver 2025-09-15 16:15:38,511 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 16:15:38,518 - DEBUG - VRF ids for VN ctest-vn-66684040: {} 2025-09-15 16:15:38,518 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 16:15:38,524 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046 2025-09-15 16:15:38,536 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221 2025-09-15 16:15:38,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b 2025-09-15 16:15:38,617 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b 2025-09-15 16:15:38,627 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a 2025-09-15 16:15:38,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a 2025-09-15 16:15:38,642 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99285922-7d57-4387-97da-33061a9bb77f 2025-09-15 16:15:38,649 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 16:15:38,649 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b 2025-09-15 16:15:38,659 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a 2025-09-15 16:15:38,674 - INFO - Verified VN network id 12 for VN f053e0cd-bb05-454a-a203-253aaa39d68b 2025-09-15 16:15:38,675 - INFO - Verifications in API Server for VN ctest-vn-80646457 passed 2025-09-15 16:15:38,675 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b 2025-09-15 16:15:38,685 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a 2025-09-15 16:15:38,692 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a 2025-09-15 16:15:38,699 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99285922-7d57-4387-97da-33061a9bb77f 2025-09-15 16:15:38,714 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99688666', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17317432166380291402', 'uuid-lslong': '11674215592968705675'}, 'enable': 'true', 'created': '2025-09-15T16:15:36', 'last-modified': '2025-09-15T16:15:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.425374'} 2025-09-15 16:15:38,719 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 16:15:38,719 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80646457 passed 2025-09-15 16:15:38,720 - DEBUG - ====Verifying policy data for ctest-vn-80646457 in API_Server ====== 2025-09-15 16:15:38,720 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 16:15:38,726 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046 2025-09-15 16:15:38,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221 2025-09-15 16:15:38,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f053e0cd-bb05-454a-a203-253aaa39d68b 2025-09-15 16:15:38,815 - DEBUG - ==>Verifying data for policy with id: 792dbd10-55a0-402c-9a7f-7620077e0c2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-99688666', 'ctest-policy-allow-all-84827700'] 2025-09-15 16:15:38,815 - INFO - VN ctest-vn-80646457 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 16:15:38,815 - DEBUG - Verifying the vn in opserver 2025-09-15 16:15:38,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457 virtual network link through opserver 10.0.0.38 2025-09-15 16:15:38,815 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 16:15:38,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457?flat'} 2025-09-15 16:15:38,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-80646457 is found in opserver 2025-09-15 16:15:38,836 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 16:15:38,843 - DEBUG - VRF ids for VN ctest-vn-80646457: {} 2025-09-15 16:15:38,906 - DEBUG - Services list from nova: [, , ] 2025-09-15 16:15:39,999 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4118-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4118-1) 2025-09-15 16:15:41,254 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4118-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4118-1) 2025-09-15 16:15:41,255 - INFO - Waiting for VM ctest-TestBasicPolicy-99688666-87082040 to be up.. 2025-09-15 16:15:41,337 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-15 16:15:46,428 - DEBUG - VM is in ACTIVE state now 2025-09-15 16:15:46,428 - INFO - VM name : ctest-TestBasicPolicy-99688666-87082040 2025-09-15 16:15:46,527 - DEBUG - VM ctest-TestBasicPolicy-99688666-87082040 ID is 774442b4-7aee-4735-952a-3344ca581db8 2025-09-15 16:15:46,550 - DEBUG - VM ctest-TestBasicPolicy-99688666-87082040 launched on Node cn-jenkins-deploy-platform-ansible-os-4118-1 2025-09-15 16:15:46,646 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/774442b4-7aee-4735-952a-3344ca581db8 2025-09-15 16:15:46,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b3b5cc34-03a4-49c5-b0a5-f85a5d35ebca 2025-09-15 16:15:49,928 - 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 1025ms') 2025-09-15 16:15:49,928 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99688666-87082040 failed! 2025-09-15 16:15:49,984 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99688666:ctest-vn-66684040 is 193.152.141.65 and allocation pool is NOT set 2025-09-15 16:15:52,050 - 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=9.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.47 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 = 3.472/6.602/9.733/3.130 ms') 2025-09-15 16:15:52,050 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99688666-87082040 passed 2025-09-15 16:15:52,208 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 16:15:52,208 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99688666-87082040, IP 193.152.141.67, Port 22 2025-09-15 16:15:52,386 - DEBUG - VM ctest-TestBasicPolicy-99688666-87082040 is ready for SSH connections 2025-09-15 16:15:52,387 - INFO - Waiting for VM ctest-TestBasicPolicy-99688666-85645583 to be up.. 2025-09-15 16:15:52,483 - DEBUG - VM is in ACTIVE state now 2025-09-15 16:15:52,484 - INFO - VM name : ctest-TestBasicPolicy-99688666-85645583 2025-09-15 16:15:52,588 - DEBUG - VM ctest-TestBasicPolicy-99688666-85645583 ID is 45b58a75-e267-4a7d-af98-0b6464e72800 2025-09-15 16:15:52,588 - DEBUG - VM ctest-TestBasicPolicy-99688666-85645583 launched on Node cn-jenkins-deploy-platform-ansible-os-4118-1 2025-09-15 16:15:52,677 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/45b58a75-e267-4a7d-af98-0b6464e72800 2025-09-15 16:15:52,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/d967ce21-d8ff-44fe-bc35-ea6f6d1a8932 2025-09-15 16:15:53,945 - 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=5.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.20 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 = 2.196/3.661/5.126/1.465 ms') 2025-09-15 16:15:53,945 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-99688666-85645583 passed 2025-09-15 16:15:54,100 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 16:15:54,100 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99688666-85645583, IP 81.37.170.67, Port 22 2025-09-15 16:15:54,166 - 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-09-15 16:15:54,247 - DEBUG - VM ctest-TestBasicPolicy-99688666-85645583 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 16:15:59,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 16:15:59,249 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99688666-85645583, IP 81.37.170.67, Port 22 2025-09-15 16:15:59,408 - DEBUG - VM ctest-TestBasicPolicy-99688666-85645583 is ready for SSH connections 2025-09-15 16:15:59,408 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 16:15:59,408 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.37.170.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-09-15 16:15:59,408 - DEBUG - ping -s 56 -c 3 -W 1 81.37.170.67 2025-09-15 16:16:03,488 - DEBUG - PING 81.37.170.67 (81.37.170.67): 56 data bytes 64 bytes from 81.37.170.67: seq=0 ttl=63 time=4.210 ms 64 bytes from 81.37.170.67: seq=1 ttl=63 time=1.139 ms 64 bytes from 81.37.170.67: seq=2 ttl=63 time=1.294 ms --- 81.37.170.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.139/2.214/4.210 ms 2025-09-15 16:16:03,488 - INFO - Ping to IP 81.37.170.67 from VM ctest-TestBasicPolicy-99688666-87082040 passed 2025-09-15 16:16:03,672 - DEBUG - Policy Update Response {"network-policy": {"uuid": "792dbd10-55a0-402c-9a7f-7620077e0c2b", "href": "http://10.0.0.38:8082/network-policy/792dbd10-55a0-402c-9a7f-7620077e0c2b"}} 2025-09-15 16:16:03,672 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 16:16:03,672 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.37.170.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-09-15 16:16:03,672 - DEBUG - ping -s 56 -c 3 -W 1 81.37.170.67 2025-09-15 16:16:06,915 - DEBUG - PING 81.37.170.67 (81.37.170.67): 56 data bytes --- 81.37.170.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-15 16:16:06,916 - WARNING - Ping to IP 81.37.170.67 from VM ctest-TestBasicPolicy-99688666-87082040 failed 2025-09-15 16:16:06,916 - INFO - Deleting VM ctest-TestBasicPolicy-99688666-85645583 2025-09-15 16:16:07,005 - INFO - Deleting VM ctest-TestBasicPolicy-99688666-87082040 2025-09-15 16:16:07,465 - INFO - Deleted policy ctest-policy-allow-all-84827700 2025-09-15 16:16:07,465 - INFO - Deleting VN ctest-vn-80646457 2025-09-15 16:16:07,508 - DEBUG - VN f053e0cd-bb05-454a-a203-253aaa39d68b still in use: Unable to complete operation on network f053e0cd-bb05-454a-a203-253aaa39d68b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cd23aabd-99c1-4934-b303-94a87c065c21'] 2025-09-15 16:16:07,508 - WARNING - Deleting VN ctest-vn-80646457 failed..Will retry 2025-09-15 16:16:09,834 - DEBUG - Response for deleting network () 2025-09-15 16:16:09,834 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c6399ea-7321-4e66-9d63-e45175f06d4a 2025-09-15 16:16:09,843 - DEBUG - Response Code: 404 2025-09-15 16:16:09,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 16:16:09,868 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046 2025-09-15 16:16:09,940 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221 2025-09-15 16:16:10,039 - INFO - Validated that VN ctest-vn-80646457 is not found in API Server 2025-09-15 16:16:10,052 - DEBUG - VN ctest-vn-80646457 is not present in Agent 10.0.0.38 2025-09-15 16:16:10,052 - INFO - Validated that VN ctest-vn-80646457 is not in any agent 2025-09-15 16:16:10,085 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80646457 info 2025-09-15 16:16:10,085 - INFO - Deleting VN ctest-vn-66684040 2025-09-15 16:16:10,225 - DEBUG - Response for deleting network () 2025-09-15 16:16:10,225 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8c43442-d53b-4b50-970e-e6d6bc982550 2025-09-15 16:16:10,231 - DEBUG - Response Code: 404 2025-09-15 16:16:10,231 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 16:16:10,237 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7b9e8605-c105-46e9-accc-8acf4db48046 2025-09-15 16:16:10,297 - DEBUG - Requesting: http://10.0.0.38:8082/project/9d8a566c-1b31-4dd3-a0e2-0ece1c990221 2025-09-15 16:16:10,371 - INFO - Validated that VN ctest-vn-66684040 is not found in API Server 2025-09-15 16:16:10,384 - DEBUG - VN ctest-vn-66684040 is not present in Agent 10.0.0.38 2025-09-15 16:16:10,384 - INFO - Validated that VN ctest-vn-66684040 is not in any agent 2025-09-15 16:16:10,403 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66684040 info 2025-09-15 16:16:10,662 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 16:16:10,662 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-09-15 16:16:10,664 - INFO - -------------------------------------------------------------------------------- 2025-09-15 16:16:11,387 - INFO - Deleted project: ctest-TestBasicPolicy-99688666, ID : 9d8a566c-1b31-4dd3-a0e2-0ece1c990221