2024-08-27 04:52:17,775 - INFO - Domain Default found not creating 2024-08-27 04:52:17,942 - INFO - Project ctest-TestBasicPolicy-27714509 not found, creating it 2024-08-27 04:52:18,408 - INFO - Created Project:ctest-TestBasicPolicy-27714509, ID : 2eab4f8e-95ac-4de5-9a0a-595618e3e85a 2024-08-27 04:52:19,892 - INFO - ================================================================================ 2024-08-27 04:52:19,892 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 04:52:19,892 - 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:52:20,153 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.19': '0'}} with 2024-08-27 04:52:20,153 - INFO - Initial checks done. Running the testcase now 2024-08-27 04:52:20,154 - INFO - 2024-08-27 04:52:21,753 - DEBUG - Response for create_network : {'network': {'id': '661cbe82-f125-495d-94ee-6e1e0810b2f2', 'name': 'ctest-vn-73079694', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-73079694'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:52:21,973 - DEBUG - Response for create_subnet : {'subnet': {'id': '01035399-36dd-4d3d-b964-c73b5b3f7193', 'name': '', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'network_id': '661cbe82-f125-495d-94ee-6e1e0810b2f2', 'ip_version': 4, 'cidr': '19.90.155.0/26', 'allocation_pools': [{'start': '19.90.155.2', 'end': '19.90.155.62'}], 'gateway_ip': '19.90.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.90.155.2', 'tags': [], 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a'}} 2024-08-27 04:52:21,994 - INFO - Created VN ctest-vn-73079694 2024-08-27 04:52:22,046 - DEBUG - VN ctest-vn-73079694 UUID is 661cbe82-f125-495d-94ee-6e1e0810b2f2 2024-08-27 04:52:22,348 - DEBUG - Response for create_network : {'network': {'id': 'fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1', 'name': 'ctest-vn-84385581', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-84385581'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:52:22,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '64c362f2-f953-411d-a453-46fb3f3ddab9', 'name': '', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'network_id': 'fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1', 'ip_version': 4, 'cidr': '171.157.204.128/26', 'allocation_pools': [{'start': '171.157.204.130', 'end': '171.157.204.190'}], 'gateway_ip': '171.157.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.157.204.130', 'tags': [], 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a'}} 2024-08-27 04:52:22,580 - INFO - Created VN ctest-vn-84385581 2024-08-27 04:52:22,629 - DEBUG - VN ctest-vn-84385581 UUID is fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 2024-08-27 04:52:22,745 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694, 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-27714509:ctest-vn-84385581, 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:52:23,053 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '661cbe82-f125-495d-94ee-6e1e0810b2f2', 'name': 'ctest-vn-73079694', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01035399-36dd-4d3d-b964-c73b5b3f7193'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-73079694'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489']], 'subnet_ipam': [{'subnet_cidr': '19.90.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:52:23,339 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1', 'name': 'ctest-vn-84385581', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64c362f2-f953-411d-a453-46fb3f3ddab9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-84385581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489']], 'subnet_ipam': [{'subnet_cidr': '171.157.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:52:23,482 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-27 04:52:23,781 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-27 04:52:23,814 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee 2024-08-27 04:52:23,828 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a 2024-08-27 04:52:23,898 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2 2024-08-27 04:52:23,908 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2 2024-08-27 04:52:23,916 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9 2024-08-27 04:52:23,923 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9 2024-08-27 04:52:23,930 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5d5388f7-0295-46b9-b5cf-5673a8262e54 2024-08-27 04:52:23,939 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:52:23,939 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2 2024-08-27 04:52:23,949 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9 2024-08-27 04:52:23,968 - INFO - Verified VN network id 7 for VN 661cbe82-f125-495d-94ee-6e1e0810b2f2 2024-08-27 04:52:23,968 - INFO - Verifications in API Server for VN ctest-vn-73079694 passed 2024-08-27 04:52:23,968 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2 2024-08-27 04:52:23,982 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9 2024-08-27 04:52:23,989 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9 2024-08-27 04:52:23,995 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5d5388f7-0295-46b9-b5cf-5673a8262e54 2024-08-27 04:52:24,008 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27714509', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7357965360817326429', 'uuid-lslong': '10731636037333857010'}, 'enable': 'true', 'created': '2024-08-27T04:52:21', 'last-modified': '2024-08-27T04:52:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983628'} 2024-08-27 04:52:24,017 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:52:24,017 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73079694 passed 2024-08-27 04:52:24,017 - DEBUG - ====Verifying policy data for ctest-vn-73079694 in API_Server ====== 2024-08-27 04:52:24,017 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-27 04:52:24,024 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee 2024-08-27 04:52:24,037 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a 2024-08-27 04:52:24,105 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2 2024-08-27 04:52:24,113 - DEBUG - ==>Verifying data for policy with id: 0ec077f4-030d-4e67-a195-197820a65841, fqn: ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489'] 2024-08-27 04:52:24,113 - INFO - VN ctest-vn-73079694 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:52:24,113 - DEBUG - Verifying the vn in opserver 2024-08-27 04:52:24,113 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694 virtual network link through opserver 10.0.0.44 2024-08-27 04:52:24,113 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-08-27 04:52:24,406 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-08-27 04:52:24,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694?flat'} 2024-08-27 04:52:24,474 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694 is found in opserver 2024-08-27 04:52:24,485 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:52:24,491 - DEBUG - VRF ids for VN ctest-vn-73079694: {} 2024-08-27 04:52:24,491 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-27 04:52:24,497 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee 2024-08-27 04:52:24,509 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a 2024-08-27 04:52:24,574 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 2024-08-27 04:52:24,585 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 2024-08-27 04:52:24,593 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54 2024-08-27 04:52:24,601 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54 2024-08-27 04:52:24,608 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/d0ad4f78-0267-493b-8ca9-44cba5865fbf 2024-08-27 04:52:24,615 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:52:24,615 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 2024-08-27 04:52:24,623 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54 2024-08-27 04:52:24,637 - INFO - Verified VN network id 8 for VN fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 2024-08-27 04:52:24,637 - INFO - Verifications in API Server for VN ctest-vn-84385581 passed 2024-08-27 04:52:24,637 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 2024-08-27 04:52:24,647 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54 2024-08-27 04:52:24,654 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54 2024-08-27 04:52:24,661 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/d0ad4f78-0267-493b-8ca9-44cba5865fbf 2024-08-27 04:52:24,675 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27714509', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18333193960147078292', 'uuid-lslong': '13267242368231989201'}, 'enable': 'true', 'created': '2024-08-27T04:52:22', 'last-modified': '2024-08-27T04:52:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.409547'} 2024-08-27 04:52:24,681 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:52:24,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84385581 passed 2024-08-27 04:52:24,681 - DEBUG - ====Verifying policy data for ctest-vn-84385581 in API_Server ====== 2024-08-27 04:52:24,681 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-27 04:52:24,689 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee 2024-08-27 04:52:24,702 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a 2024-08-27 04:52:24,769 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 2024-08-27 04:52:24,777 - DEBUG - ==>Verifying data for policy with id: 0ec077f4-030d-4e67-a195-197820a65841, fqn: ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489'] 2024-08-27 04:52:24,777 - INFO - VN ctest-vn-84385581 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:52:24,777 - DEBUG - Verifying the vn in opserver 2024-08-27 04:52:24,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581 virtual network link through opserver 10.0.0.44 2024-08-27 04:52:24,777 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-08-27 04:52:24,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581?flat'} 2024-08-27 04:52:24,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581 is found in opserver 2024-08-27 04:52:24,801 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:52:24,806 - DEBUG - VRF ids for VN ctest-vn-84385581: {} 2024-08-27 04:52:24,862 - DEBUG - Services list from nova: [, , ] 2024-08-27 04:52:26,000 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1790-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1790-1) 2024-08-27 04:52:27,314 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1790-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1790-1) 2024-08-27 04:52:27,314 - INFO - Waiting for VM ctest-TestBasicPolicy-27714509-66180668 to be up.. 2024-08-27 04:52:27,411 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 04:52:32,506 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:52:32,506 - INFO - VM name : ctest-TestBasicPolicy-27714509-66180668 2024-08-27 04:52:32,598 - DEBUG - VM ctest-TestBasicPolicy-27714509-66180668 ID is 15f39205-74ff-4168-ade3-2e778319be81 2024-08-27 04:52:32,618 - DEBUG - VM ctest-TestBasicPolicy-27714509-66180668 launched on Node cn-jenkins-deploy-platform-ansible-os-1790-1 2024-08-27 04:52:32,707 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/15f39205-74ff-4168-ade3-2e778319be81 2024-08-27 04:52:32,719 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/8d643173-4b4a-4738-951b-fc456de8d276 2024-08-27 04:52:35,979 - 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 1022ms') 2024-08-27 04:52:35,980 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27714509-66180668 failed! 2024-08-27 04:52:36,034 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694 is 19.90.155.1 and allocation pool is NOT set 2024-08-27 04:52:40,115 - 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 1020ms') 2024-08-27 04:52:40,115 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27714509-66180668 failed! 2024-08-27 04:52:40,169 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694 is 19.90.155.1 and allocation pool is NOT set 2024-08-27 04:52:44,243 - 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 1011ms') 2024-08-27 04:52:44,244 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27714509-66180668 failed! 2024-08-27 04:52:44,297 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694 is 19.90.155.1 and allocation pool is NOT set 2024-08-27 04:52:46,353 - 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=2.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.439 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.439/1.635/2.831/1.196 ms') 2024-08-27 04:52:46,354 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27714509-66180668 passed 2024-08-27 04:52:46,505 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:52:46,506 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27714509-66180668, IP 19.90.155.3, Port 22 2024-08-27 04:52:46,657 - DEBUG - VM ctest-TestBasicPolicy-27714509-66180668 is ready for SSH connections 2024-08-27 04:52:46,657 - INFO - Waiting for VM ctest-TestBasicPolicy-27714509-76870700 to be up.. 2024-08-27 04:52:46,738 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:52:46,738 - INFO - VM name : ctest-TestBasicPolicy-27714509-76870700 2024-08-27 04:52:46,813 - DEBUG - VM ctest-TestBasicPolicy-27714509-76870700 ID is d5659bc9-1592-471e-9321-193b6a0d6979 2024-08-27 04:52:46,813 - DEBUG - VM ctest-TestBasicPolicy-27714509-76870700 launched on Node cn-jenkins-deploy-platform-ansible-os-1790-1 2024-08-27 04:52:46,890 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/d5659bc9-1592-471e-9321-193b6a0d6979 2024-08-27 04:52:46,900 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/cde9271e-8459-4e13-8f3c-4547e7cbc183 2024-08-27 04:52:48,129 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.392 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.392/1.538/2.684/1.146 ms') 2024-08-27 04:52:48,129 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27714509-76870700 passed 2024-08-27 04:52:48,277 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:52:48,278 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27714509-76870700, IP 171.157.204.131, Port 22 2024-08-27 04:52:48,429 - DEBUG - VM ctest-TestBasicPolicy-27714509-76870700 is ready for SSH connections 2024-08-27 04:52:48,430 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:52:48,430 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 171.157.204.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-08-27 04:52:48,430 - DEBUG - ping -s 56 -c 3 -W 1 171.157.204.131 2024-08-27 04:52:52,111 - DEBUG - PING 171.157.204.131 (171.157.204.131): 56 data bytes 64 bytes from 171.157.204.131: seq=0 ttl=63 time=3.347 ms 64 bytes from 171.157.204.131: seq=1 ttl=63 time=0.912 ms 64 bytes from 171.157.204.131: seq=2 ttl=63 time=0.815 ms --- 171.157.204.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.815/1.691/3.347 ms 2024-08-27 04:52:52,111 - INFO - Ping to IP 171.157.204.131 from VM ctest-TestBasicPolicy-27714509-66180668 passed 2024-08-27 04:52:52,285 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0ec077f4-030d-4e67-a195-197820a65841", "href": "http://10.0.0.44:8082/network-policy/0ec077f4-030d-4e67-a195-197820a65841"}} 2024-08-27 04:52:52,285 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:52:52,286 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 171.157.204.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-08-27 04:52:52,286 - DEBUG - ping -s 56 -c 3 -W 1 171.157.204.131 2024-08-27 04:52:55,481 - DEBUG - PING 171.157.204.131 (171.157.204.131): 56 data bytes 64 bytes from 171.157.204.131: seq=0 ttl=63 time=1.578 ms --- 171.157.204.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.578/1.578/1.578 ms 2024-08-27 04:52:55,482 - WARNING - Ping to IP 171.157.204.131 from VM ctest-TestBasicPolicy-27714509-66180668 failed 2024-08-27 04:52:55,482 - INFO - Deleting VM ctest-TestBasicPolicy-27714509-76870700 2024-08-27 04:52:55,554 - INFO - Deleting VM ctest-TestBasicPolicy-27714509-66180668 2024-08-27 04:52:55,934 - INFO - Deleted policy ctest-policy-allow-all-83523489 2024-08-27 04:52:55,934 - INFO - Deleting VN ctest-vn-84385581 2024-08-27 04:52:55,976 - DEBUG - VN fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1 still in use: Unable to complete operation on network fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0999b20c-bb1b-48b4-876c-334e842231ed'] 2024-08-27 04:52:55,976 - WARNING - Deleting VN ctest-vn-84385581 failed..Will retry 2024-08-27 04:52:59,189 - DEBUG - Response for deleting network () 2024-08-27 04:52:59,189 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54 2024-08-27 04:52:59,195 - DEBUG - Response Code: 404 2024-08-27 04:52:59,195 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-27 04:52:59,202 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee 2024-08-27 04:52:59,259 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a 2024-08-27 04:52:59,328 - INFO - Validated that VN ctest-vn-84385581 is not found in API Server 2024-08-27 04:52:59,341 - DEBUG - VN ctest-vn-84385581 is not present in Agent 10.0.0.44 2024-08-27 04:52:59,341 - INFO - Validated that VN ctest-vn-84385581 is not in any agent 2024-08-27 04:52:59,359 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-84385581 info 2024-08-27 04:52:59,359 - INFO - Deleting VN ctest-vn-73079694 2024-08-27 04:52:59,476 - DEBUG - Response for deleting network () 2024-08-27 04:52:59,476 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9 2024-08-27 04:52:59,481 - DEBUG - Response Code: 404 2024-08-27 04:52:59,481 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-27 04:52:59,489 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee 2024-08-27 04:52:59,543 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a 2024-08-27 04:52:59,614 - INFO - Validated that VN ctest-vn-73079694 is not found in API Server 2024-08-27 04:52:59,627 - DEBUG - VN ctest-vn-73079694 is not present in Agent 10.0.0.44 2024-08-27 04:52:59,627 - INFO - Validated that VN ctest-vn-73079694 is not in any agent 2024-08-27 04:52:59,645 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73079694 info 2024-08-27 04:52:59,903 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 04:52:59,903 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2024-08-27 04:52:59,903 - INFO - -------------------------------------------------------------------------------- 2024-08-27 04:53:00,590 - INFO - Deleted project: ctest-TestBasicPolicy-27714509, ID : 2eab4f8e-95ac-4de5-9a0a-595618e3e85a