2025-04-28 02:04:47,584 - INFO - Domain Default found not creating 2025-04-28 02:04:47,718 - INFO - Project ctest-TestBasicPolicy-92972317 not found, creating it 2025-04-28 02:04:48,187 - INFO - Created Project:ctest-TestBasicPolicy-92972317, ID : bb144ea8-297d-4eae-9eb8-80f7a0b6e778 2025-04-28 02:04:49,620 - INFO - ================================================================================ 2025-04-28 02:04:49,620 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-28 02:04:49,620 - 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-04-28 02:04:49,877 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-04-28 02:04:49,877 - INFO - Initial checks done. Running the testcase now 2025-04-28 02:04:49,877 - INFO - 2025-04-28 02:04:50,442 - DEBUG - Response for create_network : {'network': {'id': '41c68998-791d-4f4e-a0e6-622c680ef979', 'name': 'ctest-vn-48857609', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-48857609'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 02:04:50,635 - DEBUG - Response for create_subnet : {'subnet': {'id': '96eca6c4-7951-4264-a81f-55bfd3831227', 'name': '', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'network_id': '41c68998-791d-4f4e-a0e6-622c680ef979', 'ip_version': 4, 'cidr': '214.60.144.192/26', 'allocation_pools': [{'start': '214.60.144.194', 'end': '214.60.144.254'}], 'gateway_ip': '214.60.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.60.144.194', 'tags': [], 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778'}} 2025-04-28 02:04:50,653 - INFO - Created VN ctest-vn-48857609 2025-04-28 02:04:50,703 - DEBUG - VN ctest-vn-48857609 UUID is 41c68998-791d-4f4e-a0e6-622c680ef979 2025-04-28 02:04:51,043 - DEBUG - Response for create_network : {'network': {'id': '94224547-b0a1-45d9-84c3-aadb3c9bf2ff', 'name': 'ctest-vn-46206044', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-46206044'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 02:04:51,254 - DEBUG - Response for create_subnet : {'subnet': {'id': '85709e5a-3c9e-497e-afff-af2b2929cfad', 'name': '', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'network_id': '94224547-b0a1-45d9-84c3-aadb3c9bf2ff', 'ip_version': 4, 'cidr': '36.224.223.192/26', 'allocation_pools': [{'start': '36.224.223.194', 'end': '36.224.223.254'}], 'gateway_ip': '36.224.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.224.223.194', 'tags': [], 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778'}} 2025-04-28 02:04:51,273 - INFO - Created VN ctest-vn-46206044 2025-04-28 02:04:51,323 - DEBUG - VN ctest-vn-46206044 UUID is 94224547-b0a1-45d9-84c3-aadb3c9bf2ff 2025-04-28 02:04:51,438 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609, 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-92972317:ctest-vn-46206044, 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-04-28 02:04:51,741 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41c68998-791d-4f4e-a0e6-622c680ef979', 'name': 'ctest-vn-48857609', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96eca6c4-7951-4264-a81f-55bfd3831227'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-48857609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513']], 'subnet_ipam': [{'subnet_cidr': '214.60.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-28 02:04:51,983 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94224547-b0a1-45d9-84c3-aadb3c9bf2ff', 'name': 'ctest-vn-46206044', 'tenant_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'project_id': 'bb144ea8297d4eae9eb880f7a0b6e778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85709e5a-3c9e-497e-afff-af2b2929cfad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-vn-46206044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513']], 'subnet_ipam': [{'subnet_cidr': '36.224.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-28 02:04:52,139 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-28 02:04:52,435 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-28 02:04:52,471 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608 2025-04-28 02:04:52,486 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778 2025-04-28 02:04:52,570 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979 2025-04-28 02:04:52,581 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979 2025-04-28 02:04:52,590 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64 2025-04-28 02:04:52,597 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64 2025-04-28 02:04:52,603 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/318c5192-a2c7-4d94-9154-0035a660fec9 2025-04-28 02:04:52,608 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-28 02:04:52,608 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979 2025-04-28 02:04:52,616 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64 2025-04-28 02:04:52,630 - INFO - Verified VN network id 8 for VN 41c68998-791d-4f4e-a0e6-622c680ef979 2025-04-28 02:04:52,630 - INFO - Verifications in API Server for VN ctest-vn-48857609 passed 2025-04-28 02:04:52,630 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979 2025-04-28 02:04:52,639 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64 2025-04-28 02:04:52,644 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64 2025-04-28 02:04:52,650 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/318c5192-a2c7-4d94-9154-0035a660fec9 2025-04-28 02:04:52,661 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92972317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4739626945814024014', 'uuid-lslong': '11594062233575815545'}, 'enable': 'true', 'created': '2025-04-28T02:04:50', 'last-modified': '2025-04-28T02:04:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940455'} 2025-04-28 02:04:52,667 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-28 02:04:52,667 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48857609 passed 2025-04-28 02:04:52,668 - DEBUG - ====Verifying policy data for ctest-vn-48857609 in API_Server ====== 2025-04-28 02:04:52,668 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-28 02:04:52,672 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608 2025-04-28 02:04:52,682 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778 2025-04-28 02:04:52,754 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/41c68998-791d-4f4e-a0e6-622c680ef979 2025-04-28 02:04:52,764 - DEBUG - ==>Verifying data for policy with id: 67d2caa0-bc64-462b-ac6e-d6e9fde38f11, fqn: ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513'] 2025-04-28 02:04:52,764 - INFO - VN ctest-vn-48857609 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-28 02:04:52,764 - DEBUG - Verifying the vn in opserver 2025-04-28 02:04:52,764 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609 virtual network link through opserver 10.0.0.254 2025-04-28 02:04:52,764 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-28 02:04:53,052 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-28 02:04:53,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609?flat'} 2025-04-28 02:04:53,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609 is found in opserver 2025-04-28 02:04:53,115 - DEBUG - Do not have enough data to verify VN in agent 2025-04-28 02:04:53,120 - DEBUG - VRF ids for VN ctest-vn-48857609: {} 2025-04-28 02:04:53,120 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-28 02:04:53,126 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608 2025-04-28 02:04:53,137 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778 2025-04-28 02:04:53,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff 2025-04-28 02:04:53,223 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff 2025-04-28 02:04:53,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e 2025-04-28 02:04:53,238 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e 2025-04-28 02:04:53,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a3e1bc8e-f718-4b5d-b009-1e18b4699a25 2025-04-28 02:04:53,250 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-28 02:04:53,250 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff 2025-04-28 02:04:53,258 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e 2025-04-28 02:04:53,271 - INFO - Verified VN network id 9 for VN 94224547-b0a1-45d9-84c3-aadb3c9bf2ff 2025-04-28 02:04:53,271 - INFO - Verifications in API Server for VN ctest-vn-46206044 passed 2025-04-28 02:04:53,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff 2025-04-28 02:04:53,279 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e 2025-04-28 02:04:53,285 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e 2025-04-28 02:04:53,291 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a3e1bc8e-f718-4b5d-b009-1e18b4699a25 2025-04-28 02:04:53,302 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92972317', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10674170241029850585', 'uuid-lslong': '9566677892056478463'}, 'enable': 'true', 'created': '2025-04-28T02:04:50', 'last-modified': '2025-04-28T02:04:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.356593'} 2025-04-28 02:04:53,308 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-28 02:04:53,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46206044 passed 2025-04-28 02:04:53,308 - DEBUG - ====Verifying policy data for ctest-vn-46206044 in API_Server ====== 2025-04-28 02:04:53,308 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-28 02:04:53,313 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608 2025-04-28 02:04:53,324 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778 2025-04-28 02:04:53,392 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/94224547-b0a1-45d9-84c3-aadb3c9bf2ff 2025-04-28 02:04:53,405 - DEBUG - ==>Verifying data for policy with id: 67d2caa0-bc64-462b-ac6e-d6e9fde38f11, fqn: ['default-domain', 'ctest-TestBasicPolicy-92972317', 'ctest-policy-allow-all-62094513'] 2025-04-28 02:04:53,405 - INFO - VN ctest-vn-46206044 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-28 02:04:53,406 - DEBUG - Verifying the vn in opserver 2025-04-28 02:04:53,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044 virtual network link through opserver 10.0.0.254 2025-04-28 02:04:53,406 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-28 02:04:53,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044?flat'} 2025-04-28 02:04:53,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-46206044 is found in opserver 2025-04-28 02:04:53,431 - DEBUG - Do not have enough data to verify VN in agent 2025-04-28 02:04:53,436 - DEBUG - VRF ids for VN ctest-vn-46206044: {} 2025-04-28 02:04:53,492 - DEBUG - Services list from nova: [, , ] 2025-04-28 02:04:54,508 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3230-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3230-1) 2025-04-28 02:04:55,742 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3230-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3230-1) 2025-04-28 02:04:55,743 - INFO - Waiting for VM ctest-TestBasicPolicy-92972317-95776179 to be up.. 2025-04-28 02:04:55,842 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-28 02:05:00,957 - DEBUG - VM is in ACTIVE state now 2025-04-28 02:05:00,957 - INFO - VM name : ctest-TestBasicPolicy-92972317-95776179 2025-04-28 02:05:01,052 - DEBUG - VM ctest-TestBasicPolicy-92972317-95776179 ID is 21aa7744-c44c-49cd-8c3a-6f3707835196 2025-04-28 02:05:01,072 - DEBUG - VM ctest-TestBasicPolicy-92972317-95776179 launched on Node cn-jenkins-deploy-platform-ansible-os-3230-1 2025-04-28 02:05:01,149 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/21aa7744-c44c-49cd-8c3a-6f3707835196 2025-04-28 02:05:01,160 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/79ccaf6f-e66d-4cbc-be0b-c5eb31858c12 2025-04-28 02:05:04,435 - 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 1023ms') 2025-04-28 02:05:04,435 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92972317-95776179 failed! 2025-04-28 02:05:04,492 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92972317:ctest-vn-48857609 is 214.60.144.193 and allocation pool is NOT set 2025-04-28 02:05:06,562 - 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=5.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.27 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 = 1.271/3.347/5.423/2.076 ms') 2025-04-28 02:05:06,562 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92972317-95776179 passed 2025-04-28 02:05:06,719 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 02:05:06,719 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92972317-95776179, IP 214.60.144.195, Port 22 2025-04-28 02:05:06,871 - DEBUG - VM ctest-TestBasicPolicy-92972317-95776179 is ready for SSH connections 2025-04-28 02:05:06,871 - INFO - Waiting for VM ctest-TestBasicPolicy-92972317-16049659 to be up.. 2025-04-28 02:05:06,954 - DEBUG - VM is in ACTIVE state now 2025-04-28 02:05:06,954 - INFO - VM name : ctest-TestBasicPolicy-92972317-16049659 2025-04-28 02:05:07,041 - DEBUG - VM ctest-TestBasicPolicy-92972317-16049659 ID is 76eebb4b-8712-4af5-b307-fbf4bff2dcef 2025-04-28 02:05:07,041 - DEBUG - VM ctest-TestBasicPolicy-92972317-16049659 launched on Node cn-jenkins-deploy-platform-ansible-os-3230-1 2025-04-28 02:05:07,140 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/76eebb4b-8712-4af5-b307-fbf4bff2dcef 2025-04-28 02:05:07,149 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/3699b47a-29e9-49ba-a827-1fefb4d63b58 2025-04-28 02:05:08,391 - 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.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.521 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.521/1.760/3.000/1.239 ms') 2025-04-28 02:05:08,391 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-92972317-16049659 passed 2025-04-28 02:05:08,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 02:05:08,543 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92972317-16049659, IP 36.224.223.195, Port 22 2025-04-28 02:05:08,707 - DEBUG - VM ctest-TestBasicPolicy-92972317-16049659 is ready for SSH connections 2025-04-28 02:05:08,707 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 02:05:08,707 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 36.224.223.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-28 02:05:08,707 - DEBUG - ping -s 56 -c 3 -W 1 36.224.223.195 2025-04-28 02:05:12,391 - DEBUG - PING 36.224.223.195 (36.224.223.195): 56 data bytes 64 bytes from 36.224.223.195: seq=0 ttl=63 time=4.236 ms 64 bytes from 36.224.223.195: seq=1 ttl=63 time=0.837 ms 64 bytes from 36.224.223.195: seq=2 ttl=63 time=0.780 ms --- 36.224.223.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.780/1.951/4.236 ms 2025-04-28 02:05:12,391 - INFO - Ping to IP 36.224.223.195 from VM ctest-TestBasicPolicy-92972317-95776179 passed 2025-04-28 02:05:12,571 - DEBUG - Policy Update Response {"network-policy": {"uuid": "67d2caa0-bc64-462b-ac6e-d6e9fde38f11", "href": "http://10.0.0.254:8082/network-policy/67d2caa0-bc64-462b-ac6e-d6e9fde38f11"}} 2025-04-28 02:05:12,571 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 02:05:12,571 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 36.224.223.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-28 02:05:12,571 - DEBUG - ping -s 56 -c 3 -W 1 36.224.223.195 2025-04-28 02:05:15,770 - DEBUG - PING 36.224.223.195 (36.224.223.195): 56 data bytes --- 36.224.223.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-28 02:05:15,771 - WARNING - Ping to IP 36.224.223.195 from VM ctest-TestBasicPolicy-92972317-95776179 failed 2025-04-28 02:05:15,771 - INFO - Deleting VM ctest-TestBasicPolicy-92972317-16049659 2025-04-28 02:05:15,847 - INFO - Deleting VM ctest-TestBasicPolicy-92972317-95776179 2025-04-28 02:05:16,183 - INFO - Deleted policy ctest-policy-allow-all-62094513 2025-04-28 02:05:16,184 - INFO - Deleting VN ctest-vn-46206044 2025-04-28 02:05:16,214 - DEBUG - VN 94224547-b0a1-45d9-84c3-aadb3c9bf2ff still in use: Unable to complete operation on network 94224547-b0a1-45d9-84c3-aadb3c9bf2ff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-85ea07fc-7300-4134-acea-9982f1e07670'] 2025-04-28 02:05:16,214 - WARNING - Deleting VN ctest-vn-46206044 failed..Will retry 2025-04-28 02:05:18,336 - DEBUG - Response for deleting network () 2025-04-28 02:05:18,337 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dda59409-61a8-4f97-8ea8-1051fc4bec3e 2025-04-28 02:05:18,343 - DEBUG - Response Code: 404 2025-04-28 02:05:18,343 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-28 02:05:18,357 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608 2025-04-28 02:05:18,414 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778 2025-04-28 02:05:18,486 - INFO - Validated that VN ctest-vn-46206044 is not found in API Server 2025-04-28 02:05:18,497 - DEBUG - VN ctest-vn-46206044 is not present in Agent 10.0.0.254 2025-04-28 02:05:18,497 - INFO - Validated that VN ctest-vn-46206044 is not in any agent 2025-04-28 02:05:18,512 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46206044 info 2025-04-28 02:05:18,512 - INFO - Deleting VN ctest-vn-48857609 2025-04-28 02:05:18,628 - DEBUG - Response for deleting network () 2025-04-28 02:05:18,628 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4679a7f1-d4ba-4dd0-9166-df46cf163c64 2025-04-28 02:05:18,637 - DEBUG - Response Code: 404 2025-04-28 02:05:18,637 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-28 02:05:18,643 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fa5c208a-72f6-423c-9484-737617bde608 2025-04-28 02:05:18,698 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb144ea8-297d-4eae-9eb8-80f7a0b6e778 2025-04-28 02:05:18,769 - INFO - Validated that VN ctest-vn-48857609 is not found in API Server 2025-04-28 02:05:18,779 - DEBUG - VN ctest-vn-48857609 is not present in Agent 10.0.0.254 2025-04-28 02:05:18,779 - INFO - Validated that VN ctest-vn-48857609 is not in any agent 2025-04-28 02:05:18,794 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48857609 info 2025-04-28 02:05:19,049 - DEBUG - No XMPP flaps were noticed during the test
2025-04-28 02:05:19,049 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-28 02:05:19,049 - INFO - -------------------------------------------------------------------------------- 2025-04-28 02:05:19,720 - INFO - Deleted project: ctest-TestBasicPolicy-92972317, ID : bb144ea8-297d-4eae-9eb8-80f7a0b6e778