2024-09-04 16:23:24,832 - INFO - Domain Default found not creating 2024-09-04 16:23:24,995 - INFO - Project ctest-TestBasicPolicy-28089018 not found, creating it 2024-09-04 16:23:25,439 - INFO - Created Project:ctest-TestBasicPolicy-28089018, ID : d66066fc-c0d8-4b76-983e-1a2f78d16a7d 2024-09-04 16:23:26,921 - INFO - ================================================================================ 2024-09-04 16:23:26,922 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-04 16:23:26,922 - 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 16:23:27,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.32': '0'}} with 2024-09-04 16:23:27,181 - INFO - Initial checks done. Running the testcase now 2024-09-04 16:23:27,181 - INFO - 2024-09-04 16:23:27,742 - DEBUG - Response for create_network : {'network': {'id': 'a67d4616-1787-4bbf-b79a-37e07000161d', 'name': 'ctest-vn-85268027', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-85268027'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 16:23:27,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b049366-572c-4e2e-9731-7a4a6fc999f3', 'name': '', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'network_id': 'a67d4616-1787-4bbf-b79a-37e07000161d', 'ip_version': 4, 'cidr': '29.127.10.0/26', 'allocation_pools': [{'start': '29.127.10.2', 'end': '29.127.10.62'}], 'gateway_ip': '29.127.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.127.10.2', 'tags': [], 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d'}} 2024-09-04 16:23:27,983 - INFO - Created VN ctest-vn-85268027 2024-09-04 16:23:28,037 - DEBUG - VN ctest-vn-85268027 UUID is a67d4616-1787-4bbf-b79a-37e07000161d 2024-09-04 16:23:28,342 - DEBUG - Response for create_network : {'network': {'id': '0961cf75-dacd-4fb6-8d9a-ce20e415ce1d', 'name': 'ctest-vn-78790016', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-78790016'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 16:23:28,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '1801fa52-b9a7-4fc8-aa87-f4104071ab3e', 'name': '', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'network_id': '0961cf75-dacd-4fb6-8d9a-ce20e415ce1d', 'ip_version': 4, 'cidr': '123.206.76.192/26', 'allocation_pools': [{'start': '123.206.76.194', 'end': '123.206.76.254'}], 'gateway_ip': '123.206.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.206.76.194', 'tags': [], 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d'}} 2024-09-04 16:23:28,582 - INFO - Created VN ctest-vn-78790016 2024-09-04 16:23:28,633 - DEBUG - VN ctest-vn-78790016 UUID is 0961cf75-dacd-4fb6-8d9a-ce20e415ce1d 2024-09-04 16:23:28,752 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027, 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-28089018:ctest-vn-78790016, 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 16:23:29,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a67d4616-1787-4bbf-b79a-37e07000161d', 'name': 'ctest-vn-85268027', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b049366-572c-4e2e-9731-7a4a6fc999f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-85268027'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854']], 'subnet_ipam': [{'subnet_cidr': '29.127.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 16:23:29,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0961cf75-dacd-4fb6-8d9a-ce20e415ce1d', 'name': 'ctest-vn-78790016', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1801fa52-b9a7-4fc8-aa87-f4104071ab3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-78790016'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854']], 'subnet_ipam': [{'subnet_cidr': '123.206.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-04 16:23:29,469 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-04 16:23:29,774 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-04 16:23:29,802 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6 2024-09-04 16:23:29,816 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d 2024-09-04 16:23:29,888 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d 2024-09-04 16:23:29,897 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d 2024-09-04 16:23:29,904 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5 2024-09-04 16:23:29,911 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5 2024-09-04 16:23:29,917 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/1ed4db27-09a3-45f7-bd7b-94adc31ba55a 2024-09-04 16:23:29,923 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 16:23:29,923 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d 2024-09-04 16:23:29,930 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5 2024-09-04 16:23:29,941 - INFO - Verified VN network id 9 for VN a67d4616-1787-4bbf-b79a-37e07000161d 2024-09-04 16:23:29,941 - INFO - Verifications in API Server for VN ctest-vn-85268027 passed 2024-09-04 16:23:29,941 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d 2024-09-04 16:23:29,949 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5 2024-09-04 16:23:29,956 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5 2024-09-04 16:23:29,962 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/1ed4db27-09a3-45f7-bd7b-94adc31ba55a 2024-09-04 16:23:29,975 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28089018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11996822043082836927', 'uuid-lslong': '13229948292445509149'}, 'enable': 'true', 'created': '2024-09-04T16:23:27', 'last-modified': '2024-09-04T16:23:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950517'} 2024-09-04 16:23:29,982 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-04 16:23:29,982 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85268027 passed 2024-09-04 16:23:29,983 - DEBUG - ====Verifying policy data for ctest-vn-85268027 in API_Server ====== 2024-09-04 16:23:29,983 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-04 16:23:29,989 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6 2024-09-04 16:23:30,000 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d 2024-09-04 16:23:30,071 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d 2024-09-04 16:23:30,080 - DEBUG - ==>Verifying data for policy with id: 54dead83-50d5-4254-9ae5-19492f424960, fqn: ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854'] 2024-09-04 16:23:30,080 - INFO - VN ctest-vn-85268027 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 16:23:30,080 - DEBUG - Verifying the vn in opserver 2024-09-04 16:23:30,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027 virtual network link through opserver 10.0.0.37 2024-09-04 16:23:30,080 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-04 16:23:30,375 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-04 16:23:30,442 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027?flat'} 2024-09-04 16:23:30,442 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027 is found in opserver 2024-09-04 16:23:30,454 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 16:23:30,459 - DEBUG - VRF ids for VN ctest-vn-85268027: {} 2024-09-04 16:23:30,459 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-04 16:23:30,464 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6 2024-09-04 16:23:30,476 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d 2024-09-04 16:23:30,543 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d 2024-09-04 16:23:30,553 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d 2024-09-04 16:23:30,561 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439 2024-09-04 16:23:30,567 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439 2024-09-04 16:23:30,574 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/c33f9131-047b-401e-89ff-b599c1f9c3d8 2024-09-04 16:23:30,580 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 16:23:30,580 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d 2024-09-04 16:23:30,587 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439 2024-09-04 16:23:30,598 - INFO - Verified VN network id 10 for VN 0961cf75-dacd-4fb6-8d9a-ce20e415ce1d 2024-09-04 16:23:30,599 - INFO - Verifications in API Server for VN ctest-vn-78790016 passed 2024-09-04 16:23:30,599 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d 2024-09-04 16:23:30,606 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439 2024-09-04 16:23:30,612 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439 2024-09-04 16:23:30,618 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/c33f9131-047b-401e-89ff-b599c1f9c3d8 2024-09-04 16:23:30,629 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28089018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '676049524171296694', 'uuid-lslong': '10203694546422189597'}, 'enable': 'true', 'created': '2024-09-04T16:23:28', 'last-modified': '2024-09-04T16:23:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.365427'} 2024-09-04 16:23:30,635 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-04 16:23:30,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78790016 passed 2024-09-04 16:23:30,635 - DEBUG - ====Verifying policy data for ctest-vn-78790016 in API_Server ====== 2024-09-04 16:23:30,636 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-04 16:23:30,641 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6 2024-09-04 16:23:30,652 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d 2024-09-04 16:23:30,728 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d 2024-09-04 16:23:30,737 - DEBUG - ==>Verifying data for policy with id: 54dead83-50d5-4254-9ae5-19492f424960, fqn: ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854'] 2024-09-04 16:23:30,737 - INFO - VN ctest-vn-78790016 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-04 16:23:30,737 - DEBUG - Verifying the vn in opserver 2024-09-04 16:23:30,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016 virtual network link through opserver 10.0.0.37 2024-09-04 16:23:30,737 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-09-04 16:23:30,748 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016?flat'} 2024-09-04 16:23:30,748 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016 is found in opserver 2024-09-04 16:23:30,758 - DEBUG - Do not have enough data to verify VN in agent 2024-09-04 16:23:30,762 - DEBUG - VRF ids for VN ctest-vn-78790016: {} 2024-09-04 16:23:30,825 - DEBUG - Services list from nova: [, , ] 2024-09-04 16:23:31,810 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1845-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1845-1) 2024-09-04 16:23:33,018 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1845-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1845-1) 2024-09-04 16:23:33,019 - INFO - Waiting for VM ctest-TestBasicPolicy-28089018-88111369 to be up.. 2024-09-04 16:23:33,095 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 16:23:38,186 - DEBUG - VM is in ACTIVE state now 2024-09-04 16:23:38,186 - INFO - VM name : ctest-TestBasicPolicy-28089018-88111369 2024-09-04 16:23:38,264 - DEBUG - VM ctest-TestBasicPolicy-28089018-88111369 ID is 257e5d25-5870-4c2b-9353-a90c9545f198 2024-09-04 16:23:38,281 - DEBUG - VM ctest-TestBasicPolicy-28089018-88111369 launched on Node cn-jenkins-deploy-platform-ansible-os-1845-1 2024-09-04 16:23:38,359 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/257e5d25-5870-4c2b-9353-a90c9545f198 2024-09-04 16:23:38,368 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/9ac88204-d063-47e3-8653-3a162d674900 2024-09-04 16:23:41,611 - 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 1003ms') 2024-09-04 16:23:41,611 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28089018-88111369 failed! 2024-09-04 16:23:41,665 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027 is 29.127.10.1 and allocation pool is NOT set 2024-09-04 16:23:43,721 - 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.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.404 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.404/1.992/3.581/1.588 ms') 2024-09-04 16:23:43,721 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28089018-88111369 passed 2024-09-04 16:23:43,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 16:23:43,877 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28089018-88111369, IP 29.127.10.3, Port 22 2024-09-04 16:23:44,028 - DEBUG - VM ctest-TestBasicPolicy-28089018-88111369 is ready for SSH connections 2024-09-04 16:23:44,028 - INFO - Waiting for VM ctest-TestBasicPolicy-28089018-45810469 to be up.. 2024-09-04 16:23:44,107 - DEBUG - VM is in ACTIVE state now 2024-09-04 16:23:44,107 - INFO - VM name : ctest-TestBasicPolicy-28089018-45810469 2024-09-04 16:23:44,182 - DEBUG - VM ctest-TestBasicPolicy-28089018-45810469 ID is f000ee03-990d-4d65-976b-6c96eaf7e7a3 2024-09-04 16:23:44,183 - DEBUG - VM ctest-TestBasicPolicy-28089018-45810469 launched on Node cn-jenkins-deploy-platform-ansible-os-1845-1 2024-09-04 16:23:44,258 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/f000ee03-990d-4d65-976b-6c96eaf7e7a3 2024-09-04 16:23:44,267 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/b61d7e3f-3f6a-41d7-ae8d-292b29749302 2024-09-04 16:23:45,502 - 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.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.76 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.755/3.139/4.523/1.384 ms') 2024-09-04 16:23:45,502 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-28089018-45810469 passed 2024-09-04 16:23:45,653 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 16:23:45,653 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28089018-45810469, IP 123.206.76.195, Port 22 2024-09-04 16:23:45,812 - DEBUG - VM ctest-TestBasicPolicy-28089018-45810469 is ready for SSH connections 2024-09-04 16:23:45,812 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 16:23:45,812 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.206.76.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-04 16:23:45,812 - DEBUG - ping -s 56 -c 3 -W 1 123.206.76.195 2024-09-04 16:23:49,489 - DEBUG - PING 123.206.76.195 (123.206.76.195): 56 data bytes 64 bytes from 123.206.76.195: seq=0 ttl=63 time=3.312 ms 64 bytes from 123.206.76.195: seq=1 ttl=63 time=0.732 ms 64 bytes from 123.206.76.195: seq=2 ttl=63 time=0.768 ms --- 123.206.76.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.732/1.604/3.312 ms 2024-09-04 16:23:49,489 - INFO - Ping to IP 123.206.76.195 from VM ctest-TestBasicPolicy-28089018-88111369 passed 2024-09-04 16:23:49,668 - DEBUG - Policy Update Response {"network-policy": {"uuid": "54dead83-50d5-4254-9ae5-19492f424960", "href": "http://10.0.0.37:8082/network-policy/54dead83-50d5-4254-9ae5-19492f424960"}} 2024-09-04 16:23:49,668 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 16:23:49,669 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.206.76.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-04 16:23:49,669 - DEBUG - ping -s 56 -c 3 -W 1 123.206.76.195 2024-09-04 16:23:52,872 - DEBUG - PING 123.206.76.195 (123.206.76.195): 56 data bytes --- 123.206.76.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-04 16:23:52,872 - WARNING - Ping to IP 123.206.76.195 from VM ctest-TestBasicPolicy-28089018-88111369 failed 2024-09-04 16:23:52,872 - INFO - Deleting VM ctest-TestBasicPolicy-28089018-45810469 2024-09-04 16:23:52,964 - INFO - Deleting VM ctest-TestBasicPolicy-28089018-88111369 2024-09-04 16:23:53,318 - INFO - Deleted policy ctest-policy-allow-all-10623854 2024-09-04 16:23:53,318 - INFO - Deleting VN ctest-vn-78790016 2024-09-04 16:23:53,354 - DEBUG - VN 0961cf75-dacd-4fb6-8d9a-ce20e415ce1d still in use: Unable to complete operation on network 0961cf75-dacd-4fb6-8d9a-ce20e415ce1d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6d43d720-f12d-448c-8ab8-88d02cda9cb1'] 2024-09-04 16:23:53,354 - WARNING - Deleting VN ctest-vn-78790016 failed..Will retry 2024-09-04 16:23:55,464 - DEBUG - Response for deleting network () 2024-09-04 16:23:55,465 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439 2024-09-04 16:23:55,476 - DEBUG - Response Code: 404 2024-09-04 16:23:55,476 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-04 16:23:55,483 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6 2024-09-04 16:23:55,539 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d 2024-09-04 16:23:55,609 - INFO - Validated that VN ctest-vn-78790016 is not found in API Server 2024-09-04 16:23:55,622 - DEBUG - VN ctest-vn-78790016 is not present in Agent 10.0.0.37 2024-09-04 16:23:55,622 - INFO - Validated that VN ctest-vn-78790016 is not in any agent 2024-09-04 16:23:55,642 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78790016 info 2024-09-04 16:23:55,642 - INFO - Deleting VN ctest-vn-85268027 2024-09-04 16:23:55,751 - DEBUG - Response for deleting network () 2024-09-04 16:23:55,751 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5 2024-09-04 16:23:55,760 - DEBUG - Response Code: 404 2024-09-04 16:23:55,760 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-09-04 16:23:55,766 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6 2024-09-04 16:23:55,821 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d 2024-09-04 16:23:55,893 - INFO - Validated that VN ctest-vn-85268027 is not found in API Server 2024-09-04 16:23:55,903 - DEBUG - VN ctest-vn-85268027 is not present in Agent 10.0.0.37 2024-09-04 16:23:55,904 - INFO - Validated that VN ctest-vn-85268027 is not in any agent 2024-09-04 16:23:55,920 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85268027 info 2024-09-04 16:23:56,174 - DEBUG - No XMPP flaps were noticed during the test 2024-09-04 16:23:56,174 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-04 16:23:56,174 - INFO - -------------------------------------------------------------------------------- 2024-09-04 16:23:56,841 - INFO - Deleted project: ctest-TestBasicPolicy-28089018, ID : d66066fc-c0d8-4b76-983e-1a2f78d16a7d