2025-02-04 23:22:40,725 - INFO - Domain Default found not creating 2025-02-04 23:22:40,863 - INFO - Project ctest-TestBasicPolicy-70721232 not found, creating it 2025-02-04 23:22:41,298 - INFO - Created Project:ctest-TestBasicPolicy-70721232, ID : 2bd8f5d8-2805-4d42-b700-6c80c72e0281 2025-02-04 23:22:42,838 - INFO - ================================================================================ 2025-02-04 23:22:42,838 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-04 23:22:42,838 - 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-02-04 23:22:43,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with 2025-02-04 23:22:43,093 - INFO - Initial checks done. Running the testcase now 2025-02-04 23:22:43,093 - INFO - 2025-02-04 23:22:43,701 - DEBUG - Response for create_network : {'network': {'id': '2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42', 'name': 'ctest-vn-30525011', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-30525011'], 'port_security_enabled': True, 'description': ''}} 2025-02-04 23:22:43,905 - DEBUG - Response for create_subnet : {'subnet': {'id': '651b1a46-6d72-425b-9457-21fc935b6cd6', 'name': '', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'network_id': '2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42', 'ip_version': 4, 'cidr': '84.194.87.64/26', 'allocation_pools': [{'start': '84.194.87.66', 'end': '84.194.87.126'}], 'gateway_ip': '84.194.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.194.87.66', 'tags': [], 'project_id': '2bd8f5d828054d42b7006c80c72e0281'}} 2025-02-04 23:22:43,927 - INFO - Created VN ctest-vn-30525011 2025-02-04 23:22:43,981 - DEBUG - VN ctest-vn-30525011 UUID is 2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42 2025-02-04 23:22:44,285 - DEBUG - Response for create_network : {'network': {'id': '8f83e9ab-ecaf-4c30-94d4-cb7a32e365de', 'name': 'ctest-vn-71894479', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-71894479'], 'port_security_enabled': True, 'description': ''}} 2025-02-04 23:22:44,519 - DEBUG - Response for create_subnet : {'subnet': {'id': '91b7e0b0-7c54-4b84-875c-5e4104776647', 'name': '', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'network_id': '8f83e9ab-ecaf-4c30-94d4-cb7a32e365de', 'ip_version': 4, 'cidr': '155.130.192.64/26', 'allocation_pools': [{'start': '155.130.192.66', 'end': '155.130.192.126'}], 'gateway_ip': '155.130.192.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.130.192.66', 'tags': [], 'project_id': '2bd8f5d828054d42b7006c80c72e0281'}} 2025-02-04 23:22:44,540 - INFO - Created VN ctest-vn-71894479 2025-02-04 23:22:44,593 - DEBUG - VN ctest-vn-71894479 UUID is 8f83e9ab-ecaf-4c30-94d4-cb7a32e365de 2025-02-04 23:22:44,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011, 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-70721232:ctest-vn-71894479, 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-02-04 23:22:45,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42', 'name': 'ctest-vn-30525011', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['651b1a46-6d72-425b-9457-21fc935b6cd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-30525011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225']], 'subnet_ipam': [{'subnet_cidr': '84.194.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-04 23:22:45,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f83e9ab-ecaf-4c30-94d4-cb7a32e365de', 'name': 'ctest-vn-71894479', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91b7e0b0-7c54-4b84-875c-5e4104776647'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-71894479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225']], 'subnet_ipam': [{'subnet_cidr': '155.130.192.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-04 23:22:45,489 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-02-04 23:22:45,823 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-02-04 23:22:45,853 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2 2025-02-04 23:22:45,869 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281 2025-02-04 23:22:45,953 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42 2025-02-04 23:22:45,967 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42 2025-02-04 23:22:45,980 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e 2025-02-04 23:22:45,990 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e 2025-02-04 23:22:45,998 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/bc2338a5-02fd-48c0-91ba-ceeeadb9dca4 2025-02-04 23:22:46,006 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-04 23:22:46,006 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42 2025-02-04 23:22:46,020 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e 2025-02-04 23:22:46,038 - INFO - Verified VN network id 9 for VN 2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42 2025-02-04 23:22:46,038 - INFO - Verifications in API Server for VN ctest-vn-30525011 passed 2025-02-04 23:22:46,038 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42 2025-02-04 23:22:46,050 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e 2025-02-04 23:22:46,058 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e 2025-02-04 23:22:46,067 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/bc2338a5-02fd-48c0-91ba-ceeeadb9dca4 2025-02-04 23:22:46,082 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721232', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3354893464350443378', 'uuid-lslong': '12469855437106056002'}, 'enable': 'true', 'created': '2025-02-04T23:22:43', 'last-modified': '2025-02-04T23:22:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076609'} 2025-02-04 23:22:46,089 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-04 23:22:46,089 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30525011 passed 2025-02-04 23:22:46,090 - DEBUG - ====Verifying policy data for ctest-vn-30525011 in API_Server ====== 2025-02-04 23:22:46,090 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-02-04 23:22:46,096 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2 2025-02-04 23:22:46,112 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281 2025-02-04 23:22:46,184 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42 2025-02-04 23:22:46,199 - DEBUG - ==>Verifying data for policy with id: bb7b9eb7-5b30-40d9-bbb1-e03664d49ccc, fqn: ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225'] 2025-02-04 23:22:46,199 - INFO - VN ctest-vn-30525011 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-04 23:22:46,199 - DEBUG - Verifying the vn in opserver 2025-02-04 23:22:46,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011 virtual network link through opserver 10.0.0.17 2025-02-04 23:22:46,199 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-02-04 23:22:46,538 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-02-04 23:22:46,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011?flat'} 2025-02-04 23:22:46,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011 is found in opserver 2025-02-04 23:22:46,618 - DEBUG - Do not have enough data to verify VN in agent 2025-02-04 23:22:46,638 - DEBUG - VRF ids for VN ctest-vn-30525011: {} 2025-02-04 23:22:46,638 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-02-04 23:22:46,645 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2 2025-02-04 23:22:46,659 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281 2025-02-04 23:22:46,742 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de 2025-02-04 23:22:46,758 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de 2025-02-04 23:22:46,770 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132 2025-02-04 23:22:46,779 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132 2025-02-04 23:22:46,787 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1cb772c5-f349-48aa-a780-9bbbf55b9eb1 2025-02-04 23:22:46,794 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-04 23:22:46,794 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de 2025-02-04 23:22:46,806 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132 2025-02-04 23:22:46,823 - INFO - Verified VN network id 10 for VN 8f83e9ab-ecaf-4c30-94d4-cb7a32e365de 2025-02-04 23:22:46,823 - INFO - Verifications in API Server for VN ctest-vn-71894479 passed 2025-02-04 23:22:46,823 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de 2025-02-04 23:22:46,835 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132 2025-02-04 23:22:46,844 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132 2025-02-04 23:22:46,852 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1cb772c5-f349-48aa-a780-9bbbf55b9eb1 2025-02-04 23:22:46,866 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721232', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10341366093992381488', 'uuid-lslong': '10724420338376205790'}, 'enable': 'true', 'created': '2025-02-04T23:22:44', 'last-modified': '2025-02-04T23:22:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591970'} 2025-02-04 23:22:46,873 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-04 23:22:46,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71894479 passed 2025-02-04 23:22:46,873 - DEBUG - ====Verifying policy data for ctest-vn-71894479 in API_Server ====== 2025-02-04 23:22:46,874 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-02-04 23:22:46,880 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2 2025-02-04 23:22:46,895 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281 2025-02-04 23:22:46,973 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de 2025-02-04 23:22:46,989 - DEBUG - ==>Verifying data for policy with id: bb7b9eb7-5b30-40d9-bbb1-e03664d49ccc, fqn: ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225'] 2025-02-04 23:22:46,989 - INFO - VN ctest-vn-71894479 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-04 23:22:46,989 - DEBUG - Verifying the vn in opserver 2025-02-04 23:22:46,989 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479 virtual network link through opserver 10.0.0.17 2025-02-04 23:22:46,989 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2025-02-04 23:22:47,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479?flat'} 2025-02-04 23:22:47,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479 is found in opserver 2025-02-04 23:22:47,013 - DEBUG - Do not have enough data to verify VN in agent 2025-02-04 23:22:47,020 - DEBUG - VRF ids for VN ctest-vn-71894479: {} 2025-02-04 23:22:47,081 - DEBUG - Services list from nova: [, , ] 2025-02-04 23:22:48,178 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2688-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2688-1) 2025-02-04 23:22:49,527 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2688-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2688-1) 2025-02-04 23:22:49,528 - INFO - Waiting for VM ctest-TestBasicPolicy-70721232-78251323 to be up.. 2025-02-04 23:22:49,620 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-04 23:22:54,697 - DEBUG - VM is in ACTIVE state now 2025-02-04 23:22:54,697 - INFO - VM name : ctest-TestBasicPolicy-70721232-78251323 2025-02-04 23:22:54,772 - DEBUG - VM ctest-TestBasicPolicy-70721232-78251323 ID is d9dc3975-afe3-481d-9f2c-f50582f91fff 2025-02-04 23:22:54,791 - DEBUG - VM ctest-TestBasicPolicy-70721232-78251323 launched on Node cn-jenkins-deploy-platform-ansible-os-2688-1 2025-02-04 23:22:54,870 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/d9dc3975-afe3-481d-9f2c-f50582f91fff 2025-02-04 23:22:54,880 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/777715ab-f4f6-4e5d-9e6b-7b84d9912f3e 2025-02-04 23:22:58,149 - 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 1027ms') 2025-02-04 23:22:58,149 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721232-78251323 failed! 2025-02-04 23:22:58,205 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011 is 84.194.87.65 and allocation pool is NOT set 2025-02-04 23:23:00,269 - 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.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.481 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.481/3.976/7.471/3.495 ms') 2025-02-04 23:23:00,269 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70721232-78251323 passed 2025-02-04 23:23:00,426 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 23:23:00,426 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721232-78251323, IP 84.194.87.67, Port 22 2025-02-04 23:23:00,582 - DEBUG - VM ctest-TestBasicPolicy-70721232-78251323 is ready for SSH connections 2025-02-04 23:23:00,582 - INFO - Waiting for VM ctest-TestBasicPolicy-70721232-61948410 to be up.. 2025-02-04 23:23:00,678 - DEBUG - VM is in ACTIVE state now 2025-02-04 23:23:00,678 - INFO - VM name : ctest-TestBasicPolicy-70721232-61948410 2025-02-04 23:23:00,760 - DEBUG - VM ctest-TestBasicPolicy-70721232-61948410 ID is f7d3a876-445a-446e-86c5-b620271206e1 2025-02-04 23:23:00,761 - DEBUG - VM ctest-TestBasicPolicy-70721232-61948410 launched on Node cn-jenkins-deploy-platform-ansible-os-2688-1 2025-02-04 23:23:00,843 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/f7d3a876-445a-446e-86c5-b620271206e1 2025-02-04 23:23:00,857 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/1f6bb9c9-a70b-4d2a-ab8b-255f680459d9 2025-02-04 23:23:02,114 - 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.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.950 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.950/2.835/4.720/1.885 ms') 2025-02-04 23:23:02,115 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-70721232-61948410 passed 2025-02-04 23:23:02,277 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 23:23:02,277 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70721232-61948410, IP 155.130.192.67, Port 22 2025-02-04 23:23:02,448 - DEBUG - VM ctest-TestBasicPolicy-70721232-61948410 is ready for SSH connections 2025-02-04 23:23:02,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 23:23:02,448 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 155.130.192.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-02-04 23:23:02,448 - DEBUG - ping -s 56 -c 3 -W 1 155.130.192.67 2025-02-04 23:23:06,495 - DEBUG - PING 155.130.192.67 (155.130.192.67): 56 data bytes 64 bytes from 155.130.192.67: seq=0 ttl=63 time=5.121 ms 64 bytes from 155.130.192.67: seq=1 ttl=63 time=1.006 ms 64 bytes from 155.130.192.67: seq=2 ttl=63 time=0.745 ms --- 155.130.192.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.745/2.290/5.121 ms 2025-02-04 23:23:06,495 - INFO - Ping to IP 155.130.192.67 from VM ctest-TestBasicPolicy-70721232-78251323 passed 2025-02-04 23:23:06,677 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bb7b9eb7-5b30-40d9-bbb1-e03664d49ccc", "href": "http://10.0.0.17:8082/network-policy/bb7b9eb7-5b30-40d9-bbb1-e03664d49ccc"}} 2025-02-04 23:23:06,677 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-04 23:23:06,677 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 155.130.192.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-02-04 23:23:06,678 - DEBUG - ping -s 56 -c 3 -W 1 155.130.192.67 2025-02-04 23:23:09,896 - DEBUG - PING 155.130.192.67 (155.130.192.67): 56 data bytes 64 bytes from 155.130.192.67: seq=0 ttl=63 time=1.295 ms --- 155.130.192.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.295/1.295/1.295 ms 2025-02-04 23:23:09,897 - WARNING - Ping to IP 155.130.192.67 from VM ctest-TestBasicPolicy-70721232-78251323 failed 2025-02-04 23:23:09,897 - INFO - Deleting VM ctest-TestBasicPolicy-70721232-61948410 2025-02-04 23:23:09,970 - INFO - Deleting VM ctest-TestBasicPolicy-70721232-78251323 2025-02-04 23:23:10,412 - INFO - Deleted policy ctest-policy-allow-all-01287225 2025-02-04 23:23:10,412 - INFO - Deleting VN ctest-vn-71894479 2025-02-04 23:23:10,463 - DEBUG - VN 8f83e9ab-ecaf-4c30-94d4-cb7a32e365de still in use: Unable to complete operation on network 8f83e9ab-ecaf-4c30-94d4-cb7a32e365de. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-34e8198f-389a-4555-a558-15e02f80de64'] 2025-02-04 23:23:10,463 - WARNING - Deleting VN ctest-vn-71894479 failed..Will retry 2025-02-04 23:23:12,596 - DEBUG - Response for deleting network () 2025-02-04 23:23:12,596 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132 2025-02-04 23:23:12,603 - DEBUG - Response Code: 404 2025-02-04 23:23:12,603 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-02-04 23:23:12,609 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2 2025-02-04 23:23:12,670 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281 2025-02-04 23:23:12,755 - INFO - Validated that VN ctest-vn-71894479 is not found in API Server 2025-02-04 23:23:12,769 - DEBUG - VN ctest-vn-71894479 is not present in Agent 10.0.0.17 2025-02-04 23:23:12,769 - INFO - Validated that VN ctest-vn-71894479 is not in any agent 2025-02-04 23:23:12,786 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71894479 info 2025-02-04 23:23:12,787 - INFO - Deleting VN ctest-vn-30525011 2025-02-04 23:23:12,903 - DEBUG - Response for deleting network () 2025-02-04 23:23:12,903 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e 2025-02-04 23:23:12,912 - DEBUG - Response Code: 404 2025-02-04 23:23:12,913 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2025-02-04 23:23:12,986 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2 2025-02-04 23:23:13,001 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281 2025-02-04 23:23:13,076 - INFO - Validated that VN ctest-vn-30525011 is not found in API Server 2025-02-04 23:23:13,089 - DEBUG - VN ctest-vn-30525011 is not present in Agent 10.0.0.17 2025-02-04 23:23:13,089 - INFO - Validated that VN ctest-vn-30525011 is not in any agent 2025-02-04 23:23:13,107 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30525011 info 2025-02-04 23:23:13,364 - DEBUG - No XMPP flaps were noticed during the test 2025-02-04 23:23:13,364 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2025-02-04 23:23:13,365 - INFO - -------------------------------------------------------------------------------- 2025-02-04 23:23:14,119 - INFO - Deleted project: ctest-TestBasicPolicy-70721232, ID : 2bd8f5d8-2805-4d42-b700-6c80c72e0281