2024-08-27 04:30:22,161 - INFO - Domain Default found not creating 2024-08-27 04:30:22,321 - INFO - Project ctest-TestBasicPolicy-35003210 not found, creating it 2024-08-27 04:30:22,780 - INFO - Created Project:ctest-TestBasicPolicy-35003210, ID : 56a5090e-90ea-4f20-b62e-d1e9aefd04f0 2024-08-27 04:30:24,247 - INFO - ================================================================================ 2024-08-27 04:30:24,247 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 04:30:24,247 - 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-08-27 04:30:24,505 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.13': '0'}} with 2024-08-27 04:30:24,505 - INFO - Initial checks done. Running the testcase now 2024-08-27 04:30:24,505 - INFO - 2024-08-27 04:30:25,061 - DEBUG - Response for create_network : {'network': {'id': '0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4', 'name': 'ctest-vn-86270427', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-86270427'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:30:25,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '80a5b025-0dd3-4c9a-83bf-0371288e61b4', 'name': '', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'network_id': '0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4', 'ip_version': 4, 'cidr': '197.11.85.192/26', 'allocation_pools': [{'start': '197.11.85.194', 'end': '197.11.85.254'}], 'gateway_ip': '197.11.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.11.85.194', 'tags': [], 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0'}} 2024-08-27 04:30:25,235 - INFO - Created VN ctest-vn-86270427 2024-08-27 04:30:25,287 - DEBUG - VN ctest-vn-86270427 UUID is 0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4 2024-08-27 04:30:25,579 - DEBUG - Response for create_network : {'network': {'id': '07825e58-9f49-4cb2-bcd3-b742777262b7', 'name': 'ctest-vn-78559441', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-78559441'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:30:25,808 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bf680b7-622b-40d2-bb94-2389d9561607', 'name': '', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'network_id': '07825e58-9f49-4cb2-bcd3-b742777262b7', 'ip_version': 4, 'cidr': '70.65.79.64/26', 'allocation_pools': [{'start': '70.65.79.66', 'end': '70.65.79.126'}], 'gateway_ip': '70.65.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.65.79.66', 'tags': [], 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0'}} 2024-08-27 04:30:25,828 - INFO - Created VN ctest-vn-78559441 2024-08-27 04:30:25,878 - DEBUG - VN ctest-vn-78559441 UUID is 07825e58-9f49-4cb2-bcd3-b742777262b7 2024-08-27 04:30:25,989 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427, 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-35003210:ctest-vn-78559441, 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-08-27 04:30:26,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4', 'name': 'ctest-vn-86270427', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80a5b025-0dd3-4c9a-83bf-0371288e61b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-86270427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201']], 'subnet_ipam': [{'subnet_cidr': '197.11.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:30:26,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07825e58-9f49-4cb2-bcd3-b742777262b7', 'name': 'ctest-vn-78559441', 'tenant_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'project_id': '56a5090e90ea4f20b62ed1e9aefd04f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bf680b7-622b-40d2-bb94-2389d9561607'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-vn-78559441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201']], 'subnet_ipam': [{'subnet_cidr': '70.65.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:30:26,674 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-27 04:30:26,981 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-27 04:30:27,013 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a 2024-08-27 04:30:27,026 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0 2024-08-27 04:30:27,105 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4 2024-08-27 04:30:27,118 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4 2024-08-27 04:30:27,127 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e 2024-08-27 04:30:27,136 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e 2024-08-27 04:30:27,145 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/2e73adc0-8d3c-468d-96d2-f31b6307eaab 2024-08-27 04:30:27,152 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:30:27,152 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4 2024-08-27 04:30:27,161 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e 2024-08-27 04:30:27,173 - INFO - Verified VN network id 9 for VN 0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4 2024-08-27 04:30:27,173 - INFO - Verifications in API Server for VN ctest-vn-86270427 passed 2024-08-27 04:30:27,173 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4 2024-08-27 04:30:27,182 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e 2024-08-27 04:30:27,190 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e 2024-08-27 04:30:27,197 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/2e73adc0-8d3c-468d-96d2-f31b6307eaab 2024-08-27 04:30:27,210 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35003210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '767198207656018273', 'uuid-lslong': '12549829852076841652'}, 'enable': 'true', 'created': '2024-08-27T04:30:25', 'last-modified': '2024-08-27T04:30:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957005'} 2024-08-27 04:30:27,218 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:30:27,218 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86270427 passed 2024-08-27 04:30:27,218 - DEBUG - ====Verifying policy data for ctest-vn-86270427 in API_Server ====== 2024-08-27 04:30:27,218 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-27 04:30:27,225 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a 2024-08-27 04:30:27,239 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0 2024-08-27 04:30:27,310 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/0aa5a2b4-7fa7-4161-ae29-f3c234a21ab4 2024-08-27 04:30:27,319 - DEBUG - ==>Verifying data for policy with id: 10d690f6-0a16-47e8-bc75-b67d5295aeb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201'] 2024-08-27 04:30:27,319 - INFO - VN ctest-vn-86270427 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:30:27,319 - DEBUG - Verifying the vn in opserver 2024-08-27 04:30:27,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427 virtual network link through opserver 10.0.0.36 2024-08-27 04:30:27,319 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-27 04:30:27,614 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-27 04:30:27,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427?flat'} 2024-08-27 04:30:27,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427 is found in opserver 2024-08-27 04:30:27,689 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:30:27,695 - DEBUG - VRF ids for VN ctest-vn-86270427: {} 2024-08-27 04:30:27,695 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-27 04:30:27,700 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a 2024-08-27 04:30:27,712 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0 2024-08-27 04:30:27,782 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7 2024-08-27 04:30:27,793 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7 2024-08-27 04:30:27,801 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f 2024-08-27 04:30:27,808 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f 2024-08-27 04:30:27,815 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/3ad25b7d-baeb-4d13-b6cc-02de9c5e7b96 2024-08-27 04:30:27,822 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:30:27,822 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7 2024-08-27 04:30:27,831 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f 2024-08-27 04:30:27,845 - INFO - Verified VN network id 10 for VN 07825e58-9f49-4cb2-bcd3-b742777262b7 2024-08-27 04:30:27,846 - INFO - Verifications in API Server for VN ctest-vn-78559441 passed 2024-08-27 04:30:27,846 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7 2024-08-27 04:30:27,855 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f 2024-08-27 04:30:27,861 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f 2024-08-27 04:30:27,868 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/3ad25b7d-baeb-4d13-b6cc-02de9c5e7b96 2024-08-27 04:30:27,880 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35003210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '541098639960394930', 'uuid-lslong': '13606420395316110007'}, 'enable': 'true', 'created': '2024-08-27T04:30:25', 'last-modified': '2024-08-27T04:30:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.374964'} 2024-08-27 04:30:27,886 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:30:27,886 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78559441 passed 2024-08-27 04:30:27,886 - DEBUG - ====Verifying policy data for ctest-vn-78559441 in API_Server ====== 2024-08-27 04:30:27,886 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-27 04:30:27,893 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a 2024-08-27 04:30:27,906 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0 2024-08-27 04:30:27,975 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/07825e58-9f49-4cb2-bcd3-b742777262b7 2024-08-27 04:30:27,983 - DEBUG - ==>Verifying data for policy with id: 10d690f6-0a16-47e8-bc75-b67d5295aeb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-35003210', 'ctest-policy-allow-all-79230201'] 2024-08-27 04:30:27,983 - INFO - VN ctest-vn-78559441 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:30:27,983 - DEBUG - Verifying the vn in opserver 2024-08-27 04:30:27,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441 virtual network link through opserver 10.0.0.36 2024-08-27 04:30:27,983 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-08-27 04:30:27,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441?flat'} 2024-08-27 04:30:27,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-78559441 is found in opserver 2024-08-27 04:30:28,005 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:30:28,009 - DEBUG - VRF ids for VN ctest-vn-78559441: {} 2024-08-27 04:30:28,065 - DEBUG - Services list from nova: [, , ] 2024-08-27 04:30:29,182 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1789-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1789-1) 2024-08-27 04:30:30,346 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1789-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1789-1) 2024-08-27 04:30:30,346 - INFO - Waiting for VM ctest-TestBasicPolicy-35003210-04963419 to be up.. 2024-08-27 04:30:30,446 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 04:30:35,525 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:30:35,525 - INFO - VM name : ctest-TestBasicPolicy-35003210-04963419 2024-08-27 04:30:35,600 - DEBUG - VM ctest-TestBasicPolicy-35003210-04963419 ID is 900d65d1-fdfd-499b-856f-abfcd6e3b8a4 2024-08-27 04:30:35,617 - DEBUG - VM ctest-TestBasicPolicy-35003210-04963419 launched on Node cn-jenkins-deploy-platform-ansible-os-1789-1 2024-08-27 04:30:35,701 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/900d65d1-fdfd-499b-856f-abfcd6e3b8a4 2024-08-27 04:30:35,710 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/ed72f3ac-2fe9-4b32-b20d-9af1c4de5c1a 2024-08-27 04:30:38,958 - 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 1008ms') 2024-08-27 04:30:38,958 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35003210-04963419 failed! 2024-08-27 04:30:39,010 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35003210:ctest-vn-86270427 is 197.11.85.193 and allocation pool is NOT set 2024-08-27 04:30:41,068 - 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=5.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.370 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.370/2.978/5.587/2.608 ms') 2024-08-27 04:30:41,068 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35003210-04963419 passed 2024-08-27 04:30:41,231 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:30:41,231 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35003210-04963419, IP 197.11.85.195, Port 22 2024-08-27 04:30:41,390 - DEBUG - VM ctest-TestBasicPolicy-35003210-04963419 is ready for SSH connections 2024-08-27 04:30:41,390 - INFO - Waiting for VM ctest-TestBasicPolicy-35003210-74472919 to be up.. 2024-08-27 04:30:41,471 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:30:41,471 - INFO - VM name : ctest-TestBasicPolicy-35003210-74472919 2024-08-27 04:30:41,554 - DEBUG - VM ctest-TestBasicPolicy-35003210-74472919 ID is 5d835eed-ab47-4d96-b718-1a9ba36a62b3 2024-08-27 04:30:41,554 - DEBUG - VM ctest-TestBasicPolicy-35003210-74472919 launched on Node cn-jenkins-deploy-platform-ansible-os-1789-1 2024-08-27 04:30:41,637 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/5d835eed-ab47-4d96-b718-1a9ba36a62b3 2024-08-27 04:30:41,646 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/b27b8cda-5ecb-4c1a-ba5c-886ab364233e 2024-08-27 04:30:42,893 - 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.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.455 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.455/1.616/2.777/1.161 ms') 2024-08-27 04:30:42,893 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-35003210-74472919 passed 2024-08-27 04:30:43,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:30:43,042 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35003210-74472919, IP 70.65.79.67, Port 22 2024-08-27 04:30:43,200 - DEBUG - VM ctest-TestBasicPolicy-35003210-74472919 is ready for SSH connections 2024-08-27 04:30:43,200 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:30:43,200 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 70.65.79.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-27 04:30:43,200 - DEBUG - ping -s 56 -c 3 -W 1 70.65.79.67 2024-08-27 04:30:47,191 - DEBUG - PING 70.65.79.67 (70.65.79.67): 56 data bytes 64 bytes from 70.65.79.67: seq=0 ttl=63 time=3.586 ms 64 bytes from 70.65.79.67: seq=1 ttl=63 time=1.002 ms 64 bytes from 70.65.79.67: seq=2 ttl=63 time=1.216 ms --- 70.65.79.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.002/1.934/3.586 ms 2024-08-27 04:30:47,191 - INFO - Ping to IP 70.65.79.67 from VM ctest-TestBasicPolicy-35003210-04963419 passed 2024-08-27 04:30:47,386 - DEBUG - Policy Update Response {"network-policy": {"uuid": "10d690f6-0a16-47e8-bc75-b67d5295aeb7", "href": "http://10.0.0.36:8082/network-policy/10d690f6-0a16-47e8-bc75-b67d5295aeb7"}} 2024-08-27 04:30:47,386 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:30:47,386 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 70.65.79.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-08-27 04:30:47,386 - DEBUG - ping -s 56 -c 3 -W 1 70.65.79.67 2024-08-27 04:30:50,583 - DEBUG - PING 70.65.79.67 (70.65.79.67): 56 data bytes 64 bytes from 70.65.79.67: seq=0 ttl=63 time=1.295 ms --- 70.65.79.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.295/1.295/1.295 ms 2024-08-27 04:30:50,583 - WARNING - Ping to IP 70.65.79.67 from VM ctest-TestBasicPolicy-35003210-04963419 failed 2024-08-27 04:30:50,583 - INFO - Deleting VM ctest-TestBasicPolicy-35003210-74472919 2024-08-27 04:30:50,653 - INFO - Deleting VM ctest-TestBasicPolicy-35003210-04963419 2024-08-27 04:30:51,024 - INFO - Deleted policy ctest-policy-allow-all-79230201 2024-08-27 04:30:51,025 - INFO - Deleting VN ctest-vn-78559441 2024-08-27 04:30:51,065 - DEBUG - VN 07825e58-9f49-4cb2-bcd3-b742777262b7 still in use: Unable to complete operation on network 07825e58-9f49-4cb2-bcd3-b742777262b7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ecfc3dc2-2d91-4215-bf61-b8292d1567a5'] 2024-08-27 04:30:51,066 - WARNING - Deleting VN ctest-vn-78559441 failed..Will retry 2024-08-27 04:30:53,166 - DEBUG - Response for deleting network () 2024-08-27 04:30:53,166 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/1b8dbff6-c1e7-47ad-90fb-f073332bf94f 2024-08-27 04:30:53,172 - DEBUG - Response Code: 404 2024-08-27 04:30:53,172 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-27 04:30:53,178 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a 2024-08-27 04:30:53,236 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0 2024-08-27 04:30:53,305 - INFO - Validated that VN ctest-vn-78559441 is not found in API Server 2024-08-27 04:30:53,317 - DEBUG - VN ctest-vn-78559441 is not present in Agent 10.0.0.36 2024-08-27 04:30:53,317 - INFO - Validated that VN ctest-vn-78559441 is not in any agent 2024-08-27 04:30:53,334 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78559441 info 2024-08-27 04:30:53,334 - INFO - Deleting VN ctest-vn-86270427 2024-08-27 04:30:53,439 - DEBUG - Response for deleting network () 2024-08-27 04:30:53,439 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/26976045-536b-4c07-bf11-27ce00a0ea8e 2024-08-27 04:30:53,445 - DEBUG - Response Code: 404 2024-08-27 04:30:53,445 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-08-27 04:30:53,454 - DEBUG - Requesting: http://10.0.0.36:8082/domain/61ab91f0-6b95-4414-9d08-a327fbfa7e6a 2024-08-27 04:30:53,507 - DEBUG - Requesting: http://10.0.0.36:8082/project/56a5090e-90ea-4f20-b62e-d1e9aefd04f0 2024-08-27 04:30:53,581 - INFO - Validated that VN ctest-vn-86270427 is not found in API Server 2024-08-27 04:30:53,592 - DEBUG - VN ctest-vn-86270427 is not present in Agent 10.0.0.36 2024-08-27 04:30:53,592 - INFO - Validated that VN ctest-vn-86270427 is not in any agent 2024-08-27 04:30:53,607 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86270427 info 2024-08-27 04:30:53,860 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 04:30:53,861 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2024-08-27 04:30:53,861 - INFO - -------------------------------------------------------------------------------- 2024-08-27 04:30:54,532 - INFO - Deleted project: ctest-TestBasicPolicy-35003210, ID : 56a5090e-90ea-4f20-b62e-d1e9aefd04f0