2025-06-18 09:14:42,473 - INFO - Domain Default found not creating 2025-06-18 09:14:42,656 - INFO - Project ctest-TestBasicPolicy-22786044 not found, creating it 2025-06-18 09:14:43,200 - INFO - Created Project:ctest-TestBasicPolicy-22786044, ID : cd6e304f-77f5-4518-bb50-f509fa815d1d 2025-06-18 09:14:44,772 - INFO - ================================================================================ 2025-06-18 09:14:44,772 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-18 09:14:44,772 - 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-06-18 09:14:45,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-06-18 09:14:45,045 - INFO - Initial checks done. Running the testcase now 2025-06-18 09:14:45,045 - INFO - 2025-06-18 09:14:45,666 - DEBUG - Response for create_network : {'network': {'id': '12d31e87-214e-4e9a-acb7-4250fbe60fb7', 'name': 'ctest-vn-26650924', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-26650924'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 09:14:45,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '8427a6ef-6284-4018-ba81-4d317822d23f', 'name': '', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'network_id': '12d31e87-214e-4e9a-acb7-4250fbe60fb7', 'ip_version': 4, 'cidr': '18.152.132.128/26', 'allocation_pools': [{'start': '18.152.132.130', 'end': '18.152.132.190'}], 'gateway_ip': '18.152.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.152.132.130', 'tags': [], 'project_id': 'cd6e304f77f54518bb50f509fa815d1d'}} 2025-06-18 09:14:45,863 - INFO - Created VN ctest-vn-26650924 2025-06-18 09:14:45,920 - DEBUG - VN ctest-vn-26650924 UUID is 12d31e87-214e-4e9a-acb7-4250fbe60fb7 2025-06-18 09:14:46,273 - DEBUG - Response for create_network : {'network': {'id': '359f76b3-676b-4aea-9e2c-3afb7a549f06', 'name': 'ctest-vn-68402654', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-68402654'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 09:14:46,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '06783a0d-6f5a-48bf-95ac-b0cb86b7bb88', 'name': '', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'network_id': '359f76b3-676b-4aea-9e2c-3afb7a549f06', 'ip_version': 4, 'cidr': '199.194.136.64/26', 'allocation_pools': [{'start': '199.194.136.66', 'end': '199.194.136.126'}], 'gateway_ip': '199.194.136.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.194.136.66', 'tags': [], 'project_id': 'cd6e304f77f54518bb50f509fa815d1d'}} 2025-06-18 09:14:46,489 - INFO - Created VN ctest-vn-68402654 2025-06-18 09:14:46,544 - DEBUG - VN ctest-vn-68402654 UUID is 359f76b3-676b-4aea-9e2c-3afb7a549f06 2025-06-18 09:14:46,669 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924, 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-22786044:ctest-vn-68402654, 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-06-18 09:14:47,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12d31e87-214e-4e9a-acb7-4250fbe60fb7', 'name': 'ctest-vn-26650924', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8427a6ef-6284-4018-ba81-4d317822d23f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-26650924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227']], 'subnet_ipam': [{'subnet_cidr': '18.152.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-18 09:14:47,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '359f76b3-676b-4aea-9e2c-3afb7a549f06', 'name': 'ctest-vn-68402654', 'tenant_id': 'cd6e304f77f54518bb50f509fa815d1d', 'project_id': 'cd6e304f77f54518bb50f509fa815d1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06783a0d-6f5a-48bf-95ac-b0cb86b7bb88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-vn-68402654'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227']], 'subnet_ipam': [{'subnet_cidr': '199.194.136.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-18 09:14:47,460 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-18 09:14:47,762 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-18 09:14:47,797 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd 2025-06-18 09:14:47,812 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d 2025-06-18 09:14:47,892 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7 2025-06-18 09:14:47,905 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7 2025-06-18 09:14:47,918 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350 2025-06-18 09:14:47,929 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350 2025-06-18 09:14:47,940 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/55d1d76a-5b90-46de-b5ba-57cb0d0f35c5 2025-06-18 09:14:47,949 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-18 09:14:47,949 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7 2025-06-18 09:14:47,962 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350 2025-06-18 09:14:47,980 - INFO - Verified VN network id 8 for VN 12d31e87-214e-4e9a-acb7-4250fbe60fb7 2025-06-18 09:14:47,980 - INFO - Verifications in API Server for VN ctest-vn-26650924 passed 2025-06-18 09:14:47,981 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7 2025-06-18 09:14:47,993 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350 2025-06-18 09:14:48,003 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350 2025-06-18 09:14:48,013 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/55d1d76a-5b90-46de-b5ba-57cb0d0f35c5 2025-06-18 09:14:48,028 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22786044', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1356461478496849562', 'uuid-lslong': '12445489010852630455'}, 'enable': 'true', 'created': '2025-06-18T09:14:45', 'last-modified': '2025-06-18T09:14:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041562'} 2025-06-18 09:14:48,035 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-18 09:14:48,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26650924 passed 2025-06-18 09:14:48,036 - DEBUG - ====Verifying policy data for ctest-vn-26650924 in API_Server ====== 2025-06-18 09:14:48,036 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-18 09:14:48,043 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd 2025-06-18 09:14:48,058 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d 2025-06-18 09:14:48,137 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/12d31e87-214e-4e9a-acb7-4250fbe60fb7 2025-06-18 09:14:48,151 - DEBUG - ==>Verifying data for policy with id: 49c93cd8-8d80-43e7-be27-b2e8bda1b4a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227'] 2025-06-18 09:14:48,151 - INFO - VN ctest-vn-26650924 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-18 09:14:48,152 - DEBUG - Verifying the vn in opserver 2025-06-18 09:14:48,152 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924 virtual network link through opserver 10.0.0.65 2025-06-18 09:14:48,152 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-06-18 09:14:48,460 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-06-18 09:14:48,530 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924?flat'} 2025-06-18 09:14:48,530 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924 is found in opserver 2025-06-18 09:14:48,544 - DEBUG - Do not have enough data to verify VN in agent 2025-06-18 09:14:48,552 - DEBUG - VRF ids for VN ctest-vn-26650924: {} 2025-06-18 09:14:48,553 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-18 09:14:48,560 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd 2025-06-18 09:14:48,574 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d 2025-06-18 09:14:48,651 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06 2025-06-18 09:14:48,665 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06 2025-06-18 09:14:48,680 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6 2025-06-18 09:14:48,692 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6 2025-06-18 09:14:48,702 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/44ca7e9f-b5d1-40dc-9aac-430b5816a22f 2025-06-18 09:14:48,712 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-18 09:14:48,712 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06 2025-06-18 09:14:48,725 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6 2025-06-18 09:14:48,744 - INFO - Verified VN network id 9 for VN 359f76b3-676b-4aea-9e2c-3afb7a549f06 2025-06-18 09:14:48,744 - INFO - Verifications in API Server for VN ctest-vn-68402654 passed 2025-06-18 09:14:48,744 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06 2025-06-18 09:14:48,757 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6 2025-06-18 09:14:48,769 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6 2025-06-18 09:14:48,781 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/44ca7e9f-b5d1-40dc-9aac-430b5816a22f 2025-06-18 09:14:48,799 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22786044', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3863937518213483242', 'uuid-lslong': '11397549608731451142'}, 'enable': 'true', 'created': '2025-06-18T09:14:46', 'last-modified': '2025-06-18T09:14:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.577004'} 2025-06-18 09:14:48,809 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-18 09:14:48,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68402654 passed 2025-06-18 09:14:48,809 - DEBUG - ====Verifying policy data for ctest-vn-68402654 in API_Server ====== 2025-06-18 09:14:48,809 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-18 09:14:48,818 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd 2025-06-18 09:14:48,834 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d 2025-06-18 09:14:48,911 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/359f76b3-676b-4aea-9e2c-3afb7a549f06 2025-06-18 09:14:48,923 - DEBUG - ==>Verifying data for policy with id: 49c93cd8-8d80-43e7-be27-b2e8bda1b4a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-22786044', 'ctest-policy-allow-all-17099227'] 2025-06-18 09:14:48,923 - INFO - VN ctest-vn-68402654 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-18 09:14:48,923 - DEBUG - Verifying the vn in opserver 2025-06-18 09:14:48,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654 virtual network link through opserver 10.0.0.65 2025-06-18 09:14:48,923 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-06-18 09:14:48,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654?flat'} 2025-06-18 09:14:48,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-68402654 is found in opserver 2025-06-18 09:14:48,948 - DEBUG - Do not have enough data to verify VN in agent 2025-06-18 09:14:48,954 - DEBUG - VRF ids for VN ctest-vn-68402654: {} 2025-06-18 09:14:49,030 - DEBUG - Services list from nova: [, , ] 2025-06-18 09:14:50,167 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3471-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3471-1) 2025-06-18 09:14:51,693 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3471-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3471-1) 2025-06-18 09:14:51,694 - INFO - Waiting for VM ctest-TestBasicPolicy-22786044-89084803 to be up.. 2025-06-18 09:14:51,848 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-18 09:14:56,935 - DEBUG - VM is in ACTIVE state now 2025-06-18 09:14:56,935 - INFO - VM name : ctest-TestBasicPolicy-22786044-89084803 2025-06-18 09:14:57,019 - DEBUG - VM ctest-TestBasicPolicy-22786044-89084803 ID is 8b25a262-26e5-4086-ba98-16a7799f12d5 2025-06-18 09:14:57,040 - DEBUG - VM ctest-TestBasicPolicy-22786044-89084803 launched on Node cn-jenkins-deploy-platform-ansible-os-3471-1 2025-06-18 09:14:57,123 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/8b25a262-26e5-4086-ba98-16a7799f12d5 2025-06-18 09:14:57,133 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/7316fdaa-24bb-436b-9299-1ac6f5da92e8 2025-06-18 09:15:00,352 - 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 1001ms') 2025-06-18 09:15:00,352 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22786044-89084803 failed! 2025-06-18 09:15:00,412 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-22786044:ctest-vn-26650924 is 18.152.132.129 and allocation pool is NOT set 2025-06-18 09:15:02,479 - 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=7.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.06 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 = 2.064/4.727/7.390/2.663 ms') 2025-06-18 09:15:02,479 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22786044-89084803 passed 2025-06-18 09:15:02,640 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:15:02,640 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22786044-89084803, IP 18.152.132.131, Port 22 2025-06-18 09:15:02,800 - DEBUG - VM ctest-TestBasicPolicy-22786044-89084803 is ready for SSH connections 2025-06-18 09:15:02,800 - INFO - Waiting for VM ctest-TestBasicPolicy-22786044-37823449 to be up.. 2025-06-18 09:15:02,901 - DEBUG - VM is in ACTIVE state now 2025-06-18 09:15:02,902 - INFO - VM name : ctest-TestBasicPolicy-22786044-37823449 2025-06-18 09:15:02,997 - DEBUG - VM ctest-TestBasicPolicy-22786044-37823449 ID is 17980f93-1d0c-4d4f-b427-a1f3fa1b9e8d 2025-06-18 09:15:02,997 - DEBUG - VM ctest-TestBasicPolicy-22786044-37823449 launched on Node cn-jenkins-deploy-platform-ansible-os-3471-1 2025-06-18 09:15:03,094 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/17980f93-1d0c-4d4f-b427-a1f3fa1b9e8d 2025-06-18 09:15:03,106 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/a60e92d4-bb17-4bcf-9367-f7b8cf90e153 2025-06-18 09:15:04,355 - 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=4.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.609 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 = 0.609/2.694/4.780/2.085 ms') 2025-06-18 09:15:04,355 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-22786044-37823449 passed 2025-06-18 09:15:04,512 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:15:04,512 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22786044-37823449, IP 199.194.136.67, Port 22 2025-06-18 09:15:04,578 - 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-06-18 09:15:04,685 - DEBUG - VM ctest-TestBasicPolicy-22786044-37823449 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-18 09:15:09,686 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:15:09,686 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22786044-37823449, IP 199.194.136.67, Port 22 2025-06-18 09:15:09,857 - DEBUG - VM ctest-TestBasicPolicy-22786044-37823449 is ready for SSH connections 2025-06-18 09:15:09,857 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:15:09,857 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.194.136.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-06-18 09:15:09,858 - DEBUG - ping -s 56 -c 3 -W 1 199.194.136.67 2025-06-18 09:15:13,962 - DEBUG - PING 199.194.136.67 (199.194.136.67): 56 data bytes 64 bytes from 199.194.136.67: seq=0 ttl=63 time=4.532 ms 64 bytes from 199.194.136.67: seq=1 ttl=63 time=1.328 ms 64 bytes from 199.194.136.67: seq=2 ttl=63 time=1.545 ms --- 199.194.136.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.328/2.468/4.532 ms 2025-06-18 09:15:13,962 - INFO - Ping to IP 199.194.136.67 from VM ctest-TestBasicPolicy-22786044-89084803 passed 2025-06-18 09:15:14,147 - DEBUG - Policy Update Response {"network-policy": {"uuid": "49c93cd8-8d80-43e7-be27-b2e8bda1b4a5", "href": "http://10.0.0.65:8082/network-policy/49c93cd8-8d80-43e7-be27-b2e8bda1b4a5"}} 2025-06-18 09:15:14,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:15:14,148 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.194.136.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-06-18 09:15:14,148 - DEBUG - ping -s 56 -c 3 -W 1 199.194.136.67 2025-06-18 09:15:17,363 - DEBUG - PING 199.194.136.67 (199.194.136.67): 56 data bytes 64 bytes from 199.194.136.67: seq=0 ttl=63 time=2.503 ms --- 199.194.136.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.503/2.503/2.503 ms 2025-06-18 09:15:17,363 - WARNING - Ping to IP 199.194.136.67 from VM ctest-TestBasicPolicy-22786044-89084803 failed 2025-06-18 09:15:17,364 - INFO - Deleting VM ctest-TestBasicPolicy-22786044-37823449 2025-06-18 09:15:17,444 - INFO - Deleting VM ctest-TestBasicPolicy-22786044-89084803 2025-06-18 09:15:17,906 - INFO - Deleted policy ctest-policy-allow-all-17099227 2025-06-18 09:15:17,906 - INFO - Deleting VN ctest-vn-68402654 2025-06-18 09:15:17,968 - DEBUG - VN 359f76b3-676b-4aea-9e2c-3afb7a549f06 still in use: Unable to complete operation on network 359f76b3-676b-4aea-9e2c-3afb7a549f06. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-de61e3d3-eec5-4989-b920-75acb7030def'] 2025-06-18 09:15:17,968 - WARNING - Deleting VN ctest-vn-68402654 failed..Will retry 2025-06-18 09:15:20,100 - DEBUG - Response for deleting network () 2025-06-18 09:15:20,100 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/724f96b6-c753-4623-9e90-5258eb2b2db6 2025-06-18 09:15:20,107 - DEBUG - Response Code: 404 2025-06-18 09:15:20,107 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-18 09:15:20,114 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd 2025-06-18 09:15:20,170 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d 2025-06-18 09:15:20,243 - INFO - Validated that VN ctest-vn-68402654 is not found in API Server 2025-06-18 09:15:20,255 - DEBUG - VN ctest-vn-68402654 is not present in Agent 10.0.0.65 2025-06-18 09:15:20,255 - INFO - Validated that VN ctest-vn-68402654 is not in any agent 2025-06-18 09:15:20,273 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68402654 info 2025-06-18 09:15:20,274 - INFO - Deleting VN ctest-vn-26650924 2025-06-18 09:15:20,402 - DEBUG - Response for deleting network () 2025-06-18 09:15:20,402 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/74f255dc-fb03-4c3b-b6bb-18f1a6679350 2025-06-18 09:15:20,412 - DEBUG - Response Code: 404 2025-06-18 09:15:20,412 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-06-18 09:15:20,420 - DEBUG - Requesting: http://10.0.0.65:8082/domain/0ba853fc-b335-42c0-b8bd-54f16ab983dd 2025-06-18 09:15:20,480 - DEBUG - Requesting: http://10.0.0.65:8082/project/cd6e304f-77f5-4518-bb50-f509fa815d1d 2025-06-18 09:15:20,564 - INFO - Validated that VN ctest-vn-26650924 is not found in API Server 2025-06-18 09:15:20,577 - DEBUG - VN ctest-vn-26650924 is not present in Agent 10.0.0.65 2025-06-18 09:15:20,577 - INFO - Validated that VN ctest-vn-26650924 is not in any agent 2025-06-18 09:15:20,596 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26650924 info 2025-06-18 09:15:20,858 - DEBUG - No XMPP flaps were noticed during the test 2025-06-18 09:15:20,858 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-06-18 09:15:20,858 - INFO - -------------------------------------------------------------------------------- 2025-06-18 09:15:21,588 - INFO - Deleted project: ctest-TestBasicPolicy-22786044, ID : cd6e304f-77f5-4518-bb50-f509fa815d1d