2025-06-10 14:45:48,243 - INFO - Domain Default found not creating 2025-06-10 14:45:48,415 - INFO - Project ctest-TestBasicPolicy-69654912 not found, creating it 2025-06-10 14:45:48,936 - INFO - Created Project:ctest-TestBasicPolicy-69654912, ID : 14b605c8-22c3-4520-9059-932473d64407 2025-06-10 14:45:50,566 - INFO - ================================================================================ 2025-06-10 14:45:50,566 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-10 14:45:50,566 - 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-10 14:45:50,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-06-10 14:45:50,825 - INFO - Initial checks done. Running the testcase now 2025-06-10 14:45:50,826 - INFO - 2025-06-10 14:45:51,427 - DEBUG - Response for create_network : {'network': {'id': '6dd8e7ac-9dd4-4031-88fe-c039116dd42f', 'name': 'ctest-vn-33534274', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-33534274'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 14:45:51,615 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2d5a18f-e8f1-4f53-a1f6-b3dc4ab697a7', 'name': '', 'tenant_id': '14b605c822c345209059932473d64407', 'network_id': '6dd8e7ac-9dd4-4031-88fe-c039116dd42f', 'ip_version': 4, 'cidr': '157.129.211.128/26', 'allocation_pools': [{'start': '157.129.211.130', 'end': '157.129.211.190'}], 'gateway_ip': '157.129.211.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.129.211.130', 'tags': [], 'project_id': '14b605c822c345209059932473d64407'}} 2025-06-10 14:45:51,636 - INFO - Created VN ctest-vn-33534274 2025-06-10 14:45:51,691 - DEBUG - VN ctest-vn-33534274 UUID is 6dd8e7ac-9dd4-4031-88fe-c039116dd42f 2025-06-10 14:45:52,013 - DEBUG - Response for create_network : {'network': {'id': 'f6b74601-2e56-4d18-98f5-231212eedaec', 'name': 'ctest-vn-95066306', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-95066306'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 14:45:52,209 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cde030cf-4d04-43f8-8496-e394afa3a01c', 'name': '', 'tenant_id': '14b605c822c345209059932473d64407', 'network_id': 'f6b74601-2e56-4d18-98f5-231212eedaec', 'ip_version': 4, 'cidr': '173.34.254.0/26', 'allocation_pools': [{'start': '173.34.254.2', 'end': '173.34.254.62'}], 'gateway_ip': '173.34.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.34.254.2', 'tags': [], 'project_id': '14b605c822c345209059932473d64407'}} 2025-06-10 14:45:52,231 - INFO - Created VN ctest-vn-95066306 2025-06-10 14:45:52,286 - DEBUG - VN ctest-vn-95066306 UUID is f6b74601-2e56-4d18-98f5-231212eedaec 2025-06-10 14:45:52,403 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274, 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-69654912:ctest-vn-95066306, 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-10 14:45:52,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dd8e7ac-9dd4-4031-88fe-c039116dd42f', 'name': 'ctest-vn-33534274', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2d5a18f-e8f1-4f53-a1f6-b3dc4ab697a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-33534274'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218']], 'subnet_ipam': [{'subnet_cidr': '157.129.211.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 14:45:52,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6b74601-2e56-4d18-98f5-231212eedaec', 'name': 'ctest-vn-95066306', 'tenant_id': '14b605c822c345209059932473d64407', 'project_id': '14b605c822c345209059932473d64407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cde030cf-4d04-43f8-8496-e394afa3a01c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-vn-95066306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218']], 'subnet_ipam': [{'subnet_cidr': '173.34.254.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 14:45:53,151 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-10 14:45:53,502 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-10 14:45:53,534 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6 2025-06-10 14:45:53,549 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407 2025-06-10 14:45:53,642 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f 2025-06-10 14:45:53,662 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f 2025-06-10 14:45:53,673 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86 2025-06-10 14:45:53,683 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86 2025-06-10 14:45:53,692 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1ce90949-60ae-4ff5-ad5e-9f91577508fd 2025-06-10 14:45:53,700 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 14:45:53,700 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f 2025-06-10 14:45:53,711 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86 2025-06-10 14:45:53,729 - INFO - Verified VN network id 9 for VN 6dd8e7ac-9dd4-4031-88fe-c039116dd42f 2025-06-10 14:45:53,729 - INFO - Verifications in API Server for VN ctest-vn-33534274 passed 2025-06-10 14:45:53,729 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f 2025-06-10 14:45:53,740 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86 2025-06-10 14:45:53,749 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86 2025-06-10 14:45:53,757 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1ce90949-60ae-4ff5-ad5e-9f91577508fd 2025-06-10 14:45:53,773 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69654912', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7915331073671970865', 'uuid-lslong': '9871538784580785199'}, 'enable': 'true', 'created': '2025-06-10T14:45:51', 'last-modified': '2025-06-10T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.086952'} 2025-06-10 14:45:53,780 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 14:45:53,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33534274 passed 2025-06-10 14:45:53,781 - DEBUG - ====Verifying policy data for ctest-vn-33534274 in API_Server ====== 2025-06-10 14:45:53,781 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-10 14:45:53,787 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6 2025-06-10 14:45:53,800 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407 2025-06-10 14:45:53,879 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6dd8e7ac-9dd4-4031-88fe-c039116dd42f 2025-06-10 14:45:53,892 - DEBUG - ==>Verifying data for policy with id: e56d15b7-6721-4def-b50a-e48a5697ff70, fqn: ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218'] 2025-06-10 14:45:53,893 - INFO - VN ctest-vn-33534274 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 14:45:53,893 - DEBUG - Verifying the vn in opserver 2025-06-10 14:45:53,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274 virtual network link through opserver 10.0.0.49 2025-06-10 14:45:53,893 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-06-10 14:45:54,227 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-06-10 14:45:54,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274?flat'} 2025-06-10 14:45:54,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274 is found in opserver 2025-06-10 14:45:54,299 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 14:45:54,305 - DEBUG - VRF ids for VN ctest-vn-33534274: {} 2025-06-10 14:45:54,305 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-10 14:45:54,311 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6 2025-06-10 14:45:54,324 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407 2025-06-10 14:45:54,399 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec 2025-06-10 14:45:54,412 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec 2025-06-10 14:45:54,423 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90 2025-06-10 14:45:54,432 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90 2025-06-10 14:45:54,440 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cfa7a043-e025-4563-be63-442a2d50dc17 2025-06-10 14:45:54,448 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 14:45:54,448 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec 2025-06-10 14:45:54,460 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90 2025-06-10 14:45:54,476 - INFO - Verified VN network id 10 for VN f6b74601-2e56-4d18-98f5-231212eedaec 2025-06-10 14:45:54,476 - INFO - Verifications in API Server for VN ctest-vn-95066306 passed 2025-06-10 14:45:54,476 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec 2025-06-10 14:45:54,489 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90 2025-06-10 14:45:54,498 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90 2025-06-10 14:45:54,506 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cfa7a043-e025-4563-be63-442a2d50dc17 2025-06-10 14:45:54,521 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69654912', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17777755024954641688', 'uuid-lslong': '11021754223593183980'}, 'enable': 'true', 'created': '2025-06-10T14:45:51', 'last-modified': '2025-06-10T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.583333'} 2025-06-10 14:45:54,528 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 14:45:54,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95066306 passed 2025-06-10 14:45:54,528 - DEBUG - ====Verifying policy data for ctest-vn-95066306 in API_Server ====== 2025-06-10 14:45:54,528 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-10 14:45:54,534 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6 2025-06-10 14:45:54,548 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407 2025-06-10 14:45:54,624 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f6b74601-2e56-4d18-98f5-231212eedaec 2025-06-10 14:45:54,636 - DEBUG - ==>Verifying data for policy with id: e56d15b7-6721-4def-b50a-e48a5697ff70, fqn: ['default-domain', 'ctest-TestBasicPolicy-69654912', 'ctest-policy-allow-all-67562218'] 2025-06-10 14:45:54,636 - INFO - VN ctest-vn-95066306 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 14:45:54,636 - DEBUG - Verifying the vn in opserver 2025-06-10 14:45:54,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306 virtual network link through opserver 10.0.0.49 2025-06-10 14:45:54,636 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-06-10 14:45:54,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306?flat'} 2025-06-10 14:45:54,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-95066306 is found in opserver 2025-06-10 14:45:54,664 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 14:45:54,671 - DEBUG - VRF ids for VN ctest-vn-95066306: {} 2025-06-10 14:45:54,742 - DEBUG - Services list from nova: [, , ] 2025-06-10 14:45:56,042 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3434-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3434-1) 2025-06-10 14:45:57,467 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3434-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3434-1) 2025-06-10 14:45:57,467 - INFO - Waiting for VM ctest-TestBasicPolicy-69654912-43059620 to be up.. 2025-06-10 14:45:57,570 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-10 14:46:02,674 - DEBUG - VM is in ACTIVE state now 2025-06-10 14:46:02,675 - INFO - VM name : ctest-TestBasicPolicy-69654912-43059620 2025-06-10 14:46:02,782 - DEBUG - VM ctest-TestBasicPolicy-69654912-43059620 ID is ad76a13a-59ec-4e98-8dfb-915faacca497 2025-06-10 14:46:02,812 - DEBUG - VM ctest-TestBasicPolicy-69654912-43059620 launched on Node cn-jenkins-deploy-platform-ansible-os-3434-1 2025-06-10 14:46:02,921 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/ad76a13a-59ec-4e98-8dfb-915faacca497 2025-06-10 14:46:02,933 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e18e99fa-cf06-4f8e-9f19-3f254904cae8 2025-06-10 14:46:06,202 - 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 1015ms') 2025-06-10 14:46:06,202 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69654912-43059620 failed! 2025-06-10 14:46:06,262 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-69654912:ctest-vn-33534274 is 157.129.211.129 and allocation pool is NOT set 2025-06-10 14:46:08,323 - 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.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.71 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.709/6.310/9.912/3.601 ms') 2025-06-10 14:46:08,323 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69654912-43059620 passed 2025-06-10 14:46:08,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:46:08,475 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69654912-43059620, IP 157.129.211.131, Port 22 2025-06-10 14:46:08,540 - 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-06-10 14:46:08,623 - DEBUG - VM ctest-TestBasicPolicy-69654912-43059620 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-10 14:46:13,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:46:13,624 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69654912-43059620, IP 157.129.211.131, Port 22 2025-06-10 14:46:13,778 - DEBUG - VM ctest-TestBasicPolicy-69654912-43059620 is ready for SSH connections 2025-06-10 14:46:13,778 - INFO - Waiting for VM ctest-TestBasicPolicy-69654912-48412997 to be up.. 2025-06-10 14:46:13,860 - DEBUG - VM is in ACTIVE state now 2025-06-10 14:46:13,860 - INFO - VM name : ctest-TestBasicPolicy-69654912-48412997 2025-06-10 14:46:13,944 - DEBUG - VM ctest-TestBasicPolicy-69654912-48412997 ID is 71a2bbae-8413-4286-9321-7aeee1e688a0 2025-06-10 14:46:13,945 - DEBUG - VM ctest-TestBasicPolicy-69654912-48412997 launched on Node cn-jenkins-deploy-platform-ansible-os-3434-1 2025-06-10 14:46:14,024 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/71a2bbae-8413-4286-9321-7aeee1e688a0 2025-06-10 14:46:14,033 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/dcd549d9-2611-428b-8e4b-041bbd73abb9 2025-06-10 14:46:15,277 - 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.02 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.379 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.379/1.699/3.020/1.320 ms') 2025-06-10 14:46:15,277 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-69654912-48412997 passed 2025-06-10 14:46:15,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:46:15,431 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69654912-48412997, IP 173.34.254.3, Port 22 2025-06-10 14:46:15,589 - DEBUG - VM ctest-TestBasicPolicy-69654912-48412997 is ready for SSH connections 2025-06-10 14:46:15,590 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:46:15,590 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.34.254.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-06-10 14:46:15,590 - DEBUG - ping -s 56 -c 3 -W 1 173.34.254.3 2025-06-10 14:46:19,667 - DEBUG - PING 173.34.254.3 (173.34.254.3): 56 data bytes 64 bytes from 173.34.254.3: seq=0 ttl=63 time=3.729 ms 64 bytes from 173.34.254.3: seq=1 ttl=63 time=1.141 ms 64 bytes from 173.34.254.3: seq=2 ttl=63 time=0.782 ms --- 173.34.254.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.782/1.884/3.729 ms 2025-06-10 14:46:19,668 - INFO - Ping to IP 173.34.254.3 from VM ctest-TestBasicPolicy-69654912-43059620 passed 2025-06-10 14:46:19,850 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e56d15b7-6721-4def-b50a-e48a5697ff70", "href": "http://10.0.0.49:8082/network-policy/e56d15b7-6721-4def-b50a-e48a5697ff70"}} 2025-06-10 14:46:19,851 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 14:46:19,851 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.34.254.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-06-10 14:46:19,851 - DEBUG - ping -s 56 -c 3 -W 1 173.34.254.3 2025-06-10 14:46:23,116 - DEBUG - PING 173.34.254.3 (173.34.254.3): 56 data bytes 64 bytes from 173.34.254.3: seq=0 ttl=63 time=1.652 ms --- 173.34.254.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.652/1.652/1.652 ms 2025-06-10 14:46:23,116 - WARNING - Ping to IP 173.34.254.3 from VM ctest-TestBasicPolicy-69654912-43059620 failed 2025-06-10 14:46:23,116 - INFO - Deleting VM ctest-TestBasicPolicy-69654912-48412997 2025-06-10 14:46:23,206 - INFO - Deleting VM ctest-TestBasicPolicy-69654912-43059620 2025-06-10 14:46:23,675 - INFO - Deleted policy ctest-policy-allow-all-67562218 2025-06-10 14:46:23,676 - INFO - Deleting VN ctest-vn-95066306 2025-06-10 14:46:23,713 - DEBUG - VN f6b74601-2e56-4d18-98f5-231212eedaec still in use: Unable to complete operation on network f6b74601-2e56-4d18-98f5-231212eedaec. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b96e8691-0d61-4352-9333-0bfaeae82587'] 2025-06-10 14:46:23,713 - WARNING - Deleting VN ctest-vn-95066306 failed..Will retry 2025-06-10 14:46:25,838 - DEBUG - Response for deleting network () 2025-06-10 14:46:25,838 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/51f23f53-21d2-4eef-8511-15b7a4e7ba90 2025-06-10 14:46:25,848 - DEBUG - Response Code: 404 2025-06-10 14:46:25,848 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-10 14:46:25,854 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6 2025-06-10 14:46:25,914 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407 2025-06-10 14:46:25,991 - INFO - Validated that VN ctest-vn-95066306 is not found in API Server 2025-06-10 14:46:26,005 - DEBUG - VN ctest-vn-95066306 is not present in Agent 10.0.0.49 2025-06-10 14:46:26,005 - INFO - Validated that VN ctest-vn-95066306 is not in any agent 2025-06-10 14:46:26,024 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95066306 info 2025-06-10 14:46:26,024 - INFO - Deleting VN ctest-vn-33534274 2025-06-10 14:46:26,139 - DEBUG - Response for deleting network () 2025-06-10 14:46:26,139 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/b2519211-e447-484e-8368-22fffdab5f86 2025-06-10 14:46:26,146 - DEBUG - Response Code: 404 2025-06-10 14:46:26,146 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-10 14:46:26,156 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cfde8dfb-52dc-4681-a355-ad28151d26a6 2025-06-10 14:46:26,213 - DEBUG - Requesting: http://10.0.0.49:8082/project/14b605c8-22c3-4520-9059-932473d64407 2025-06-10 14:46:26,284 - INFO - Validated that VN ctest-vn-33534274 is not found in API Server 2025-06-10 14:46:26,297 - DEBUG - VN ctest-vn-33534274 is not present in Agent 10.0.0.49 2025-06-10 14:46:26,297 - INFO - Validated that VN ctest-vn-33534274 is not in any agent 2025-06-10 14:46:26,316 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33534274 info 2025-06-10 14:46:26,577 - DEBUG - No XMPP flaps were noticed during the test
2025-06-10 14:46:26,577 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-10 14:46:26,577 - INFO - -------------------------------------------------------------------------------- 2025-06-10 14:46:27,312 - INFO - Deleted project: ctest-TestBasicPolicy-69654912, ID : 14b605c8-22c3-4520-9059-932473d64407