2025-01-14 10:56:18,424 - INFO - Domain Default found not creating 2025-01-14 10:56:18,591 - INFO - Project ctest-TestBasicPolicy-36864978 not found, creating it 2025-01-14 10:56:19,086 - INFO - Created Project:ctest-TestBasicPolicy-36864978, ID : b5df5093-f8b0-4e15-b65b-97ede0e5dbe9 2025-01-14 10:56:20,645 - INFO - ================================================================================ 2025-01-14 10:56:20,645 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-14 10:56:20,645 - 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-14 10:56:20,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.6': '0'}} with 2025-01-14 10:56:20,903 - INFO - Initial checks done. Running the testcase now 2025-01-14 10:56:20,903 - INFO - 2025-01-14 10:56:21,553 - DEBUG - Response for create_network : {'network': {'id': '5c2de20a-cce0-4130-91f0-cc0d85fd9792', 'name': 'ctest-vn-47709838', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-47709838'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 10:56:21,779 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cb1af3c-670e-406d-9f04-e0582ff16e8c', 'name': '', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'network_id': '5c2de20a-cce0-4130-91f0-cc0d85fd9792', 'ip_version': 4, 'cidr': '201.36.224.64/26', 'allocation_pools': [{'start': '201.36.224.66', 'end': '201.36.224.126'}], 'gateway_ip': '201.36.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.36.224.66', 'tags': [], 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9'}} 2025-01-14 10:56:21,802 - INFO - Created VN ctest-vn-47709838 2025-01-14 10:56:21,856 - DEBUG - VN ctest-vn-47709838 UUID is 5c2de20a-cce0-4130-91f0-cc0d85fd9792 2025-01-14 10:56:22,194 - DEBUG - Response for create_network : {'network': {'id': '473d0d7e-ebcc-47a8-a0ec-887fc76a4559', 'name': 'ctest-vn-99486154', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-99486154'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 10:56:22,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c0d011b-9390-4a32-926c-87ac33b0a99e', 'name': '', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'network_id': '473d0d7e-ebcc-47a8-a0ec-887fc76a4559', 'ip_version': 4, 'cidr': '111.144.152.64/26', 'allocation_pools': [{'start': '111.144.152.66', 'end': '111.144.152.126'}], 'gateway_ip': '111.144.152.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.144.152.66', 'tags': [], 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9'}} 2025-01-14 10:56:22,441 - INFO - Created VN ctest-vn-99486154 2025-01-14 10:56:22,496 - DEBUG - VN ctest-vn-99486154 UUID is 473d0d7e-ebcc-47a8-a0ec-887fc76a4559 2025-01-14 10:56:22,620 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838, 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-36864978:ctest-vn-99486154, 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-14 10:56:22,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c2de20a-cce0-4130-91f0-cc0d85fd9792', 'name': 'ctest-vn-47709838', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cb1af3c-670e-406d-9f04-e0582ff16e8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-47709838'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692']], 'subnet_ipam': [{'subnet_cidr': '201.36.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 10:56:23,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '473d0d7e-ebcc-47a8-a0ec-887fc76a4559', 'name': 'ctest-vn-99486154', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c0d011b-9390-4a32-926c-87ac33b0a99e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-99486154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692']], 'subnet_ipam': [{'subnet_cidr': '111.144.152.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 10:56:23,360 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-14 10:56:23,693 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-14 10:56:23,727 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67 2025-01-14 10:56:23,747 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9 2025-01-14 10:56:23,835 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792 2025-01-14 10:56:23,854 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792 2025-01-14 10:56:23,868 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703 2025-01-14 10:56:23,878 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703 2025-01-14 10:56:23,887 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/9c7e895e-de46-43c2-af37-3ce18c1c991a 2025-01-14 10:56:23,897 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 10:56:23,897 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792 2025-01-14 10:56:23,912 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703 2025-01-14 10:56:23,933 - INFO - Verified VN network id 8 for VN 5c2de20a-cce0-4130-91f0-cc0d85fd9792 2025-01-14 10:56:23,934 - INFO - Verifications in API Server for VN ctest-vn-47709838 passed 2025-01-14 10:56:23,934 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792 2025-01-14 10:56:23,949 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703 2025-01-14 10:56:23,958 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703 2025-01-14 10:56:23,968 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/9c7e895e-de46-43c2-af37-3ce18c1c991a 2025-01-14 10:56:23,984 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36864978', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6642213561456148784', 'uuid-lslong': '10516129488364738450'}, 'enable': 'true', 'created': '2025-01-14T10:56:21', 'last-modified': '2025-01-14T10:56:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074681'} 2025-01-14 10:56:23,994 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 10:56:23,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47709838 passed 2025-01-14 10:56:23,994 - DEBUG - ====Verifying policy data for ctest-vn-47709838 in API_Server ====== 2025-01-14 10:56:23,994 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-14 10:56:24,003 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67 2025-01-14 10:56:24,022 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9 2025-01-14 10:56:24,112 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792 2025-01-14 10:56:24,127 - DEBUG - ==>Verifying data for policy with id: 27c83077-80be-4173-84cf-8af8b75ec8b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692'] 2025-01-14 10:56:24,127 - INFO - VN ctest-vn-47709838 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 10:56:24,127 - DEBUG - Verifying the vn in opserver 2025-01-14 10:56:24,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838 virtual network link through opserver 10.0.0.29 2025-01-14 10:56:24,128 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-01-14 10:56:24,426 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-01-14 10:56:24,489 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838?flat'} 2025-01-14 10:56:24,489 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838 is found in opserver 2025-01-14 10:56:24,502 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 10:56:24,511 - DEBUG - VRF ids for VN ctest-vn-47709838: {} 2025-01-14 10:56:24,511 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-14 10:56:24,518 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67 2025-01-14 10:56:24,533 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9 2025-01-14 10:56:24,610 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559 2025-01-14 10:56:24,626 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559 2025-01-14 10:56:24,636 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68 2025-01-14 10:56:24,646 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68 2025-01-14 10:56:24,656 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/05beccb2-bf8c-4cea-b46b-2ef960306f33 2025-01-14 10:56:24,666 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 10:56:24,666 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559 2025-01-14 10:56:24,684 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68 2025-01-14 10:56:24,708 - INFO - Verified VN network id 9 for VN 473d0d7e-ebcc-47a8-a0ec-887fc76a4559 2025-01-14 10:56:24,708 - INFO - Verifications in API Server for VN ctest-vn-99486154 passed 2025-01-14 10:56:24,709 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559 2025-01-14 10:56:24,724 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68 2025-01-14 10:56:24,733 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68 2025-01-14 10:56:24,741 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/05beccb2-bf8c-4cea-b46b-2ef960306f33 2025-01-14 10:56:24,754 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36864978', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5133273989045307304', 'uuid-lslong': '11595793222960039257'}, 'enable': 'true', 'created': '2025-01-14T10:56:22', 'last-modified': '2025-01-14T10:56:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.595225'} 2025-01-14 10:56:24,761 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 10:56:24,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99486154 passed 2025-01-14 10:56:24,761 - DEBUG - ====Verifying policy data for ctest-vn-99486154 in API_Server ====== 2025-01-14 10:56:24,761 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-14 10:56:24,769 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67 2025-01-14 10:56:24,783 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9 2025-01-14 10:56:24,867 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559 2025-01-14 10:56:24,877 - DEBUG - ==>Verifying data for policy with id: 27c83077-80be-4173-84cf-8af8b75ec8b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692'] 2025-01-14 10:56:24,877 - INFO - VN ctest-vn-99486154 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 10:56:24,877 - DEBUG - Verifying the vn in opserver 2025-01-14 10:56:24,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154 virtual network link through opserver 10.0.0.29 2025-01-14 10:56:24,877 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-01-14 10:56:24,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154?flat'} 2025-01-14 10:56:24,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154 is found in opserver 2025-01-14 10:56:24,909 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 10:56:24,915 - DEBUG - VRF ids for VN ctest-vn-99486154: {} 2025-01-14 10:56:24,981 - DEBUG - Services list from nova: [, , ] 2025-01-14 10:56:26,009 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2623-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2623-1) 2025-01-14 10:56:27,333 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2623-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2623-1) 2025-01-14 10:56:27,333 - INFO - Waiting for VM ctest-TestBasicPolicy-36864978-43885376 to be up.. 2025-01-14 10:56:27,432 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-14 10:56:32,513 - DEBUG - VM is in ACTIVE state now 2025-01-14 10:56:32,513 - INFO - VM name : ctest-TestBasicPolicy-36864978-43885376 2025-01-14 10:56:32,591 - DEBUG - VM ctest-TestBasicPolicy-36864978-43885376 ID is 0b3d9ce8-5982-4498-8308-ff9c94372566 2025-01-14 10:56:32,612 - DEBUG - VM ctest-TestBasicPolicy-36864978-43885376 launched on Node cn-jenkins-deploy-platform-ansible-os-2623-1 2025-01-14 10:56:32,694 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/0b3d9ce8-5982-4498-8308-ff9c94372566 2025-01-14 10:56:32,705 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/bf5eff79-e876-41a8-ad5d-cf8b53cf800b 2025-01-14 10:56:35,978 - 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 1026ms') 2025-01-14 10:56:35,978 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36864978-43885376 failed! 2025-01-14 10:56:36,036 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838 is 201.36.224.65 and allocation pool is NOT set 2025-01-14 10:56:38,097 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.557 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.557/1.905/3.254/1.348 ms') 2025-01-14 10:56:38,097 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36864978-43885376 passed 2025-01-14 10:56:38,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 10:56:38,248 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36864978-43885376, IP 201.36.224.67, Port 22 2025-01-14 10:56:38,411 - DEBUG - VM ctest-TestBasicPolicy-36864978-43885376 is ready for SSH connections 2025-01-14 10:56:38,411 - INFO - Waiting for VM ctest-TestBasicPolicy-36864978-87636857 to be up.. 2025-01-14 10:56:38,495 - DEBUG - VM is in ACTIVE state now 2025-01-14 10:56:38,495 - INFO - VM name : ctest-TestBasicPolicy-36864978-87636857 2025-01-14 10:56:38,579 - DEBUG - VM ctest-TestBasicPolicy-36864978-87636857 ID is b2b06db4-b75f-412e-bae4-40553b961cf6 2025-01-14 10:56:38,579 - DEBUG - VM ctest-TestBasicPolicy-36864978-87636857 launched on Node cn-jenkins-deploy-platform-ansible-os-2623-1 2025-01-14 10:56:38,663 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/b2b06db4-b75f-412e-bae4-40553b961cf6 2025-01-14 10:56:38,674 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/65ebcfc3-1d62-499d-a959-a3f7ba5f338b 2025-01-14 10:56:39,934 - 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=5.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.39 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.387/3.518/5.650/2.131 ms') 2025-01-14 10:56:39,934 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-36864978-87636857 passed 2025-01-14 10:56:40,088 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 10:56:40,088 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36864978-87636857, IP 111.144.152.67, Port 22 2025-01-14 10:56:40,154 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-01-14 10:56:40,259 - DEBUG - VM ctest-TestBasicPolicy-36864978-87636857 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-14 10:56:45,260 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 10:56:45,260 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36864978-87636857, IP 111.144.152.67, Port 22 2025-01-14 10:56:45,420 - DEBUG - VM ctest-TestBasicPolicy-36864978-87636857 is ready for SSH connections 2025-01-14 10:56:45,420 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 10:56:45,420 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.144.152.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-01-14 10:56:45,421 - DEBUG - ping -s 56 -c 3 -W 1 111.144.152.67 2025-01-14 10:56:49,136 - DEBUG - PING 111.144.152.67 (111.144.152.67): 56 data bytes 64 bytes from 111.144.152.67: seq=0 ttl=63 time=4.785 ms 64 bytes from 111.144.152.67: seq=1 ttl=63 time=0.831 ms 64 bytes from 111.144.152.67: seq=2 ttl=63 time=0.829 ms --- 111.144.152.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.829/2.148/4.785 ms 2025-01-14 10:56:49,136 - INFO - Ping to IP 111.144.152.67 from VM ctest-TestBasicPolicy-36864978-43885376 passed 2025-01-14 10:56:49,320 - DEBUG - Policy Update Response {"network-policy": {"uuid": "27c83077-80be-4173-84cf-8af8b75ec8b1", "href": "http://10.0.0.29:8082/network-policy/27c83077-80be-4173-84cf-8af8b75ec8b1"}} 2025-01-14 10:56:49,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 10:56:49,320 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 111.144.152.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-01-14 10:56:49,320 - DEBUG - ping -s 56 -c 3 -W 1 111.144.152.67 2025-01-14 10:56:52,542 - DEBUG - PING 111.144.152.67 (111.144.152.67): 56 data bytes 64 bytes from 111.144.152.67: seq=0 ttl=63 time=1.635 ms --- 111.144.152.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.635/1.635/1.635 ms 2025-01-14 10:56:52,543 - WARNING - Ping to IP 111.144.152.67 from VM ctest-TestBasicPolicy-36864978-43885376 failed 2025-01-14 10:56:52,543 - INFO - Deleting VM ctest-TestBasicPolicy-36864978-87636857 2025-01-14 10:56:52,632 - INFO - Deleting VM ctest-TestBasicPolicy-36864978-43885376 2025-01-14 10:56:53,042 - INFO - Deleted policy ctest-policy-allow-all-85666692 2025-01-14 10:56:53,042 - INFO - Deleting VN ctest-vn-99486154 2025-01-14 10:56:53,082 - DEBUG - VN 473d0d7e-ebcc-47a8-a0ec-887fc76a4559 still in use: Unable to complete operation on network 473d0d7e-ebcc-47a8-a0ec-887fc76a4559. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dde86361-245e-42a3-b256-e6b63b2fb9d5'] 2025-01-14 10:56:53,082 - WARNING - Deleting VN ctest-vn-99486154 failed..Will retry 2025-01-14 10:56:55,200 - DEBUG - Response for deleting network () 2025-01-14 10:56:55,200 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68 2025-01-14 10:56:55,206 - DEBUG - Response Code: 404 2025-01-14 10:56:55,206 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-14 10:56:55,212 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67 2025-01-14 10:56:55,267 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9 2025-01-14 10:56:55,339 - INFO - Validated that VN ctest-vn-99486154 is not found in API Server 2025-01-14 10:56:55,352 - DEBUG - VN ctest-vn-99486154 is not present in Agent 10.0.0.29 2025-01-14 10:56:55,352 - INFO - Validated that VN ctest-vn-99486154 is not in any agent 2025-01-14 10:56:55,368 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99486154 info 2025-01-14 10:56:55,368 - INFO - Deleting VN ctest-vn-47709838 2025-01-14 10:56:55,475 - DEBUG - Response for deleting network () 2025-01-14 10:56:55,475 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703 2025-01-14 10:56:55,481 - DEBUG - Response Code: 404 2025-01-14 10:56:55,481 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-14 10:56:55,487 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67 2025-01-14 10:56:55,541 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9 2025-01-14 10:56:55,616 - INFO - Validated that VN ctest-vn-47709838 is not found in API Server 2025-01-14 10:56:55,628 - DEBUG - VN ctest-vn-47709838 is not present in Agent 10.0.0.29 2025-01-14 10:56:55,628 - INFO - Validated that VN ctest-vn-47709838 is not in any agent 2025-01-14 10:56:55,644 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47709838 info 2025-01-14 10:56:55,898 - DEBUG - No XMPP flaps were noticed during the test 2025-01-14 10:56:55,898 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-01-14 10:56:55,898 - INFO - -------------------------------------------------------------------------------- 2025-01-14 10:56:56,622 - INFO - Deleted project: ctest-TestBasicPolicy-36864978, ID : b5df5093-f8b0-4e15-b65b-97ede0e5dbe9