2025-03-24 16:33:57,609 - INFO - Domain Default found not creating 2025-03-24 16:33:57,759 - INFO - Project ctest-TestBasicPolicy-25838050 not found, creating it 2025-03-24 16:33:58,226 - INFO - Created Project:ctest-TestBasicPolicy-25838050, ID : f3f28092-e4c2-49d9-b26b-033d91d7034f 2025-03-24 16:33:59,689 - INFO - ================================================================================ 2025-03-24 16:33:59,689 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-24 16:33:59,690 - 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-03-24 16:33:59,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with 2025-03-24 16:33:59,949 - INFO - Initial checks done. Running the testcase now 2025-03-24 16:33:59,949 - INFO - 2025-03-24 16:34:00,512 - DEBUG - Response for create_network : {'network': {'id': 'f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7', 'name': 'ctest-vn-71668771', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-71668771'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 16:34:00,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd48eb463-0f24-4f4a-aa0f-596213ed5de8', 'name': '', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'network_id': 'f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7', 'ip_version': 4, 'cidr': '220.201.204.192/26', 'allocation_pools': [{'start': '220.201.204.194', 'end': '220.201.204.254'}], 'gateway_ip': '220.201.204.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.201.204.194', 'tags': [], 'project_id': 'f3f28092e4c249d9b26b033d91d7034f'}} 2025-03-24 16:34:00,710 - INFO - Created VN ctest-vn-71668771 2025-03-24 16:34:00,766 - DEBUG - VN ctest-vn-71668771 UUID is f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7 2025-03-24 16:34:01,107 - DEBUG - Response for create_network : {'network': {'id': 'ed5f95ed-e4fd-4a78-bf26-ee3876040afd', 'name': 'ctest-vn-81335258', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-81335258'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 16:34:01,311 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abcc585f-f302-4f0e-98e5-e7741114b5d1', 'name': '', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'network_id': 'ed5f95ed-e4fd-4a78-bf26-ee3876040afd', 'ip_version': 4, 'cidr': '59.34.79.64/26', 'allocation_pools': [{'start': '59.34.79.66', 'end': '59.34.79.126'}], 'gateway_ip': '59.34.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.34.79.66', 'tags': [], 'project_id': 'f3f28092e4c249d9b26b033d91d7034f'}} 2025-03-24 16:34:01,331 - INFO - Created VN ctest-vn-81335258 2025-03-24 16:34:01,386 - DEBUG - VN ctest-vn-81335258 UUID is ed5f95ed-e4fd-4a78-bf26-ee3876040afd 2025-03-24 16:34:01,525 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771, 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-25838050:ctest-vn-81335258, 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-03-24 16:34:01,849 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7', 'name': 'ctest-vn-71668771', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d48eb463-0f24-4f4a-aa0f-596213ed5de8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-71668771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401']], 'subnet_ipam': [{'subnet_cidr': '220.201.204.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 16:34:02,100 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed5f95ed-e4fd-4a78-bf26-ee3876040afd', 'name': 'ctest-vn-81335258', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abcc585f-f302-4f0e-98e5-e7741114b5d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-81335258'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401']], 'subnet_ipam': [{'subnet_cidr': '59.34.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 16:34:02,278 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-24 16:34:02,587 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-24 16:34:02,626 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f 2025-03-24 16:34:02,642 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f 2025-03-24 16:34:02,731 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7 2025-03-24 16:34:02,744 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7 2025-03-24 16:34:02,758 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74 2025-03-24 16:34:02,767 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74 2025-03-24 16:34:02,775 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/53278cfe-79f2-4a5d-9420-9f54a211a32a 2025-03-24 16:34:02,783 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 16:34:02,783 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7 2025-03-24 16:34:02,795 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74 2025-03-24 16:34:02,813 - INFO - Verified VN network id 7 for VN f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7 2025-03-24 16:34:02,813 - INFO - Verifications in API Server for VN ctest-vn-71668771 passed 2025-03-24 16:34:02,813 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7 2025-03-24 16:34:02,826 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74 2025-03-24 16:34:02,834 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74 2025-03-24 16:34:02,842 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/53278cfe-79f2-4a5d-9420-9f54a211a32a 2025-03-24 16:34:02,856 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25838050', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17732430452367051140', 'uuid-lslong': '12553971067918009031'}, 'enable': 'true', 'created': '2025-03-24T16:34:00', 'last-modified': '2025-03-24T16:34:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036792'} 2025-03-24 16:34:02,863 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 16:34:02,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71668771 passed 2025-03-24 16:34:02,863 - DEBUG - ====Verifying policy data for ctest-vn-71668771 in API_Server ====== 2025-03-24 16:34:02,864 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-24 16:34:02,870 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f 2025-03-24 16:34:02,884 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f 2025-03-24 16:34:02,969 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7 2025-03-24 16:34:02,985 - DEBUG - ==>Verifying data for policy with id: d6bc7461-e0cd-4e88-9500-f650ecc14462, fqn: ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401'] 2025-03-24 16:34:02,985 - INFO - VN ctest-vn-71668771 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 16:34:02,985 - DEBUG - Verifying the vn in opserver 2025-03-24 16:34:02,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771 virtual network link through opserver 10.0.0.31 2025-03-24 16:34:02,986 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-03-24 16:34:03,329 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-03-24 16:34:03,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771?flat'} 2025-03-24 16:34:03,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771 is found in opserver 2025-03-24 16:34:03,423 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 16:34:03,430 - DEBUG - VRF ids for VN ctest-vn-71668771: {} 2025-03-24 16:34:03,430 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-24 16:34:03,437 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f 2025-03-24 16:34:03,451 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f 2025-03-24 16:34:03,539 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd 2025-03-24 16:34:03,557 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd 2025-03-24 16:34:03,571 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0 2025-03-24 16:34:03,582 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0 2025-03-24 16:34:03,592 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/9b3fe35f-c07a-44dd-a1cd-873c3a00abda 2025-03-24 16:34:03,601 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 16:34:03,601 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd 2025-03-24 16:34:03,615 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0 2025-03-24 16:34:03,636 - INFO - Verified VN network id 8 for VN ed5f95ed-e4fd-4a78-bf26-ee3876040afd 2025-03-24 16:34:03,636 - INFO - Verifications in API Server for VN ctest-vn-81335258 passed 2025-03-24 16:34:03,636 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd 2025-03-24 16:34:03,650 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0 2025-03-24 16:34:03,660 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0 2025-03-24 16:34:03,670 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/9b3fe35f-c07a-44dd-a1cd-873c3a00abda 2025-03-24 16:34:03,686 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25838050', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17104554758758025848', 'uuid-lslong': '13773958436624796413'}, 'enable': 'true', 'created': '2025-03-24T16:34:01', 'last-modified': '2025-03-24T16:34:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.618267'} 2025-03-24 16:34:03,693 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 16:34:03,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81335258 passed 2025-03-24 16:34:03,693 - DEBUG - ====Verifying policy data for ctest-vn-81335258 in API_Server ====== 2025-03-24 16:34:03,693 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-24 16:34:03,700 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f 2025-03-24 16:34:03,717 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f 2025-03-24 16:34:03,803 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd 2025-03-24 16:34:03,816 - DEBUG - ==>Verifying data for policy with id: d6bc7461-e0cd-4e88-9500-f650ecc14462, fqn: ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401'] 2025-03-24 16:34:03,816 - INFO - VN ctest-vn-81335258 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 16:34:03,816 - DEBUG - Verifying the vn in opserver 2025-03-24 16:34:03,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258 virtual network link through opserver 10.0.0.31 2025-03-24 16:34:03,816 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-03-24 16:34:03,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258?flat'} 2025-03-24 16:34:03,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258 is found in opserver 2025-03-24 16:34:03,841 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 16:34:03,846 - DEBUG - VRF ids for VN ctest-vn-81335258: {} 2025-03-24 16:34:03,911 - DEBUG - Services list from nova: [, , ] 2025-03-24 16:34:04,929 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2943-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2943-1) 2025-03-24 16:34:06,154 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2943-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2943-1) 2025-03-24 16:34:06,154 - INFO - Waiting for VM ctest-TestBasicPolicy-25838050-31396196 to be up.. 2025-03-24 16:34:06,247 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-24 16:34:11,357 - DEBUG - VM is in ACTIVE state now 2025-03-24 16:34:11,358 - INFO - VM name : ctest-TestBasicPolicy-25838050-31396196 2025-03-24 16:34:11,450 - DEBUG - VM ctest-TestBasicPolicy-25838050-31396196 ID is a35413b6-7f16-4d8e-8b6d-06ee12918470 2025-03-24 16:34:11,482 - DEBUG - VM ctest-TestBasicPolicy-25838050-31396196 launched on Node cn-jenkins-deploy-platform-ansible-os-2943-1 2025-03-24 16:34:11,589 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/a35413b6-7f16-4d8e-8b6d-06ee12918470 2025-03-24 16:34:11,600 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/b6c42982-cec9-4a57-ac57-81d9abe13137 2025-03-24 16:34:14,868 - 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') 2025-03-24 16:34:14,868 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25838050-31396196 failed! 2025-03-24 16:34:14,926 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771 is 220.201.204.193 and allocation pool is NOT set 2025-03-24 16:34:16,988 - 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=10.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.29 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 = 2.293/6.343/10.394/4.050 ms') 2025-03-24 16:34:16,988 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25838050-31396196 passed 2025-03-24 16:34:17,142 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 16:34:17,142 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25838050-31396196, IP 220.201.204.195, Port 22 2025-03-24 16:34:17,198 - 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-03-24 16:34:17,276 - DEBUG - VM ctest-TestBasicPolicy-25838050-31396196 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-24 16:34:22,277 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 16:34:22,277 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25838050-31396196, IP 220.201.204.195, Port 22 2025-03-24 16:34:22,438 - DEBUG - VM ctest-TestBasicPolicy-25838050-31396196 is ready for SSH connections 2025-03-24 16:34:22,438 - INFO - Waiting for VM ctest-TestBasicPolicy-25838050-84027769 to be up.. 2025-03-24 16:34:22,521 - DEBUG - VM is in ACTIVE state now 2025-03-24 16:34:22,522 - INFO - VM name : ctest-TestBasicPolicy-25838050-84027769 2025-03-24 16:34:22,605 - DEBUG - VM ctest-TestBasicPolicy-25838050-84027769 ID is 8b1468c0-74e9-40b3-a042-4183f902f886 2025-03-24 16:34:22,605 - DEBUG - VM ctest-TestBasicPolicy-25838050-84027769 launched on Node cn-jenkins-deploy-platform-ansible-os-2943-1 2025-03-24 16:34:22,683 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/8b1468c0-74e9-40b3-a042-4183f902f886 2025-03-24 16:34:22,692 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/2b977993-a916-42fb-b915-0ac74c017997 2025-03-24 16:34:23,932 - 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=3.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.572 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.572/1.806/3.040/1.234 ms') 2025-03-24 16:34:23,932 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25838050-84027769 passed 2025-03-24 16:34:24,086 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 16:34:24,087 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25838050-84027769, IP 59.34.79.67, Port 22 2025-03-24 16:34:24,241 - DEBUG - VM ctest-TestBasicPolicy-25838050-84027769 is ready for SSH connections 2025-03-24 16:34:24,241 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 16:34:24,242 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.34.79.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-03-24 16:34:24,242 - DEBUG - ping -s 56 -c 3 -W 1 59.34.79.67 2025-03-24 16:34:28,277 - DEBUG - PING 59.34.79.67 (59.34.79.67): 56 data bytes 64 bytes from 59.34.79.67: seq=0 ttl=63 time=3.703 ms 64 bytes from 59.34.79.67: seq=1 ttl=63 time=1.213 ms 64 bytes from 59.34.79.67: seq=2 ttl=63 time=0.842 ms --- 59.34.79.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.842/1.919/3.703 ms 2025-03-24 16:34:28,277 - INFO - Ping to IP 59.34.79.67 from VM ctest-TestBasicPolicy-25838050-31396196 passed 2025-03-24 16:34:28,458 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d6bc7461-e0cd-4e88-9500-f650ecc14462", "href": "http://10.0.0.31:8082/network-policy/d6bc7461-e0cd-4e88-9500-f650ecc14462"}} 2025-03-24 16:34:28,458 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 16:34:28,458 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.34.79.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2025-03-24 16:34:28,458 - DEBUG - ping -s 56 -c 3 -W 1 59.34.79.67 2025-03-24 16:34:31,662 - DEBUG - PING 59.34.79.67 (59.34.79.67): 56 data bytes 64 bytes from 59.34.79.67: seq=0 ttl=63 time=1.442 ms --- 59.34.79.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.442/1.442/1.442 ms 2025-03-24 16:34:31,662 - WARNING - Ping to IP 59.34.79.67 from VM ctest-TestBasicPolicy-25838050-31396196 failed 2025-03-24 16:34:31,662 - INFO - Deleting VM ctest-TestBasicPolicy-25838050-84027769 2025-03-24 16:34:31,730 - INFO - Deleting VM ctest-TestBasicPolicy-25838050-31396196 2025-03-24 16:34:32,130 - INFO - Deleted policy ctest-policy-allow-all-23939401 2025-03-24 16:34:32,130 - INFO - Deleting VN ctest-vn-81335258 2025-03-24 16:34:32,173 - DEBUG - VN ed5f95ed-e4fd-4a78-bf26-ee3876040afd still in use: Unable to complete operation on network ed5f95ed-e4fd-4a78-bf26-ee3876040afd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4cd30e60-6da4-4e7b-a76a-86da05e567f6'] 2025-03-24 16:34:32,174 - WARNING - Deleting VN ctest-vn-81335258 failed..Will retry 2025-03-24 16:34:34,276 - DEBUG - Response for deleting network () 2025-03-24 16:34:34,276 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0 2025-03-24 16:34:34,284 - DEBUG - Response Code: 404 2025-03-24 16:34:34,284 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-24 16:34:34,290 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f 2025-03-24 16:34:34,345 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f 2025-03-24 16:34:34,420 - INFO - Validated that VN ctest-vn-81335258 is not found in API Server 2025-03-24 16:34:34,432 - DEBUG - VN ctest-vn-81335258 is not present in Agent 10.0.0.31 2025-03-24 16:34:34,432 - INFO - Validated that VN ctest-vn-81335258 is not in any agent 2025-03-24 16:34:34,448 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81335258 info 2025-03-24 16:34:34,449 - INFO - Deleting VN ctest-vn-71668771 2025-03-24 16:34:34,549 - DEBUG - Response for deleting network () 2025-03-24 16:34:34,550 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74 2025-03-24 16:34:34,558 - DEBUG - Response Code: 404 2025-03-24 16:34:34,558 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2025-03-24 16:34:34,563 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f 2025-03-24 16:34:34,616 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f 2025-03-24 16:34:34,689 - INFO - Validated that VN ctest-vn-71668771 is not found in API Server 2025-03-24 16:34:34,701 - DEBUG - VN ctest-vn-71668771 is not present in Agent 10.0.0.31 2025-03-24 16:34:34,701 - INFO - Validated that VN ctest-vn-71668771 is not in any agent 2025-03-24 16:34:34,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71668771 info 2025-03-24 16:34:34,972 - DEBUG - No XMPP flaps were noticed during the test 2025-03-24 16:34:34,972 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-03-24 16:34:34,972 - INFO - -------------------------------------------------------------------------------- 2025-03-24 16:34:35,690 - INFO - Deleted project: ctest-TestBasicPolicy-25838050, ID : f3f28092-e4c2-49d9-b26b-033d91d7034f