2025-02-03 21:27:36,565 - INFO - Domain Default found not creating 2025-02-03 21:27:36,726 - INFO - Project ctest-TestBasicPolicy-48201126 not found, creating it 2025-02-03 21:27:37,277 - INFO - Created Project:ctest-TestBasicPolicy-48201126, ID : 22eb6cae-548e-4297-874b-8d429a60418e 2025-02-03 21:27:38,772 - INFO - ================================================================================ 2025-02-03 21:27:38,772 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-03 21:27:38,772 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-02-03 21:27:39,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.8': '0'}} with 2025-02-03 21:27:39,036 - INFO - Initial checks done. Running the testcase now 2025-02-03 21:27:39,036 - INFO - 2025-02-03 21:27:39,860 - DEBUG - Response for create_network : {'network': {'id': '470d0fcd-39ea-4de9-8d0e-638ac1e6cf41', 'name': 'ctest-vn-38814137', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-38814137'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 21:27:40,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '79af42bb-084f-4843-847f-418a04d3f65d', 'name': '', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'network_id': '470d0fcd-39ea-4de9-8d0e-638ac1e6cf41', 'ip_version': 4, 'cidr': '201.252.81.192/26', 'allocation_pools': [{'start': '201.252.81.194', 'end': '201.252.81.254'}], 'gateway_ip': '201.252.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.252.81.194', 'tags': [], 'project_id': '22eb6cae548e4297874b8d429a60418e'}} 2025-02-03 21:27:40,107 - INFO - Created VN ctest-vn-38814137 2025-02-03 21:27:40,162 - DEBUG - VN ctest-vn-38814137 UUID is 470d0fcd-39ea-4de9-8d0e-638ac1e6cf41 2025-02-03 21:27:40,508 - DEBUG - Response for create_network : {'network': {'id': 'ec4a73da-7fb2-4028-ad59-ebb7d55f0e96', 'name': 'ctest-vn-18220583', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-18220583'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 21:27:40,689 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a1bd30e-9f24-4571-bf4a-e5af85b3e4eb', 'name': '', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'network_id': 'ec4a73da-7fb2-4028-ad59-ebb7d55f0e96', 'ip_version': 4, 'cidr': '122.126.182.128/26', 'allocation_pools': [{'start': '122.126.182.130', 'end': '122.126.182.190'}], 'gateway_ip': '122.126.182.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.126.182.130', 'tags': [], 'project_id': '22eb6cae548e4297874b8d429a60418e'}} 2025-02-03 21:27:40,710 - INFO - Created VN ctest-vn-18220583 2025-02-03 21:27:40,762 - DEBUG - VN ctest-vn-18220583 UUID is ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 2025-02-03 21:27:40,884 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137, 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-48201126:ctest-vn-18220583, 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-03 21:27:41,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '470d0fcd-39ea-4de9-8d0e-638ac1e6cf41', 'name': 'ctest-vn-38814137', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79af42bb-084f-4843-847f-418a04d3f65d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-38814137'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171']], 'subnet_ipam': [{'subnet_cidr': '201.252.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 21:27:41,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec4a73da-7fb2-4028-ad59-ebb7d55f0e96', 'name': 'ctest-vn-18220583', 'tenant_id': '22eb6cae548e4297874b8d429a60418e', 'project_id': '22eb6cae548e4297874b8d429a60418e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a1bd30e-9f24-4571-bf4a-e5af85b3e4eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-vn-18220583'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171']], 'subnet_ipam': [{'subnet_cidr': '122.126.182.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 21:27:41,618 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-02-03 21:27:41,916 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-02-03 21:27:41,948 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3 2025-02-03 21:27:41,964 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e 2025-02-03 21:27:42,056 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41 2025-02-03 21:27:42,068 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41 2025-02-03 21:27:42,079 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9 2025-02-03 21:27:42,088 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9 2025-02-03 21:27:42,097 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/95fd1f0e-28a2-496a-b7b5-69188dc6b6d7 2025-02-03 21:27:42,105 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-03 21:27:42,105 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41 2025-02-03 21:27:42,117 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9 2025-02-03 21:27:42,133 - INFO - Verified VN network id 8 for VN 470d0fcd-39ea-4de9-8d0e-638ac1e6cf41 2025-02-03 21:27:42,133 - INFO - Verifications in API Server for VN ctest-vn-38814137 passed 2025-02-03 21:27:42,133 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41 2025-02-03 21:27:42,144 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9 2025-02-03 21:27:42,153 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9 2025-02-03 21:27:42,161 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/95fd1f0e-28a2-496a-b7b5-69188dc6b6d7 2025-02-03 21:27:42,176 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48201126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5119765725504490985', 'uuid-lslong': '10164170856631553857'}, 'enable': 'true', 'created': '2025-02-03T21:27:39', 'last-modified': '2025-02-03T21:27:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007238'} 2025-02-03 21:27:42,184 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-03 21:27:42,184 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38814137 passed 2025-02-03 21:27:42,184 - DEBUG - ====Verifying policy data for ctest-vn-38814137 in API_Server ====== 2025-02-03 21:27:42,184 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-02-03 21:27:42,191 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3 2025-02-03 21:27:42,204 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e 2025-02-03 21:27:42,279 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/470d0fcd-39ea-4de9-8d0e-638ac1e6cf41 2025-02-03 21:27:42,290 - DEBUG - ==>Verifying data for policy with id: a8ec0026-3511-48f1-8266-e94db9f01f82, fqn: ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171'] 2025-02-03 21:27:42,290 - INFO - VN ctest-vn-38814137 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 21:27:42,290 - DEBUG - Verifying the vn in opserver 2025-02-03 21:27:42,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137 virtual network link through opserver 10.0.0.54 2025-02-03 21:27:42,290 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-02-03 21:27:42,589 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-02-03 21:27:42,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137?flat'} 2025-02-03 21:27:42,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137 is found in opserver 2025-02-03 21:27:42,658 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 21:27:42,664 - DEBUG - VRF ids for VN ctest-vn-38814137: {} 2025-02-03 21:27:42,664 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-02-03 21:27:42,670 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3 2025-02-03 21:27:42,683 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e 2025-02-03 21:27:42,758 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 2025-02-03 21:27:42,771 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 2025-02-03 21:27:42,780 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d 2025-02-03 21:27:42,788 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d 2025-02-03 21:27:42,796 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a1658d96-2a34-464d-93e1-b7f922fbd0d9 2025-02-03 21:27:42,804 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 21:27:42,804 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 2025-02-03 21:27:42,817 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d 2025-02-03 21:27:42,834 - INFO - Verified VN network id 9 for VN ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 2025-02-03 21:27:42,834 - INFO - Verifications in API Server for VN ctest-vn-18220583 passed 2025-02-03 21:27:42,835 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 2025-02-03 21:27:42,847 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d 2025-02-03 21:27:42,856 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d 2025-02-03 21:27:42,864 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a1658d96-2a34-464d-93e1-b7f922fbd0d9 2025-02-03 21:27:42,876 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48201126', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17026548723510034472', 'uuid-lslong': '12491274216280100502'}, 'enable': 'true', 'created': '2025-02-03T21:27:40', 'last-modified': '2025-02-03T21:27:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461222'} 2025-02-03 21:27:42,882 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 21:27:42,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18220583 passed 2025-02-03 21:27:42,882 - DEBUG - ====Verifying policy data for ctest-vn-18220583 in API_Server ====== 2025-02-03 21:27:42,882 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-02-03 21:27:42,888 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3 2025-02-03 21:27:42,901 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e 2025-02-03 21:27:42,972 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 2025-02-03 21:27:42,984 - DEBUG - ==>Verifying data for policy with id: a8ec0026-3511-48f1-8266-e94db9f01f82, fqn: ['default-domain', 'ctest-TestBasicPolicy-48201126', 'ctest-policy-allow-all-26453171'] 2025-02-03 21:27:42,984 - INFO - VN ctest-vn-18220583 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 21:27:42,984 - DEBUG - Verifying the vn in opserver 2025-02-03 21:27:42,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583 virtual network link through opserver 10.0.0.54 2025-02-03 21:27:42,984 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-02-03 21:27:42,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583?flat'} 2025-02-03 21:27:42,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-18220583 is found in opserver 2025-02-03 21:27:43,006 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 21:27:43,011 - DEBUG - VRF ids for VN ctest-vn-18220583: {} 2025-02-03 21:27:43,070 - DEBUG - Services list from nova: [, , ] 2025-02-03 21:27:44,109 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2683-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2683-1) 2025-02-03 21:27:45,391 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2683-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2683-1) 2025-02-03 21:27:45,392 - INFO - Waiting for VM ctest-TestBasicPolicy-48201126-04747750 to be up.. 2025-02-03 21:27:45,474 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-03 21:27:50,555 - DEBUG - VM is in ACTIVE state now 2025-02-03 21:27:50,555 - INFO - VM name : ctest-TestBasicPolicy-48201126-04747750 2025-02-03 21:27:50,630 - DEBUG - VM ctest-TestBasicPolicy-48201126-04747750 ID is 26fcbf8e-1aac-4965-9ddd-061ff612dde4 2025-02-03 21:27:50,648 - DEBUG - VM ctest-TestBasicPolicy-48201126-04747750 launched on Node cn-jenkins-deploy-platform-ansible-os-2683-1 2025-02-03 21:27:50,727 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/26fcbf8e-1aac-4965-9ddd-061ff612dde4 2025-02-03 21:27:50,736 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/d0e632df-df5f-42eb-8eac-1f1c8c927184 2025-02-03 21:27:54,006 - 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-03 21:27:54,006 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48201126-04747750 failed! 2025-02-03 21:27:54,062 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48201126:ctest-vn-38814137 is 201.252.81.193 and allocation pool is NOT set 2025-02-03 21:27:56,122 - 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=4.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.355 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.355/2.430/4.505/2.075 ms') 2025-02-03 21:27:56,122 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48201126-04747750 passed 2025-02-03 21:27:56,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 21:27:56,270 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48201126-04747750, IP 201.252.81.195, Port 22 2025-02-03 21:27:56,430 - DEBUG - VM ctest-TestBasicPolicy-48201126-04747750 is ready for SSH connections 2025-02-03 21:27:56,430 - INFO - Waiting for VM ctest-TestBasicPolicy-48201126-91438576 to be up.. 2025-02-03 21:27:56,535 - DEBUG - VM is in ACTIVE state now 2025-02-03 21:27:56,535 - INFO - VM name : ctest-TestBasicPolicy-48201126-91438576 2025-02-03 21:27:56,621 - DEBUG - VM ctest-TestBasicPolicy-48201126-91438576 ID is b15c6edf-9694-4eec-83ed-336b62f8ec21 2025-02-03 21:27:56,621 - DEBUG - VM ctest-TestBasicPolicy-48201126-91438576 launched on Node cn-jenkins-deploy-platform-ansible-os-2683-1 2025-02-03 21:27:56,704 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/b15c6edf-9694-4eec-83ed-336b62f8ec21 2025-02-03 21:27:56,715 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/4214cb85-8df3-4fc1-9bb4-2da5d1411138 2025-02-03 21:27:57,968 - 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.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.604 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.604/1.927/3.251/1.323 ms') 2025-02-03 21:27:57,969 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-48201126-91438576 passed 2025-02-03 21:27:58,130 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 21:27:58,130 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48201126-91438576, IP 122.126.182.131, Port 22 2025-02-03 21:27:58,296 - DEBUG - VM ctest-TestBasicPolicy-48201126-91438576 is ready for SSH connections 2025-02-03 21:27:58,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 21:27:58,297 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 122.126.182.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2025-02-03 21:27:58,297 - DEBUG - ping -s 56 -c 3 -W 1 122.126.182.131 2025-02-03 21:28:02,323 - DEBUG - PING 122.126.182.131 (122.126.182.131): 56 data bytes 64 bytes from 122.126.182.131: seq=0 ttl=63 time=3.358 ms 64 bytes from 122.126.182.131: seq=1 ttl=63 time=1.390 ms 64 bytes from 122.126.182.131: seq=2 ttl=63 time=0.767 ms --- 122.126.182.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.767/1.838/3.358 ms 2025-02-03 21:28:02,324 - INFO - Ping to IP 122.126.182.131 from VM ctest-TestBasicPolicy-48201126-04747750 passed 2025-02-03 21:28:02,506 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a8ec0026-3511-48f1-8266-e94db9f01f82", "href": "http://10.0.0.54:8082/network-policy/a8ec0026-3511-48f1-8266-e94db9f01f82"}} 2025-02-03 21:28:02,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 21:28:02,506 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 122.126.182.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2025-02-03 21:28:02,506 - DEBUG - ping -s 56 -c 3 -W 1 122.126.182.131 2025-02-03 21:28:05,726 - DEBUG - PING 122.126.182.131 (122.126.182.131): 56 data bytes 64 bytes from 122.126.182.131: seq=0 ttl=63 time=1.869 ms --- 122.126.182.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.869/1.869/1.869 ms 2025-02-03 21:28:05,726 - WARNING - Ping to IP 122.126.182.131 from VM ctest-TestBasicPolicy-48201126-04747750 failed 2025-02-03 21:28:05,727 - INFO - Deleting VM ctest-TestBasicPolicy-48201126-91438576 2025-02-03 21:28:05,817 - INFO - Deleting VM ctest-TestBasicPolicy-48201126-04747750 2025-02-03 21:28:06,193 - INFO - Deleted policy ctest-policy-allow-all-26453171 2025-02-03 21:28:06,193 - INFO - Deleting VN ctest-vn-18220583 2025-02-03 21:28:06,230 - DEBUG - VN ec4a73da-7fb2-4028-ad59-ebb7d55f0e96 still in use: Unable to complete operation on network ec4a73da-7fb2-4028-ad59-ebb7d55f0e96. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-71ac7b74-1dea-4e8b-a9ad-56d809aa2f06'] 2025-02-03 21:28:06,230 - WARNING - Deleting VN ctest-vn-18220583 failed..Will retry 2025-02-03 21:28:08,348 - DEBUG - Response for deleting network () 2025-02-03 21:28:08,348 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/42add5b3-bfbd-4002-a6c4-b8e30455ee5d 2025-02-03 21:28:08,356 - DEBUG - Response Code: 404 2025-02-03 21:28:08,356 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-02-03 21:28:08,365 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3 2025-02-03 21:28:08,419 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e 2025-02-03 21:28:08,492 - INFO - Validated that VN ctest-vn-18220583 is not found in API Server 2025-02-03 21:28:08,503 - DEBUG - VN ctest-vn-18220583 is not present in Agent 10.0.0.54 2025-02-03 21:28:08,503 - INFO - Validated that VN ctest-vn-18220583 is not in any agent 2025-02-03 21:28:08,518 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18220583 info 2025-02-03 21:28:08,519 - INFO - Deleting VN ctest-vn-38814137 2025-02-03 21:28:08,643 - DEBUG - Response for deleting network () 2025-02-03 21:28:08,643 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/43642868-de04-45b8-ae59-1f108202bba9 2025-02-03 21:28:08,650 - DEBUG - Response Code: 404 2025-02-03 21:28:08,650 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-02-03 21:28:08,656 - DEBUG - Requesting: http://10.0.0.54:8082/domain/98da5389-eea1-4714-8957-841f991065c3 2025-02-03 21:28:08,715 - DEBUG - Requesting: http://10.0.0.54:8082/project/22eb6cae-548e-4297-874b-8d429a60418e 2025-02-03 21:28:08,795 - INFO - Validated that VN ctest-vn-38814137 is not found in API Server 2025-02-03 21:28:08,807 - DEBUG - VN ctest-vn-38814137 is not present in Agent 10.0.0.54 2025-02-03 21:28:08,807 - INFO - Validated that VN ctest-vn-38814137 is not in any agent 2025-02-03 21:28:08,823 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38814137 info 2025-02-03 21:28:09,088 - DEBUG - No XMPP flaps were noticed during the test
2025-02-03 21:28:09,088 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-02-03 21:28:09,088 - INFO - -------------------------------------------------------------------------------- 2025-02-03 21:28:09,770 - INFO - Deleted project: ctest-TestBasicPolicy-48201126, ID : 22eb6cae-548e-4297-874b-8d429a60418e