2025-04-09 12:30:52,394 - INFO - Domain Default found not creating 2025-04-09 12:30:52,559 - INFO - Project ctest-TestBasicPolicy-95445227 not found, creating it 2025-04-09 12:30:53,043 - INFO - Created Project:ctest-TestBasicPolicy-95445227, ID : 43b42d51-61c2-41ed-a0af-2683b4679599 2025-04-09 12:30:54,559 - INFO - ================================================================================ 2025-04-09 12:30:54,559 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 12:30:54,559 - 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-09 12:30:54,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-04-09 12:30:54,817 - INFO - Initial checks done. Running the testcase now 2025-04-09 12:30:54,817 - INFO - 2025-04-09 12:30:55,595 - DEBUG - Response for create_network : {'network': {'id': 'f2298002-afcf-4452-adc4-2687c7c74a33', 'name': 'ctest-vn-91323444', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-91323444'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 12:30:55,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa3f9548-f873-40d5-8091-b31a881d56aa', 'name': '', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'network_id': 'f2298002-afcf-4452-adc4-2687c7c74a33', 'ip_version': 4, 'cidr': '89.216.173.128/26', 'allocation_pools': [{'start': '89.216.173.130', 'end': '89.216.173.190'}], 'gateway_ip': '89.216.173.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.216.173.130', 'tags': [], 'project_id': '43b42d5161c241eda0af2683b4679599'}} 2025-04-09 12:30:55,780 - INFO - Created VN ctest-vn-91323444 2025-04-09 12:30:55,834 - DEBUG - VN ctest-vn-91323444 UUID is f2298002-afcf-4452-adc4-2687c7c74a33 2025-04-09 12:30:56,152 - DEBUG - Response for create_network : {'network': {'id': '82324401-c7ff-4d81-aa35-5030be36154d', 'name': 'ctest-vn-02554010', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-02554010'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 12:30:56,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '79324f98-ec3e-4231-b7ea-899e70d1820f', 'name': '', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'network_id': '82324401-c7ff-4d81-aa35-5030be36154d', 'ip_version': 4, 'cidr': '58.18.178.128/26', 'allocation_pools': [{'start': '58.18.178.130', 'end': '58.18.178.190'}], 'gateway_ip': '58.18.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.18.178.130', 'tags': [], 'project_id': '43b42d5161c241eda0af2683b4679599'}} 2025-04-09 12:30:56,317 - INFO - Created VN ctest-vn-02554010 2025-04-09 12:30:56,369 - DEBUG - VN ctest-vn-02554010 UUID is 82324401-c7ff-4d81-aa35-5030be36154d 2025-04-09 12:30:56,482 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444, 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-95445227:ctest-vn-02554010, 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-09 12:30:56,788 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2298002-afcf-4452-adc4-2687c7c74a33', 'name': 'ctest-vn-91323444', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa3f9548-f873-40d5-8091-b31a881d56aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-91323444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063']], 'subnet_ipam': [{'subnet_cidr': '89.216.173.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 12:30:57,021 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82324401-c7ff-4d81-aa35-5030be36154d', 'name': 'ctest-vn-02554010', 'tenant_id': '43b42d5161c241eda0af2683b4679599', 'project_id': '43b42d5161c241eda0af2683b4679599', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79324f98-ec3e-4231-b7ea-899e70d1820f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-vn-02554010'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063']], 'subnet_ipam': [{'subnet_cidr': '58.18.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 12:30:57,194 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-09 12:30:57,499 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-09 12:30:57,532 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d 2025-04-09 12:30:57,546 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599 2025-04-09 12:30:57,625 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33 2025-04-09 12:30:57,637 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33 2025-04-09 12:30:57,648 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc 2025-04-09 12:30:57,656 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc 2025-04-09 12:30:57,664 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d7632dec-888c-4edf-86d6-30125a5d8f66 2025-04-09 12:30:57,671 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 12:30:57,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33 2025-04-09 12:30:57,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc 2025-04-09 12:30:57,700 - INFO - Verified VN network id 9 for VN f2298002-afcf-4452-adc4-2687c7c74a33 2025-04-09 12:30:57,700 - INFO - Verifications in API Server for VN ctest-vn-91323444 passed 2025-04-09 12:30:57,700 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33 2025-04-09 12:30:57,712 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc 2025-04-09 12:30:57,720 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc 2025-04-09 12:30:57,728 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d7632dec-888c-4edf-86d6-30125a5d8f66 2025-04-09 12:30:57,740 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95445227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17449618980251583570', 'uuid-lslong': '12521175228610988595'}, 'enable': 'true', 'created': '2025-04-09T12:30:55', 'last-modified': '2025-04-09T12:30:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971087'} 2025-04-09 12:30:57,746 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 12:30:57,747 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91323444 passed 2025-04-09 12:30:57,747 - DEBUG - ====Verifying policy data for ctest-vn-91323444 in API_Server ====== 2025-04-09 12:30:57,747 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-09 12:30:57,753 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d 2025-04-09 12:30:57,767 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599 2025-04-09 12:30:57,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2298002-afcf-4452-adc4-2687c7c74a33 2025-04-09 12:30:57,851 - DEBUG - ==>Verifying data for policy with id: 5de2a0c3-4ca8-4a3d-a202-4f4705839015, fqn: ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063'] 2025-04-09 12:30:57,852 - INFO - VN ctest-vn-91323444 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 12:30:57,852 - DEBUG - Verifying the vn in opserver 2025-04-09 12:30:57,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444 virtual network link through opserver 10.0.0.50 2025-04-09 12:30:57,852 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-09 12:30:58,143 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-09 12:30:58,205 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444?flat'} 2025-04-09 12:30:58,205 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444 is found in opserver 2025-04-09 12:30:58,219 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 12:30:58,225 - DEBUG - VRF ids for VN ctest-vn-91323444: {} 2025-04-09 12:30:58,225 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-09 12:30:58,231 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d 2025-04-09 12:30:58,244 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599 2025-04-09 12:30:58,323 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d 2025-04-09 12:30:58,335 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d 2025-04-09 12:30:58,346 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019 2025-04-09 12:30:58,354 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019 2025-04-09 12:30:58,363 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ab0a8537-2af5-42e6-aa66-53b6d051ef2d 2025-04-09 12:30:58,370 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 12:30:58,371 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d 2025-04-09 12:30:58,381 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019 2025-04-09 12:30:58,397 - INFO - Verified VN network id 10 for VN 82324401-c7ff-4d81-aa35-5030be36154d 2025-04-09 12:30:58,397 - INFO - Verifications in API Server for VN ctest-vn-02554010 passed 2025-04-09 12:30:58,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d 2025-04-09 12:30:58,409 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019 2025-04-09 12:30:58,417 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019 2025-04-09 12:30:58,426 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ab0a8537-2af5-42e6-aa66-53b6d051ef2d 2025-04-09 12:30:58,439 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95445227', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9381635748207218049', 'uuid-lslong': '12264797330493281613'}, 'enable': 'true', 'created': '2025-04-09T12:30:56', 'last-modified': '2025-04-09T12:30:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438759'} 2025-04-09 12:30:58,446 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 12:30:58,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02554010 passed 2025-04-09 12:30:58,446 - DEBUG - ====Verifying policy data for ctest-vn-02554010 in API_Server ====== 2025-04-09 12:30:58,446 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-09 12:30:58,453 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d 2025-04-09 12:30:58,465 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599 2025-04-09 12:30:58,541 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82324401-c7ff-4d81-aa35-5030be36154d 2025-04-09 12:30:58,551 - DEBUG - ==>Verifying data for policy with id: 5de2a0c3-4ca8-4a3d-a202-4f4705839015, fqn: ['default-domain', 'ctest-TestBasicPolicy-95445227', 'ctest-policy-allow-all-36210063'] 2025-04-09 12:30:58,551 - INFO - VN ctest-vn-02554010 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 12:30:58,551 - DEBUG - Verifying the vn in opserver 2025-04-09 12:30:58,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010 virtual network link through opserver 10.0.0.50 2025-04-09 12:30:58,551 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-04-09 12:30:58,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010?flat'} 2025-04-09 12:30:58,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-02554010 is found in opserver 2025-04-09 12:30:58,573 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 12:30:58,578 - DEBUG - VRF ids for VN ctest-vn-02554010: {} 2025-04-09 12:30:58,634 - DEBUG - Services list from nova: [, , ] 2025-04-09 12:30:59,766 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3064-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3064-1) 2025-04-09 12:31:00,957 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3064-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3064-1) 2025-04-09 12:31:00,957 - INFO - Waiting for VM ctest-TestBasicPolicy-95445227-90878748 to be up.. 2025-04-09 12:31:01,052 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 12:31:06,139 - DEBUG - VM is in ACTIVE state now 2025-04-09 12:31:06,139 - INFO - VM name : ctest-TestBasicPolicy-95445227-90878748 2025-04-09 12:31:06,223 - DEBUG - VM ctest-TestBasicPolicy-95445227-90878748 ID is 80868218-e858-473a-b5b9-4cf5949897c6 2025-04-09 12:31:06,243 - DEBUG - VM ctest-TestBasicPolicy-95445227-90878748 launched on Node cn-jenkins-deploy-platform-ansible-os-3064-1 2025-04-09 12:31:06,324 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/80868218-e858-473a-b5b9-4cf5949897c6 2025-04-09 12:31:06,335 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/e116096c-9943-47c3-8cd6-378075140584 2025-04-09 12:31:09,576 - 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 1018ms') 2025-04-09 12:31:09,577 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95445227-90878748 failed! 2025-04-09 12:31:09,634 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95445227:ctest-vn-91323444 is 89.216.173.129 and allocation pool is NOT set 2025-04-09 12:31:11,692 - 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=6.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.579 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 = 0.579/3.354/6.129/2.775 ms') 2025-04-09 12:31:11,692 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95445227-90878748 passed 2025-04-09 12:31:11,854 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 12:31:11,854 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95445227-90878748, IP 89.216.173.131, Port 22 2025-04-09 12:31:12,009 - DEBUG - VM ctest-TestBasicPolicy-95445227-90878748 is ready for SSH connections 2025-04-09 12:31:12,009 - INFO - Waiting for VM ctest-TestBasicPolicy-95445227-77188724 to be up.. 2025-04-09 12:31:12,088 - DEBUG - VM is in ACTIVE state now 2025-04-09 12:31:12,088 - INFO - VM name : ctest-TestBasicPolicy-95445227-77188724 2025-04-09 12:31:12,177 - DEBUG - VM ctest-TestBasicPolicy-95445227-77188724 ID is c4e2896d-b8a4-4b23-aca4-2f02af158471 2025-04-09 12:31:12,177 - DEBUG - VM ctest-TestBasicPolicy-95445227-77188724 launched on Node cn-jenkins-deploy-platform-ansible-os-3064-1 2025-04-09 12:31:12,266 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/c4e2896d-b8a4-4b23-aca4-2f02af158471 2025-04-09 12:31:12,277 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/cd80031c-ce41-44ea-b4f5-90954190bc38 2025-04-09 12:31:13,521 - 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.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.81 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 = 1.810/2.908/4.007/1.098 ms') 2025-04-09 12:31:13,522 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-95445227-77188724 passed 2025-04-09 12:31:13,678 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 12:31:13,678 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95445227-77188724, IP 58.18.178.131, Port 22 2025-04-09 12:31:13,841 - DEBUG - VM ctest-TestBasicPolicy-95445227-77188724 is ready for SSH connections 2025-04-09 12:31:13,841 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 12:31:13,841 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 58.18.178.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-09 12:31:13,842 - DEBUG - ping -s 56 -c 3 -W 1 58.18.178.131 2025-04-09 12:31:17,823 - DEBUG - PING 58.18.178.131 (58.18.178.131): 56 data bytes 64 bytes from 58.18.178.131: seq=0 ttl=63 time=3.916 ms 64 bytes from 58.18.178.131: seq=1 ttl=63 time=0.777 ms 64 bytes from 58.18.178.131: seq=2 ttl=63 time=0.939 ms --- 58.18.178.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.777/1.877/3.916 ms 2025-04-09 12:31:17,823 - INFO - Ping to IP 58.18.178.131 from VM ctest-TestBasicPolicy-95445227-90878748 passed 2025-04-09 12:31:18,005 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5de2a0c3-4ca8-4a3d-a202-4f4705839015", "href": "http://10.0.0.50:8082/network-policy/5de2a0c3-4ca8-4a3d-a202-4f4705839015"}} 2025-04-09 12:31:18,006 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 12:31:18,006 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 58.18.178.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-04-09 12:31:18,006 - DEBUG - ping -s 56 -c 3 -W 1 58.18.178.131 2025-04-09 12:31:21,213 - DEBUG - PING 58.18.178.131 (58.18.178.131): 56 data bytes 64 bytes from 58.18.178.131: seq=0 ttl=63 time=2.051 ms --- 58.18.178.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.051/2.051/2.051 ms 2025-04-09 12:31:21,213 - WARNING - Ping to IP 58.18.178.131 from VM ctest-TestBasicPolicy-95445227-90878748 failed 2025-04-09 12:31:21,214 - INFO - Deleting VM ctest-TestBasicPolicy-95445227-77188724 2025-04-09 12:31:21,290 - INFO - Deleting VM ctest-TestBasicPolicy-95445227-90878748 2025-04-09 12:31:21,693 - INFO - Deleted policy ctest-policy-allow-all-36210063 2025-04-09 12:31:21,694 - INFO - Deleting VN ctest-vn-02554010 2025-04-09 12:31:21,732 - DEBUG - VN 82324401-c7ff-4d81-aa35-5030be36154d still in use: Unable to complete operation on network 82324401-c7ff-4d81-aa35-5030be36154d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8f433e37-5e12-4a94-bacb-d2e486bf3857'] 2025-04-09 12:31:21,733 - WARNING - Deleting VN ctest-vn-02554010 failed..Will retry 2025-04-09 12:31:23,846 - DEBUG - Response for deleting network () 2025-04-09 12:31:23,847 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/727de710-2c95-4f2d-ae4f-86fbf5de1019 2025-04-09 12:31:23,853 - DEBUG - Response Code: 404 2025-04-09 12:31:23,853 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-09 12:31:23,861 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d 2025-04-09 12:31:23,916 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599 2025-04-09 12:31:23,994 - INFO - Validated that VN ctest-vn-02554010 is not found in API Server 2025-04-09 12:31:24,009 - DEBUG - VN ctest-vn-02554010 is not present in Agent 10.0.0.50 2025-04-09 12:31:24,009 - INFO - Validated that VN ctest-vn-02554010 is not in any agent 2025-04-09 12:31:24,029 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-02554010 info 2025-04-09 12:31:24,029 - INFO - Deleting VN ctest-vn-91323444 2025-04-09 12:31:24,158 - DEBUG - Response for deleting network () 2025-04-09 12:31:24,158 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a41c98ce-3b66-4026-9bd9-8c6e11d35efc 2025-04-09 12:31:24,164 - DEBUG - Response Code: 404 2025-04-09 12:31:24,164 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-04-09 12:31:24,170 - DEBUG - Requesting: http://10.0.0.50:8082/domain/040df509-a821-49f6-a3f6-cd2c2c45305d 2025-04-09 12:31:24,223 - DEBUG - Requesting: http://10.0.0.50:8082/project/43b42d51-61c2-41ed-a0af-2683b4679599 2025-04-09 12:31:24,298 - INFO - Validated that VN ctest-vn-91323444 is not found in API Server 2025-04-09 12:31:24,310 - DEBUG - VN ctest-vn-91323444 is not present in Agent 10.0.0.50 2025-04-09 12:31:24,310 - INFO - Validated that VN ctest-vn-91323444 is not in any agent 2025-04-09 12:31:24,328 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91323444 info 2025-04-09 12:31:24,587 - DEBUG - No XMPP flaps were noticed during the test 2025-04-09 12:31:24,587 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-04-09 12:31:24,587 - INFO - -------------------------------------------------------------------------------- 2025-04-09 12:31:25,280 - INFO - Deleted project: ctest-TestBasicPolicy-95445227, ID : 43b42d51-61c2-41ed-a0af-2683b4679599