2025-01-09 00:06:16,974 - INFO - Domain Default found not creating 2025-01-09 00:06:17,140 - INFO - Project ctest-TestBasicPolicy-54982636 not found, creating it 2025-01-09 00:06:17,630 - INFO - Created Project:ctest-TestBasicPolicy-54982636, ID : d2253a6d-2e18-4f95-b39d-4eb3df7be700 2025-01-09 00:06:19,404 - INFO - ================================================================================ 2025-01-09 00:06:19,405 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-09 00:06:19,405 - 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-01-09 00:06:19,669 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.22': '0'}} with 2025-01-09 00:06:19,669 - INFO - Initial checks done. Running the testcase now 2025-01-09 00:06:19,669 - INFO - 2025-01-09 00:06:20,332 - DEBUG - Response for create_network : {'network': {'id': '37d0946c-4960-4c09-b1e3-15d0d7d688e8', 'name': 'ctest-vn-54541194', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-54541194'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 00:06:20,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '2173f9ef-fbe3-4fb8-8a93-e9c8c0f50d66', 'name': '', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'network_id': '37d0946c-4960-4c09-b1e3-15d0d7d688e8', 'ip_version': 4, 'cidr': '109.218.164.128/26', 'allocation_pools': [{'start': '109.218.164.130', 'end': '109.218.164.190'}], 'gateway_ip': '109.218.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.218.164.130', 'tags': [], 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700'}} 2025-01-09 00:06:20,564 - INFO - Created VN ctest-vn-54541194 2025-01-09 00:06:20,621 - DEBUG - VN ctest-vn-54541194 UUID is 37d0946c-4960-4c09-b1e3-15d0d7d688e8 2025-01-09 00:06:21,125 - DEBUG - Response for create_network : {'network': {'id': 'ffbdc5e8-3440-45f6-80c9-8b9093c44e87', 'name': 'ctest-vn-99720562', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-99720562'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 00:06:21,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '26903e6f-c501-4ede-9c27-58766e8b6cca', 'name': '', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'network_id': 'ffbdc5e8-3440-45f6-80c9-8b9093c44e87', 'ip_version': 4, 'cidr': '203.46.9.192/26', 'allocation_pools': [{'start': '203.46.9.194', 'end': '203.46.9.254'}], 'gateway_ip': '203.46.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.46.9.194', 'tags': [], 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700'}} 2025-01-09 00:06:21,333 - INFO - Created VN ctest-vn-99720562 2025-01-09 00:06:21,389 - DEBUG - VN ctest-vn-99720562 UUID is ffbdc5e8-3440-45f6-80c9-8b9093c44e87 2025-01-09 00:06:21,509 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194, 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-54982636:ctest-vn-99720562, 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-01-09 00:06:21,836 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37d0946c-4960-4c09-b1e3-15d0d7d688e8', 'name': 'ctest-vn-54541194', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2173f9ef-fbe3-4fb8-8a93-e9c8c0f50d66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-54541194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153']], 'subnet_ipam': [{'subnet_cidr': '109.218.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 00:06:22,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffbdc5e8-3440-45f6-80c9-8b9093c44e87', 'name': 'ctest-vn-99720562', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26903e6f-c501-4ede-9c27-58766e8b6cca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-99720562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153']], 'subnet_ipam': [{'subnet_cidr': '203.46.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-09 00:06:22,261 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-09 00:06:22,581 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-09 00:06:22,612 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e 2025-01-09 00:06:22,627 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700 2025-01-09 00:06:22,706 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8 2025-01-09 00:06:22,719 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8 2025-01-09 00:06:22,732 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d 2025-01-09 00:06:22,742 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d 2025-01-09 00:06:22,752 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/50274e8f-ae64-4945-99f0-667322d6cf4f 2025-01-09 00:06:22,761 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 00:06:22,762 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8 2025-01-09 00:06:22,773 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d 2025-01-09 00:06:22,790 - INFO - Verified VN network id 9 for VN 37d0946c-4960-4c09-b1e3-15d0d7d688e8 2025-01-09 00:06:22,791 - INFO - Verifications in API Server for VN ctest-vn-54541194 passed 2025-01-09 00:06:22,791 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8 2025-01-09 00:06:22,805 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d 2025-01-09 00:06:22,813 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d 2025-01-09 00:06:22,821 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/50274e8f-ae64-4945-99f0-667322d6cf4f 2025-01-09 00:06:22,835 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54982636', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4021877660050279433', 'uuid-lslong': '12818112951145105640'}, 'enable': 'true', 'created': '2025-01-09T00:06:20', 'last-modified': '2025-01-09T00:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.026991'} 2025-01-09 00:06:22,842 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-09 00:06:22,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54541194 passed 2025-01-09 00:06:22,842 - DEBUG - ====Verifying policy data for ctest-vn-54541194 in API_Server ====== 2025-01-09 00:06:22,842 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-09 00:06:22,851 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e 2025-01-09 00:06:22,865 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700 2025-01-09 00:06:22,942 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8 2025-01-09 00:06:22,955 - DEBUG - ==>Verifying data for policy with id: 6dfcbf95-eb92-4461-b3b9-cb82d240384b, fqn: ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153'] 2025-01-09 00:06:22,955 - INFO - VN ctest-vn-54541194 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 00:06:22,955 - DEBUG - Verifying the vn in opserver 2025-01-09 00:06:22,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194 virtual network link through opserver 10.0.0.27 2025-01-09 00:06:22,955 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-09 00:06:23,256 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-09 00:06:23,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194?flat'} 2025-01-09 00:06:23,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194 is found in opserver 2025-01-09 00:06:23,638 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 00:06:23,644 - DEBUG - VRF ids for VN ctest-vn-54541194: {} 2025-01-09 00:06:23,645 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-09 00:06:23,655 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e 2025-01-09 00:06:23,670 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700 2025-01-09 00:06:23,760 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87 2025-01-09 00:06:23,776 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87 2025-01-09 00:06:23,788 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657 2025-01-09 00:06:23,798 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657 2025-01-09 00:06:23,807 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5445ba3c-1ad2-405d-beff-b3c4f4cb5c96 2025-01-09 00:06:23,816 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 00:06:23,816 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87 2025-01-09 00:06:23,827 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657 2025-01-09 00:06:23,845 - INFO - Verified VN network id 10 for VN ffbdc5e8-3440-45f6-80c9-8b9093c44e87 2025-01-09 00:06:23,845 - INFO - Verifications in API Server for VN ctest-vn-99720562 passed 2025-01-09 00:06:23,845 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87 2025-01-09 00:06:23,859 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657 2025-01-09 00:06:23,870 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657 2025-01-09 00:06:23,879 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5445ba3c-1ad2-405d-beff-b3c4f4cb5c96 2025-01-09 00:06:23,894 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54982636', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18428102851369649654', 'uuid-lslong': '9280101960244285063'}, 'enable': 'true', 'created': '2025-01-09T00:06:21', 'last-modified': '2025-01-09T00:06:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.820297'} 2025-01-09 00:06:23,903 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-09 00:06:23,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99720562 passed 2025-01-09 00:06:23,903 - DEBUG - ====Verifying policy data for ctest-vn-99720562 in API_Server ====== 2025-01-09 00:06:23,903 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-09 00:06:23,910 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e 2025-01-09 00:06:23,924 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700 2025-01-09 00:06:24,009 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87 2025-01-09 00:06:24,022 - DEBUG - ==>Verifying data for policy with id: 6dfcbf95-eb92-4461-b3b9-cb82d240384b, fqn: ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153'] 2025-01-09 00:06:24,022 - INFO - VN ctest-vn-99720562 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-09 00:06:24,023 - DEBUG - Verifying the vn in opserver 2025-01-09 00:06:24,023 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562 virtual network link through opserver 10.0.0.27 2025-01-09 00:06:24,023 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-09 00:06:24,075 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562?flat'} 2025-01-09 00:06:24,075 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562 is found in opserver 2025-01-09 00:06:24,091 - DEBUG - Do not have enough data to verify VN in agent 2025-01-09 00:06:24,096 - DEBUG - VRF ids for VN ctest-vn-99720562: {} 2025-01-09 00:06:24,166 - DEBUG - Services list from nova: [, , ] 2025-01-09 00:06:25,376 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2572-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2572-1) 2025-01-09 00:06:26,642 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2572-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2572-1) 2025-01-09 00:06:26,642 - INFO - Waiting for VM ctest-TestBasicPolicy-54982636-83559483 to be up.. 2025-01-09 00:06:26,743 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-09 00:06:31,844 - DEBUG - VM is in ACTIVE state now 2025-01-09 00:06:31,844 - INFO - VM name : ctest-TestBasicPolicy-54982636-83559483 2025-01-09 00:06:31,938 - DEBUG - VM ctest-TestBasicPolicy-54982636-83559483 ID is dc33d105-5ea6-4931-8ebb-529e8a89ab23 2025-01-09 00:06:31,960 - DEBUG - VM ctest-TestBasicPolicy-54982636-83559483 launched on Node cn-jenkins-deploy-platform-ansible-os-2572-1 2025-01-09 00:06:32,057 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/dc33d105-5ea6-4931-8ebb-529e8a89ab23 2025-01-09 00:06:32,068 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/c3e1ef40-c86c-48be-900c-57f27ad2c464 2025-01-09 00:06:35,319 - 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 1001ms') 2025-01-09 00:06:35,319 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54982636-83559483 failed! 2025-01-09 00:06:35,381 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194 is 109.218.164.129 and allocation pool is NOT set 2025-01-09 00:06:37,448 - 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=9.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.69 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 = 1.687/5.526/9.366/3.839 ms') 2025-01-09 00:06:37,448 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54982636-83559483 passed 2025-01-09 00:06:37,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 00:06:37,601 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54982636-83559483, IP 109.218.164.131, Port 22 2025-01-09 00:06:37,667 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-01-09 00:06:37,760 - DEBUG - VM ctest-TestBasicPolicy-54982636-83559483 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-09 00:06:42,761 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 00:06:42,761 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54982636-83559483, IP 109.218.164.131, Port 22 2025-01-09 00:06:42,916 - DEBUG - VM ctest-TestBasicPolicy-54982636-83559483 is ready for SSH connections 2025-01-09 00:06:42,916 - INFO - Waiting for VM ctest-TestBasicPolicy-54982636-44766007 to be up.. 2025-01-09 00:06:43,000 - DEBUG - VM is in ACTIVE state now 2025-01-09 00:06:43,000 - INFO - VM name : ctest-TestBasicPolicy-54982636-44766007 2025-01-09 00:06:43,089 - DEBUG - VM ctest-TestBasicPolicy-54982636-44766007 ID is cba38fd2-488e-47aa-add9-46da65466c7c 2025-01-09 00:06:43,089 - DEBUG - VM ctest-TestBasicPolicy-54982636-44766007 launched on Node cn-jenkins-deploy-platform-ansible-os-2572-1 2025-01-09 00:06:43,171 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/cba38fd2-488e-47aa-add9-46da65466c7c 2025-01-09 00:06:43,183 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/0bce38ec-e397-4c0a-881e-40bb7f518b76 2025-01-09 00:06:44,443 - 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.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.461 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.461/1.685/2.909/1.224 ms') 2025-01-09 00:06:44,443 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54982636-44766007 passed 2025-01-09 00:06:44,601 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 00:06:44,601 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54982636-44766007, IP 203.46.9.195, Port 22 2025-01-09 00:06:44,776 - DEBUG - VM ctest-TestBasicPolicy-54982636-44766007 is ready for SSH connections 2025-01-09 00:06:44,776 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 00:06:44,776 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.46.9.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-09 00:06:44,776 - DEBUG - ping -s 56 -c 3 -W 1 203.46.9.195 2025-01-09 00:06:48,818 - DEBUG - PING 203.46.9.195 (203.46.9.195): 56 data bytes 64 bytes from 203.46.9.195: seq=0 ttl=63 time=3.875 ms 64 bytes from 203.46.9.195: seq=1 ttl=63 time=1.022 ms 64 bytes from 203.46.9.195: seq=2 ttl=63 time=1.079 ms --- 203.46.9.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.022/1.992/3.875 ms 2025-01-09 00:06:48,819 - INFO - Ping to IP 203.46.9.195 from VM ctest-TestBasicPolicy-54982636-83559483 passed 2025-01-09 00:06:49,016 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6dfcbf95-eb92-4461-b3b9-cb82d240384b", "href": "http://10.0.0.27:8082/network-policy/6dfcbf95-eb92-4461-b3b9-cb82d240384b"}} 2025-01-09 00:06:49,017 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 00:06:49,017 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.46.9.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-09 00:06:49,017 - DEBUG - ping -s 56 -c 3 -W 1 203.46.9.195 2025-01-09 00:06:52,243 - DEBUG - PING 203.46.9.195 (203.46.9.195): 56 data bytes 64 bytes from 203.46.9.195: seq=0 ttl=63 time=1.643 ms --- 203.46.9.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.643/1.643/1.643 ms 2025-01-09 00:06:52,244 - WARNING - Ping to IP 203.46.9.195 from VM ctest-TestBasicPolicy-54982636-83559483 failed 2025-01-09 00:06:52,244 - INFO - Deleting VM ctest-TestBasicPolicy-54982636-44766007 2025-01-09 00:06:52,335 - INFO - Deleting VM ctest-TestBasicPolicy-54982636-83559483 2025-01-09 00:06:52,797 - INFO - Deleted policy ctest-policy-allow-all-86210153 2025-01-09 00:06:52,797 - INFO - Deleting VN ctest-vn-99720562 2025-01-09 00:06:52,844 - DEBUG - VN ffbdc5e8-3440-45f6-80c9-8b9093c44e87 still in use: Unable to complete operation on network ffbdc5e8-3440-45f6-80c9-8b9093c44e87. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-54059a79-ec6d-4f07-92d0-5227d891c293'] 2025-01-09 00:06:52,845 - WARNING - Deleting VN ctest-vn-99720562 failed..Will retry 2025-01-09 00:06:55,001 - DEBUG - Response for deleting network () 2025-01-09 00:06:55,001 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657 2025-01-09 00:06:55,017 - DEBUG - Response Code: 404 2025-01-09 00:06:55,017 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-09 00:06:55,025 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e 2025-01-09 00:06:55,084 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700 2025-01-09 00:06:55,173 - INFO - Validated that VN ctest-vn-99720562 is not found in API Server 2025-01-09 00:06:55,187 - DEBUG - VN ctest-vn-99720562 is not present in Agent 10.0.0.27 2025-01-09 00:06:55,187 - INFO - Validated that VN ctest-vn-99720562 is not in any agent 2025-01-09 00:06:55,208 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99720562 info 2025-01-09 00:06:55,208 - INFO - Deleting VN ctest-vn-54541194 2025-01-09 00:06:55,381 - DEBUG - Response for deleting network () 2025-01-09 00:06:55,381 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d 2025-01-09 00:06:55,392 - DEBUG - Response Code: 404 2025-01-09 00:06:55,392 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-01-09 00:06:55,400 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e 2025-01-09 00:06:55,460 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700 2025-01-09 00:06:55,544 - INFO - Validated that VN ctest-vn-54541194 is not found in API Server 2025-01-09 00:06:55,558 - DEBUG - VN ctest-vn-54541194 is not present in Agent 10.0.0.27 2025-01-09 00:06:55,558 - INFO - Validated that VN ctest-vn-54541194 is not in any agent 2025-01-09 00:06:55,583 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54541194 info 2025-01-09 00:06:55,845 - DEBUG - No XMPP flaps were noticed during the test
2025-01-09 00:06:55,845 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-01-09 00:06:55,846 - INFO - -------------------------------------------------------------------------------- 2025-01-09 00:06:56,574 - INFO - Deleted project: ctest-TestBasicPolicy-54982636, ID : d2253a6d-2e18-4f95-b39d-4eb3df7be700