2025-02-20 02:15:48,690 - INFO - Domain Default found not creating 2025-02-20 02:15:48,847 - INFO - Project ctest-TestBasicPolicy-44703487 not found, creating it 2025-02-20 02:15:49,326 - INFO - Created Project:ctest-TestBasicPolicy-44703487, ID : 1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde 2025-02-20 02:15:50,924 - INFO - ================================================================================ 2025-02-20 02:15:50,924 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-20 02:15:50,924 - 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-20 02:15:51,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.0.0.47': '0'}} with 2025-02-20 02:15:51,180 - INFO - Initial checks done. Running the testcase now 2025-02-20 02:15:51,180 - INFO - 2025-02-20 02:15:51,777 - DEBUG - Response for create_network : {'network': {'id': '57f6c62d-fe32-4a97-aefc-19c68ad0b7cd', 'name': 'ctest-vn-20847064', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-20847064'], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:15:51,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '262ffdee-f4ce-4179-8aec-09dd27745d55', 'name': '', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'network_id': '57f6c62d-fe32-4a97-aefc-19c68ad0b7cd', 'ip_version': 4, 'cidr': '30.184.117.0/26', 'allocation_pools': [{'start': '30.184.117.2', 'end': '30.184.117.62'}], 'gateway_ip': '30.184.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.184.117.2', 'tags': [], 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde'}} 2025-02-20 02:15:51,990 - INFO - Created VN ctest-vn-20847064 2025-02-20 02:15:52,042 - DEBUG - VN ctest-vn-20847064 UUID is 57f6c62d-fe32-4a97-aefc-19c68ad0b7cd 2025-02-20 02:15:52,344 - DEBUG - Response for create_network : {'network': {'id': 'ba6f2313-d925-4524-ada6-e987af9fde63', 'name': 'ctest-vn-42991682', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-42991682'], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:15:52,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '43edc6ac-499e-47a5-b14a-02022806225b', 'name': '', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'network_id': 'ba6f2313-d925-4524-ada6-e987af9fde63', 'ip_version': 4, 'cidr': '22.119.62.128/26', 'allocation_pools': [{'start': '22.119.62.130', 'end': '22.119.62.190'}], 'gateway_ip': '22.119.62.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.119.62.130', 'tags': [], 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde'}} 2025-02-20 02:15:52,520 - INFO - Created VN ctest-vn-42991682 2025-02-20 02:15:52,574 - DEBUG - VN ctest-vn-42991682 UUID is ba6f2313-d925-4524-ada6-e987af9fde63 2025-02-20 02:15:52,693 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064, 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-44703487:ctest-vn-42991682, 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-20 02:15:53,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57f6c62d-fe32-4a97-aefc-19c68ad0b7cd', 'name': 'ctest-vn-20847064', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['262ffdee-f4ce-4179-8aec-09dd27745d55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-20847064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143']], 'subnet_ipam': [{'subnet_cidr': '30.184.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:15:53,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba6f2313-d925-4524-ada6-e987af9fde63', 'name': 'ctest-vn-42991682', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43edc6ac-499e-47a5-b14a-02022806225b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-42991682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143']], 'subnet_ipam': [{'subnet_cidr': '22.119.62.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-20 02:15:53,430 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2025-02-20 02:15:53,762 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2025-02-20 02:15:53,793 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b 2025-02-20 02:15:53,809 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde 2025-02-20 02:15:53,886 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd 2025-02-20 02:15:53,901 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd 2025-02-20 02:15:53,913 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659 2025-02-20 02:15:53,923 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659 2025-02-20 02:15:53,931 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/68433605-710f-4aa0-9812-cab5190329a4 2025-02-20 02:15:53,940 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-20 02:15:53,940 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd 2025-02-20 02:15:53,952 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659 2025-02-20 02:15:53,968 - INFO - Verified VN network id 9 for VN 57f6c62d-fe32-4a97-aefc-19c68ad0b7cd 2025-02-20 02:15:53,969 - INFO - Verifications in API Server for VN ctest-vn-20847064 passed 2025-02-20 02:15:53,969 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd 2025-02-20 02:15:53,980 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659 2025-02-20 02:15:53,988 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659 2025-02-20 02:15:53,998 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/68433605-710f-4aa0-9812-cab5190329a4 2025-02-20 02:15:54,013 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44703487', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6338471426411088535', 'uuid-lslong': '12608981397253699533'}, 'enable': 'true', 'created': '2025-02-20T02:15:51', 'last-modified': '2025-02-20T02:15:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037757'} 2025-02-20 02:15:54,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-20 02:15:54,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20847064 passed 2025-02-20 02:15:54,021 - DEBUG - ====Verifying policy data for ctest-vn-20847064 in API_Server ====== 2025-02-20 02:15:54,021 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2025-02-20 02:15:54,028 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b 2025-02-20 02:15:54,044 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde 2025-02-20 02:15:54,122 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd 2025-02-20 02:15:54,133 - DEBUG - ==>Verifying data for policy with id: 46a5dbe0-ddfe-4c98-9e1c-49ab0272b56b, fqn: ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143'] 2025-02-20 02:15:54,133 - INFO - VN ctest-vn-20847064 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-20 02:15:54,133 - DEBUG - Verifying the vn in opserver 2025-02-20 02:15:54,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064 virtual network link through opserver 10.0.0.47 2025-02-20 02:15:54,134 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2025-02-20 02:15:54,465 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2025-02-20 02:15:54,523 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064?flat'} 2025-02-20 02:15:54,523 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064 is found in opserver 2025-02-20 02:15:54,535 - DEBUG - Do not have enough data to verify VN in agent 2025-02-20 02:15:54,540 - DEBUG - VRF ids for VN ctest-vn-20847064: {} 2025-02-20 02:15:54,541 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2025-02-20 02:15:54,547 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b 2025-02-20 02:15:54,562 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde 2025-02-20 02:15:54,638 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63 2025-02-20 02:15:54,652 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63 2025-02-20 02:15:54,663 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e 2025-02-20 02:15:54,672 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e 2025-02-20 02:15:54,679 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3e8dc977-1647-4bef-a97d-426ead32a5c3 2025-02-20 02:15:54,686 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-20 02:15:54,686 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63 2025-02-20 02:15:54,697 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e 2025-02-20 02:15:54,712 - INFO - Verified VN network id 10 for VN ba6f2313-d925-4524-ada6-e987af9fde63 2025-02-20 02:15:54,712 - INFO - Verifications in API Server for VN ctest-vn-42991682 passed 2025-02-20 02:15:54,712 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63 2025-02-20 02:15:54,722 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e 2025-02-20 02:15:54,730 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e 2025-02-20 02:15:54,738 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3e8dc977-1647-4bef-a97d-426ead32a5c3 2025-02-20 02:15:54,750 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44703487', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13433994781623928100', 'uuid-lslong': '12512945383671848547'}, 'enable': 'true', 'created': '2025-02-20T02:15:52', 'last-modified': '2025-02-20T02:15:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.524911'} 2025-02-20 02:15:54,757 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-20 02:15:54,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42991682 passed 2025-02-20 02:15:54,757 - DEBUG - ====Verifying policy data for ctest-vn-42991682 in API_Server ====== 2025-02-20 02:15:54,757 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2025-02-20 02:15:54,763 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b 2025-02-20 02:15:54,775 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde 2025-02-20 02:15:54,856 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63 2025-02-20 02:15:54,869 - DEBUG - ==>Verifying data for policy with id: 46a5dbe0-ddfe-4c98-9e1c-49ab0272b56b, fqn: ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143'] 2025-02-20 02:15:54,870 - INFO - VN ctest-vn-42991682 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-20 02:15:54,870 - DEBUG - Verifying the vn in opserver 2025-02-20 02:15:54,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682 virtual network link through opserver 10.0.0.47 2025-02-20 02:15:54,870 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2025-02-20 02:15:54,881 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682?flat'} 2025-02-20 02:15:54,881 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682 is found in opserver 2025-02-20 02:15:54,893 - DEBUG - Do not have enough data to verify VN in agent 2025-02-20 02:15:54,898 - DEBUG - VRF ids for VN ctest-vn-42991682: {} 2025-02-20 02:15:54,962 - DEBUG - Services list from nova: [, , ] 2025-02-20 02:15:56,071 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2749-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2749-1) 2025-02-20 02:15:57,443 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2749-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2749-1) 2025-02-20 02:15:57,443 - INFO - Waiting for VM ctest-TestBasicPolicy-44703487-69785664 to be up.. 2025-02-20 02:15:57,538 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-20 02:16:02,751 - DEBUG - VM is in ACTIVE state now 2025-02-20 02:16:02,752 - INFO - VM name : ctest-TestBasicPolicy-44703487-69785664 2025-02-20 02:16:02,920 - DEBUG - VM ctest-TestBasicPolicy-44703487-69785664 ID is 0f557718-be86-4098-b248-ae601d3d2a88 2025-02-20 02:16:02,965 - DEBUG - VM ctest-TestBasicPolicy-44703487-69785664 launched on Node cn-jenkins-deploy-platform-ansible-os-2749-1. 2025-02-20 02:16:03,228 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/0f557718-be86-4098-b248-ae601d3d2a88 2025-02-20 02:16:03,251 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/72f7e685-3cdd-48e2-a6cd-5d7073f70cd5 2025-02-20 02:16:06,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 1027ms') 2025-02-20 02:16:06,580 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44703487-69785664 failed! 2025-02-20 02:16:06,638 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064 is 30.184.117.1 and allocation pool is NOT set 2025-02-20 02:16:08,695 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.975 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.975/2.342/3.710/1.367 ms') 2025-02-20 02:16:08,695 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44703487-69785664 passed 2025-02-20 02:16:08,850 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:16:08,850 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44703487-69785664, IP 30.184.117.3, Port 22 2025-02-20 02:16:09,017 - DEBUG - VM ctest-TestBasicPolicy-44703487-69785664 is ready for SSH connections 2025-02-20 02:16:09,017 - INFO - Waiting for VM ctest-TestBasicPolicy-44703487-19076001 to be up.. 2025-02-20 02:16:09,104 - DEBUG - VM is in ACTIVE state now 2025-02-20 02:16:09,105 - INFO - VM name : ctest-TestBasicPolicy-44703487-19076001 2025-02-20 02:16:09,188 - DEBUG - VM ctest-TestBasicPolicy-44703487-19076001 ID is ede3c2ad-5005-4903-b377-c4894431bf69 2025-02-20 02:16:09,188 - DEBUG - VM ctest-TestBasicPolicy-44703487-19076001 launched on Node cn-jenkins-deploy-platform-ansible-os-2749-1. 2025-02-20 02:16:09,273 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/ede3c2ad-5005-4903-b377-c4894431bf69 2025-02-20 02:16:09,284 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/66fce907-7a1b-4db1-9a2a-e5d84b66e995 2025-02-20 02:16:10,548 - 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=5.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.17 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.167/3.525/5.883/2.358 ms') 2025-02-20 02:16:10,548 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-44703487-19076001 passed 2025-02-20 02:16:10,706 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:16:10,706 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44703487-19076001, IP 22.119.62.131, Port 22 2025-02-20 02:16:10,872 - DEBUG - VM ctest-TestBasicPolicy-44703487-19076001 is ready for SSH connections 2025-02-20 02:16:10,872 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:16:10,872 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.119.62.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2025-02-20 02:16:10,873 - DEBUG - ping -s 56 -c 3 -W 1 22.119.62.131 2025-02-20 02:16:15,006 - DEBUG - PING 22.119.62.131 (22.119.62.131): 56 data bytes 64 bytes from 22.119.62.131: seq=0 ttl=63 time=4.005 ms 64 bytes from 22.119.62.131: seq=1 ttl=63 time=1.004 ms 64 bytes from 22.119.62.131: seq=2 ttl=63 time=1.049 ms --- 22.119.62.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.004/2.019/4.005 ms 2025-02-20 02:16:15,006 - INFO - Ping to IP 22.119.62.131 from VM ctest-TestBasicPolicy-44703487-69785664 passed 2025-02-20 02:16:15,206 - DEBUG - Policy Update Response {"network-policy": {"uuid": "46a5dbe0-ddfe-4c98-9e1c-49ab0272b56b", "href": "http://10.0.0.47:8082/network-policy/46a5dbe0-ddfe-4c98-9e1c-49ab0272b56b"}} 2025-02-20 02:16:15,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-20 02:16:15,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.119.62.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2025-02-20 02:16:15,206 - DEBUG - ping -s 56 -c 3 -W 1 22.119.62.131 2025-02-20 02:16:18,434 - DEBUG - PING 22.119.62.131 (22.119.62.131): 56 data bytes 64 bytes from 22.119.62.131: seq=0 ttl=63 time=1.807 ms --- 22.119.62.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.807/1.807/1.807 ms 2025-02-20 02:16:18,434 - WARNING - Ping to IP 22.119.62.131 from VM ctest-TestBasicPolicy-44703487-69785664 failed 2025-02-20 02:16:18,434 - INFO - Deleting VM ctest-TestBasicPolicy-44703487-19076001 2025-02-20 02:16:18,513 - INFO - Deleting VM ctest-TestBasicPolicy-44703487-69785664 2025-02-20 02:16:18,940 - INFO - Deleted policy ctest-policy-allow-all-72717143 2025-02-20 02:16:18,940 - INFO - Deleting VN ctest-vn-42991682 2025-02-20 02:16:18,981 - DEBUG - VN ba6f2313-d925-4524-ada6-e987af9fde63 still in use: Unable to complete operation on network ba6f2313-d925-4524-ada6-e987af9fde63. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-16b4b49a-5e1f-40bf-84c3-058bca35d08a'] 2025-02-20 02:16:18,981 - WARNING - Deleting VN ctest-vn-42991682 failed..Will retry 2025-02-20 02:16:21,114 - DEBUG - Response for deleting network () 2025-02-20 02:16:21,114 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e 2025-02-20 02:16:21,122 - DEBUG - Response Code: 404 2025-02-20 02:16:21,122 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2025-02-20 02:16:21,128 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b 2025-02-20 02:16:21,186 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde 2025-02-20 02:16:21,263 - INFO - Validated that VN ctest-vn-42991682 is not found in API Server 2025-02-20 02:16:21,275 - DEBUG - VN ctest-vn-42991682 is not present in Agent 10.0.0.47 2025-02-20 02:16:21,275 - INFO - Validated that VN ctest-vn-42991682 is not in any agent 2025-02-20 02:16:21,295 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42991682 info 2025-02-20 02:16:21,295 - INFO - Deleting VN ctest-vn-20847064 2025-02-20 02:16:21,422 - DEBUG - Response for deleting network () 2025-02-20 02:16:21,422 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659 2025-02-20 02:16:21,428 - DEBUG - Response Code: 404 2025-02-20 02:16:21,428 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2025-02-20 02:16:21,438 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b 2025-02-20 02:16:21,500 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde 2025-02-20 02:16:21,579 - INFO - Validated that VN ctest-vn-20847064 is not found in API Server 2025-02-20 02:16:21,594 - DEBUG - VN ctest-vn-20847064 is not present in Agent 10.0.0.47 2025-02-20 02:16:21,594 - INFO - Validated that VN ctest-vn-20847064 is not in any agent 2025-02-20 02:16:21,611 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20847064 info 2025-02-20 02:16:21,869 - DEBUG - No XMPP flaps were noticed during the test
2025-02-20 02:16:21,869 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-02-20 02:16:21,870 - INFO - -------------------------------------------------------------------------------- 2025-02-20 02:16:22,634 - INFO - Deleted project: ctest-TestBasicPolicy-44703487, ID : 1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde