2024-09-04 14:02:41,936 - INFO - Domain Default found not creating 2024-09-04 14:02:42,101 - INFO - Project ctest-TestBasicPolicy-03243151 not found, creating it 2024-09-04 14:02:42,563 - INFO - Created Project:ctest-TestBasicPolicy-03243151, ID : 678c035d-9026-4a47-b77e-88d7ee4a3d88 2024-09-04 14:02:44,045 - INFO - ================================================================================ 2024-09-04 14:02:44,045 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-04 14:02:44,045 - 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 2024-09-04 14:02:44,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.11': '0'}} with 2024-09-04 14:02:44,301 - INFO - Initial checks done. Running the testcase now 2024-09-04 14:02:44,302 - INFO - 2024-09-04 14:02:44,847 - DEBUG - Response for create_network : {'network': {'id': '2f67cda8-2765-4ca9-8a12-e1d3b73e0a95', 'name': 'ctest-vn-20026867', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-20026867'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:02:45,014 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de6cea15-b93b-40dd-9de4-3d0e18cf331d', 'name': '', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'network_id': '2f67cda8-2765-4ca9-8a12-e1d3b73e0a95', 'ip_version': 4, 'cidr': '99.112.136.192/26', 'allocation_pools': [{'start': '99.112.136.194', 'end': '99.112.136.254'}], 'gateway_ip': '99.112.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.112.136.194', 'tags': [], 'project_id': '678c035d90264a47b77e88d7ee4a3d88'}} 2024-09-04 14:02:45,034 - INFO - Created VN ctest-vn-20026867 2024-09-04 14:02:45,088 - DEBUG - VN ctest-vn-20026867 UUID is 2f67cda8-2765-4ca9-8a12-e1d3b73e0a95 2024-09-04 14:02:45,366 - DEBUG - Response for create_network : {'network': {'id': '34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc', 'name': 'ctest-vn-23150195', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-23150195'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:02:45,564 - DEBUG - Response for create_subnet : {'subnet': {'id': '017289bd-be58-4146-9e4b-c0f4867528ee', 'name': '', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'network_id': '34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc', 'ip_version': 4, 'cidr': '153.230.72.192/26', 'allocation_pools': [{'start': '153.230.72.194', 'end': '153.230.72.254'}], 'gateway_ip': '153.230.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.230.72.194', 'tags': [], 'project_id': '678c035d90264a47b77e88d7ee4a3d88'}} 2024-09-04 14:02:45,584 - INFO - Created VN ctest-vn-23150195 2024-09-04 14:02:45,635 - DEBUG - VN ctest-vn-23150195 UUID is 34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc 2024-09-04 14:02:45,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867, 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-03243151:ctest-vn-23150195, 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] 2024-09-04 14:02:46,046 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f67cda8-2765-4ca9-8a12-e1d3b73e0a95', 'name': 'ctest-vn-20026867', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de6cea15-b93b-40dd-9de4-3d0e18cf331d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-20026867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233']], 'subnet_ipam': [{'subnet_cidr': '99.112.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:02:46,273 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc', 'name': 'ctest-vn-23150195', 'tenant_id': '678c035d90264a47b77e88d7ee4a3d88', 'project_id': '678c035d90264a47b77e88d7ee4a3d88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['017289bd-be58-4146-9e4b-c0f4867528ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-vn-23150195'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233']], 'subnet_ipam': [{'subnet_cidr': '153.230.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:02:46,415 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-04 14:02:46,716 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-04 14:02:46,747 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b 2024-09-04 14:02:46,760 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88 2024-09-04 14:02:46,833 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95 2024-09-04 14:02:46,843 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95 2024-09-04 14:02:46,851 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936 2024-09-04 14:02:46,858 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936 2024-09-04 14:02:46,865 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/59f8eb37-fa18-4fb4-a414-a192a68af1fc 2024-09-04 14:02:46,871 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 14:02:46,871 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95 2024-09-04 14:02:46,879 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936 2024-09-04 14:02:46,893 - INFO - Verified VN network id 9 for VN 2f67cda8-2765-4ca9-8a12-e1d3b73e0a95 2024-09-04 14:02:46,893 - INFO - Verifications in API Server for VN ctest-vn-20026867 passed 2024-09-04 14:02:46,893 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95 2024-09-04 14:02:46,901 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936 2024-09-04 14:02:46,908 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936 2024-09-04 14:02:46,915 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/59f8eb37-fa18-4fb4-a414-a192a68af1fc 2024-09-04 14:02:46,927 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03243151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3415924964482960553', 'uuid-lslong': '9949262826243492501'}, 'enable': 'true', 'created': '2024-09-04T14:02:44', 'last-modified': '2024-09-04T14:02:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.901542'} 2024-09-04 14:02:46,934 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 14:02:46,934 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20026867 passed 2024-09-04 14:02:46,934 - DEBUG - ====Verifying policy data for ctest-vn-20026867 in API_Server ====== 2024-09-04 14:02:46,934 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-04 14:02:46,941 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b 2024-09-04 14:02:46,954 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88 2024-09-04 14:02:47,023 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2f67cda8-2765-4ca9-8a12-e1d3b73e0a95 2024-09-04 14:02:47,031 - DEBUG - ==>Verifying data for policy with id: 3821f5ad-0409-4c3a-bd45-f91a6b0aaef0, fqn: ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233'] 2024-09-04 14:02:47,031 - INFO - VN ctest-vn-20026867 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 14:02:47,031 - DEBUG - Verifying the vn in opserver 2024-09-04 14:02:47,031 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867 virtual network link through opserver 10.0.0.31 2024-09-04 14:02:47,031 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-04 14:02:47,322 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-04 14:02:47,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867?flat'} 2024-09-04 14:02:47,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867 is found in opserver 2024-09-04 14:02:47,396 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 14:02:47,401 - DEBUG - VRF ids for VN ctest-vn-20026867: {} 2024-09-04 14:02:47,401 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-04 14:02:47,408 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b 2024-09-04 14:02:47,422 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88 2024-09-04 14:02:47,494 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc 2024-09-04 14:02:47,508 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc 2024-09-04 14:02:47,518 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751 2024-09-04 14:02:47,528 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751 2024-09-04 14:02:47,536 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/8027ada5-1c52-4dcd-96da-407d39ba5896 2024-09-04 14:02:47,543 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 14:02:47,543 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc 2024-09-04 14:02:47,551 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751 2024-09-04 14:02:47,563 - INFO - Verified VN network id 10 for VN 34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc 2024-09-04 14:02:47,564 - INFO - Verifications in API Server for VN ctest-vn-23150195 passed 2024-09-04 14:02:47,564 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc 2024-09-04 14:02:47,572 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751 2024-09-04 14:02:47,579 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751 2024-09-04 14:02:47,586 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/8027ada5-1c52-4dcd-96da-407d39ba5896 2024-09-04 14:02:47,600 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03243151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3806002131687918608', 'uuid-lslong': '13824655763666357948'}, 'enable': 'true', 'created': '2024-09-04T14:02:45', 'last-modified': '2024-09-04T14:02:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.347029'} 2024-09-04 14:02:47,606 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 14:02:47,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23150195 passed 2024-09-04 14:02:47,606 - DEBUG - ====Verifying policy data for ctest-vn-23150195 in API_Server ====== 2024-09-04 14:02:47,606 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-04 14:02:47,612 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b 2024-09-04 14:02:47,624 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88 2024-09-04 14:02:47,694 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc 2024-09-04 14:02:47,703 - DEBUG - ==>Verifying data for policy with id: 3821f5ad-0409-4c3a-bd45-f91a6b0aaef0, fqn: ['default-domain', 'ctest-TestBasicPolicy-03243151', 'ctest-policy-allow-all-35574233'] 2024-09-04 14:02:47,703 - INFO - VN ctest-vn-23150195 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 14:02:47,703 - DEBUG - Verifying the vn in opserver 2024-09-04 14:02:47,703 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195 virtual network link through opserver 10.0.0.31 2024-09-04 14:02:47,703 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-04 14:02:47,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195?flat'} 2024-09-04 14:02:47,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-23150195 is found in opserver 2024-09-04 14:02:47,726 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 14:02:47,731 - DEBUG - VRF ids for VN ctest-vn-23150195: {} 2024-09-04 14:02:47,788 - DEBUG - Services list from nova: [, , ] 2024-09-04 14:02:48,816 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1842-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1842-1) 2024-09-04 14:02:50,015 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1842-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1842-1) 2024-09-04 14:02:50,015 - INFO - Waiting for VM ctest-TestBasicPolicy-03243151-33890530 to be up.. 2024-09-04 14:02:50,101 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 14:02:55,177 - DEBUG - VM is in ACTIVE state now 2024-09-04 14:02:55,177 - INFO - VM name : ctest-TestBasicPolicy-03243151-33890530 2024-09-04 14:02:55,258 - DEBUG - VM ctest-TestBasicPolicy-03243151-33890530 ID is e2f09170-92a0-4a71-a7e7-551f80299e0a 2024-09-04 14:02:55,280 - DEBUG - VM ctest-TestBasicPolicy-03243151-33890530 launched on Node cn-jenkins-deploy-platform-ansible-os-1842-1 2024-09-04 14:02:55,358 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/e2f09170-92a0-4a71-a7e7-551f80299e0a 2024-09-04 14:02:55,367 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/d06f7c51-1af3-4ac7-9c84-79856509b10e 2024-09-04 14:02:58,620 - 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 1007ms') 2024-09-04 14:02:58,621 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03243151-33890530 failed! 2024-09-04 14:02:58,683 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03243151:ctest-vn-20026867 is 99.112.136.193 and allocation pool is NOT set 2024-09-04 14:03:00,746 - 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.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.743 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.743/2.585/4.428/1.842 ms') 2024-09-04 14:03:00,746 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03243151-33890530 passed 2024-09-04 14:03:00,895 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:03:00,896 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03243151-33890530, IP 99.112.136.195, Port 22 2024-09-04 14:03:01,051 - DEBUG - VM ctest-TestBasicPolicy-03243151-33890530 is ready for SSH connections 2024-09-04 14:03:01,051 - INFO - Waiting for VM ctest-TestBasicPolicy-03243151-65494132 to be up.. 2024-09-04 14:03:01,135 - DEBUG - VM is in ACTIVE state now 2024-09-04 14:03:01,135 - INFO - VM name : ctest-TestBasicPolicy-03243151-65494132 2024-09-04 14:03:01,212 - DEBUG - VM ctest-TestBasicPolicy-03243151-65494132 ID is 9c7ce17d-1d56-4f63-a789-67a439424a24 2024-09-04 14:03:01,213 - DEBUG - VM ctest-TestBasicPolicy-03243151-65494132 launched on Node cn-jenkins-deploy-platform-ansible-os-1842-1 2024-09-04 14:03:01,290 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/9c7ce17d-1d56-4f63-a789-67a439424a24 2024-09-04 14:03:01,299 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/4e2d89f7-f52f-4927-8c21-33c836e6316c 2024-09-04 14:03:02,536 - 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=2.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.488 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.488/1.580/2.672/1.092 ms') 2024-09-04 14:03:02,536 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03243151-65494132 passed 2024-09-04 14:03:02,683 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:03:02,684 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03243151-65494132, IP 153.230.72.195, Port 22 2024-09-04 14:03:02,835 - DEBUG - VM ctest-TestBasicPolicy-03243151-65494132 is ready for SSH connections 2024-09-04 14:03:02,835 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:03:02,835 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.230.72.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-04 14:03:02,835 - DEBUG - ping -s 56 -c 3 -W 1 153.230.72.195 2024-09-04 14:03:06,529 - DEBUG - PING 153.230.72.195 (153.230.72.195): 56 data bytes 64 bytes from 153.230.72.195: seq=0 ttl=63 time=3.323 ms 64 bytes from 153.230.72.195: seq=1 ttl=63 time=0.856 ms 64 bytes from 153.230.72.195: seq=2 ttl=63 time=0.800 ms --- 153.230.72.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.800/1.659/3.323 ms 2024-09-04 14:03:06,529 - INFO - Ping to IP 153.230.72.195 from VM ctest-TestBasicPolicy-03243151-33890530 passed 2024-09-04 14:03:06,703 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3821f5ad-0409-4c3a-bd45-f91a6b0aaef0", "href": "http://10.0.0.31:8082/network-policy/3821f5ad-0409-4c3a-bd45-f91a6b0aaef0"}} 2024-09-04 14:03:06,703 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:03:06,703 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.230.72.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-04 14:03:06,703 - DEBUG - ping -s 56 -c 3 -W 1 153.230.72.195 2024-09-04 14:03:09,922 - DEBUG - PING 153.230.72.195 (153.230.72.195): 56 data bytes --- 153.230.72.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-04 14:03:09,922 - WARNING - Ping to IP 153.230.72.195 from VM ctest-TestBasicPolicy-03243151-33890530 failed 2024-09-04 14:03:09,922 - INFO - Deleting VM ctest-TestBasicPolicy-03243151-65494132 2024-09-04 14:03:10,016 - INFO - Deleting VM ctest-TestBasicPolicy-03243151-33890530 2024-09-04 14:03:10,386 - INFO - Deleted policy ctest-policy-allow-all-35574233 2024-09-04 14:03:10,386 - INFO - Deleting VN ctest-vn-23150195 2024-09-04 14:03:10,425 - DEBUG - VN 34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc still in use: Unable to complete operation on network 34d1a2c6-11a3-4c10-bfdb-0b2bbf63cebc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-28d3b93b-c429-4412-ab2b-0ebe38068133'] 2024-09-04 14:03:10,425 - WARNING - Deleting VN ctest-vn-23150195 failed..Will retry 2024-09-04 14:03:12,537 - DEBUG - Response for deleting network () 2024-09-04 14:03:12,537 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/69be08d9-fa83-439f-89d1-bc28cd9a7751 2024-09-04 14:03:12,543 - DEBUG - Response Code: 404 2024-09-04 14:03:12,543 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-04 14:03:12,550 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b 2024-09-04 14:03:12,614 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88 2024-09-04 14:03:12,687 - INFO - Validated that VN ctest-vn-23150195 is not found in API Server 2024-09-04 14:03:12,697 - DEBUG - VN ctest-vn-23150195 is not present in Agent 10.0.0.31 2024-09-04 14:03:12,698 - INFO - Validated that VN ctest-vn-23150195 is not in any agent 2024-09-04 14:03:12,713 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23150195 info 2024-09-04 14:03:12,713 - INFO - Deleting VN ctest-vn-20026867 2024-09-04 14:03:12,819 - DEBUG - Response for deleting network () 2024-09-04 14:03:12,819 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b96c2c72-95d8-49da-8b8d-d9d7d4696936 2024-09-04 14:03:12,824 - DEBUG - Response Code: 404 2024-09-04 14:03:12,824 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-04 14:03:12,833 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0323b267-cd5d-42d2-8e76-7760f614ac7b 2024-09-04 14:03:12,888 - DEBUG - Requesting: http://10.0.0.31:8082/project/678c035d-9026-4a47-b77e-88d7ee4a3d88 2024-09-04 14:03:12,959 - INFO - Validated that VN ctest-vn-20026867 is not found in API Server 2024-09-04 14:03:12,970 - DEBUG - VN ctest-vn-20026867 is not present in Agent 10.0.0.31 2024-09-04 14:03:12,970 - INFO - Validated that VN ctest-vn-20026867 is not in any agent 2024-09-04 14:03:12,986 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20026867 info 2024-09-04 14:03:13,236 - DEBUG - No XMPP flaps were noticed during the test 2024-09-04 14:03:13,236 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-09-04 14:03:13,237 - INFO - -------------------------------------------------------------------------------- 2024-09-04 14:03:13,910 - INFO - Deleted project: ctest-TestBasicPolicy-03243151, ID : 678c035d-9026-4a47-b77e-88d7ee4a3d88