2024-10-18 21:41:46,261 - INFO - Domain Default found not creating 2024-10-18 21:41:46,524 - INFO - Project ctest-TestBasicPolicy-89343958 not found, creating it 2024-10-18 21:41:47,008 - INFO - Created Project:ctest-TestBasicPolicy-89343958, ID : d43d73e6-a89c-4b08-ba4e-a759d904fe21 2024-10-18 21:41:48,490 - INFO - ================================================================================ 2024-10-18 21:41:48,490 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-18 21:41:48,490 - 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-10-18 21:41:48,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.29': '0'}} with 2024-10-18 21:41:48,751 - INFO - Initial checks done. Running the testcase now 2024-10-18 21:41:48,751 - INFO - 2024-10-18 21:41:49,307 - DEBUG - Response for create_network : {'network': {'id': '03b8b6d9-d19d-4377-8a6f-5208aef9eca7', 'name': 'ctest-vn-08067996', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-08067996'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 21:41:49,528 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fed7966f-7c88-4b7f-93fb-7ff215bc6439', 'name': '', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'network_id': '03b8b6d9-d19d-4377-8a6f-5208aef9eca7', 'ip_version': 4, 'cidr': '161.40.181.128/26', 'allocation_pools': [{'start': '161.40.181.130', 'end': '161.40.181.190'}], 'gateway_ip': '161.40.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.40.181.130', 'tags': [], 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21'}} 2024-10-18 21:41:49,551 - INFO - Created VN ctest-vn-08067996 2024-10-18 21:41:49,609 - DEBUG - VN ctest-vn-08067996 UUID is 03b8b6d9-d19d-4377-8a6f-5208aef9eca7 2024-10-18 21:41:49,931 - DEBUG - Response for create_network : {'network': {'id': 'd28988da-115b-4b21-ae86-eb481d988c40', 'name': 'ctest-vn-56508279', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-56508279'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 21:41:50,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '56d6ee6c-941c-4683-bc66-3e461955d3fe', 'name': '', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'network_id': 'd28988da-115b-4b21-ae86-eb481d988c40', 'ip_version': 4, 'cidr': '95.210.254.192/26', 'allocation_pools': [{'start': '95.210.254.194', 'end': '95.210.254.254'}], 'gateway_ip': '95.210.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.210.254.194', 'tags': [], 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21'}} 2024-10-18 21:41:50,178 - INFO - Created VN ctest-vn-56508279 2024-10-18 21:41:50,233 - DEBUG - VN ctest-vn-56508279 UUID is d28988da-115b-4b21-ae86-eb481d988c40 2024-10-18 21:41:50,356 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996, 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-89343958:ctest-vn-56508279, 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-10-18 21:41:50,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03b8b6d9-d19d-4377-8a6f-5208aef9eca7', 'name': 'ctest-vn-08067996', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fed7966f-7c88-4b7f-93fb-7ff215bc6439'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-08067996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446']], 'subnet_ipam': [{'subnet_cidr': '161.40.181.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-18 21:41:50,923 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd28988da-115b-4b21-ae86-eb481d988c40', 'name': 'ctest-vn-56508279', 'tenant_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'project_id': 'd43d73e6a89c4b08ba4ea759d904fe21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56d6ee6c-941c-4683-bc66-3e461955d3fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-vn-56508279'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446']], 'subnet_ipam': [{'subnet_cidr': '95.210.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-18 21:41:51,093 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-18 21:41:51,392 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-18 21:41:51,423 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee 2024-10-18 21:41:51,438 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21 2024-10-18 21:41:51,528 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7 2024-10-18 21:41:51,543 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7 2024-10-18 21:41:51,560 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b 2024-10-18 21:41:51,569 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b 2024-10-18 21:41:51,578 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/992bede7-4d6b-4719-9918-a500ecb9d497 2024-10-18 21:41:51,585 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-18 21:41:51,586 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7 2024-10-18 21:41:51,600 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b 2024-10-18 21:41:51,621 - INFO - Verified VN network id 9 for VN 03b8b6d9-d19d-4377-8a6f-5208aef9eca7 2024-10-18 21:41:51,621 - INFO - Verifications in API Server for VN ctest-vn-08067996 passed 2024-10-18 21:41:51,621 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7 2024-10-18 21:41:51,636 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b 2024-10-18 21:41:51,645 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b 2024-10-18 21:41:51,654 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/992bede7-4d6b-4719-9918-a500ecb9d497 2024-10-18 21:41:51,668 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89343958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '268165224469447543', 'uuid-lslong': '9975281896897768615'}, 'enable': 'true', 'created': '2024-10-18T21:41:49', 'last-modified': '2024-10-18T21:41:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017786'} 2024-10-18 21:41:51,674 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-18 21:41:51,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08067996 passed 2024-10-18 21:41:51,675 - DEBUG - ====Verifying policy data for ctest-vn-08067996 in API_Server ====== 2024-10-18 21:41:51,675 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-18 21:41:51,680 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee 2024-10-18 21:41:51,693 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21 2024-10-18 21:41:51,773 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/03b8b6d9-d19d-4377-8a6f-5208aef9eca7 2024-10-18 21:41:51,789 - DEBUG - ==>Verifying data for policy with id: 5ca2a011-ef95-447e-9cac-5eddf250cbbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446'] 2024-10-18 21:41:51,789 - INFO - VN ctest-vn-08067996 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-18 21:41:51,789 - DEBUG - Verifying the vn in opserver 2024-10-18 21:41:51,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996 virtual network link through opserver 10.0.0.28 2024-10-18 21:41:51,789 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-10-18 21:41:52,082 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-10-18 21:41:52,141 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996?flat'} 2024-10-18 21:41:52,141 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996 is found in opserver 2024-10-18 21:41:52,152 - DEBUG - Do not have enough data to verify VN in agent 2024-10-18 21:41:52,157 - DEBUG - VRF ids for VN ctest-vn-08067996: {} 2024-10-18 21:41:52,157 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-18 21:41:52,163 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee 2024-10-18 21:41:52,177 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21 2024-10-18 21:41:52,261 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40 2024-10-18 21:41:52,279 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40 2024-10-18 21:41:52,292 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb 2024-10-18 21:41:52,301 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb 2024-10-18 21:41:52,309 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/eed7a7ca-0685-43f2-8a74-a2ed79a48ce6 2024-10-18 21:41:52,316 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-18 21:41:52,316 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40 2024-10-18 21:41:52,330 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb 2024-10-18 21:41:52,351 - INFO - Verified VN network id 10 for VN d28988da-115b-4b21-ae86-eb481d988c40 2024-10-18 21:41:52,351 - INFO - Verifications in API Server for VN ctest-vn-56508279 passed 2024-10-18 21:41:52,351 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40 2024-10-18 21:41:52,366 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb 2024-10-18 21:41:52,375 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb 2024-10-18 21:41:52,385 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/eed7a7ca-0685-43f2-8a74-a2ed79a48ce6 2024-10-18 21:41:52,398 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89343958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15170807289949670177', 'uuid-lslong': '12575997704445398080'}, 'enable': 'true', 'created': '2024-10-18T21:41:49', 'last-modified': '2024-10-18T21:41:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506640'} 2024-10-18 21:41:52,405 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-18 21:41:52,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56508279 passed 2024-10-18 21:41:52,405 - DEBUG - ====Verifying policy data for ctest-vn-56508279 in API_Server ====== 2024-10-18 21:41:52,405 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-18 21:41:52,412 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee 2024-10-18 21:41:52,427 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21 2024-10-18 21:41:52,515 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d28988da-115b-4b21-ae86-eb481d988c40 2024-10-18 21:41:52,532 - DEBUG - ==>Verifying data for policy with id: 5ca2a011-ef95-447e-9cac-5eddf250cbbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-89343958', 'ctest-policy-allow-all-81977446'] 2024-10-18 21:41:52,532 - INFO - VN ctest-vn-56508279 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-18 21:41:52,532 - DEBUG - Verifying the vn in opserver 2024-10-18 21:41:52,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279 virtual network link through opserver 10.0.0.28 2024-10-18 21:41:52,532 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-10-18 21:41:52,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279?flat'} 2024-10-18 21:41:52,546 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-56508279 is found in opserver 2024-10-18 21:41:52,558 - DEBUG - Do not have enough data to verify VN in agent 2024-10-18 21:41:52,564 - DEBUG - VRF ids for VN ctest-vn-56508279: {} 2024-10-18 21:41:52,618 - DEBUG - Services list from nova: [, , ] 2024-10-18 21:41:53,634 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2112-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2112-1) 2024-10-18 21:41:54,896 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2112-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2112-1) 2024-10-18 21:41:54,897 - INFO - Waiting for VM ctest-TestBasicPolicy-89343958-93632724 to be up.. 2024-10-18 21:41:54,991 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-18 21:42:00,097 - DEBUG - VM is in ACTIVE state now 2024-10-18 21:42:00,097 - INFO - VM name : ctest-TestBasicPolicy-89343958-93632724 2024-10-18 21:42:00,181 - DEBUG - VM ctest-TestBasicPolicy-89343958-93632724 ID is e1a30009-d2cf-4e91-b7b5-bf6720c60656 2024-10-18 21:42:00,201 - DEBUG - VM ctest-TestBasicPolicy-89343958-93632724 launched on Node cn-jenkins-deploy-platform-ansible-os-2112-1 2024-10-18 21:42:00,287 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e1a30009-d2cf-4e91-b7b5-bf6720c60656 2024-10-18 21:42:00,296 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/1718c8ba-7d74-4817-9b64-17dd47d04886 2024-10-18 21:42:03,580 - 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 1019ms') 2024-10-18 21:42:03,580 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89343958-93632724 failed! 2024-10-18 21:42:03,641 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89343958:ctest-vn-08067996 is 161.40.181.129 and allocation pool is NOT set 2024-10-18 21:42:05,701 - 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=3.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.755 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.755/2.358/3.962/1.603 ms') 2024-10-18 21:42:05,701 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89343958-93632724 passed 2024-10-18 21:42:05,862 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 21:42:05,862 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89343958-93632724, IP 161.40.181.131, Port 22 2024-10-18 21:42:06,018 - DEBUG - VM ctest-TestBasicPolicy-89343958-93632724 is ready for SSH connections 2024-10-18 21:42:06,018 - INFO - Waiting for VM ctest-TestBasicPolicy-89343958-06872662 to be up.. 2024-10-18 21:42:06,113 - DEBUG - VM is in ACTIVE state now 2024-10-18 21:42:06,113 - INFO - VM name : ctest-TestBasicPolicy-89343958-06872662 2024-10-18 21:42:06,202 - DEBUG - VM ctest-TestBasicPolicy-89343958-06872662 ID is 36d1b904-a997-47fa-b5ce-cdd21eda927e 2024-10-18 21:42:06,202 - DEBUG - VM ctest-TestBasicPolicy-89343958-06872662 launched on Node cn-jenkins-deploy-platform-ansible-os-2112-1 2024-10-18 21:42:06,282 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/36d1b904-a997-47fa-b5ce-cdd21eda927e 2024-10-18 21:42:06,295 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/111161aa-70d6-452f-a599-0b99cfeff192 2024-10-18 21:42:07,551 - 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.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.42 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 = 1.416/2.960/4.504/1.544 ms') 2024-10-18 21:42:07,551 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89343958-06872662 passed 2024-10-18 21:42:07,714 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 21:42:07,714 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89343958-06872662, IP 95.210.254.195, Port 22 2024-10-18 21:42:07,872 - DEBUG - VM ctest-TestBasicPolicy-89343958-06872662 is ready for SSH connections 2024-10-18 21:42:07,872 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 21:42:07,873 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.210.254.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-10-18 21:42:07,873 - DEBUG - ping -s 56 -c 3 -W 1 95.210.254.195 2024-10-18 21:42:11,928 - DEBUG - PING 95.210.254.195 (95.210.254.195): 56 data bytes 64 bytes from 95.210.254.195: seq=0 ttl=63 time=4.158 ms 64 bytes from 95.210.254.195: seq=1 ttl=63 time=0.725 ms 64 bytes from 95.210.254.195: seq=2 ttl=63 time=0.832 ms --- 95.210.254.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.725/1.905/4.158 ms 2024-10-18 21:42:11,928 - INFO - Ping to IP 95.210.254.195 from VM ctest-TestBasicPolicy-89343958-93632724 passed 2024-10-18 21:42:12,125 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5ca2a011-ef95-447e-9cac-5eddf250cbbf", "href": "http://10.0.0.28:8082/network-policy/5ca2a011-ef95-447e-9cac-5eddf250cbbf"}} 2024-10-18 21:42:12,125 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 21:42:12,125 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.210.254.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-10-18 21:42:12,125 - DEBUG - ping -s 56 -c 3 -W 1 95.210.254.195 2024-10-18 21:42:15,327 - DEBUG - PING 95.210.254.195 (95.210.254.195): 56 data bytes 64 bytes from 95.210.254.195: seq=0 ttl=63 time=1.413 ms --- 95.210.254.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.413/1.413/1.413 ms 2024-10-18 21:42:15,327 - WARNING - Ping to IP 95.210.254.195 from VM ctest-TestBasicPolicy-89343958-93632724 failed 2024-10-18 21:42:15,327 - INFO - Deleting VM ctest-TestBasicPolicy-89343958-06872662 2024-10-18 21:42:15,395 - INFO - Deleting VM ctest-TestBasicPolicy-89343958-93632724 2024-10-18 21:42:15,805 - INFO - Deleted policy ctest-policy-allow-all-81977446 2024-10-18 21:42:15,805 - INFO - Deleting VN ctest-vn-56508279 2024-10-18 21:42:15,844 - DEBUG - VN d28988da-115b-4b21-ae86-eb481d988c40 still in use: Unable to complete operation on network d28988da-115b-4b21-ae86-eb481d988c40. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-37b4b82a-f2ce-4798-b270-769fa8c42b84'] 2024-10-18 21:42:15,844 - WARNING - Deleting VN ctest-vn-56508279 failed..Will retry 2024-10-18 21:42:17,965 - DEBUG - Response for deleting network () 2024-10-18 21:42:17,967 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/6bcf0ee3-f929-4f66-a6b4-56302927b6fb 2024-10-18 21:42:17,974 - DEBUG - Response Code: 404 2024-10-18 21:42:17,974 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-18 21:42:17,980 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee 2024-10-18 21:42:18,037 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21 2024-10-18 21:42:18,118 - INFO - Validated that VN ctest-vn-56508279 is not found in API Server 2024-10-18 21:42:18,129 - DEBUG - VN ctest-vn-56508279 is not present in Agent 10.0.0.28 2024-10-18 21:42:18,129 - INFO - Validated that VN ctest-vn-56508279 is not in any agent 2024-10-18 21:42:18,146 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56508279 info 2024-10-18 21:42:18,147 - INFO - Deleting VN ctest-vn-08067996 2024-10-18 21:42:18,267 - DEBUG - Response for deleting network () 2024-10-18 21:42:18,268 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e892dbe1-b44a-4fdc-9267-5995c907b89b 2024-10-18 21:42:18,279 - DEBUG - Response Code: 404 2024-10-18 21:42:18,279 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-18 21:42:18,285 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2b4b82e4-58df-4f27-9041-2e8e9608ebee 2024-10-18 21:42:18,345 - DEBUG - Requesting: http://10.0.0.28:8082/project/d43d73e6-a89c-4b08-ba4e-a759d904fe21 2024-10-18 21:42:18,429 - INFO - Validated that VN ctest-vn-08067996 is not found in API Server 2024-10-18 21:42:18,441 - DEBUG - VN ctest-vn-08067996 is not present in Agent 10.0.0.28 2024-10-18 21:42:18,441 - INFO - Validated that VN ctest-vn-08067996 is not in any agent 2024-10-18 21:42:18,458 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08067996 info 2024-10-18 21:42:18,715 - DEBUG - No XMPP flaps were noticed during the test
2024-10-18 21:42:18,715 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-10-18 21:42:18,715 - INFO - -------------------------------------------------------------------------------- 2024-10-18 21:42:19,440 - INFO - Deleted project: ctest-TestBasicPolicy-89343958, ID : d43d73e6-a89c-4b08-ba4e-a759d904fe21